mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 22:17:32 +01:00
Refactors the examine proc to return a list of strings (#12280)
This commit is contained in:
committed by
variableundefined
parent
40a4cd1b75
commit
0e8ddb2afe
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user