From c9ec6d4a037f27a949c380340dbd9a3922aa2aa7 Mon Sep 17 00:00:00 2001 From: Weblure Date: Fri, 3 Jul 2020 21:51:22 -0700 Subject: [PATCH] Fixes a button, rewords text to be clearer --- code/modules/client/preferences.dm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index 2efc7f8cd3..37dffc191d 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -2326,10 +2326,12 @@ GLOBAL_LIST_EMPTY(preferences_datums) if (new_body_size) new_body_size = clamp(new_body_size * 0.01, min, max) var/dorfy - if(danger > new_body_size) - dorfy = alert(user, "The chosen size appears to be smaller than the threshold of [danger*100]%, which will lead to an added exponential slowdown. Are you sure about that?", "Dwarfism Alert", "Yes", "Move it to the threshold", "No") - if(!dorfy || dorfy == "Move it above the threshold") + if((new_body_size + 0.01) < danger) //Skyrat - Adding 0.01 as a dumb fix to prevent the warning message from appearing when exactly at threshold... Not sure why that happens in the first place. + dorfy = alert(user, "You have chosen a size below the slowdown threshold of [danger*100]%. For balancing purposes, the further you go below this percentage, the slower your character will be. Do you wish to keep this size?", "Speed Penalty Alert", "Yes", "Move it to the threshold", "No") //Skyrat - reworded + if(dorfy == "Move it to the threshold") //Skyrat - typo fix new_body_size = danger + if(!dorfy) //Skyrat - Aborts if this var is somehow empty + return if(dorfy != "No") features["body_size"] = new_body_size if("tongue")