Rewrite examine() to pass a list around (#7038)

This commit is contained in:
Aronai Sieyes
2020-04-29 16:42:16 -04:00
committed by GitHub
parent fee5f1771d
commit 6c6644f86c
214 changed files with 1062 additions and 1151 deletions

View File

@@ -58,11 +58,13 @@
item_state = initial(icon_state)
/obj/item/stack/examine(mob/user)
if(..(user, 1))
. = ..()
if(Adjacent(user))
if(!uses_charge)
to_chat(user, "There are [src.amount] [src.singular_name]\s in the stack.")
. += "There are [src.amount] [src.singular_name]\s in the stack."
else
to_chat(user, "There is enough charge for [get_amount()].")
. += "There is enough charge for [get_amount()]."
/obj/item/stack/attack_self(mob/user as mob)
list_recipes(user)