Refactors the examine proc to return a list of strings (#12280)

This commit is contained in:
farie82
2019-09-25 22:05:01 -07:00
committed by variableundefined
parent 40a4cd1b75
commit 0e8ddb2afe
210 changed files with 808 additions and 830 deletions
+5 -5
View File
@@ -39,8 +39,8 @@
..()
/obj/item/deck/examine(mob/user)
..()
to_chat(user,"<span class='notice'>It contains [cards.len ? cards.len : "no"] cards</span>")
. = ..()
. +="<span class='notice'>It contains [cards.len ? cards.len : "no"] cards</span>"
/obj/item/deck/attack_hand(mob/user as mob)
draw_card(user)
@@ -313,11 +313,11 @@
user.visible_message("<span class='notice'>[user] [concealed ? "conceals" : "reveals"] their hand.</span>")
/obj/item/cardhand/examine(mob/user)
..(user)
. = ..()
if((!concealed) && cards.len)
to_chat(user,"<span class='notice'>It contains:</span>")
. +="<span class='notice'>It contains:</span>"
for(var/datum/playingcard/P in cards)
to_chat(user,"<span class='notice'>the [P.name].</span>")
. +="<span class='notice'>the [P.name].</span>"
// Datum action here