mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 23:17:28 +01:00
Proper MaxHealth checks and Crit Point (#17704)
* Fixes maxhealth checks not including modifiers and mxHP Death at: W/ 100max hp: https://i.imgur.com/nR8DtzG.png W/ 125max hp: https://i.imgur.com/87eD2hW.png W/ 25max hp: https://i.imgur.com/SP6rPWc.png * Crit Point * small xenochimera fix * Update game_options.txt
This commit is contained in:
@@ -460,7 +460,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)
|
||||
@@ -530,7 +530,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