Skip to content

Commit

Permalink
Fix traits
Browse files Browse the repository at this point in the history
  • Loading branch information
Very-Soft committed Nov 13, 2023
1 parent 3106abb commit 4605ee9
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions code/modules/mob/new_player/new_player_vr.dm
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,16 @@

//Check traits/costs
var/list/megalist = client.prefs.pos_traits + client.prefs.neu_traits + client.prefs.neg_traits
// var/points_left = client.prefs.starting_trait_points - //RS REMOVAL
var/traits_left = client.prefs.max_traits
// var/points_left = client.prefs.starting_trait_points //RS REMOVAL
// var/traits_left = client.prefs.max_traits //RS REMOVAL
var/pref_synth = client.prefs.dirty_synth
var/pref_meat = client.prefs.gross_meatbag
for(var/datum/trait/T as anything in megalist)
var/cost = traits_costs[T]

if(cost >= 0) //RS EDIT
/* RS REMOVAL
if(cost >= 0)
traits_left--
*/

//A trait was removed from the game
if(isnull(cost))
Expand All @@ -65,9 +66,10 @@
to_chat(src, "<span class='warning'>Some of your traits are not usable by your character type (synthetic traits on organic, or vice versa).</span>")

//Went into negatives
if(traits_left < 0) //RS REMOVAL
if(client.prefs.pos_traits.len > client.prefs.max_traits) //RS REMOVAL
pass = FALSE
to_chat(src,"<span class='warning'>Your custom species is not playable. Reconfigure your traits on the VORE tab.</span>")
to_world("traits: [client.prefs.pos_traits.len]/[client.prefs.max_traits]")

//Final popup notice
if (!pass)
Expand Down

0 comments on commit 4605ee9

Please sign in to comment.