[MIRROR] Proper MaxHealth checks and Crit Point (#10881)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-05-16 00:25:21 -07:00
committed by GitHub
parent 901dc552fc
commit 4ce45f8cc4
46 changed files with 92 additions and 94 deletions

View File

@@ -50,7 +50,7 @@
/obj/item/inserted_spell/asphyxiation/on_expire()
..()
// if((getOxyLoss() > (species.total_health/2)) || (health <= config.health_threshold_crit))
// if((getOxyLoss() > (species.total_health/2)) || (health <= get_crit_point())
/obj/item/inserted_spell/asphyxiation/proc/predict_crit(var/pulses_remaining, var/mob/living/carbon/human/victim, var/previous_damage = 0)
if(pulses_remaining <= 0) // Infinite loop protection