Skip to content

Commit

Permalink
support for the bulk results addon and removed old trigger condition (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaksuhn authored Dec 2, 2023
1 parent 59761d8 commit 68e2ed2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions YesAlready/Features/AddonSalvageResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public override void Enable()
{
base.Enable();
AddonLifecycle.RegisterListener(AddonEvent.PostUpdate, "SalvageResult", AddonUpdate);
AddonLifecycle.RegisterListener(AddonEvent.PostUpdate, "SalvageAutoDialog", AddonUpdate);
}

public override void Disable()
Expand All @@ -28,10 +29,7 @@ protected static unsafe void AddonUpdate(AddonEvent eventType, AddonArgs addonIn
if (!P.Active || !P.Config.DesynthesisResults)
return;

if (addon->AtkValues[17].Byte == 0)
{
Svc.Log.Debug("Closing Salvage Auto Results menu");
Callback.Fire(addon, true, 1);
}
Svc.Log.Debug("Closing Salvage Auto Results menu");
Callback.Fire(addon, true, 1);
}
}

0 comments on commit 68e2ed2

Please sign in to comment.