mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Fixes handle_organs() being called twice in Life()
This commit is contained in:
@@ -95,8 +95,10 @@
|
|||||||
//Disabilities
|
//Disabilities
|
||||||
handle_disabilities()
|
handle_disabilities()
|
||||||
|
|
||||||
//Organ failure.
|
//Organs and blood
|
||||||
handle_organs()
|
handle_organs()
|
||||||
|
handle_blood()
|
||||||
|
stabilize_body_temperature() //Body temperature adjusts itself (self-regulation)
|
||||||
|
|
||||||
//Random events (vomiting etc)
|
//Random events (vomiting etc)
|
||||||
handle_random_events()
|
handle_random_events()
|
||||||
@@ -1096,10 +1098,6 @@
|
|||||||
silent = 0
|
silent = 0
|
||||||
else //ALIVE. LIGHTS ARE ON
|
else //ALIVE. LIGHTS ARE ON
|
||||||
updatehealth() //TODO
|
updatehealth() //TODO
|
||||||
if(!in_stasis)
|
|
||||||
stabilize_body_temperature() //Body temperature adjusts itself
|
|
||||||
handle_organs() //Optimized.
|
|
||||||
handle_blood()
|
|
||||||
|
|
||||||
if(health <= config.health_threshold_dead || (species.has_organ["brain"] && !has_brain()))
|
if(health <= config.health_threshold_dead || (species.has_organ["brain"] && !has_brain()))
|
||||||
death()
|
death()
|
||||||
|
|||||||
Reference in New Issue
Block a user