Rods now change sprite depending on how much in the stack

This commit is contained in:
ZomgPonies
2015-02-26 09:21:13 -05:00
parent ba1f04e0a0
commit 10bef3e8dd
3 changed files with 15 additions and 0 deletions

View File

@@ -169,6 +169,7 @@
if(usr)
usr.unEquip(src, 1)
qdel(src)
update_icon()
return 1
/obj/item/stack/proc/add_to_stacks(mob/usr as mob)
@@ -185,6 +186,7 @@
usr << "You add new [item.singular_name] to the stack. It now contains [item.amount] [item.singular_name]\s."
if(!oldsrc)
break
update_icon()
/obj/item/stack/proc/get_amount()
return amount
@@ -201,6 +203,7 @@
spawn(0) src.interact(usr)
else
..()
update_icon()
return
/obj/item/stack/attackby(obj/item/W as obj, mob/user as mob, params)
@@ -220,6 +223,7 @@
src.use(to_transfer)
if (src && usr.machine==src)
spawn(0) src.interact(usr)
S.update_icon()
else return ..()
/obj/item/stack/proc/copy_evidences(obj/item/stack/from as obj)