From 720e312647707da9b4b9183f564912800bfa43f2 Mon Sep 17 00:00:00 2001 From: SomeGuyEatingPie Date: Thu, 11 Aug 2022 17:38:59 +0100 Subject: [PATCH] Final Tweaks Finishing touches --- GainStation13/code/obj/structure/scale.dm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/GainStation13/code/obj/structure/scale.dm b/GainStation13/code/obj/structure/scale.dm index 3ea75032..aed3bf0b 100644 --- a/GainStation13/code/obj/structure/scale.dm +++ b/GainStation13/code/obj/structure/scale.dm @@ -46,8 +46,11 @@ to_chat(fatty, "You weigh yourself.") to_chat(fatty, "The numbers on the screen tick up and eventually settle on:") //The appearance of the numbers changes with the fat level of the character - if (HAS_TRAIT(fatty, TRAIT_IMMOBILE) || HAS_TRAIT(fatty, TRAIT_BLOB)) - to_chat(fatty, " [src.lastreading/2000]TONS!!!") + if (HAS_TRAIT(fatty, TRAIT_BLOB)) + to_chat(fatty, "[round(src.lastreading/2000, 0.01)]TONS!!!") + + else if (HAS_TRAIT(fatty, TRAIT_IMMOBILE)) + to_chat(fatty, "[src.lastreading]Lbs!") else if(HAS_TRAIT(fatty, TRAIT_OBESE) || HAS_TRAIT(fatty, TRAIT_MORBIDLYOBESE)) to_chat(fatty, "[src.lastreading]Lbs!") @@ -65,7 +68,7 @@ weighperson(HM) /obj/structure/scale/proc/weighperson(mob/living/carbon/human/fatty) - src.lastreading = (100 + (fatty.fatness))*(fatty.size_multiplier**2) + src.lastreading = round((100 + (fatty.fatness))*(fatty.size_multiplier**2)) weighEffect(fatty) - visible_message("[fatty] Weighs themselves.") + visible_message("[fatty] weighs themselves.") visible_message("The numbers on the screen settle on: [src.lastreading]Lbs.")