mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-24 08:22:54 +00:00
* summary * (required) * undef * oh this is unused, nice * ok but.. why * a tiny bit more * Update human_defense.dm * Update mass_hallucination.dm
22 lines
905 B
Plaintext
22 lines
905 B
Plaintext
/// at least 75% rad armor is required to be immune to this event
|
|
#define RAD_ARMOR_TO_IMMUNITY 150
|
|
|
|
/datum/event/mass_hallucination/setup()
|
|
announceWhen = rand(0, 20)
|
|
|
|
/datum/event/mass_hallucination/start()
|
|
for(var/mob/living/carbon/human/human as anything in GLOB.human_list)
|
|
if(human.stat == DEAD)
|
|
continue
|
|
var/turf/turf = get_turf(human)
|
|
if(!is_station_level(turf?.z))
|
|
continue
|
|
if(HAS_TRAIT(human, TRAIT_RADIMMUNE) || human.getarmor(armor_type = RAD) >= RAD_ARMOR_TO_IMMUNITY) // Leave radiation-immune species/rad armored players completely unaffected
|
|
continue
|
|
human.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.")
|
|
|
|
#undef RAD_ARMOR_TO_IMMUNITY
|