RynthSuite/Plugins/RynthCore.Plugin.RynthAi
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
..
Combat Vitals: no wand swap for a vital spell while a kit or potion heals 2026-11-07 09:35:14 -08:00
CreatureData Snapshot for release 2026.10.21.1 (internal 7a4c0dd) 2026-10-21 09:35:07 -04:00
Dashboard RynthSuite as of 2026-11-02 (internal 487d6ea): release 2026.11.2.2 2026-11-02 20:34:04 -05:00
Data 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
Diagnostics Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
Huds RynthSuite as of 2026-11-05 (internal a77109a): release 2026.11.3.2 2026-11-05 07:42:37 -05:00
ItemInfo Snapshot for release 2026.10.31.4 (internal b309731) 2026-11-01 18:47:29 -05:00
ItemTool Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
LegacyUi RynthSuite as of 2026-11-05 (internal a77109a): release 2026.11.3.2 2026-11-05 07:42:37 -05:00
Loot RynthSuite as of 2026-11-05 (internal a77109a): release 2026.11.3.2 2026-11-05 07:42:37 -05:00
Maps Snapshot for release 2026.10.13.1 (internal d2b5fb3) 2026-10-13 14:25:49 -04:00
Meta RynthSuite as of 2026-11-03 (internal bebcd8c): release 2026.11.3.1 2026-11-03 07:37:26 -05:00
MiniRemote Snapshot for release 2026.10.21.1 (internal 7a4c0dd) 2026-10-21 09:35:07 -04:00
MonsterStats Snapshot for release 2026.10.30.1 (internal 50ae062) 2026-10-31 06:01:30 -04:00
ProfileImport Snapshot for release 2026.10.28.1 (internal decb3ab) 2026-10-28 06:36:39 -04:00
Properties/PublishProfiles RynthSuite as of 2026-09-05 (internal a5ff5c2) 2026-09-25 21:23:05 -04:00
Raycasting Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
Trade Snapshot for release 2026.10.28.3 (internal db7f094) 2026-10-28 23:23:42 -04:00
Translate Snapshot for release 2026.10.21.3 (internal 24a7b4f) 2026-10-21 21:03:48 -04:00
Vendor RynthSuite as of 2026-11-05 (internal a77109a): release 2026.11.3.2 2026-11-05 07:42:37 -05:00
ACTIVITY_ARBITER_PLAN.md RynthSuite as of 2026-09-05 (internal a5ff5c2) 2026-09-25 21:23:05 -04:00
ActivityArbiter.cs RynthSuite as of 2026-11-02 (internal 487d6ea): release 2026.11.2.2 2026-11-02 20:34:04 -05:00
ActivityInterface.cs Snapshot for release 2026.10.29.3 (internal f81a090) 2026-10-29 15:22:43 -04:00
BuildingMap.cs Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
CombatHookInterface.cs Snapshot for release 2026.10.19.1 (internal f0bdcf8) 2026-10-19 09:11:22 -04:00
CommandReply.cs Snapshot for release 2026.10.28.3 (internal db7f094) 2026-10-28 23:23:42 -04:00
ConsumableLookup.cs Vitals: a kit its result line calls used up is not picked again 2026-11-07 09:32:29 -08:00
CorpseOpenController.cs RynthSuite as of 2026-11-02 (internal 487d6ea): release 2026.11.2.2 2026-11-02 20:34:04 -05:00
DeathRecallRun.cs Snapshot for release 2026.10.13.1 (internal d2b5fb3) 2026-10-13 14:25:49 -04:00
DoorInteractionController.cs Snapshot for release 2026.10.15.6 (internal eca8fa0) 2026-10-15 23:44:40 -04:00
DungeonGeometry.cs Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
DungeonHazardStore.cs Snapshot for release 2026.10.13.1 (internal d2b5fb3) 2026-10-13 14:25:49 -04:00
DungeonHazardSurfaces.cs Snapshot for release 2026.10.27.1 (internal 48d0d60) 2026-10-27 08:41:02 -04:00
DungeonPathfinder.cs Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
DungeonPathfinder.Portals.cs Snapshot for release 2026.10.27.1 (internal 48d0d60) 2026-10-27 08:41:02 -04:00
DungeonPathfinder.Rooms.cs Snapshot for release 2026.10.15.1 (internal 6f00bd7) 2026-10-15 09:27:14 -04:00
DungeonPathfinder.Sweep.cs Snapshot for release 2026.10.15.1 (internal 6f00bd7) 2026-10-15 09:27:14 -04:00
DungeonPatrolOptions.cs Snapshot for release 2026.10.15.1 (internal 6f00bd7) 2026-10-15 09:27:14 -04:00
FlightRecorderSignal.cs Snapshot for release 2026.10.6.1 (internal bd2f068) 2026-10-06 08:47:11 -04:00
GameInput.cs Snapshot for release 2026.10.20.1 (internal 7116fab) 2026-10-20 21:28:18 -04:00
GlobalUsings.cs RynthSuite as of 2026-09-05 (internal a5ff5c2) 2026-09-25 21:23:05 -04:00
GroundLootController.cs Snapshot for release 2026.10.31.4 (internal b309731) 2026-11-01 18:47:29 -05:00
HubInterface.cs Snapshot for release 2026.10.20.1 (internal 7116fab) 2026-10-20 21:28:18 -04:00
Jumper.cs Snapshot for release 2026.10.20.1 (internal 7116fab) 2026-10-20 21:28:18 -04:00
LootBaseline.cs Snapshot for release 2026.10.15.2 (internal 2d4b0af) 2026-10-15 20:32:35 -04:00
MagToolsCommands.cs Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
MagToolsCommands.Extra.cs Snapshot for release 2026.10.28.3 (internal db7f094) 2026-10-28 23:23:42 -04:00
ManaStoneManager.cs Snapshot for release 2026.10.27.1 (internal 48d0d60) 2026-10-27 08:41:02 -04:00
NavBreadcrumbTracker.cs Snapshot for release 2026.10.13.1 (internal d2b5fb3) 2026-10-13 14:25:49 -04:00
NavigationEngine.cs Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
NavMarkerRenderer.cs Snapshot for release 2026.10.13.1 (internal d2b5fb3) 2026-10-13 14:25:49 -04:00
NavOverlay.cs Snapshot for release 2026.10.6.1 (internal bd2f068) 2026-10-06 08:47:11 -04:00
NavOverlayRenderer.cs Snapshot for release 2026.10.15.2 (internal 2d4b0af) 2026-10-15 20:32:35 -04:00
NavRecovery.cs Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
OutdoorHunt.cs Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
PlayerCompass.cs Snapshot for release 2026.10.20.1 (internal 7116fab) 2026-10-20 21:28:18 -04:00
PluginExports.cs RynthSuite as of 2026-11-05 (internal a77109a): release 2026.11.3.2 2026-11-05 07:42:37 -05:00
RadarWallRenderer.cs Snapshot for release 2026.10.13.1 (internal d2b5fb3) 2026-10-13 14:25:49 -04:00
RynthAiCommands.cs RynthSuite as of 2026-11-02 (internal 487d6ea): release 2026.11.2.2 2026-11-02 20:34:04 -05:00
RynthAiItemInfo.cs Snapshot for release 2026.10.31.4 (internal b309731) 2026-11-01 18:47:29 -05:00
RynthAiPlugin.BoostNav.cs RynthSuite as of 2026-11-02 (internal 487d6ea): release 2026.11.2.2 2026-11-02 20:34:04 -05:00
RynthAiPlugin.ChestLoot.cs RynthSuite as of 2026-11-02 (internal 487d6ea): release 2026.11.2.2 2026-11-02 20:34:04 -05:00
RynthAiPlugin.Chores.cs Snapshot for release 2026.10.30.1 (internal 50ae062) 2026-10-31 06:01:30 -04:00
RynthAiPlugin.cs RynthSuite as of 2026-11-02 (internal 487d6ea): release 2026.11.2.2 2026-11-02 20:34:04 -05:00
RynthAiPlugin.Dashboard.cs RynthSuite as of 2026-11-05 (internal a77109a): release 2026.11.3.2 2026-11-05 07:42:37 -05:00
RynthAiPlugin.DataFolders.cs Snapshot for release 2026.10.13.2 (internal 6cd69e2) 2026-10-13 15:07:08 -04:00
RynthAiPlugin.DeathRecall.cs Snapshot for release 2026.10.13.1 (internal d2b5fb3) 2026-10-13 14:25:49 -04:00
RynthAiPlugin.EngineServers.cs Snapshot for release 2026.10.15.2 (internal 2d4b0af) 2026-10-15 20:32:35 -04:00
RynthAiPlugin.HazardEscape.cs Snapshot for release 2026.10.13.1 (internal d2b5fb3) 2026-10-13 14:25:49 -04:00
RynthAiPlugin.ItemTool.cs Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
RynthAiPlugin.LearnSpells.cs Snapshot for release 2026.10.21.3 (internal 24a7b4f) 2026-10-21 21:03:48 -04:00
RynthAiPlugin.LocalFeatures.cs Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
RynthAiPlugin.LootWhy.cs Snapshot for release 2026.10.31.4 (internal b309731) 2026-11-01 18:47:29 -05:00
RynthAiPlugin.LowComponents.cs Snapshot for release 2026.10.30.1 (internal 50ae062) 2026-10-31 06:01:30 -04:00
RynthAiPlugin.LuaForward.cs Snapshot for release 2026.10.28.3 (internal db7f094) 2026-10-28 23:23:42 -04:00
RynthAiPlugin.MetaSchedule.cs Snapshot for release 2026.10.28.3 (internal db7f094) 2026-10-28 23:23:42 -04:00
RynthAiPlugin.MonsterStats.cs Snapshot for release 2026.10.30.1 (internal 50ae062) 2026-10-31 06:01:30 -04:00
RynthAiPlugin.OutdoorHunt.cs RynthSuite as of 2026-11-02 (internal 487d6ea): release 2026.11.2.2 2026-11-02 20:34:04 -05:00
RynthAiPlugin.OwnCorpse.cs Snapshot for release 2026.10.29.3 (internal f81a090) 2026-10-29 15:22:43 -04:00
RynthAiPlugin.Pacing.cs Snapshot for release 2026.10.13.1 (internal d2b5fb3) 2026-10-13 14:25:49 -04:00
RynthAiPlugin.PatrolPortals.cs Snapshot for release 2026.10.27.1 (internal 48d0d60) 2026-10-27 08:41:02 -04:00
RynthAiPlugin.PropertyDump.cs Snapshot for release 2026.10.28.3 (internal db7f094) 2026-10-28 23:23:42 -04:00
RynthAiPlugin.Safety.cs Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
RynthAiPlugin.Spells.cs Snapshot for release 2026.10.28.3 (internal db7f094) 2026-10-28 23:23:42 -04:00
RynthAiPlugin.TickGuard.cs Snapshot for release 2026.10.21.3 (internal 24a7b4f) 2026-10-21 21:03:48 -04:00
RynthAiPlugin.VTankHotkeys.cs RynthSuite as of 2026-11-02 (internal 487d6ea): release 2026.11.2.2 2026-11-02 20:34:04 -05:00
RynthAiPlugin.VTankYield.cs Snapshot for release 2026.10.28.3 (internal db7f094) 2026-10-28 23:23:42 -04:00
RynthAiSelfRatings.cs Snapshot for release 2026.10.28.3 (internal db7f094) 2026-10-28 23:23:42 -04:00
RynthAiServerCommand.cs Snapshot for release 2026.10.21.1 (internal 7a4c0dd) 2026-10-21 09:35:07 -04:00
RynthAiVersionCommand.cs 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
RynthClock.cs Snapshot for release 2026.10.21.3 (internal 24a7b4f) 2026-10-21 21:03:48 -04:00
RynthCore.Plugin.RynthAi.csproj Snapshot for release 2026.10.29.3 (internal f81a090) 2026-10-29 15:22:43 -04:00
ScriptInterface.cs Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
ServerPolicy.cs Snapshot for release 2026.10.15.3 (internal d7a5b0f) 2026-10-15 21:40:02 -04:00
StatusInterface.cs Snapshot for release 2026.10.31.4 (internal b309731) 2026-11-01 18:47:29 -05:00
TerrainPassabilityOverlay.cs RynthSuite as of 2026-09-05 (internal a5ff5c2) 2026-09-25 21:23:05 -04:00
UiPlacement.cs Snapshot for release 2026.10.13.1 (internal d2b5fb3) 2026-10-13 14:25:49 -04:00
UtilityBeltCommands.cs Snapshot for release 2026.10.28.3 (internal db7f094) 2026-10-28 23:23:42 -04:00
UtilityBeltCompatCommands.cs Snapshot for release 2026.10.28.3 (internal db7f094) 2026-10-28 23:23:42 -04:00
UtilityBeltExtraCommands.cs Snapshot for release 2026.11.2.1 (internal 03dbb32) 2026-11-02 03:33:34 -05:00
VTankYield.cs 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
YieldInterface.cs Snapshot for release 2026.10.29.3 (internal f81a090) 2026-10-29 15:22:43 -04:00