Skip to content

Commit

Permalink
Merge pull request #158 from FFXIV-CombatReborn/ui-updates-2
Browse files Browse the repository at this point in the history
Reorganized healing condition options
  • Loading branch information
NostraThomas99 authored May 18, 2024
2 parents 6a3cca7 + bf1dbdd commit d38c736
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 56 deletions.
21 changes: 11 additions & 10 deletions RotationSolver.Basic/Configuration/Configs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public const string
UiWindows = "UiWindows",
AutoActionUsage = "AutoActionUsage",
AutoActionCondition = "AutoActionCondition",
HealingActionCondition = "HealingActionCondition",
TargetConfig = "TargetConfig",
Extra = "Extra",
Rotations = "Rotations",
Expand Down Expand Up @@ -89,7 +90,7 @@ public const string
private static readonly bool _showInfoOnDtr = true;

[ConditionBool, UI("Heal party members when not in combat.",
Filter = AutoActionCondition, Section =1)]
Filter = HealingActionCondition, Section = 1)]
private static readonly bool _healOutOfCombat = false;

[ConditionBool, UI("Display plugin status on toast popup",
Expand Down Expand Up @@ -216,7 +217,7 @@ public const string
private static readonly bool _noNewHostiles = false;

[ConditionBool, UI("Use healing abilities when playing a non-healer role.",
Filter = AutoActionCondition, Section = 1,
Filter = HealingActionCondition, Section = 1,
PvEFilter = JobFilterType.NoHealer, PvPFilter = JobFilterType.NoJob)]
private static readonly bool _useHealWhenNotAHealer = true;

Expand Down Expand Up @@ -251,7 +252,7 @@ public const string
private static readonly bool _onlyAttackInVisionCone = false;

[ConditionBool, UI("Use single target healing over time actions only on tanks",
Filter = AutoActionCondition, Section = 1,
Filter = HealingActionCondition, Section = 1,
PvEFilter = JobFilterType.Healer, PvPFilter = JobFilterType.Healer)]
private static readonly bool _onlyHotOnTanks = false;

Expand Down Expand Up @@ -339,10 +340,10 @@ public const string
Filter =UiInformation)]
private static readonly bool _showToastsAboutDoAction = false;

[ConditionBool, UI("Automatically trigger dps burst phase.", Filter = AutoActionCondition)]
[ConditionBool, UI("Automatically trigger dps burst phase.", Filter = AutoActionCondition, Section = 4)]
private static readonly bool _autoBurst = true;

[ConditionBool, UI("Automatic Heal", Filter = AutoActionCondition)]
[ConditionBool, UI("Automatic Healing Thresholds", Filter = HealingActionCondition, Section = 1, Order = 1)]
private static readonly bool _autoHeal = true;

[ConditionBool, UI("Auto-use oGCD abilities", Filter = AutoActionUsage)]
Expand Down Expand Up @@ -417,7 +418,7 @@ public const string
private static readonly bool _healWhenNothingTodo = true;

[ConditionBool, UI("Only heal self When not a Healer",
Filter = AutoActionCondition, Section = 1,
Filter = HealingActionCondition, Section = 1,
PvPFilter = JobFilterType.NoHealer, PvEFilter = JobFilterType.NoHealer)]
private static readonly bool _onlyHealSelfWhenNoHealer = false;

Expand Down Expand Up @@ -466,7 +467,7 @@ public const string
public float AngleOfVisionCone { get; set; } = 45;

[UI("HP for standard deviation for using AoE heal.", Description = "Basically the health difference between a single party member and the whole party, used for deciding between healing a single party member or AOE healing. Leave this alone if you don't undertand its use.",
Filter = AutoActionCondition, Section = 1)]
Filter = AutoActionCondition, Section = 3)]
[Range(0, 0.5f, ConfigUnitType.Percent, 0.02f)]
public float HealthDifference { get; set; } = 0.25f;

Expand All @@ -491,13 +492,13 @@ public const string
public float MistakeRatio { get; set; } = 0;

[UI("Heal tank first if their HP is lower than this.",
Filter = AutoActionCondition, Section = 1,
Filter = HealingActionCondition, Section = 1,
PvEFilter = JobFilterType.Healer, PvPFilter = JobFilterType.Healer)]
[Range(0, 1, ConfigUnitType.Percent, 0.02f)]
public float HealthTankRatio { get; set; } = 0.4f;

[UI("Heal healer first if their HP is lower than this.",
Filter = AutoActionCondition, Section = 1,
Filter = HealingActionCondition, Section = 1,
PvEFilter = JobFilterType.Healer, PvPFilter = JobFilterType.Healer)]
[Range(0, 1, ConfigUnitType.Percent, 0.02f)]
public float HealthHealerRatio { get; set; } = 0.4f;
Expand Down Expand Up @@ -633,7 +634,7 @@ public const string
public float MinUpdatingTime { get; set; } = 0.01f;

[UI("The HP for using Guard.",
Filter = AutoActionCondition, Section = 3,
Filter = HealingActionCondition, Section = 3,
PvEFilter = JobFilterType.NoJob)]
[Range(0, 1, ConfigUnitType.Percent, 0.02f)]
public float HealthForGuard { get; set; } = 0.15f;
Expand Down
6 changes: 6 additions & 0 deletions RotationSolver/Data/UiString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,12 @@ internal enum UiString
[Description("Action Condition")]
ConfigWindow_Auto_ActionCondition,

[Description("Healing Condition")]
ConfigWindow_Auto_HealingCondition,

[Description("How RSR should use healing abilities")]
ConfigWindow_Auto_HealingCondition_Description,

[Description("State Condition")]
ConfigWindow_Auto_StateCondition,

Expand Down
Loading

0 comments on commit d38c736

Please sign in to comment.