killer ants and soldier bees

This started out as an indentation fix but ended up tweaking a couple
of comments.  The other value adjustments all use 'n += X' rather than
directly modify 'tmp', so this changed more than just the indentation.
This commit is contained in:
PatR
2025-05-30 19:50:14 -07:00
parent 9ef5e886ee
commit 4533208473

View File

@@ -474,16 +474,16 @@ mstrength(struct permonst *ptr)
n += ((int) (ptr->mattk[i].damd * ptr->mattk[i].damn) > 23);
}
/* Leprechauns are special cases. They have many hit dice so they
can hit and are hard to kill, but they don't really do much damage. */
/* Leprechauns are a special case. They have many hit dice so they can
hit and are hard to kill, but they don't really do much damage. */
if (!strcmp(ptr->pmnames[NEUTRAL], "leprechaun"))
n -= 2;
/* Soldier ants and killer bees are underestimated by the formula,
so have an artificial +1 difficulty */
/* despite group and poison increments, soldier ants and killer bees are
underestimated by the formula, so have an artificial +1 difficulty */
if (!strcmp(ptr->pmnames[NEUTRAL], "killer bee") ||
!strcmp(ptr->pmnames[NEUTRAL], "soldier ant"))
tmp += 1;
n += 2; /* +1 after 'tmp += n/2' below */
/* finally, adjust the monster level 0 <= n <= 24 (approx.) */
if (n == 0)