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

Commit

Permalink
fix: add an option for only hot on tanks.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 7, 2023
1 parent 1978f20 commit 20c5680
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RotationSolver.Basic/Actions/BaseAction_Target.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ private bool TargetParty(float range, int aoeCount, bool mustUse, out BattleChar
}
else
{
if(Service.Config.OnlyHotOnTanks && IsEot)
{
availableCharas = availableCharas.Where(b => b.IsJobCategory(JobRole.Tank));
}
availableCharas = TargetFilter.GetObjectInRadius(availableCharas, range)
.Where(CanUseTo);
//特殊选队友的方法。
Expand Down
1 change: 1 addition & 0 deletions RotationSolver.Basic/Configuration/PluginConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public class PluginConfiguration : IPluginConfiguration
public bool UseStopCasting = false;
public bool EsunaAll = false;
public bool OnlyAttackInView = false;
public bool OnlyHotOnTanks = false;

public string PositionalErrorText = string.Empty;
public float CountDownAhead = 0.6f;
Expand Down
2 changes: 2 additions & 0 deletions RotationSolver/Localization/Strings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ internal partial class Strings

public string ConfigWindow_Param_HealOutOfCombat { get; set; } = "Heal party members outside of combat.";

public string ConfigWindow_Param_OnlyHotOnTanks { get; set; } = "Only use hot actions on tank rols.";

public string ConfigWindow_Param_HealthDifference { get; set; } = "Set the HP standard deviation threshold for using AOE heal (ability & spell)";
public string ConfigWindow_Param_HealthAreaAbility { get; set; } = "Set the HP threshold for using AOE healing ability";
public string ConfigWindow_Param_HealthAreaSpell { get; set; } = "Set the HP threshold for using AOE healing spell";
Expand Down
3 changes: 3 additions & 0 deletions RotationSolver/UI/RotationConfigWindow_Param.cs
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@ private void DrawParamCondition()
DrawCheckBox(LocalizationManager.RightLang.ConfigWindow_Param_HealOutOfCombat,
ref Service.Config.HealOutOfCombat, Service.Default.HealOutOfCombat);

DrawCheckBox(LocalizationManager.RightLang.ConfigWindow_Param_OnlyHotOnTanks,
ref Service.Config.OnlyHotOnTanks, Service.Default.OnlyHotOnTanks);

const float speed = 0.005f;

DrawFloatNumber(LocalizationManager.RightLang.ConfigWindow_Param_MeleeRangeOffset,
Expand Down

0 comments on commit 20c5680

Please sign in to comment.