Files
Paradise/code/modules/events/mass_hallucination.dm
Henri215 52e5c478fe Making hallucination great again (#20320)
* make hallucination great again

* 10x the current hallucination
2023-02-27 21:07:00 +01:00

19 lines
748 B
Plaintext

/datum/event/mass_hallucination/setup()
announceWhen = rand(0, 20)
/datum/event/mass_hallucination/start()
for(var/thing in GLOB.human_list)
var/mob/living/carbon/human/H = thing
if(H.stat == DEAD)
continue
var/turf/T = get_turf(H)
if(!is_station_level(T?.z))
continue
var/armor = H.getarmor(type = RAD)
if(HAS_TRAIT(H, TRAIT_RADIMMUNE) || armor >= 150) // Leave radiation-immune species/rad armored players completely unaffected
continue
H.AdjustHallucinate(rand(50 SECONDS, 100 SECONDS))
/datum/event/mass_hallucination/announce()
GLOB.minor_announcement.Announce("The [station_name()] is passing through a minor radiation field. Be advised that acute exposure to space radiation can induce hallucinogenic episodes.")