From a8a668b7b3e39942a09fc28bee840e4875f633ae Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Tue, 30 May 2017 15:12:04 -0400 Subject: [PATCH] Make cancel work on trait list --- code/modules/client/preference_setup/vore/07_traits.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/client/preference_setup/vore/07_traits.dm b/code/modules/client/preference_setup/vore/07_traits.dm index 4d97091c74..a16e9057b3 100644 --- a/code/modules/client/preference_setup/vore/07_traits.dm +++ b/code/modules/client/preference_setup/vore/07_traits.dm @@ -225,6 +225,8 @@ while(!done) var/message = "\[Remaining: [points_left] points, [traits_left] traits\] Select a trait to read the description and see the cost." trait_choice = input(message,"Trait List") as null|anything in nicelist + if(!trait_choice) + done = TRUE if(trait_choice in nicelist) var/datum/trait/path = nicelist[trait_choice] var/choice = alert("\[Cost:[initial(path.cost)]\] [initial(path.desc)]",initial(path.name),"Take Trait","Cancel","Go Back")