From 97cc55a94834ee273529ad7914f08e9cdef767eb Mon Sep 17 00:00:00 2001 From: Casey Date: Sun, 17 Apr 2022 05:23:36 -0400 Subject: [PATCH] Merge pull request #12749 from Runa-Dacino/schnapsen_final_final Adds a new playing card game: schnapsen --- .../loadout/loadout_general_vr.dm | 7 ++++- code/modules/games/schnapsen_vr.dm | 29 +++++++++++++++++++ vorestation.dme | 1 + 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 code/modules/games/schnapsen_vr.dm diff --git a/code/modules/client/preference_setup/loadout/loadout_general_vr.dm b/code/modules/client/preference_setup/loadout/loadout_general_vr.dm index 9b72d27aba..d330134dba 100644 --- a/code/modules/client/preference_setup/loadout/loadout_general_vr.dm +++ b/code/modules/client/preference_setup/loadout/loadout_general_vr.dm @@ -90,4 +90,9 @@ /datum/gear/textmug display_name = "mug with text" description = "A mug with something written on it." - path = /obj/item/weapon/reagent_containers/food/drinks/textmug \ No newline at end of file + path = /obj/item/weapon/reagent_containers/food/drinks/textmug + +/datum/gear/schnapsen + display_name = "schnapsen playing cards" + description = "French-suit playing cards! Pre-picked for 2-player mode." + path = /obj/item/weapon/deck/schnapsen diff --git a/code/modules/games/schnapsen_vr.dm b/code/modules/games/schnapsen_vr.dm new file mode 100644 index 0000000000..b10d6890e5 --- /dev/null +++ b/code/modules/games/schnapsen_vr.dm @@ -0,0 +1,29 @@ +// 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: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. + +/obj/item/weapon/deck/schnapsen + name = "deck of schnapsen cards" + desc = "An ancient trick-taking card game from a bygone-Earth country. For 2 players!" + icon_state = "deck" + +/obj/item/weapon/deck/schnapsen/New() + ..() + //Stealing french card icons. + var/datum/playingcard/P + var/colour + for(var/suit in list("spades","clubs","diamonds","hearts")) + if(suit == "spades" || suit == "clubs") + colour = "black_" + else + colour = "red_" + 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 + P = new() + P.name = "[number] of [suit]" + if(number == "ten") + P.card_icon = "[colour]num" + else + P.card_icon = "[colour]col" + P.back_icon = "card_back" + cards += P diff --git a/vorestation.dme b/vorestation.dme index 3bb6489e88..5b17bcc178 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -2511,6 +2511,7 @@ #include "code\modules\games\dice.dm" #include "code\modules\games\spaceball_cards.dm" #include "code\modules\games\tarot.dm" +#include "code\modules\games\schnapsen_vr.dm" #include "code\modules\games\wizoff.dm" #include "code\modules\genetics\side_effects.dm" #include "code\modules\ghosttrap\trap.dm"