make hud permanent (#27992)

This commit is contained in:
Mira
2025-01-18 21:03:31 +03:00
committed by GitHub
parent db65295148
commit c375e374c3
+2
View File
@@ -342,11 +342,13 @@
ADD_TRAIT(owner, TRAIT_PACIFISM, "hippocraticOath")
var/datum/atom_hud/H = GLOB.huds[DATA_HUD_MEDICAL_ADVANCED]
H.add_hud_to(owner)
owner.permanent_huds |= H
return ..()
/datum/status_effect/hippocratic_oath/on_remove()
REMOVE_TRAIT(owner, TRAIT_PACIFISM, "hippocraticOath")
var/datum/atom_hud/H = GLOB.huds[DATA_HUD_MEDICAL_ADVANCED]
owner.permanent_huds ^= H
H.remove_hud_from(owner)
/datum/status_effect/hippocratic_oath/tick()