summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-12-16 11:46:55 -0300
committerJesusaves <cpntb1@ymail.com>2022-12-16 11:46:55 -0300
commit20eb6b22973c08b05b1a83340549ebfba7d8baae (patch)
tree8f8920caf2cbc3a8dacf9bfee5d645eba29bf3ba
parent70ea3af37b18a2a9f05d4f36697360859fb32584 (diff)
downloadserverdata-20eb6b22973c08b05b1a83340549ebfba7d8baae.tar.gz
serverdata-20eb6b22973c08b05b1a83340549ebfba7d8baae.tar.bz2
serverdata-20eb6b22973c08b05b1a83340549ebfba7d8baae.tar.xz
serverdata-20eb6b22973c08b05b1a83340549ebfba7d8baae.zip
Do not allow to take the alcohol if the success chance is of 0%
-rw-r--r--npc/017-3/chagashroom.txt1
-rw-r--r--npc/024-9/sake.txt1
2 files changed, 2 insertions, 0 deletions
diff --git a/npc/017-3/chagashroom.txt b/npc/017-3/chagashroom.txt
index 9a449bc49..552dd14af 100644
--- a/npc/017-3/chagashroom.txt
+++ b/npc/017-3/chagashroom.txt
@@ -134,6 +134,7 @@ L_Main:
inventoryplace RedPlushWine, REDWINE_AMMO;
mesn;
mes l("Trying to retrieve it now will have @@ % chance to be successful.", redwine_chance()/100);
+ if (redwine_chance()/100 < 1) close;
mes l("Attempt to retrieve it now?");
next;
if (askyesno() == ASK_YES) {
diff --git a/npc/024-9/sake.txt b/npc/024-9/sake.txt
index 61e1aabf6..c93bcf5ca 100644
--- a/npc/024-9/sake.txt
+++ b/npc/024-9/sake.txt
@@ -144,6 +144,7 @@ L_Main:
inventoryplace DwarvenSake, DWARVEN_AMMO;
mesn;
mes l("Trying to retrieve it now will have @@ % chance to be successful.", dwarvensake_chance()/100);
+ if (dwarvensake_chance()/100 < 1) close;
mes l("Attempt to retrieve it now?");
next;
if (askyesno() == ASK_YES) {