mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-06-06 05:53:27 +01:00
19 lines
735 B
Plaintext
19 lines
735 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((RADIMMUNE in H.dna.species.species_traits) || armor >= 75) // Leave radiation-immune species/rad armored players completely unaffected
|
|
continue
|
|
H.AdjustHallucinate(rand(50, 100))
|
|
|
|
/datum/event/mass_hallucination/announce()
|
|
GLOB.event_announcement.Announce("It seems that station [station_name()] is passing through a minor radiation field, this may cause some hallucination, but no further damage")
|