mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-01-28 01:42:50 +00:00
Schnapsen final (#2)
* Creates schnapsen_vr.dm New card game deck for 2-player Schnapsen! * Adds Schnapsen to loadout * fixes tabs and capitalization Accidentally set tabs to be space, indent of 2. Changed to the expected tab and 8. Also renamed file from _VR to _vr * Adds schnapsen_vr.dm to #include * Rename schnapsen_vr to schnapsen_vr.dm * fixes slashes. * grr webedits. fixed indentation
This commit is contained in:
@@ -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
|
||||
|
||||
29
code/modules/games/schnapsen_vr.dm
Normal file
29
code/modules/games/schnapsen_vr.dm
Normal 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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user