Some more armor tweaks (#30398)

* summary

* (required)

* undef

* oh this is unused, nice

* ok but.. why

* a tiny bit more

* Update human_defense.dm

* Update mass_hallucination.dm
This commit is contained in:
kyunkyunkyun
2025-09-19 20:43:42 +05:00
committed by GitHub
parent b52f6cc6c0
commit 83509c3967
32 changed files with 155 additions and 142 deletions
+11 -8
View File
@@ -1,18 +1,21 @@
/// 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/thing in GLOB.human_list)
var/mob/living/carbon/human/H = thing
if(H.stat == DEAD)
for(var/mob/living/carbon/human/human as anything in GLOB.human_list)
if(human.stat == DEAD)
continue
var/turf/T = get_turf(H)
if(!is_station_level(T?.z))
var/turf/turf = get_turf(human)
if(!is_station_level(turf?.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
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
H.AdjustHallucinate(rand(50 SECONDS, 100 SECONDS))
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