From 9003a869f1f5da76fb504b8c03363e8b45b32752 Mon Sep 17 00:00:00 2001
From: Henri215 <77684085+Henri215@users.noreply.github.com>
Date: Tue, 22 Nov 2022 01:28:45 -0300
Subject: [PATCH] Restock unit tweaks (#19704)
* Can use vending refill without having to unscrew
* weight size normal
* removing old comment that doent apply anymore
* Update code/game/machinery/vending.dm
Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>
Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>
---
code/game/machinery/vendors/vending.dm | 4 +---
code/game/objects/items/weapons/vending_items.dm | 4 +---
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/code/game/machinery/vendors/vending.dm b/code/game/machinery/vendors/vending.dm
index 4ca8cd4dbaf..fe109164529 100644
--- a/code/game/machinery/vendors/vending.dm
+++ b/code/game/machinery/vendors/vending.dm
@@ -331,9 +331,7 @@
SStgui.update_uis(src)
return
if(refill_canister && istype(I, refill_canister))
- if(!panel_open)
- to_chat(user, "You should probably unscrew the service panel first!")
- else if (stat & (BROKEN|NOPOWER))
+ if(stat & (BROKEN|NOPOWER))
to_chat(user, "[src] does not respond.")
else
//if the panel is open we attempt to refill the machine
diff --git a/code/game/objects/items/weapons/vending_items.dm b/code/game/objects/items/weapons/vending_items.dm
index b971d9c1926..d4ec9dac064 100644
--- a/code/game/objects/items/weapons/vending_items.dm
+++ b/code/game/objects/items/weapons/vending_items.dm
@@ -12,7 +12,7 @@
throwforce = 10
throw_speed = 1
throw_range = 7
- w_class = WEIGHT_CLASS_BULKY
+ w_class = WEIGHT_CLASS_NORMAL
armor = list(MELEE = 0, BULLET = 0, LASER = 0, ENERGY = 0, BOMB = 0, BIO = 0, RAD = 0, FIRE = 70, ACID = 30)
// Built automatically from the corresponding vending machine.
@@ -46,8 +46,6 @@
for(var/key in premium)
. += premium[key]
-//NOTE I decided to go for about 1/3 of a machine's capacity
-
/obj/item/vending_refill/boozeomat
machine_name = "Booze-O-Mat"
icon_state = "refill_booze"