mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-28 11:02:41 +00:00
Rewrite examine() to pass a list around (#7038)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user