I want to limit out of depth monsters, particularly on the early dungeon levels.
I'm not quite sure if I found the right place, and also not quite sure if my new formula will work as intended. So I want to ask here. I'm Using the Angband 2.9.3 codebase, I hope a few of you will still remember that.
In the file monster2.c there is a procedure get_mon_num() which calculates a monster number appropriate for the given depth. It has a block:
I have changed this to:
The new code should not generate out of depth monsters for the first 5 levels if I understood right. Also have a more shallow curve for generating OOD monsters later. Do you think this will work as intended?
I'm not quite sure if I found the right place, and also not quite sure if my new formula will work as intended. So I want to ask here. I'm Using the Angband 2.9.3 codebase, I hope a few of you will still remember that.
In the file monster2.c there is a procedure get_mon_num() which calculates a monster number appropriate for the given depth. It has a block:
Code:
/* Occasional "nasty" monster */ if (rand_int(NASTY_MON) == 0) { /* Pick a level bonus */ int d = level / 4 + 2; /* Boost the level */ level += ((d < 5) ? d : 5); }
Code:
/* Occasional "nasty" monster */ if (rand_int(NASTY_MON) == 0) { /* Pick a level bonus */ int d = level / 5; /* Boost the level */ level += ((d < 5) ? d : 5); }
Comment