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
@@ -274,13 +274,13 @@
update_icon()
user.visible_message("\The [user] [concealed ? "conceals" : "reveals"] their hand.")
/obj/item/hand/examine(mob/user)
/obj/item/hand/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
. = ..()
if((!concealed || src.loc == user) && cards.len)
if(cards.len > 1)
to_chat(user, "It contains: ")
. += "It contains: "
for(var/datum/playingcard/P in cards)
to_chat(user, "The [P.name]. [P.desc ? "<i>[P.desc]</i>" : ""]")
. += "The [P.name]. [P.desc ? "<i>[P.desc]</i>" : ""]"
/obj/item/hand/update_icon(var/direction = 0)