The amplified drill actually heals IPCs for more than just stamina damage (#26917)

* Should make the healing apply to IPCs too

* Should allow for robotic to be used

* Still trying to get it to work, might be making progress

* Human level var gets info from owner

* Minor comment fix
This commit is contained in:
WenlockTheBritishHobo
2024-10-02 16:17:52 +01:00
committed by GitHub
parent b91fb66371
commit ba752d10fb
+5 -4
View File
@@ -727,16 +727,17 @@
owner.clear_fullscreen("payback")
owner.overlay_fullscreen("payback", /atom/movable/screen/fullscreen/stretch/payback, 1)
/datum/status_effect/drill_payback/tick() //They are not staying down. This will be a fight.
if(!drilled_successfully && (get_dist(owner, drilled) >= 9)) //We don't want someone drilling the safe at arivals then raiding bridge with the buff
/datum/status_effect/drill_payback/tick() // They are not staying down. This will be a fight.
if(!drilled_successfully && (get_dist(owner, drilled) >= 9)) // We don't want someone drilling the safe at arrivals then raiding bridge with the buff
to_chat(owner, "<span class='userdanger'>Get back to the safe, they are going to get the drill!</span>")
times_warned++
if(times_warned >= 6)
owner.remove_status_effect(STATUS_EFFECT_DRILL_PAYBACK)
return
if(owner.stat != DEAD)
owner.adjustBruteLoss(-3)
owner.adjustFireLoss(-3)
var/mob/living/carbon/human/H = owner // The Brute and Burn heal doesn't work if it doesn't do it at the human level
H.adjustBruteLoss(-3, FALSE, robotic = TRUE)
H.adjustFireLoss(-3, FALSE, robotic = TRUE)
owner.adjustStaminaLoss(-25)
/datum/status_effect/drill_payback/on_remove()