Files
Paradise/code/modules/games/tarot.dm
CRUNCH 2a949e11ab Adds Some Extra Blind Messages and Tweaks Some Too. (#25855)
* Blind

* comma

* Update code/modules/games/cards.dm

Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
Signed-off-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com>

* Update gun.dm

* this applies to other blind people, not you

* dedent

* Reformatting

* Update bloodcrawl.dm

* Apply suggestions from code review

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com>

* Update cards.dm

---------

Signed-off-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com>
Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
2024-07-31 12:04:13 +00:00

36 lines
1.4 KiB
Plaintext

/* this is a playing card deck based off of the Rider-Waite Tarot Deck.
*/
/obj/item/deck/tarot
name = "deck of tarot cards"
desc = "For all your occult needs!"
icon_state = "deck_tarot"
/obj/item/deck/tarot/build_deck()
for(var/tarotname in list("Fool","Magician","High Priestess","Empress","Emperor","Hierophant","Lovers","Chariot","Strength","Hermit","Wheel of Fortune","Justice","Hanged Man","Death","Temperance","Devil","Tower","Star","Moon","Sun","Judgement","World"))
cards += new /datum/playingcard("[tarotname]", "tarot_major", "card_back_tarot")
for(var/suit in list("wands","pentacles","cups","swords"))
for(var/number in list("ace","two","three","four","five","six","seven","eight","nine","ten","page","knight","queen","king"))
cards += new /datum/playingcard("[number] of [suit]", "tarot_[suit]", "card_back_tarot")
/obj/item/deck/tarot/deckshuffle()
var/mob/living/user = usr
if(cooldown < world.time - 1 SECONDS)
var/list/newcards = list()
while(length(cards))
var/datum/playingcard/P = pick(cards)
P.name = replacetext(P.name," reversed","")
if(prob(50))
P.name += " reversed"
newcards += P
cards -= P
cards = newcards
playsound(user, 'sound/items/cardshuffle.ogg', 50, TRUE)
user.visible_message(
"<span class='notice'>[user] shuffles [src].</span>",
"<span class='notice'>You shuffle [src].</span>",
"<span class='notice'>You hear cards being shuffled.</span>"
)
cooldown = world.time