From 8f2801ce644a46b2ddf8a28baf355f40d742ab18 Mon Sep 17 00:00:00 2001
From: SkyratBot <59378654+SkyratBot@users.noreply.github.com>
Date: Thu, 22 Apr 2021 21:11:30 +0200
Subject: [PATCH] [MIRROR] Tank holders can be anchored and have better examine
descriptions. (#5094)
* Tank holders can be anchored and have better examine descriptions. (#58348)
* Tank holders can be anchored
* Better description
* One word
* Requested change
* Tank holders can be anchored and have better examine descriptions.
Co-authored-by: GuillaumePrata <55374212+GuillaumePrata@users.noreply.github.com>
---
code/game/objects/structures/tank_holder.dm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/code/game/objects/structures/tank_holder.dm b/code/game/objects/structures/tank_holder.dm
index 2dff1e3b840..a0e22996e17 100644
--- a/code/game/objects/structures/tank_holder.dm
+++ b/code/game/objects/structures/tank_holder.dm
@@ -35,13 +35,24 @@
/obj/structure/tank_holder/examine(mob/user)
. = ..()
+ . += "It is [anchored ? "wrenched to the floor." : "The bolts on the bottom are unsecured."]
"
+ if(tank)
+ . += "It is holding one [tank]."
+ else
+ . += "It is empty."
. += "It is held together by some screws."
/obj/structure/tank_holder/attackby(obj/item/W, mob/living/user, params)
if(user.combat_mode)
return ..()
- if(!SEND_SIGNAL(W, COMSIG_CONTAINER_TRY_ATTACH, src, user))
+ if(W.tool_behaviour == TOOL_WRENCH)
+ to_chat(user, "You begin to [anchored ? "unwrench" : "wrench"] [src].")
+ if(W.use_tool(src, user, 20, volume=50))
+ to_chat(user, "You successfully [anchored ? "unwrench" : "wrench"] [src].")
+ set_anchored(!anchored)
+ else if(!SEND_SIGNAL(W, COMSIG_CONTAINER_TRY_ATTACH, src, user))
to_chat(user, "[W] does not fit in [src].")
+ return
/obj/structure/tank_holder/screwdriver_act(mob/living/user, obj/item/I)
if(..())