Skip to content

Commit

Permalink
lets golems die
Browse files Browse the repository at this point in the history
  • Loading branch information
Paxilmaniac committed Jan 13, 2025
1 parent 7262d3d commit c9fa8da
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modular_doppler/most_evil_health_rework/code/carbon_health.dm
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@
var/rounded_brain_damage = round((-0.02 * owner.health), 0.25) * seconds_per_tick
apply_organ_damage(rounded_brain_damage)

/// Golems need to do something different, as they don't anything
/obj/item/organ/brain/golem/on_life(seconds_per_tick, times_fired)
if(damage >= BRAIN_DAMAGE_DEATH)
achieve_death()
if(owner.stat == SOFT_CRIT || owner.stat == HARD_CRIT)
var/rounded_brain_damage = round((-0.02 * owner.health), 0.25) * seconds_per_tick
apply_organ_damage(rounded_brain_damage)

/// Kills the owner of the brain when called, logging the reason given to it
/obj/item/organ/brain/proc/achieve_death(reason)
if(!reason)
Expand Down

0 comments on commit c9fa8da

Please sign in to comment.