summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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