Merge pull request #12811 from Runa-Dacino/schnapsen_icons

Adds William Tell pattern for schnapsen
This commit is contained in:
Casey
2022-04-22 18:41:39 -04:00
committed by GitHub
2 changed files with 11 additions and 11 deletions
+8 -8
View File
@@ -1,7 +1,7 @@
// this is a playing card deck based off of the Austrian/Hungarian national card game, Schnapsen // this is a playing card deck based off of the Austrian/Hungarian national card game, Schnapsen
//TODO: Sprite up Double German/William Tell card icons. Sending this in as is as I suck at spriting and want to play schnapsen
//TODO: Implement functionality for "sub-decks": Create a over-schnapsen deck with nines, eights and sevens. //TODO: Implement functionality for "sub-decks": Create a over-schnapsen deck with nines, eights and sevens.
//TODO:Let players choose 2,3,4 player mode to get decks of ace/ten/jack/queen/king + seven for 3 player, nine+eight for 4 player modes. //TODO:Let players choose 2,3,4 player mode to get decks of ace/ten/jack/queen/king + seven for 3 player, nine+eight for 4 player modes.
//values: ace = 11, ten = 10, unter = 2, ober = 3, king = 4
/obj/item/weapon/deck/schnapsen /obj/item/weapon/deck/schnapsen
name = "deck of schnapsen cards" name = "deck of schnapsen cards"
@@ -10,15 +10,15 @@
/obj/item/weapon/deck/schnapsen/New() /obj/item/weapon/deck/schnapsen/New()
..() ..()
//Stealing french card icons.
var/datum/playingcard/P var/datum/playingcard/P
var/colour var/colour
for(var/suit in list("spades","clubs","diamonds","hearts")) for(var/suit in list("acorns","leaves","bells","hearts"))
if(suit == "spades" || suit == "clubs") switch(suit)
colour = "black_" if("acorns") colour = "acorn_"
else if("leaves") colour = "leaf_"
colour = "red_" if("bells") colour = "bell_"
for(var/number in list("ace","ten","jack","queen","king")) //Schnapsen has knight worth 2 pts, queen 3 pts, king 4. Ace 11, ten 10 if("hearts") colour = "red_"
for(var/number in list("ace","ten","unter","ober","king"))
P = new() P = new()
P.name = "[number] of [suit]" P.name = "[number] of [suit]"
if(number == "ten") if(number == "ten")
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB