mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user