From 281dc183c4a43bf79603148bb0af9302b6050833 Mon Sep 17 00:00:00 2001
From: TheGamerdk <5618080+TheGamerdk@users.noreply.github.com>
Date: Mon, 9 Aug 2021 12:09:35 +0200
Subject: [PATCH 1/3] Update fireaxe.dm
---
code/game/objects/structures/fireaxe.dm | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/code/game/objects/structures/fireaxe.dm b/code/game/objects/structures/fireaxe.dm
index d7939bcda555..c19be181da0d 100644
--- a/code/game/objects/structures/fireaxe.dm
+++ b/code/game/objects/structures/fireaxe.dm
@@ -254,3 +254,20 @@
fireaxe = null
spareid = new(src)
update_icon()
+ req_access = list(ACCESS_CAPTAIN)
+
+/obj/structure/fireaxecabinet/spare/reset_lock(mob/user)
+ //this happens when you hack the lock as a synthetic/AI, or with a multitool.
+ if(obj_flags & EMAGGED)
+ to_chat(user, "You try to reset the [name]'s circuits, but they're completely burnt out.")
+ return
+ if(!open)
+ to_chat(user, "Resetting circuitry...")
+ if(alert)
+ to_chat(user, "This will trigger the built in burglary alarm!")
+ if(do_after(user, 15 SECONDS, target = src))
+ to_chat(user, "You [locked ? "disable" : "re-enable"] the locking modules.")
+ src.add_fingerprint(user)
+ if(locked)
+ trigger_alarm() //already checks for alert var
+ toggle_lock(user)
From 860018042a65955b80d3f47172adc1aeafc09fdc Mon Sep 17 00:00:00 2001
From: TheGamerdk <5618080+TheGamerdk@users.noreply.github.com>
Date: Mon, 9 Aug 2021 12:12:58 +0200
Subject: [PATCH 2/3] Update fireaxe.dm
---
code/game/objects/structures/fireaxe.dm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/code/game/objects/structures/fireaxe.dm b/code/game/objects/structures/fireaxe.dm
index c19be181da0d..cb21e24ed1b5 100644
--- a/code/game/objects/structures/fireaxe.dm
+++ b/code/game/objects/structures/fireaxe.dm
@@ -271,3 +271,9 @@
if(locked)
trigger_alarm() //already checks for alert var
toggle_lock(user)
+
+/obj/structure/fireaxecabinet/spare/emag_act(mob/user)
+ . = ..()
+ if(!.)
+ return
+ trigger_alarm()
From 9acb75f504ac971ce971a78367162cb7d9540851 Mon Sep 17 00:00:00 2001
From: TheGamerdk <5618080+TheGamerdk@users.noreply.github.com>
Date: Mon, 9 Aug 2021 13:53:37 +0200
Subject: [PATCH 3/3] da fuk?
---
code/game/objects/structures/fireaxe.dm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/code/game/objects/structures/fireaxe.dm b/code/game/objects/structures/fireaxe.dm
index cb21e24ed1b5..2650d6077362 100644
--- a/code/game/objects/structures/fireaxe.dm
+++ b/code/game/objects/structures/fireaxe.dm
@@ -248,13 +248,13 @@
alert = TRUE
armor = list("melee" = 30, "bullet" = 20, "laser" = 0, "energy" = 100, "bomb" = 10, "bio" = 100, "rad" = 100, "fire" = 90, "acid" = 50)
axe = FALSE
+ req_access = list(ACCESS_CAPTAIN)
/obj/structure/fireaxecabinet/spare/Initialize()
. = ..()
fireaxe = null
spareid = new(src)
update_icon()
- req_access = list(ACCESS_CAPTAIN)
/obj/structure/fireaxecabinet/spare/reset_lock(mob/user)
//this happens when you hack the lock as a synthetic/AI, or with a multitool.