Gamble buffs (#18403)

* Gambling buffs

Added replica casino chips that can be ordered in a new gambling games crate from cargo. These can't be used in any casino vendors.

Added a triple size deck of cards.

Added the ability to set dice to a specific face with a verb or ctrl-click.

Added quick use abilities to decks of cards: Alt click to shuffle, Ctrl click to deal, Ctrl+Shift click to deal multiple.

Added quick use abilities to hands of cards: "Alt click to remove a card, Ctrl click to discard cards."

Fixed people being able to see your hand of cards whilst it was in your hand by examining you.

* Update cards.dm

* Update dice.dm

* Adds stuff to bits and bobs vendor
This commit is contained in:
SatinIsle
2025-09-08 16:44:55 -07:00
committed by GitHub
parent 890537411b
commit 41969fe83d
6 changed files with 250 additions and 1 deletions
+28 -1
View File
@@ -35,7 +35,7 @@
..()
if(cheater)
if(!loaded)
var/to_weight = tgui_input_number(user, "What should the [name] be weighted towards?","Set the desired result", 1, 6, 1)
var/to_weight = tgui_input_number(user, "What should the [name] be weighted towards?","Set the desired result", 1, sides, 1)
if(isnull(to_weight) || (to_weight < 1) || (to_weight > sides) ) //You must input a number higher than 0 and no greater than the number of sides
return 0
else
@@ -115,6 +115,33 @@
span_notice("You throw [src]. It lands on a [result]. [comment]"), \
span_notice("You hear [src] landing on a [result]. [comment]"))
/obj/item/dice/verb/set_dice_verb()
set category = "Object"
set name = "Set Face"
set desc = "Turn the dice to a specific face."
set src in view(1)
var/mob/living/carbon/user = usr
if(!istype(user))
return
set_dice(user)
/obj/item/dice/proc/set_dice(mob/user)
if(user.stat || !Adjacent(user))
return
var/to_value = tgui_input_number(user, "What face should \the [src] be turned to?","Set die face", 1, sides, 1)
if(!to_value)
return
result = to_value
icon_state = "[name][result]"
user.visible_message(span_notice("\The [user] turned \the [src] to the face reading [result] manually."))
/obj/item/dice/CtrlClick(mob/user)
set_dice(user)
/*
* Dice packs
*/