Skip to content

Commit

Permalink
Fix bug with wishes increasing difficulty.
Browse files Browse the repository at this point in the history
  • Loading branch information
elunna committed Sep 27, 2023
1 parent 1dcc681 commit 4cd263a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/allmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ newgame()
{
int i;
/* Add this flag here to activate rr fuzzing */
/* iflags.debug_fuzzer = 1; */
iflags.debug_fuzzer = 1;

#ifdef MFLOPPY
gameDiskPrompt();
Expand Down
6 changes: 4 additions & 2 deletions src/dungeon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1682,8 +1682,10 @@ level_difficulty()
res += 15;
}
/* Wishes increase difficulty */
if (u.uconduct.wishes > 1)
res += (int) (u.uconduct.wishes - 1) * 4;
else if (u.uconduct.wishes > 1) {
int bump = (u.uconduct.wishes - 1) * 4;
res += (bump > 15) ? 15 : bump;
}
return (xchar) res;
}

Expand Down

0 comments on commit 4cd263a

Please sign in to comment.