From d29c354016f02a4dedae66ed01be0a8a28e5ae9e Mon Sep 17 00:00:00 2001 From: 2whatever2 Date: Thu, 7 Mar 2024 11:37:26 +0800 Subject: [PATCH] Webedit, fixes sanity checks for tackle and wellcheers. (WEBEDIT PR, TESTED IN VSC.) (#81855) ## About The Pull Request Fixes both tackle Insanity checks and wellcheers sanity check. I couldn't get make VSC clone my fork so I just did a webedit, and tested changes with VSC. https://github.com/tgstation/tgstation/assets/24631139/73730216-0c0a-45ee-8ee3-94c7695f4337 https://github.com/tgstation/tgstation/assets/24631139/90d96a5f-98cd-4bf5-b1d3-d0e0d14a917a ## Why It's Good For The Game Bugfixes are good. Fixes https://github.com/tgstation/tgstation/issues/81852 ## Changelog :cl: fix: Tackle and wellcheers code for sanity values now function. /:cl: --- code/datums/components/tackle.dm | 2 +- .../reagents/chemistry/reagents/drinks/drink_reagents.dm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/datums/components/tackle.dm b/code/datums/components/tackle.dm index a0d0317d755..b2bae5cffee 100644 --- a/code/datums/components/tackle.dm +++ b/code/datums/components/tackle.dm @@ -443,7 +443,7 @@ if(human_sacker.get_mob_height() <= HUMAN_HEIGHT_SHORTEST) //JUST YOU WAIT TILL I FIND A CHAIR, BUDDY, THEN YOU'LL BE SORRY attack_mod -= 2 - if(human_sacker.mob_mood.sanity_level == SANITY_INSANE) //I've gone COMPLETELY INSANE + if(human_sacker.mob_mood.sanity_level == SANITY_LEVEL_INSANE) //I've gone COMPLETELY INSANE attack_mod += 15 human_sacker.adjustStaminaLoss(100) //AHAHAHAHAHAHAHAHA diff --git a/code/modules/reagents/chemistry/reagents/drinks/drink_reagents.dm b/code/modules/reagents/chemistry/reagents/drinks/drink_reagents.dm index 43430d09469..c31b7e7079c 100644 --- a/code/modules/reagents/chemistry/reagents/drinks/drink_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/drinks/drink_reagents.dm @@ -639,7 +639,7 @@ . = ..() affected_mob.adjust_drowsiness(3 SECONDS * REM * seconds_per_tick) var/need_mob_update - switch(affected_mob.mob_mood.sanity_level) + switch(affected_mob.mob_mood.sanity) if (SANITY_INSANE to SANITY_CRAZY) need_mob_update = affected_mob.adjustStaminaLoss(3 * REM * seconds_per_tick, updating_stamina = FALSE) if (SANITY_UNSTABLE to SANITY_DISTURBED)