Moves stasis handling to component-based

This commit is contained in:
Artur
2022-04-07 14:10:51 +03:00
parent 3824daba05
commit be46eba465
2 changed files with 8 additions and 11 deletions
+2 -2
View File
@@ -6,12 +6,11 @@
SHOULD_NOT_SLEEP(TRUE)
if(mob_transforming)
return
handle_traits() // eye, ear, brain damages
handle_status_effects() //all special effects, stun, knockdown, jitteryness, hallucination, sleeping, etc
. = SEND_SIGNAL(src, COMSIG_LIVING_LIFE, seconds, times_fired)
if(!(. & COMPONENT_INTERRUPT_LIFE_PHYSICAL))
PhysicalLife(seconds, times_fired)
if(!(. & COMPONENT_INTERRUPT_LIFE_BIOLOGICAL) && !IS_IN_STASIS(src))
if(!(. & COMPONENT_INTERRUPT_LIFE_BIOLOGICAL))
BiologicalLife(seconds, times_fired)
// CODE BELOW SHOULD ONLY BE THINGS THAT SHOULD HAPPEN NO MATTER WHAT AND CAN NOT BE SUSPENDED!
@@ -67,6 +66,7 @@
//stuff in the stomach
handle_stomach()
handle_traits() // eye, ear, brain damages
handle_block_parry(seconds)