From 7646af5f2f8b419c55b19b01c16dcf3b39aadc64 Mon Sep 17 00:00:00 2001 From: Bakaface <42347687+bakaf@users.noreply.github.com> Date: Sat, 4 Nov 2023 02:53:47 +0530 Subject: [PATCH] Bugfix/issue 22899/vendor restocking unit's description is misleading (#23130) * assigns the item_state var the same color assigned to the icon_state var in the lighter/random/New() proc * fixes the typo in deployable.dm * oops * changed the code in get_part_rating() so that non-full restock values get returned * Changed vending_items.dm so that the vendor restocking unit's description isn't always full * Update code/game/objects/items/weapons/vending_items.dm lewcc suggestion Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> --------- Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> --- code/game/objects/items/weapons/vending_items.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/game/objects/items/weapons/vending_items.dm b/code/game/objects/items/weapons/vending_items.dm index 1c4b0b5c19e..caebefc24fc 100644 --- a/code/game/objects/items/weapons/vending_items.dm +++ b/code/game/objects/items/weapons/vending_items.dm @@ -36,8 +36,6 @@ . += "It can restock [num] item\s." /obj/item/vending_refill/get_part_rating() - if (!products || !contraband || !premium) - return INFINITY . = 0 for(var/key in products) . += products[key] @@ -46,6 +44,9 @@ for(var/key in premium) . += premium[key] + if(. > 30) + return INFINITY + /obj/item/vending_refill/boozeomat machine_name = "Booze-O-Mat" icon_state = "refill_booze"