mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 12:29:46 +01:00
Fixes species not respecting total_health (#9214)
This commit is contained in:
@@ -114,6 +114,6 @@
|
||||
return "grue"
|
||||
|
||||
/datum/species/shadow/handle_death_check(var/mob/living/carbon/human/H)
|
||||
if(H.get_total_health() <= config.health_threshold_dead)
|
||||
if(H.get_total_health() <= total_health)
|
||||
return TRUE
|
||||
return FALSE
|
||||
@@ -18,7 +18,7 @@
|
||||
deform = 'icons/mob/human_races/r_skeleton.dmi'
|
||||
eyes = "blank_eyes"
|
||||
|
||||
total_health = 70 //gotta get headshots to kill them, so they're frail
|
||||
total_health = 100 //skeletons are frail
|
||||
|
||||
default_language = LANGUAGE_TCB
|
||||
language = LANGUAGE_CULT
|
||||
@@ -92,7 +92,7 @@
|
||||
hud_type = /datum/hud_data/construct
|
||||
|
||||
/datum/species/skeleton/handle_death_check(var/mob/living/carbon/human/H)
|
||||
if(H.get_total_health() <= config.health_threshold_dead)
|
||||
if(H.get_total_health() <= total_health)
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
qdel(H)
|
||||
|
||||
/datum/species/apparition/handle_death_check(var/mob/living/carbon/human/H)
|
||||
if(H.get_total_health() <= config.health_threshold_dead)
|
||||
if(H.get_total_health() <= total_health)
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
|
||||
@@ -184,7 +184,7 @@
|
||||
return current_flags
|
||||
|
||||
/datum/species/diona/handle_death_check(var/mob/living/carbon/human/H)
|
||||
if(H.get_total_health() <= config.health_threshold_dead)
|
||||
if(H.get_total_health() <= total_health)
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ var/global/list/golem_types = list("Coal Golem",
|
||||
qdel(H)
|
||||
|
||||
/datum/species/golem/handle_death_check(var/mob/living/carbon/human/H)
|
||||
if(H.get_total_health() <= config.health_threshold_dead)
|
||||
if(H.get_total_health() <= total_health)
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
|
||||
@@ -298,7 +298,7 @@ datum/species/machine/handle_post_spawn(var/mob/living/carbon/human/H)
|
||||
check_tag(H, H.client)
|
||||
|
||||
/datum/species/machine/handle_death_check(var/mob/living/carbon/human/H)
|
||||
if(H.get_total_health() <= config.health_threshold_dead)
|
||||
if(H.get_total_health() <= total_health)
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user