From a2f8aaee450ad2cef1d683e474b709e06f2c2141 Mon Sep 17 00:00:00 2001 From: Arkatos1 Date: Thu, 11 Jul 2019 01:39:27 +0200 Subject: [PATCH] Messages are now relayed to the AI correctly, runtime prevention --- .../gamemodes/malfunction/Malf_Modules.dm | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/code/game/gamemodes/malfunction/Malf_Modules.dm b/code/game/gamemodes/malfunction/Malf_Modules.dm index 46ae471f955..ca01393b60a 100644 --- a/code/game/gamemodes/malfunction/Malf_Modules.dm +++ b/code/game/gamemodes/malfunction/Malf_Modules.dm @@ -325,7 +325,6 @@ turret.health += 30 turret.eprojectile = /obj/item/projectile/beam/laser/heavylaser //Once you see it, you will know what it means to FEAR. turret.eshot_sound = 'sound/weapons/lasercannonfire.ogg' - to_chat(src, "Turrets upgraded.") //Hostile Station Lockdown: Locks, bolts, and electrifies every airlock on the station. After 90 seconds, the doors reset. /datum/AI_Module/large/lockdown @@ -354,7 +353,7 @@ post_status("alert", "lockdown") minor_announcement.Announce("Hostile runtime detected in door controllers. Isolation lockdown protocols are now in effect. Please remain calm.", "Network Alert") - to_chat(src, "Lockdown Initiated. Network reset in 90 seconds.") + to_chat(owner, "Lockdown Initiated. Network reset in 90 seconds.") spawn(900) minor_announcement.Announce("Automatic system reboot complete. Have a secure day.","Network reset:") @@ -380,7 +379,7 @@ if(!istype(RCD, /obj/item/rcd/borg)) //Ensures that cyborg RCDs are spared. RCD.detonate_pulse() - to_chat(src, "RCD detonation pulse emitted.") + to_chat(owner, "RCD detonation pulse emitted.") owner.playsound_local(owner, 'sound/machines/twobeep.ogg', 50, 0) //Unlock Mech Domination: Unlocks the ability to dominate mechs. Big shocker, right? @@ -419,7 +418,7 @@ if(!is_station_level(F.z)) continue F.emagged = TRUE - to_chat(src, "All thermal sensors on the station have been disabled. Fire alerts will no longer be recognized.") + to_chat(owner, "All thermal sensors on the station have been disabled. Fire alerts will no longer be recognized.") owner.playsound_local(owner, 'sound/machines/terminal_off.ogg', 50, 0) //Air Alarm Safety Override: Unlocks the ability to enable flooding on all air alarms. @@ -444,7 +443,7 @@ if(!is_station_level(AA.z)) continue AA.emagged = TRUE - to_chat(src, "All air alarm safeties on the station have been overriden. Air alarms may now use the Flood environmental mode.") + to_chat(owner, "All air alarm safeties on the station have been overriden. Air alarms may now use the Flood environmental mode.") owner.playsound_local(owner, 'sound/machines/terminal_off.ogg', 50, 0) //Overload Machine: Allows the AI to overload a machine, detonating it after a delay. Two uses per purchase. @@ -472,15 +471,15 @@ if(istype(M, /obj/machinery)) if(uses > 0) M.audible_message("You hear a loud electrical buzzing sound!") - to_chat(src, "Overloading machine circuitry...") + to_chat(owner, "Overloading machine circuitry...") spawn(50) if(M) explosion(get_turf(M), 0,1,1,0) qdel(M) else - to_chat(src, "Out of uses.") + to_chat(owner, "Out of uses.") else - to_chat(src, "That's not a machine.") + to_chat(owner, "That's not a machine.") uses++ return @@ -508,19 +507,19 @@ var/obj/machinery/M = select if(istype(M, /obj/machinery)) if(!M.can_be_overridden()) - to_chat(src, "Can't override this device.") + to_chat(owner, "Can't override this device.") uses++ return else if(uses > 0) M.audible_message("You hear a loud electrical buzzing sound!") - to_chat(src, "Reprogramming machine behaviour...") + to_chat(owner, "Reprogramming machine behaviour...") spawn(50) if(M && !QDELETED(M)) new /mob/living/simple_animal/hostile/mimic/copy/machine(get_turf(M), M, src, 1) else - to_chat(src, "Out of uses.") + to_chat(owner, "Out of uses.") else - to_chat(src, "That's not a machine.") + to_chat(owner, "That's not a machine.") uses++ return