mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-05 15:04:21 +00:00
Merge pull request #10993 from MarinaGryphon/issue/logpile
Stack Examine Improvements, Log Examine Fix
This commit is contained in:
committed by
Chompstation Bot
parent
7304bde62e
commit
205ef740bd
@@ -56,14 +56,17 @@
|
||||
icon_state = "[initial(icon_state)]_3"
|
||||
item_state = initial(icon_state)
|
||||
|
||||
/obj/item/stack/proc/get_examine_string()
|
||||
if(!uses_charge)
|
||||
return "There [src.amount == 1 ? "is" : "are"] [src.amount] [src.singular_name]\s in the stack."
|
||||
else
|
||||
return "There is enough charge for [get_amount()]."
|
||||
|
||||
/obj/item/stack/examine(mob/user)
|
||||
. = ..()
|
||||
|
||||
if(Adjacent(user))
|
||||
if(!uses_charge)
|
||||
. += "There are [src.amount] [src.singular_name]\s in the stack."
|
||||
else
|
||||
. += "There is enough charge for [get_amount()]."
|
||||
. += get_examine_string()
|
||||
|
||||
/obj/item/stack/attack_self(mob/user)
|
||||
tgui_interact(user)
|
||||
|
||||
Reference in New Issue
Block a user