diff --git a/code/modules/events/event_container.dm b/code/modules/events/event_container.dm index 4eae167a654..5882f5ac3b7 100644 --- a/code/modules/events/event_container.dm +++ b/code/modules/events/event_container.dm @@ -138,6 +138,7 @@ var/global/list/severity_to_string = list(EVENT_LEVEL_MUNDANE = "Mundane", EVENT new /datum/event_meta(EVENT_LEVEL_MUNDANE, "PDA Spam", /datum/event/pda_spam, 0, list(ASSIGNMENT_ANY = 4), 0, 25, 50), new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Space Dust", /datum/event/dust , 30, list(ASSIGNMENT_ENGINEER = 5), 0, 0, 50), new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Trivial News", /datum/event/trivial_news, 400), + new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Ian Storm", /datum/event/ianstorm, 50), new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Vermin Infestation",/datum/event/infestation, 100, list(ASSIGNMENT_JANITOR = 100)), new /datum/event_meta(EVENT_LEVEL_MUNDANE, "Wallrot", /datum/event/wallrot, 0, list(ASSIGNMENT_ENGINEER = 30, ASSIGNMENT_GARDENER = 50)), ) diff --git a/code/modules/events/ian_storm_vr.dm b/code/modules/events/ian_storm_vr.dm new file mode 100644 index 00000000000..3a903514d4f --- /dev/null +++ b/code/modules/events/ian_storm_vr.dm @@ -0,0 +1,35 @@ +/datum/event/ianstorm + announceWhen = 1 + startWhen = 2 + endWhen = 3 + +/datum/event/ianstorm/announce() + command_announcement.Announce("It has come to our attention that the station passed through an ion storm. Please monitor all electronic equipment for malfunctions.", "Anomaly Alert") + spawn(rand(50, 300)) + command_announcement.Announce("Wait. No, thats wrong. The station passed through an IAN storm!.", "Ian Alert") + +/datum/event/ianstorm/start() + spawn() + for(var/mob/living/carbon/human/C in living_mob_list) + var/turf/T = get_turf(C) + if(!T) + continue + if(!(T.z in config.station_levels)) + continue + place_ian(T) + +/datum/event/ianstorm/proc/place_ian(var/turf/T) + // Try three times to place an Ian + for(var/i = 0, i < 3, i++) + var/turf/target = get_step(T, pick(alldirs)) + if(target && istype(target, /turf/simulated/floor)) + var/mob/living/simple_animal/corgi/Ian/doge = new(target) + doge.name = "Ian " + pick("Alpha", "Beta", "Chi", "Delta", "Epsilon", "Phi", + "Gamma", "Eta", "Iota", "Kappa", "Lambda", "Omicron", "Theta", + "Rho", "Sigma", "Tau", "Upsilon", "Omega", "Psi", "Zeta") + // Poof them onto the station! + var/datum/effect/effect/system/steam_spread/s = new + s.set_up(3, 0, target) + s.start() + return + // Sadly no ian feasible. diff --git a/vorestation.dme b/vorestation.dme index a11088d0e45..2385279b1df 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -1193,6 +1193,7 @@ #include "code\modules\events\event_manager.dm" #include "code\modules\events\gravity.dm" #include "code\modules\events\grid_check.dm" +#include "code\modules\events\ian_storm_vr.dm" #include "code\modules\events\infestation.dm" #include "code\modules\events\ion_storm.dm" #include "code\modules\events\meteors.dm"