mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
[MIRROR] Proper MaxHealth checks and Crit Point (#10881)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
901dc552fc
commit
4ce45f8cc4
@@ -517,7 +517,7 @@
|
||||
if(ishuman(target))
|
||||
var/mob/living/carbon/human/M = target
|
||||
M.druggy = max(M.druggy, 20)
|
||||
if(M.health < M.maxHealth)
|
||||
if(M.health < M.getMaxHealth())
|
||||
to_chat(target, span_notice("As the beam strikes you, you feel a little healthier!"))
|
||||
M.adjustBruteLoss(-5)
|
||||
M.adjustFireLoss(-5)
|
||||
@@ -587,7 +587,7 @@
|
||||
/obj/item/projectile/beam/medigun/on_hit(var/atom/target, var/blocked = 0)
|
||||
if(ishuman(target))
|
||||
var/mob/living/carbon/human/M = target
|
||||
if(M.health < M.maxHealth)
|
||||
if(M.health < M.getMaxHealth())
|
||||
var/obj/effect/overlay/pulse = new /obj/effect/overlay(get_turf(M))
|
||||
pulse.icon = 'icons/effects/effects.dmi'
|
||||
pulse.icon_state = XENO_CHEM_HEAL
|
||||
|
||||
Reference in New Issue
Block a user