Pets are more careful about attacking monsters at low health

Another SliceHack feature. However, the math implemented by SliceHack
seemed incorrect, so I tweaked it.

Pets previously attacked monsters of up to one level higher than them as
long as they were above 25% health. Now, they will attack monsters as
follows:
100%: up to level + 2 (pets could not attack this high before)
80%+: up to level + 1
60%+: up to same level
40%+: up to level - 1
25%+: up to level - 2

The case that prevents any attacks below 25% health still exists.
This commit is contained in:
copperwater
2019-01-30 08:17:52 -05:00
committed by Pasi Kallinen
parent 6b60618e0e
commit 882efdcf58
2 changed files with 12 additions and 1 deletions

View File

@@ -531,6 +531,7 @@ make anti-magic fields drain more energy and prevent them from showing up
too early in the dungeon
eating magical monsters such as wizards or shamans may give a mild buzz
make exploding spheres create an actual explosion
pets are more careful about attacking monsters at low health
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository