From 45332084736265390fa391468226c859572030ec Mon Sep 17 00:00:00 2001 From: PatR Date: Fri, 30 May 2025 19:50:14 -0700 Subject: [PATCH] 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. --- src/mondata.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mondata.c b/src/mondata.c index 4c2cea0ce..d7ea80245 100644 --- a/src/mondata.c +++ b/src/mondata.c @@ -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)