Skip to content

Commit

Permalink
Prison break virus update (#25491)
Browse files Browse the repository at this point in the history
* Prison break virus update

* Update code/modules/events/prison_break.dm

Co-authored-by: Contrabang <[email protected]>
Signed-off-by: Qwertytoforty <[email protected]>

* one minute

* Update code/game/area/areas.dm

Signed-off-by: DGamerL <[email protected]>

---------

Signed-off-by: Qwertytoforty <[email protected]>
Signed-off-by: DGamerL <[email protected]>
Co-authored-by: Contrabang <[email protected]>
Co-authored-by: S34N <[email protected]>
Co-authored-by: DGamerL <[email protected]>
  • Loading branch information
4 people authored May 23, 2024
1 parent ccf5ef4 commit 37189cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 2 additions & 0 deletions code/game/area/areas.dm
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,8 @@
INVOKE_ASYNC(temp_airlock, TYPE_PROC_REF(/obj/machinery/door/airlock, prison_open))
for(var/obj/machinery/door/window/temp_windoor in src)
INVOKE_ASYNC(temp_windoor, TYPE_PROC_REF(/obj/machinery/door, open))
for(var/obj/machinery/door/poddoor/temp_poddoor in src)
INVOKE_ASYNC(temp_poddoor, TYPE_PROC_REF(/obj/machinery/door, open))

/area/AllowDrop()
CRASH("Bad op: area/AllowDrop() called")
Expand Down
9 changes: 3 additions & 6 deletions code/modules/events/prison_break.dm
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/datum/event/prison_break
startWhen = 5
startWhen = 40
announceWhen = 75

var/releaseWhen = 60
Expand Down Expand Up @@ -37,7 +37,7 @@

/datum/event/prison_break/announce(false_alarm)
if(length(areas) || false_alarm)
GLOB.minor_announcement.Announce("[pick("Gr3y.T1d3 virus","Malignant trojan")] detected in [station_name()] [(eventDept == "Security")? "imprisonment":"containment"] subroutines. Secure any compromised areas immediately. Station AI involvement is recommended.", "[eventDept] Alert")
GLOB.minor_announcement.Announce("[pick("Gr3y.T1d3 virus", "S.E.L.F program", "Malignant trojan", "Runtime error", "Cybersun worm", "[pick("Castle", "Felix", "Fractal", "Paradox", "Rubiks", "Portcullis", "Hammer", "Lockpick", "Faust", "Dream")][pick(" 2.0","")] Daemon")] detected in [station_name()] [(eventDept == "Security")? "imprisonment":"containment"] subroutines. Secure any compromised areas immediately. Station AI involvement is recommended.", "[eventDept] Alert")

/datum/event/prison_break/start()
for(var/area/A in world)
Expand All @@ -46,12 +46,9 @@

if(areas && length(areas) > 0)
var/my_department = "[station_name()] firewall subroutines"
var/rc_message = "An unknown malicious program has been detected in the [english_list(areaName)] lighting and airlock control systems at [station_time_timestamp()]. Systems will be fully compromised within approximately three minutes. Direct intervention is required immediately.<br>"
var/rc_message = "An unknown malicious program has been detected in the [english_list(areaName)] lighting and airlock control systems at [station_time_timestamp()]. Systems will be fully compromised within approximately one minute. Direct intervention is required immediately.<br>"
for(var/obj/machinery/message_server/MS in GLOB.machines)
MS.send_rc_message("Engineering", my_department, rc_message, "", "", 2)
for(var/mob/living/silicon/ai/A in GLOB.player_list)
to_chat(A, "<span class='danger'>Malicious program detected in the [english_list(areaName)] lighting and airlock control systems by [my_department].</span>")

else
stack_trace("Could not initiate grey-tide. Unable to find suitable containment area.")
kill()
Expand Down

0 comments on commit 37189cd

Please sign in to comment.