Files
byte f6193dd13c UNUM cards fixed
the `populate_deck()` proc needed to be updated so all the cards are lists instead of just strings
2022-07-15 17:56:17 -08:00

37 lines
1.0 KiB
Plaintext

/// A deck of unum cards. Classic.
/obj/item/toy/cards/deck/unum
name = "\improper UNUM deck"
desc = "A deck of unum cards. House rules to argue over not included."
icon = 'icons/obj/toy.dmi'
icon_state = "deck_unum_full"
deckstyle = "unum"
original_size = 108
//Populate the deck.
/obj/item/toy/cards/deck/unum/populate_deck()
for(var/colour in list("Red","Yellow","Green","Blue"))
cards += new_card("[colour] 0") //Uno, i mean, cough cough, Unum decks have only one colour of each 0, weird huh?
for(var/k in 0 to 1) //two of each colour of number
cards += new_card("[colour] skip")
cards += new_card("[colour] reverse")
cards += new_card("[colour] draw 2")
for(var/i in 1 to 9)
cards += new_card("[colour] [i]")
for(var/k in 0 to 3) //4 wilds and draw 4s
cards += new_card("Wildcard")
cards += new_card("Draw 4")
//
// hyperstation edits below
// -- sarcoph (july 2022)
//
/obj/item/toy/cards/deck/unum/proc/new_card(name)
return list(list(
"name" = name,
"icon_state" = name,
"rotation" = null,
"face_up" = null
))