From 20eb6b22973c08b05b1a83340549ebfba7d8baae Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 16 Dec 2022 11:46:55 -0300 Subject: Do not allow to take the alcohol if the success chance is of 0% --- npc/017-3/chagashroom.txt | 1 + npc/024-9/sake.txt | 1 + 2 files changed, 2 insertions(+) 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) { -- cgit v1.2.3-60-g2f50