Implemented NO_PAIN and parts of NO_BLOOD, restructured species flags.

Conflicts:
	code/modules/organs/blood.dm
This commit is contained in:
Zuhayr
2014-01-07 00:01:27 -05:00
committed by ZomgPonies
parent e09a00fe0e
commit 07c1506551
3 changed files with 11 additions and 8 deletions
+5 -2
View File
@@ -1328,7 +1328,7 @@
if(2) healths.icon_state = "health7"
else
//switch(health - halloss)
switch(100 - traumatic_shock)
switch(100 - ((species && species.flags & NO_PAIN) ? 0 : traumatic_shock))
if(100 to INFINITY) healths.icon_state = "health0"
if(80 to 100) healths.icon_state = "health1"
if(60 to 80) healths.icon_state = "health2"
@@ -1505,7 +1505,7 @@
handle_shock()
..()
if(status_flags & GODMODE) return 0 //godmode
if(analgesic) return // analgesic avoids all traumatic shock temporarily
if(analgesic || (species && species.flags & NO_PAIN)) return // analgesic avoids all traumatic shock temporarily
if(health < 0)// health 0 makes you immediately collapse
shock_stage = max(shock_stage, 61)
@@ -1552,8 +1552,11 @@
proc/handle_pulse()
if(life_tick % 5) return pulse //update pulse every 5 life ticks (~1 tick/sec, depending on server load)
if(species && species.flags && NO_BLOOD) return PULSE_NONE //No blood, no pulse.
if(stat == DEAD)
return PULSE_NONE //that's it, you're dead, nothing can influence your pulse