From 42e06fcfbb859d6406e670b85afa22a67553ad45 Mon Sep 17 00:00:00 2001
From: Silverplate <118299273+silverplatedelta@users.noreply.github.com>
Date: Thu, 12 Oct 2023 11:10:45 -0400
Subject: [PATCH] Removes the ability to disassemble and unwrench the donksoft
vendor in the syndie research base. (#22566)
* No more vendor theft.
* Moveable version created.
* Makes code not hacky
* Contra review
---
.../SpaceRuins/syndie_space_base.dmm | 4 +---
.../machinery/vendors/contraband_vendors.dm | 18 ++++++++++++++++++
2 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/_maps/map_files/RandomRuins/SpaceRuins/syndie_space_base.dmm b/_maps/map_files/RandomRuins/SpaceRuins/syndie_space_base.dmm
index 9d1643efb92..b6a306a68a4 100644
--- a/_maps/map_files/RandomRuins/SpaceRuins/syndie_space_base.dmm
+++ b/_maps/map_files/RandomRuins/SpaceRuins/syndie_space_base.dmm
@@ -1577,15 +1577,13 @@
/turf/simulated/floor/plating,
/area/ruin/unpowered/syndicate_space_base/engineering)
"rp" = (
-/obj/machinery/economy/vending/toyliberationstation{
- req_access_txt = "150"
- },
/obj/structure/cable{
d1 = 1;
d2 = 2;
icon_state = "1-2";
tag = ""
},
+/obj/machinery/economy/vending/toyliberationstation/secured,
/turf/simulated/floor/plasteel{
dir = 4;
icon_state = "brown"
diff --git a/code/game/machinery/vendors/contraband_vendors.dm b/code/game/machinery/vendors/contraband_vendors.dm
index 63afb2d852c..72b5ebd5637 100644
--- a/code/game/machinery/vendors/contraband_vendors.dm
+++ b/code/game/machinery/vendors/contraband_vendors.dm
@@ -179,3 +179,21 @@
armor = list(MELEE = 100, BULLET = 100, LASER = 100, ENERGY = 100, BOMB = 0, RAD = 0, FIRE = 100, ACID = 50)
resistance_flags = FIRE_PROOF
+
+/obj/machinery/economy/vending/toyliberationstation/secured
+
+/obj/machinery/economy/vending/toyliberationstation/secured/crowbar_act(mob/user, obj/item/I)
+ if(tilted)
+ to_chat(user, "The fastening bolts aren't on the ground, you'll need to right it first!")
+ return
+ if(!I.use_tool(src, user, 0, volume = 0))
+ return
+ to_chat(user, "You are unable to remove the electronics from the vendor!")
+
+/obj/machinery/economy/vending/toyliberationstation/secured/wrench_act(mob/user, obj/item/I)
+ if(tilted)
+ to_chat(user, "The fastening bolts aren't on the ground, you'll need to right it first!")
+ return
+ if(!I.use_tool(src, user, 0, volume = 0))
+ return
+ to_chat(user, "You are unable to loosen the bolts!")