summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-08-05 16:38:12 -0300
committerJesusaves <cpntb1@ymail.com>2024-08-05 16:38:12 -0300
commit8c69d9425c478d3b511c18e9feb24e70e247269b (patch)
treeca72aa7bc21b53db4d8cbaf66af75147e2c072b8
parent9d8663cda8c0a845cdfc6daf9e168fee0ee501de (diff)
downloadserverdata-8c69d9425c478d3b511c18e9feb24e70e247269b.tar.gz
serverdata-8c69d9425c478d3b511c18e9feb24e70e247269b.tar.bz2
serverdata-8c69d9425c478d3b511c18e9feb24e70e247269b.tar.xz
serverdata-8c69d9425c478d3b511c18e9feb24e70e247269b.zip
Add an option to do a "short spin" with less dialogue to go through
On Poker game. Also, add another safeguard to roulette.
-rw-r--r--npc/003-9/gambler.txt1
-rw-r--r--npc/031-4/gambler.txt16
2 files changed, 17 insertions, 0 deletions
diff --git a/npc/003-9/gambler.txt b/npc/003-9/gambler.txt
index bb7e12b3c..315117660 100644
--- a/npc/003-9/gambler.txt
+++ b/npc/003-9/gambler.txt
@@ -255,6 +255,7 @@ L_Spin:
sleep2(10);
}
showavatar 1301+.@val;
+ if (.@bet < 1 || .@bet > countitem(CasinoCoins)) end;
delitem CasinoCoins, .@bet;
// Note that "0" doesn't count toward pretty much anything
diff --git a/npc/031-4/gambler.txt b/npc/031-4/gambler.txt
index db5747d3d..7e1b47766 100644
--- a/npc/031-4/gambler.txt
+++ b/npc/031-4/gambler.txt
@@ -68,6 +68,7 @@ L_Menu:
}
menu
rif(countitem(CasinoCoins) >= 1, l("Let's play!")), L_Spin,
+ rif(!.@showMenu, l("Make it a quick game!")), L_Short,
l("Information"), L_Info,
l("Leave"), L_Quit;
@@ -118,6 +119,7 @@ L_Spin:
next;
clear;
+L_Tally:
if (.@aiRank == .@myRank) {
getitem CasinoCoins, 1;
img("cards/cardBack_blue");
@@ -155,6 +157,20 @@ L_Spin:
dnext;
goto L_Menu;
+L_Short:
+ delitem CasinoCoins, 1;
+ clear;
+ img("cards/cardBack_green");
+ .@myRank = deal();
+ img("cards/cardBack_red");
+ .@aiRank = deal();
+ mes "";
+ mesc l("You scored a(n) %s!", b(playname(.@myRank)));
+ mesc l("I scored a(n) %s!", b(playname(.@aiRank)));
+ dnext;
+ clear;
+ goto L_Tally;
+
// deal(show=True), returns score
function deal {
// Give you 5 cards