Skip to content

Commit

Permalink
auto-lockdown test
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Aug 31, 2024
1 parent 9f72bbc commit ed5495e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions code/game/machinery/ARES/ARES_step_triggers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@
alert_id = "AresCore"
pass_accesses = list(ACCESS_MARINE_AI_TEMP, ACCESS_MARINE_AI, ACCESS_ARES_DEBUG)

/obj/effect/step_trigger/ares_alert/core/Crossed(mob/living/passer)
if(isxeno(passer))
if(!COOLDOWN_FINISHED(datacore, aicore_lockdown))
return FALSE
aicore_lockdown(user, "ATTENTION! \n\nUNIDENTIFIED BIOSIGN DETECTED IN AI CORE! \n\nAI CORE UNDER LOCKDOWN.")
return TRUE
else
..()

/obj/effect/step_trigger/ares_alert/mainframe
alert_id = "AresMainframe"
alert_message = "ALERT: Unauthorized movement detected in ARES Mainframe!"
Expand Down
4 changes: 3 additions & 1 deletion code/game/machinery/aicore_lockdown.dm
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@
return PROC_BLOCKED

var/log = "[key_name(user)] triggered AI core lockdown!"
var/ares_log = "Triggered triggered AI Core Emergency Lockdown."
var/ares_log = "Triggered AI Core Emergency Lockdown."
var/person = user.name
if(isxeno(user))
person = MAIN_AI_SYSTEM
if(message)
log = "[key_name(user)] triggered AI core emergency lockdown! (Using a custom announcement)."
if(admin)
Expand Down

0 comments on commit ed5495e

Please sign in to comment.