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>
This commit is contained in:
Bakaface
2023-11-03 21:23:47 +00:00
committed by GitHub
co-authored by Luc
parent 87f0337b45
commit 7646af5f2f
@@ -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"