From 74c5d65722df22630592c9d43b66e58b0863bb6e Mon Sep 17 00:00:00 2001 From: fira Date: Sun, 15 Oct 2023 18:45:36 +0200 Subject: [PATCH] Fixes minor runtime with null skills pushups (#4680) # About the pull request Doing push up with null skills runtimes at every iteration since pushups don't account for it I wouldn't normally bother but I came across an unreadable log spammed by zombie pushups, because our zombie players LOVE doing pushups No functional changes, no changelog, etc --- code/modules/mob/living/carbon/human/exercise.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/carbon/human/exercise.dm b/code/modules/mob/living/carbon/human/exercise.dm index 7a83fd2886e3..3a2976da9130 100644 --- a/code/modules/mob/living/carbon/human/exercise.dm +++ b/code/modules/mob/living/carbon/human/exercise.dm @@ -102,7 +102,7 @@ Verbs related to getting fucking jacked, bro //humans have 100 stamina //default loss per pushup = 5 stamina var/stamina_loss = 5 - if(issynth(src)) + if(!skills || issynth(src)) return 0 switch(skills.get_skill_level(SKILL_ENDURANCE)) if(SKILL_ENDURANCE_NONE)