]> granicus.if.org Git - nethack/commitdiff
Charisma affects the leeway in demon lord bribes
authorPasi Kallinen <paxed@alt.org>
Tue, 31 Oct 2017 20:30:07 +0000 (22:30 +0200)
committerPasi Kallinen <paxed@alt.org>
Tue, 31 Oct 2017 20:30:07 +0000 (22:30 +0200)
doc/fixes36.1
src/minion.c

index c36858045f3bc5d944398f7cca8a3ebf263b849d..bb535b6315080019d966672f23a39a71aad80d39 100644 (file)
@@ -467,6 +467,7 @@ doors in special levels were always generated in vertical orientation
 assigning a type name to a potion on the floor which is actually a mimic could
        prompt "Call a stream of <potion-type> fluid:" (bogus 'fromsink')
 with perm_invent option enabled and no inventory, 'i' put up an empty menu
+charisma affects the leeway in demon lord bribes
 
 
 Fixes to Post-3.6.0 Problems that Were Exposed Via git Repository
index d0394477ba3e9b87b69b36c8039f301cead807fd..e690d22d1b673885892fc003c53a2f0a5663aaef 100644 (file)
@@ -279,7 +279,8 @@ register struct monst *mtmp;
         if ((offer = bribe(mtmp)) >= demand) {
             pline("%s vanishes, laughing about cowardly mortals.",
                   Amonnam(mtmp));
-        } else if (offer > 0L && (long) rnd(40) > (demand - offer)) {
+        } else if (offer > 0L
+                   && (long) rnd(5 * ACURR(A_CHA)) > (demand - offer)) {
             pline("%s scowls at you menacingly, then vanishes.",
                   Amonnam(mtmp));
         } else {