Skip to content

Commit

Permalink
[MIRROR] add major version of rogue drone event
Browse files Browse the repository at this point in the history
  • Loading branch information
MuckerMayhem authored and SuhEugene committed Dec 23, 2023
1 parent a982960 commit 78031e6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion code/modules/events/event_container.dm
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ var/global/list/severity_to_string = list(EVENT_LEVEL_MUNDANE = "Mundane", EVENT
new /datum/event_meta/no_overmap(EVENT_LEVEL_MAJOR, "Electrical Storm", /datum/event/electrical_storm, 0, list(ASSIGNMENT_ENGINEER = 10, ASSIGNMENT_JANITOR = 5)),
new /datum/event_meta(EVENT_LEVEL_MAJOR, "Drone Revolution", /datum/event/rogue_maint_drones, 0, list(ASSIGNMENT_ENGINEER = 10,ASSIGNMENT_MEDICAL = 10,ASSIGNMENT_SECURITY = 10)),
new /datum/event_meta(EVENT_LEVEL_MAJOR, "Spider Infestation", /datum/event/spider_infestation, 0, list(ASSIGNMENT_SECURITY = 10), 1),
new /datum/event_meta(EVENT_LEVEL_MAJOR, "Bluespace Drive Instability", /datum/event/bsd_instability, 0, null, 1),
new /datum/event_meta(EVENT_LEVEL_MAJOR, "Bluespace Drive Instability", /datum/event/bsd_instability, 0, null, 1),
new /datum/event_meta(EVENT_LEVEL_MAJOR, "Rogue Drones", /datum/event/mob_spawning/rogue_drones, 0, list(ASSIGNMENT_SECURITY = 20)),
)

/datum/event_container/exo
Expand Down
14 changes: 12 additions & 2 deletions code/modules/events/mob_spawning/rogue_drones.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,25 @@
mobs_to_spawn = list(
/mob/living/simple_animal/hostile/retaliate/malf_drone
)
var/mobs_to_spawn_major = list (
/mob/living/simple_animal/hostile/fleet_heavy
)


/datum/event/mob_spawning/rogue_drones/setup()
total_to_spawn_per_z = rand(1, 3)
if (severity > EVENT_LEVEL_MODERATE)
total_to_spawn_per_z = rand(6, 12)
mobs_to_spawn += mobs_to_spawn_major
else
total_to_spawn_per_z = rand(1, 3)
. = ..()


/datum/event/mob_spawning/rogue_drones/announce()
command_announcement.Announce("Attention: unidentified patrol drones detected within proximity to the [location_name()]", "[location_name()] Sensor Array", zlevels = affecting_z)
if (severity > EVENT_LEVEL_MODERATE)
command_announcement.Announce("Priority Warning: Unidentified drone attack-swarm detected near the [location_name()]", "[location_name()] Sensor Array", zlevels = affecting_z)
else
command_announcement.Announce("Attention: unidentified patrol drones detected within proximity to the [location_name()]", "[location_name()] Sensor Array", zlevels = affecting_z)


/datum/event/mob_spawning/rogue_drone/end()
Expand Down

0 comments on commit 78031e6

Please sign in to comment.