Porting update_icon improvements. Part 1.
This commit is contained in:
@@ -50,11 +50,10 @@
|
||||
user.visible_message("<span class='suicide'>[user] beating [user.p_them()]self with \the [src]! It looks like [user.p_theyre()] trying to commit suicide!</span>")
|
||||
return BRUTELOSS
|
||||
|
||||
/obj/item/storage/box/update_icon()
|
||||
/obj/item/storage/box/update_overlays()
|
||||
. = ..()
|
||||
if(illustration)
|
||||
cut_overlays()
|
||||
add_overlay(illustration)
|
||||
. += illustration
|
||||
|
||||
/obj/item/storage/box/attack_self(mob/user)
|
||||
..()
|
||||
@@ -866,10 +865,11 @@
|
||||
foldable = null
|
||||
var/design = NODESIGN
|
||||
|
||||
/obj/item/storage/box/papersack/update_icon()
|
||||
/obj/item/storage/box/papersack/update_icon_state()
|
||||
if(contents.len == 0)
|
||||
icon_state = "[item_state]"
|
||||
else icon_state = "[item_state]_closed"
|
||||
else
|
||||
icon_state = "[item_state]_closed"
|
||||
|
||||
/obj/item/storage/box/papersack/attackby(obj/item/W, mob/user, params)
|
||||
if(istype(W, /obj/item/pen))
|
||||
|
||||
Reference in New Issue
Block a user