mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-19 02:56:14 +01:00
Rewrite examine() to pass a list around
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