Adds examine boxes. (#18370)

* Adds examine boxes.

* lint

* what kind of dreams did you dream?

* unlimited

* midgardsormr

* sdsd

* fixes

---------

Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
Matt Atlas
2024-02-11 21:58:20 +00:00
committed by GitHub
co-authored by Matt Atlas
parent d57c5e7c43
commit 4423d03f2f
296 changed files with 1317 additions and 1257 deletions
+3 -3
View File
@@ -70,14 +70,14 @@
else
icon_state = "[initial(icon_state)]_3"
/obj/item/stack/examine(mob/user, distance, is_adjacent)
/obj/item/stack/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
. = ..()
if(is_adjacent)
if(!iscoil())
if(!uses_charge)
to_chat(user, "There [src.amount == 1 ? "is" : "are"] <b>[src.amount]</b> [src.singular_name]\s in the stack.")
. += "There [src.amount == 1 ? "is" : "are"] <b>[src.amount]</b> [src.singular_name]\s in the stack."
else
to_chat(user, "You have enough charge to produce <b>[get_amount()]</b>.")
. += "You have enough charge to produce <b>[get_amount()]</b>."
/obj/item/stack/attack_self(mob/user)
list_recipes(user, recipes)