Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions AutoDuty/AutoDuty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public AutoDuty()
AssemblyDirectoryInfo = AssemblyFileInfo.Directory;

Configuration.Version =
((PluginInterface.IsDev ? new Version(0,0,0, 208) :
((PluginInterface.IsDev ? new Version(0,0,0, 209) :
PluginInterface.IsTesting ? PluginInterface.Manifest.TestingAssemblyVersion ?? PluginInterface.Manifest.AssemblyVersion : PluginInterface.Manifest.AssemblyVersion)!).Revision;
Configuration.Save();

Expand All @@ -237,12 +237,6 @@ public AutoDuty()
FileHelper.Init();
Patcher.Patch(startup: true);

if (Configuration.BM_UpdatePresetsOnLaunch)
{
BossMod_IPCSubscriber.RefreshPreset("AutoDuty", Resources.AutoDutyPreset);
BossMod_IPCSubscriber.RefreshPreset("AutoDuty Passive", Resources.AutoDutyPassivePreset);
}

Chat = new();
_overrideAFK = new();
_ipcProvider = new();
Expand Down Expand Up @@ -1178,6 +1172,12 @@ public void StartNavigation(bool startFromZero = true)
if (Configuration.AutoManageVnavAlignCamera && !VNavmesh_IPCSubscriber.Path_GetAlignCamera())
VNavmesh_IPCSubscriber.Path_SetAlignCamera(true);

if (this.Configuration is { AutoManageBossModAISettings: true, BM_UpdatePresetsAutomatically: true })
{
BossMod_IPCSubscriber.RefreshPreset("AutoDuty", Resources.AutoDutyPreset);
BossMod_IPCSubscriber.RefreshPreset("AutoDuty Passive", Resources.AutoDutyPassivePreset);
}

if (Configuration.AutoManageBossModAISettings)
SetBMSettings();
if (this.Configuration is { AutoManageRotationPluginState: true, UsingAlternativeRotationPlugin: false })
Expand Down
4 changes: 2 additions & 2 deletions AutoDuty/Windows/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public bool AutoGCTurnin

//BMAI Config Options
public bool HideBossModAIConfig = false;
public bool BM_UpdatePresetsOnLaunch = true;
public bool BM_UpdatePresetsAutomatically = true;


internal bool maxDistanceToTargetRoleBased = true;
Expand Down Expand Up @@ -701,7 +701,7 @@ public static void Draw()
BossMod_IPCSubscriber.RefreshPreset("AutoDuty", Resources.AutoDutyPreset);
BossMod_IPCSubscriber.RefreshPreset("AutoDuty Passive", Resources.AutoDutyPassivePreset);
}
if (ImGui.Checkbox("Update Presets on Launch", ref Configuration.BM_UpdatePresetsOnLaunch))
if (ImGui.Checkbox("Update Presets automatically", ref Configuration.BM_UpdatePresetsAutomatically))
Configuration.Save();
if (ImGui.Checkbox("Set Max Distance To Target Based on Player Role", ref Configuration.maxDistanceToTargetRoleBased))
{
Expand Down