Examine Code Refactor

This commit is contained in:
Dip
2020-10-06 23:36:21 -03:00
parent c433514622
commit aa7d47a23b
334 changed files with 1337 additions and 1365 deletions
+5 -5
View File
@@ -107,14 +107,14 @@
var/buffertext = "A funny bit of text."
/obj/item/toy/cards/singlecard/cas/examine(mob/user)
..()
. = ..()
if (flipped)
to_chat(user, "<span class='notice'>The card is face down.</span>")
. += "<span class='notice'>The card is face down.</span>"
else if (blank)
to_chat(user, "<span class='notice'>The card is blank. Write on it with a pen.</span>")
. += "<span class='notice'>The card is blank. Write on it with a pen.</span>"
else
to_chat(user, "<span class='notice'>The card reads: [name]</span>")
to_chat(user, "<span class='notice'>Alt-click to flip it.</span>")
. += "<span class='notice'>The card reads: [name]</span>"
. += "<span class='notice'>Alt-click to flip it.</span>"
/obj/item/toy/cards/singlecard/cas/Flip()
set name = "Flip Card"