This commit is contained in:
fluffe9911
2019-06-08 14:52:03 -04:00
committed by GitHub
parent 52b8e2fcba
commit dec7538876

View File

@@ -33,7 +33,7 @@
/obj/item/storage/bag/trash
name = "trash bag"
desc = "It's the heavy-duty black polymer kind. Time to take out the trash!"
icon = 'icons/obj/janitor.dmi'
icon = 'yogstation/icons/obj/janitor.dmi' // yogs -- Janitor icons
icon_state = "trashbag"
item_state = "trashbag"
lefthand_file = 'icons/mob/inhands/equipment/custodial_lefthand.dmi'
@@ -56,6 +56,10 @@
return (TOXLOSS)
/obj/item/storage/bag/trash/update_icon()
//yogs start
if(icon_state == "[initial(icon_state)]_broken")
return
//yogs end
if(contents.len == 0)
icon_state = "[initial(icon_state)]"
else if(contents.len < 12)