From a2259fbbe8b9b448bc255bbc92afe5e95608204e Mon Sep 17 00:00:00 2001 From: khadd <54692343+realkhad@users.noreply.github.com> Date: Thu, 27 Jul 2023 17:51:58 +0200 Subject: [PATCH] review --- code/modules/mob/living/carbon/xenomorph/Xenomorph.dm | 5 +++++ code/modules/mob/mob_status_procs.dm | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/carbon/xenomorph/Xenomorph.dm b/code/modules/mob/living/carbon/xenomorph/Xenomorph.dm index aea1ce9a5906..dd53868caf36 100644 --- a/code/modules/mob/living/carbon/xenomorph/Xenomorph.dm +++ b/code/modules/mob/living/carbon/xenomorph/Xenomorph.dm @@ -1125,3 +1125,8 @@ SPAN_WARNING("You squeeze and scuttle underneath [current_structure]."), max_distance = 5) forceMove(current_structure.loc) return TRUE + +/mob/living/carbon/xenomorph/knocked_down_callback() + . = ..() + if(!resting) // !resting because we dont wanna prematurely update wounds if they're just trying to rest + update_wounds() diff --git a/code/modules/mob/mob_status_procs.dm b/code/modules/mob/mob_status_procs.dm index ab32f012cc1a..b700fad2c136 100644 --- a/code/modules/mob/mob_status_procs.dm +++ b/code/modules/mob/mob_status_procs.dm @@ -94,9 +94,6 @@ handle_regular_status_updates(FALSE) update_canmove() knocked_down_timer = null - if(isxeno(src) && !resting) // !resting because we dont wanna prematurely update wounds if they're just trying to rest - var/mob/living/carbon/xenomorph/xeno = src - xeno.update_wounds() /mob/proc/knocked_down_callback_check() if(knocked_down && knocked_down < recovery_constant)