mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-14 01:24:21 +01:00
Cleans up card generation a little (#45784)
Just condensing some code down, nothing really to note.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user