mob/living/Life() now handles random events (vomiting etc).

This commit is contained in:
PsiOmega
2015-06-14 11:17:04 +02:00
parent a14406f83a
commit 03be640d01
2 changed files with 10 additions and 4 deletions
+4 -4
View File
@@ -74,9 +74,6 @@
handle_organs()
stabilize_body_temperature() //Body temperature adjusts itself (self-regulation)
//Random events (vomiting etc)
handle_random_events()
//stuff in the stomach
handle_stomach()
@@ -1416,7 +1413,10 @@
O.process_hud(src)
if(!druggy && !seer) see_invisible = SEE_INVISIBLE_LIVING
/mob/living/carbon/human/proc/handle_random_events()
/mob/living/carbon/human/handle_random_events()
if(in_stasis)
return
// Puke if toxloss is too high
if(!stat)
if (getToxLoss() >= 45 && nutrition > 20)
+6
View File
@@ -21,6 +21,9 @@
//Blood
handle_blood()
//Random events (vomiting etc)
handle_random_events()
. = 1
//Handle temperature/pressure differences between body and environment
@@ -39,5 +42,8 @@
/mob/living/proc/handle_blood()
return
/mob/living/proc/handle_random_events()
return
/mob/living/proc/handle_environment(var/datum/gas_mixture/environment)
return