]> granicus.if.org Git - nethack/commitdiff
Amplify booze effect if drinking on empty stomach
authorMichael Meyer <me@entrez.cc>
Tue, 3 Aug 2021 21:05:22 +0000 (17:05 -0400)
committerPatR <rankin@nethack.org>
Thu, 2 Sep 2021 22:52:39 +0000 (15:52 -0700)
Drinking booze on an empty stomach will amplify its effects
(i.e. increase the duration of the resulting confusion); stuffing
yourself before drinking will have the opposite effect.

src/potion.c

index 82b834df469405587ffa5b9bff77a7b694d01e71..1aa56fd20574f8f94faf9994560115533acfcd12 100644 (file)
@@ -720,8 +720,10 @@ peffect_booze(struct obj *otmp)
     pline("Ooph!  This tastes like %s%s!",
           otmp->odiluted ? "watered down " : "",
           Hallucination ? "dandelion wine" : "liquid fire");
-    if (!otmp->blessed)
-        make_confused(itimeout_incr(HConfusion, d(3, 8)), FALSE);
+    if (!otmp->blessed) {
+        /* booze hits harder if drinking on an empty stomach */
+        make_confused(itimeout_incr(HConfusion, d(2 + u.uhs, 8)), FALSE);
+    }
     /* the whiskey makes us feel better */
     if (!otmp->odiluted)
         healup(1, 0, FALSE, FALSE);