RynthAi: monster rule Priority 0 means never attacked
A monster whose applicable rule (its own row, else Default) has Priority <= 0 is dropped in ScanNearbyTargets before the LOS check, so it is never a target (acquire, re-lock, kill-shot alternate, next pick) and is not counted by any consumer of the scan list or the no-LOS count: HasTargets, HasNearbyMonsters, HasEngageableTarget, HasCloseThreat, IsUnderCloseAttack (nav hold, combat entry, stance, buff/rest, loot starvation, corpse gates, pets). An active target that becomes ignored is dropped at once. There is no exception for a Priority 0 monster that attacks the player; the HP failsafe still protects the player. Combat hook: ctx.monsters (RynthAi.Combat GetScanned) reads the same scan list, so an ignored monster is left out of it, even while it hits us, and ScriptAttackProblem rejects a script answer at a Priority 0 target before the fight-target match (a fight target whose rule changed to 0 is still the active target until Think drops it), so RynthAi casts its own choice. ScriptHealProblem rejects a script heal (a drain) at one the same way (CombatManager.IsIgnored). MonsterEditor: the P column shows "ign" for 0 and carries a tooltip on the header, cell and editor. README documents monster rules. Tests: IgnoreMonsterTests, a loot-starvation case in LootCorpseTests, and two CombatHookTests (ctx.monsters leaves out an ignored monster; a script answer at one is rejected, both even while it hits us; a script heal at a fight target turned to Priority 0 is rejected). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
10e2c2eb0a
commit
7cbc6fdca9
10 changed files with 387 additions and 6 deletions
11
README.md
11
README.md
|
|
@ -33,6 +33,17 @@ A combat and navigation assistant for Asheron's Call, ported from the legacy Nex
|
|||
|
||||
---
|
||||
|
||||
## Monster rules
|
||||
|
||||
Each row of the monster profile (edited in `Tools/RynthCore.MonsterEditor`) applies to the monsters whose name contains the row's Name (and whose Match expression is true, when one is set); the `Default` row applies to the rest. The **P** column is the row's Priority:
|
||||
|
||||
- **Higher Priority is fought first.** When a monster of a higher Priority is in range, lower-priority monsters wait.
|
||||
- **Priority 0 (or less) means IGNORE.** RynthAi never picks the monster as a target and does not count it as "a monster nearby": it does not hold up navigation, looting, buffing, resting, or the idle peace-mode switch. Use it for monsters that are not worth the time (for example an `Olthoi Grub` row at Priority 0). A `Default` row at 0 ignores every monster no other row names.
|
||||
- **Priority 0 means never attacked, even if it attacks you.** There is no automatic exception: an ignored monster that hits you is still never targeted. The HP failsafe (Emergency Heal At) still protects you, and you can raise the row's Priority if a monster needs fighting.
|
||||
- Meta conditions that count monsters by name or distance (`NoMonstersWithinDistance`, `MobsInDist_Priority`, name-count) are explicit conditions you wrote and still see ignored monsters.
|
||||
|
||||
---
|
||||
|
||||
## Tools
|
||||
|
||||
Cross-platform Avalonia editors built on the shared LootSdk. These target `net10.0` (no `-windows` suffix) and run on Windows, Linux, and macOS.
|
||||
|
|
|
|||
Loading…
Reference in a new issue