mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 04:57:12 +01:00
[PTBF] Adds custom hallucination descriptions (#27651)
* adds custom hallucination descriptions * removes useless code comments * fixes indentation * a couple of fixes * Fixes pronoun helper * more code fixes * forgot something... * updates a sentence * hallucination can actually roll now, increases probability * fixes indentation * removes empty line * resolves merge conflict --------- Signed-off-by: MisterMovie <44909173+Accinator50@users.noreply.github.com>
This commit is contained in:
@@ -196,3 +196,21 @@
|
||||
target?.health_hud_override = HEALTH_HUD_OVERRIDE_NONE
|
||||
target?.update_health_hud()
|
||||
return ..()
|
||||
|
||||
/**
|
||||
* # Hallucination - Examine Hallucination
|
||||
*
|
||||
* A generic hallucination that causes the target to see unique examine descriptions
|
||||
*/
|
||||
/obj/effect/hallucination/examine_hallucination
|
||||
var/trait_applied = TRAIT_EXAMINE_HALLUCINATING
|
||||
duration = list(40 SECONDS, 60 SECONDS)
|
||||
|
||||
/obj/effect/hallucination/examine_hallucination/Initialize(mapload, mob/living/carbon/hallucination_target)
|
||||
. = ..()
|
||||
ADD_TRAIT(hallucination_target, trait_applied, UNIQUE_TRAIT_SOURCE(src))
|
||||
|
||||
/obj/effect/hallucination/examine_hallucination/Destroy()
|
||||
REMOVE_TRAIT(target, trait_applied, UNIQUE_TRAIT_SOURCE(src))
|
||||
return ..()
|
||||
|
||||
|
||||
@@ -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/examine_hallucination = 25,
|
||||
),
|
||||
HALLUCINATE_MODERATE = list(
|
||||
/obj/effect/hallucination/delusion = 5,
|
||||
|
||||
Reference in New Issue
Block a user