Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: make rank 1 mobs as boss.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Nov 4, 2023
1 parent 3f8b454 commit 5c8bd48
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Resources/HostileCastingArea.json
Original file line number Diff line number Diff line change
Expand Up @@ -471,5 +471,6 @@
29870,
7822,
8915,
13708
13708,
12618
]
2 changes: 1 addition & 1 deletion Resources/RotationSolverRecord.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"ClickingCount": 54546,
"ClickingCount": 54988,
"SaidUsers": []
}
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Configuration/Configs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ public enum PluginConfigFloat : byte
[Default(0.4f, 0f, 0.7f)] CountDownAhead,

[Default(24f, 0f, 90f)] MoveTargetAngle,
[Default(60f, 10f, 1800f)] BossTimeToKill,
[Default(90f, 10f, 1800f)] BossTimeToKill,
[Default(10f, 0f, 60f)] DyingTimeToKill,

[Default(16f, 9.6f, 96f)] CooldownFontSize,
Expand Down
3 changes: 2 additions & 1 deletion RotationSolver.Basic/Helpers/ObjectHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ public static bool IsBoss(this BattleChara obj)
if (obj == null) return false;
if (obj.IsDummy() && !Service.Config.GetValue(Configuration.PluginConfigBool.ShowTargetTimeToKill)) return true;

return obj.GetObjectNPC()?.Rank is 2 or 6;
return obj.GetTimeToKill(true) >= Service.Config.GetValue(Configuration.PluginConfigFloat.BossTimeToKill)
|| obj.GetObjectNPC()?.Rank is 1 or 2 /*or 4*/ or 6;
}

/// <summary>
Expand Down

0 comments on commit 5c8bd48

Please sign in to comment.