mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-24 00:02:06 +00:00
64 lines
2.3 KiB
Plaintext
64 lines
2.3 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/generate_deck()
|
|
var/datum/playingcard/P
|
|
for(var/name 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"))
|
|
P = new()
|
|
P.name = "[name]"
|
|
P.card_icon = "tarot_major"
|
|
P.back_icon = "card_back_tarot"
|
|
cards += P
|
|
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"))
|
|
P = new()
|
|
P.name = "[number] of [suit]"
|
|
P.card_icon = "tarot_[suit]"
|
|
P.back_icon = "card_back_tarot"
|
|
cards += P
|
|
|
|
/obj/item/deck/tarot/attack_self(var/mob/user as mob)
|
|
var/list/newcards = list()
|
|
while(cards.len)
|
|
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(src.loc, 'sound/items/cardshuffle.ogg', 100, 1, -4)
|
|
user.visible_message("\The [user] shuffles [src].")
|
|
|
|
|
|
/obj/item/deck/tarot/adhomai
|
|
name = "adhomian divination cards deck"
|
|
desc = "An adhomian deck of divination cards, used to read the one's fortune or play games."
|
|
icon_state = "deck_adhomai"
|
|
|
|
/obj/item/deck/tarot/adhomai/generate_deck()
|
|
var/datum/playingcard/P
|
|
for(var/name in list("D'as'ral Massacre","Mystic","Suns' Sister","Queen","King","Father of the Parivara","S'rendal'Matir","Tank","Royal Grenadier","Kraszarrumalkarii","Hand of Fate","Great Revolution","Assassin","Assassination","Dymtris Line",
|
|
"Rrak'narrr","Steeple","Messa","Raskara","S'rendarr","Kazarrhaldiye","Adhomai"))
|
|
P = new()
|
|
P.name = "[name]"
|
|
P.card_icon = "adhomai_major"
|
|
P.back_icon = "card_back_adhomai"
|
|
cards += P
|
|
for(var/suit in list("wands","pentacles","cups","swords"))
|
|
|
|
|
|
for(var/number in list("ace","two","three","four","five","six","seven","eight","nine","ten","serf","soldier","queen","king"))
|
|
P = new()
|
|
P.name = "[number] of [suit]"
|
|
P.card_icon = "adhomai_[suit]"
|
|
P.back_icon = "card_back_adhomai"
|
|
cards += P
|