Skip to content

Commit

Permalink
Tweaks to the wishing spawn effects and effect on difficulty. Both in…
Browse files Browse the repository at this point in the history
…crease more gradually now.
  • Loading branch information
elunna committed Oct 12, 2023
1 parent e013f7c commit 633630f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
17 changes: 10 additions & 7 deletions src/allmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,19 +301,22 @@ boolean resuming;
* of a harder game later.
*/
monclock = MIN_MONGEN_RATE;

/* Don't let wishes influence the fuzzer */
if (!iflags.debug_fuzzer) {
/* Don't let wishes influence the fuzzer */
past_clock = moves - timeout_start;
if (past_clock > 0)
monclock = MIN_MONGEN_RATE * TURN_THRESHOLD / (past_clock + TURN_THRESHOLD);
if (monclock > MIN_MONGEN_RATE / 4 && (u.uconduct.wishes >= 2L))
if (monclock > MIN_MONGEN_RATE / 2 && (u.uconduct.wishes >= 2L))
monclock = MIN_MONGEN_RATE / 2;
if (monclock > MIN_MONGEN_RATE / 3 && (u.uconduct.wishes >= 3L))
monclock = MIN_MONGEN_RATE / 3;
if (monclock > MIN_MONGEN_RATE / 4 && (u.uconduct.wishes >= 4L))
monclock = MIN_MONGEN_RATE / 4;
if (monclock > MIN_MONGEN_RATE / 6 && (u.uconduct.wishes >= 3L))
if (monclock > MIN_MONGEN_RATE / 5 && (u.uconduct.wishes >= 5L))
monclock = MIN_MONGEN_RATE / 5;
if (monclock > MIN_MONGEN_RATE / 6 && (u.uconduct.wishes >= 6L))
monclock = MIN_MONGEN_RATE / 6;
if (monclock > MIN_MONGEN_RATE / 8 && (u.uconduct.wishes >= 4L))
monclock = MIN_MONGEN_RATE / 8;
if (monclock > MIN_MONGEN_RATE / 8 && (u.uconduct.wishes >= 5L))
if (u.uconduct.wishes >= 7L)
monclock = MAX_MONGEN_RATE;
}
/* make sure we don't fall off the bottom */
Expand Down
2 changes: 1 addition & 1 deletion src/dungeon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,7 @@ level_difficulty()
}
/* Wishes increase difficulty (unless fuzzing) */
else if (u.uconduct.wishes > 1 && !iflags.debug_fuzzer) {
int bump = (u.uconduct.wishes - 1) * 4;
int bump = (u.uconduct.wishes - 1) * 2;
res += (bump > 15) ? 15 : bump;
}
return (xchar) res;
Expand Down

0 comments on commit 633630f

Please sign in to comment.