[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:
MisterMovie
2025-01-10 02:33:46 +00:00
committed by GitHub
parent f63e40231e
commit 57c3b9b960
5 changed files with 51 additions and 1 deletions
@@ -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,