Merge pull request #12749 from Runa-Dacino/schnapsen_final_final

Adds a new playing card game: schnapsen
This commit is contained in:
Casey
2022-04-17 05:23:36 -04:00
committed by GitHub
3 changed files with 36 additions and 1 deletions

View File

@@ -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
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

View File

@@ -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

View File

@@ -2360,6 +2360,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"