Files
Paradise/code/modules/hallucinations/effects/weird_machinery.dm
T
c6e1dd6387 [PTBF] Adds hallucination effects to medical and reagent scanners (#27616)
* finally revenge on all those evil doctors

* Adds medical machinery to the hallucination list

* forgor

* spacing

* Update code/game/objects/items/devices/scanners.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com>

* bbetter docs

* Improved health shuffle, add some other silly things for being dead

---------

Signed-off-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: Burzah <116982774+Burzah@users.noreply.github.com>
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
2025-01-14 16:08:27 +00:00

19 lines
616 B
Plaintext

/obj/effect/hallucination/trait_applier
/// The trait to apply
var/trait_applied
/obj/effect/hallucination/trait_applier/Initialize(mapload, mob/living/carbon/hallucination_target)
. = ..()
// add a single one per datum in case it gets invoked multiple times
ADD_TRAIT(hallucination_target, trait_applied, UNIQUE_TRAIT_SOURCE(src))
/obj/effect/hallucination/trait_applier/Destroy()
REMOVE_TRAIT(target, trait_applied, UNIQUE_TRAIT_SOURCE(src))
return ..()
/obj/effect/hallucination/trait_applier/medical_machinery
duration = list(40 SECONDS, 60 SECONDS)
trait_applied = TRAIT_MED_MACHINE_HALLUCINATING