RynthSuite/Tools
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Wallace 23c3359f77 Vitals: no wand swap for a vital spell while a kit or potion heals
Kits are the standard heal, and the shield stays on: putting the shield
away for a wand costs more damage than a small heal spell buys back. A
melee character under Heal At put its shield away and pulled a wand for
Heal Self with kits in the pack; the wand was skipped only at Emergency
Heal At.

CastVital (Heal Self, Stamina to Health, Revitalize, Stamina to Mana and
the script hook's heal) now refuses as not handled when the character is
out of Magic mode, no caster is in hand, and a usable kit or potion for
that vital is carried (BuffManager.VitalWandGate.cs). The chain falls
through to the potion and the kit despite Kit Min Success.

- With no kit and no potion at all the swap is still allowed.
- A caster already wielded still gets the Magic stance change (no weapon
  moves); the wielded-wand check is extracted from EnsureMagicMode into
  IsBuffWandWielded so the gate and the swap agree. With no wand found
  the Magic stance goes bare-handed (no weapon moves): not gated either.
- A swap already under way finishes.
- Stamina to Mana never swaps in a fight (InCombatNow), potion or not;
  out of a fight it may, even with a mana potion carried.
- A kit counts only if the kit picks would use it: the live pack walk,
  minus a kit its line called used up, minus a kit the server refused 3
  times within 10 s. A streak with no refusal for 10 s ages out; a kit
  landing, or the macro stopping, ends every streak.
- The stamina sources share one order (AttemptStaminaRestore) for the
  stamina step, the mana step's refill and the buffing mana floor, ending
  with the stamina kit despite Stamina Kit Min Success % as the last
  resort, since Revitalize is refused here.
- Buffing is unchanged and still swaps.

Tests: VitalWandGateTests (new, 17).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 09:35:14 -08:00
..
RynthCore.AutoVendorTests RynthSuite as of 2026-11-05 (internal a77109a): release 2026.11.3.2 2026-11-05 07:42:37 -05:00
RynthCore.CreatureSeed RynthSuite as of 2026-09-05 (internal a5ff5c2) 2026-09-25 21:23:05 -04:00
RynthCore.DatReaderCheck RynthSuite as of 2026-10-05 evening (internal a078b8e): release 2026.10.5.20 - healing delay fixes, stuck-cast safeguards, buffs over items, slayers recognised and chosen first, recover my corpse, /ub give and /mt give, Mana Tap skips wands, dungeon floor-plan bake, heal latency log 2026-10-05 14:59:43 -04:00
RynthCore.LootEditor Snapshot for release 2026.10.19.1 (internal f0bdcf8) 2026-10-19 09:11:22 -04:00
RynthCore.LootSdkTests Snapshot for release 2026.10.19.1 (internal f0bdcf8) 2026-10-19 09:11:22 -04:00
RynthCore.LosProof Snapshot for release 2026.10.21.3 (internal 24a7b4f) 2026-10-21 21:03:48 -04:00
RynthCore.MissileArcTests RynthSuite as of 2026-10-04 (internal c94715f): RynthOracle (based on Oracle of Dereth by Advis Eveldan) and RynthInventory, RynthAi patrol doorways and rooms, healing priority, strict monster priority, finish the wounded target, slayer weapons, arcs when clear, blasts like rings, learn unknown spells, looting fixes, release 2026.10.4.6 2026-10-04 18:34:29 -04:00
RynthCore.MonsterEditor Snapshot for release 2026.10.19.1 (internal f0bdcf8) 2026-10-19 09:11:22 -04:00
RynthCore.PatrolProof Snapshot for release 2026.10.27.1 (internal 48d0d60) 2026-10-27 08:41:02 -04:00
RynthCore.RynthAiHostTests Vitals: no wand swap for a vital spell while a kit or potion heals 2026-11-07 09:35:14 -08:00
RynthCore.RynthAiTests Snapshot for release 2026.10.21.1 (internal 7a4c0dd) 2026-10-21 09:35:07 -04:00
RynthCore.TrackerSessionTests Snapshot for release 2026.10.30.1 (internal 50ae062) 2026-10-31 06:01:30 -04:00
RynthDefective.Tests Snapshot for release 2026.10.31.2 (internal 4a0710c) 2026-10-31 19:00:25 -04:00
RynthInventory.Tests Snapshot for release 2026.10.28.3 (internal db7f094) 2026-10-28 23:23:42 -04:00
RynthLua.CompatTests Snapshot for release 2026.10.28.3 (internal db7f094) 2026-10-28 23:23:42 -04:00
RynthLua.ScriptWindowsTests Snapshot for release 2026.10.28.3 (internal db7f094) 2026-10-28 23:23:42 -04:00
RynthNav.Baker Snapshot for release 2026.10.15.6 (internal eca8fa0) 2026-10-15 23:44:40 -04:00
RynthNav.GraphTests Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
RynthNav.MapTests Snapshot for release 2026.10.15.6 (internal eca8fa0) 2026-10-15 23:44:40 -04:00
RynthNav.PortalGraph RynthSuite as of 2026-10-04 (internal c94715f): RynthOracle (based on Oracle of Dereth by Advis Eveldan) and RynthInventory, RynthAi patrol doorways and rooms, healing priority, strict monster priority, finish the wounded target, slayer weapons, arcs when clear, blasts like rings, learn unknown spells, looting fixes, release 2026.10.4.6 2026-10-04 18:34:29 -04:00
RynthNav.RouteTests Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
RynthNav.TownNet Snapshot for release 2026.10.15.6 (internal eca8fa0) 2026-10-15 23:44:40 -04:00
RynthNet.Tests Snapshot for release 2026.10.31.2 (internal 4a0710c) 2026-10-31 19:00:25 -04:00
RynthOracle.Tests Snapshot for release 2026.10.28.3 (internal db7f094) 2026-10-28 23:23:42 -04:00
RynthSort.Tests Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
RynthSuite.BoundaryTests Snapshot for release 2026.10.21.3 (internal 24a7b4f) 2026-10-21 21:03:48 -04:00
RynthVision.Tests Snapshot for release 2026.10.28.3 (internal db7f094) 2026-10-28 23:23:42 -04:00
gen-ammo-recipes.py RynthSuite as of 2026-09-26 (internal 55483fb): metaf Not, crafting from the world database (Prismatic first), heal stall fix, use hints 2026-09-26 23:15:37 -04:00
gen-rynthui-icons.py Snapshot for release 2026.10.21.1 (internal 7a4c0dd) 2026-10-21 09:35:07 -04:00
Generate-SpellCatalog.ps1 Snapshot for release 2026.10.13.1 (internal d2b5fb3) 2026-10-13 14:25:49 -04:00
Run-RynthAiTests.ps1 RynthSuite as of 2026-10-04 (internal c94715f): RynthOracle (based on Oracle of Dereth by Advis Eveldan) and RynthInventory, RynthAi patrol doorways and rooms, healing priority, strict monster priority, finish the wounded target, slayer weapons, arcs when clear, blasts like rings, learn unknown spells, looting fixes, release 2026.10.4.6 2026-10-04 18:34:29 -04:00