mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 22:17:32 +01:00
[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>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
|
||||
/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
|
||||
@@ -6,6 +6,7 @@ GLOBAL_LIST_INIT(hallucinations, list(
|
||||
/obj/effect/hallucination/speech = 15,
|
||||
/obj/effect/hallucination/audio = 25,
|
||||
/obj/effect/hallucination/audio/localized = 25,
|
||||
/obj/effect/hallucination/trait_applier/medical_machinery = 25,
|
||||
/obj/effect/hallucination/examine_hallucination = 25,
|
||||
),
|
||||
HALLUCINATE_MODERATE = list(
|
||||
|
||||
Reference in New Issue
Block a user