Cleans up card generation a little (#45784)

Just condensing some code down, nothing really to note.
This commit is contained in:
ShizCalev
2019-08-20 16:24:46 -07:00
committed by oranges
parent 3d962472a2
commit c2200cd1da
+7 -21
View File
@@ -678,29 +678,15 @@
. = ..()
populate_deck()
///Generates all the cards within the deck.
/obj/item/toy/cards/deck/proc/populate_deck()
icon_state = "deck_[deckstyle]_full"
for(var/i in 2 to 10)
cards += "[i] of Hearts"
cards += "[i] of Spades"
cards += "[i] of Clubs"
cards += "[i] of Diamonds"
cards += "King of Hearts"
cards += "King of Spades"
cards += "King of Clubs"
cards += "King of Diamonds"
cards += "Queen of Hearts"
cards += "Queen of Spades"
cards += "Queen of Clubs"
cards += "Queen of Diamonds"
cards += "Jack of Hearts"
cards += "Jack of Spades"
cards += "Jack of Clubs"
cards += "Jack of Diamonds"
cards += "Ace of Hearts"
cards += "Ace of Spades"
cards += "Ace of Clubs"
cards += "Ace of Diamonds"
for(var/suit in list("Hearts", "Spades", "Clubs", "Diamonds"))
cards += "Ace of [suit]"
for(var/i in 2 to 10)
cards += "[i] of [suit]"
for(var/person in list("Jack", "Queen", "King"))
cards += "[person] of [suit]"
//ATTACK HAND IGNORING PARENT RETURN VALUE
//ATTACK HAND NOT CALLING PARENT