diff --git a/code/game/objects/items/storage/boxes.dm b/code/game/objects/items/storage/boxes.dm index 1db29fdbe00..708e256f8a6 100644 --- a/code/game/objects/items/storage/boxes.dm +++ b/code/game/objects/items/storage/boxes.dm @@ -713,6 +713,7 @@ drop_sound = 'sound/items/handling/matchbox_drop.ogg' pickup_sound = 'sound/items/handling/matchbox_pickup.ogg' custom_price = PAYCHECK_ASSISTANT * 0.4 + base_icon_state = "matchbox" /obj/item/storage/box/matches/ComponentInitialize() . = ..() @@ -727,6 +728,18 @@ if(istype(W, /obj/item/match)) W.matchignite() +/obj/item/storage/box/matches/update_icon_state() + . = ..() + switch(length(contents)) + if(10) + icon_state = base_icon_state + if(5 to 9) + icon_state = "[base_icon_state]_almostfull" + if(1 to 4) + icon_state = "[base_icon_state]_almostempty" + if(0) + icon_state = "[base_icon_state]_e" + /obj/item/storage/box/lights name = "box of replacement bulbs" icon = 'icons/obj/storage.dmi'