Files
Aurora.3/code/modules/games/kotahi.dm
Wowzewow (Wezzy) 305038f064 Joker Poker, feat. You have UNOOOO (#20598)
<img width="125" alt="dreamseeker_Ipg96rH5Bq"
src="https://github.com/user-attachments/assets/9da6e048-a33c-4198-90ee-e47a05fc85a0"
/>


![dreamseeker_z2UllenFYc](https://github.com/user-attachments/assets/2f6791fe-3a23-4534-9f40-9758eb62dd7d)

- rscadd: "Streamlines card mechanics. Click on others to deal to them,
yourself to draw. Ctrl-click to draw, Alt-click to shuffle."
- rscadd: "Adds KOTAHI, the shedding type card game fun for the whole
family."
  - rscadd: "Tweaks throw sound volume."
  - bugfix: "Fixes some runtimes with cards."
  - imageadd: "New sprites for playing cards."

Also seperates picking cards into it's own verb, and no more tooltips
when concealed. No more cheating.

(Also changes the throw sound volume, so it doesn't horribly spike the
volume when you're dealing normally)

KOTAHI sprites by CevUI, modified by myself.
2025-04-13 10:14:05 +00:00

39 lines
1.1 KiB
Plaintext

/obj/item/deck/kotahi
name = "\improper KOTAHI deck"
desc = "A deck of kotahi cards. House rules to argue over not included."
icon_state = "deck_kotahi"
hand_type = /obj/item/hand/kotahi
/obj/item/hand/kotahi
deck_type = /obj/item/deck/kotahi
/obj/item/deck/kotahi/generate_deck()
var/datum/playingcard/P
for(var/colour in list("red","yellow","green","blue"))
P = new()
P.name = "[colour] zero"
P.card_icon = "kotahi_[colour]_zero"
P.back_icon = "kotahi_back"
cards += P //kotahi decks have only one colour of each 0, weird huh?
for(var/number in list("skip","reverse","draw 2","one","two","three","four","five","six","seven","eight","nine")) //two of each colour of number
P = new()
P.name = "[colour] [number]"
P.card_icon = "kotahi_[colour]_[number]"
P.back_icon = "kotahi_back"
cards += P
cards += P
for(var/i = 0,i<4,i++) //4 wilds and draw 4s
P = new()
P.name = "wildcard"
P.card_icon = "kotahi_wild"
P.back_icon = "kotahi_back"
cards += P
for(var/i = 0,i<4,i++)
P = new()
P.name = "draw 4"
P.card_icon = "kotahi_draw4"
P.back_icon = "kotahi_back"
cards += P