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

Commit

Permalink
Merge pull request #1762 from memorial36b/PCT_AoE_Holy
Browse files Browse the repository at this point in the history
[PCT] Add AoE Holy in White feature
  • Loading branch information
Taurenkey authored Sep 14, 2024
2 parents 82e9bd0 + 440e7dd commit e0dbc69
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 12 deletions.
27 changes: 15 additions & 12 deletions XIVSlothCombo/Combos/CustomComboPreset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2561,15 +2561,15 @@ public enum CustomComboPreset
PCT_AoE_AdvancedMode = 20040,

[ParentCombo(PCT_AoE_AdvancedMode)]
[CustomComboInfo("Prepull Motifs Feature", "Adds missing Motifs to the combo while out of combat.", PCT.JobID)]
[CustomComboInfo("Prepull Motifs Feature", "Adds missing Motifs to the combo while out of combat.", PCT.JobID, 1)]
PCT_AoE_AdvancedMode_PrePullMotifs = 20041,

[ParentCombo(PCT_AoE_AdvancedMode_PrePullMotifs)]
[CustomComboInfo("Downtime Motifs Option", "Adds missing Motifs to the combo while no target is present in combat.", PCT.JobID)]
PCT_AoE_AdvancedMode_NoTargetMotifs = 20042,

[ParentCombo(PCT_AoE_AdvancedMode)]
[CustomComboInfo("Starry Muse Burst Feature", $"Adds selected spells below to the burst phase.", PCT.JobID)]
[CustomComboInfo("Starry Muse Burst Feature", $"Adds selected spells below to the burst phase.", PCT.JobID, 2)]
PCT_AoE_AdvancedMode_Burst_Phase = 20043,

[ParentCombo(PCT_AoE_AdvancedMode_Burst_Phase)]
Expand All @@ -2593,7 +2593,7 @@ public enum CustomComboPreset
PCT_AoE_AdvancedMode_Burst_BlizzardInCyan = 20048,

[ParentCombo(PCT_AoE_AdvancedMode)]
[CustomComboInfo("Motif Selection Feature", $"Add Selected Motifs to the combo.", PCT.JobID)]
[CustomComboInfo("Motif Selection Feature", $"Add Selected Motifs to the combo.", PCT.JobID, 3)]
PCT_AoE_AdvancedMode_MotifFeature = 20049,

[ParentCombo(PCT_AoE_AdvancedMode_MotifFeature)]
Expand All @@ -2609,7 +2609,7 @@ public enum CustomComboPreset
PCT_AoE_AdvancedMode_WeaponMotif = 20052,

[ParentCombo(PCT_AoE_AdvancedMode)]
[CustomComboInfo("Muse Selection Feature", $"Adds Selected Muses to the combo.", PCT.JobID)]
[CustomComboInfo("Muse Selection Feature", $"Adds Selected Muses to the combo.", PCT.JobID, 4)]
PCT_AoE_AdvancedMode_MuseFeature = 20053,

[ParentCombo(PCT_AoE_AdvancedMode_MuseFeature)]
Expand All @@ -2625,23 +2625,27 @@ public enum CustomComboPreset
PCT_AoE_AdvancedMode_SteelMuse = 20056,

[ParentCombo(PCT_AoE_AdvancedMode)]
[CustomComboInfo("Mog/Madeen Feature", $"Adds Mog/Madeen to the combo.", PCT.JobID)]
[CustomComboInfo("Mog/Madeen Feature", $"Adds Mog/Madeen to the combo.", PCT.JobID, 5)]
PCT_AoE_AdvancedMode_MogOfTheAges = 20057,

[ParentCombo(PCT_AoE_AdvancedMode)]
[CustomComboInfo("Subtractive Palette Feature", $"Adds Subtractive Palette to the combo.", PCT.JobID)]
[CustomComboInfo("Subtractive Palette Feature", $"Adds Subtractive Palette to the combo.", PCT.JobID, 6)]
PCT_AoE_AdvancedMode_SubtractivePalette = 20058,

[ParentCombo(PCT_AoE_AdvancedMode)]
[CustomComboInfo("Comet in Black Option", $"Adds Comet in Black to the combo.", PCT.JobID)]
[CustomComboInfo("Comet in Black Option", $"Adds Comet in Black to the combo.", PCT.JobID, 7)]
PCT_AoE_AdvancedMode_CometinBlack = 20059,

[ParentCombo(PCT_AoE_AdvancedMode)]
[CustomComboInfo("Hammer Stamp Combo Option", $"Adds Hammer Stamp combo.", PCT.JobID)]
[CustomComboInfo("Hammer Stamp Combo Option", $"Adds Hammer Stamp combo.", PCT.JobID, 8)]
PCT_AoE_AdvancedMode_HammerStampCombo = 20060,

[ParentCombo(PCT_AoE_AdvancedMode)]
[CustomComboInfo("Movement Features", $"Adds selected features to the combo while moving.", PCT.JobID)]
[CustomComboInfo("Holy in White Option", $"Adds Holy in White to the combo.", PCT.JobID, 9)]
PCT_AoE_AdvancedMode_HolyinWhite = 20068,

[ParentCombo(PCT_AoE_AdvancedMode)]
[CustomComboInfo("Movement Features", $"Adds selected features to the combo while moving.", PCT.JobID, 10)]
PCT_AoE_AdvancedMode_MovementFeature = 20061,

[ParentCombo(PCT_AoE_AdvancedMode_MovementFeature)]
Expand All @@ -2661,11 +2665,11 @@ public enum CustomComboPreset
PCT_AoE_AdvancedMode_SwitfcastOption = 20065,

[ParentCombo(PCT_AoE_AdvancedMode)]
[CustomComboInfo("Blizzard in Cyan Option", $"Adds Blizzard in Cyan to the combo.", PCT.JobID)]
[CustomComboInfo("Blizzard in Cyan Option", $"Adds Blizzard in Cyan to the combo.", PCT.JobID, 11)]
PCT_AoE_AdvancedMode_BlizzardInCyan = 20066,

[ParentCombo(PCT_AoE_AdvancedMode)]
[CustomComboInfo("Lucid Dreaming Option", $"Adds Lucid Dreaming to the combo.", PCT.JobID)]
[CustomComboInfo("Lucid Dreaming Option", $"Adds Lucid Dreaming to the combo.", PCT.JobID, 12)]
PCT_AoE_AdvancedMode_LucidDreaming = 20067,

[ReplaceSkill(PCT.FireInRed, PCT.FireIIinRed)]
Expand All @@ -2681,7 +2685,6 @@ public enum CustomComboPreset
[CustomComboInfo("One Button Paint", "Consolidates paint-consuming actions into one button.", PCT.JobID)]
CombinedPaint = 20004,

// Last value for AoE = 20067
#endregion

#region Variant
Expand Down
10 changes: 10 additions & 0 deletions XIVSlothCombo/Combos/PvE/PCT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public const uint
AeroInGreen = 34651,
WaterInBlue = 34652,
FireIIinRed = 34656,
AeroIIinGreen = 34657,
HammerMotif = 34668,
WingedMuse = 34671,
StrikingMuse = 34674,
Expand All @@ -47,6 +48,7 @@ public const uint
StarPrism = 34681,
SteelMuse = 35348,
SubtractivePalette = 34683,
StoneIIinYellow = 34660,
ThunderIIinMagenta = 34661,
ThunderinMagenta = 34655,
WaterinBlue = 34652,
Expand Down Expand Up @@ -77,6 +79,7 @@ public static class Config
public static UserInt
CombinedAetherhueChoices = new("CombinedAetherhueChoices"),
PCT_ST_AdvancedMode_LucidOption = new("PCT_ST_AdvancedMode_LucidOption", 6500),
PCT_AoE_AdvancedMode_HolyinWhiteOption = new("PCT_AoE_AdvancedMode_HolyinWhiteOption", 0),
PCT_AoE_AdvancedMode_LucidOption = new("PCT_AoE_AdvancedMode_LucidOption", 6500),
PCT_VariantCure = new("PCT_VariantCure");
PCT_ST_CreatureStop = new("PCT_ST_CreatureStop"),
Expand Down Expand Up @@ -1037,6 +1040,13 @@ protected override uint Invoke(uint actionID, uint lastComboActionID, float comb
}
}

if (IsEnabled(CustomComboPreset.PCT_AoE_AdvancedMode_HolyinWhite) && !HasEffect(Buffs.StarryMuse) && !HasEffect(Buffs.MonochromeTones))
{
if (gauge.Paint > Config.PCT_AoE_AdvancedMode_HolyinWhiteOption ||
(Config.PCT_AoE_AdvancedMode_HolyinWhiteOption == 5 && gauge.Paint == 5 && !HasEffect(Buffs.HammerTime) &&
(HasEffect(Buffs.RainbowBright) || WasLastSpell(AeroIIinGreen) || WasLastSpell(StoneIIinYellow))))
return OriginalHook(HolyInWhite);
}

if (HasEffect(Buffs.RainbowBright) && !HasEffect(Buffs.StarryMuse))
return RainbowDrip;
Expand Down
6 changes: 6 additions & 0 deletions XIVSlothCombo/Window/Functions/UserConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1702,6 +1702,12 @@ internal static void Draw(CustomComboPreset preset, bool enabled)
{
UserConfig.DrawSliderInt(0, 10000, PCT.Config.PCT_ST_AdvancedMode_LucidOption, "Add Lucid Dreaming when below this MP", sliderIncrement: SliderIncrements.Hundreds);
}

if (preset == CustomComboPreset.PCT_AoE_AdvancedMode_HolyinWhite)
{
UserConfig.DrawSliderInt(0, 5, PCT.Config.PCT_AoE_AdvancedMode_HolyinWhiteOption, "How many charges to keep ready? (0 = Use all)");
}

if(preset == CustomComboPreset.PCT_AoE_AdvancedMode_LucidDreaming)
{
UserConfig.DrawSliderInt(0, 10000, PCT.Config.PCT_AoE_AdvancedMode_LucidOption, "Add Lucid Dreaming when below this MP", sliderIncrement: SliderIncrements.Hundreds);
Expand Down

0 comments on commit e0dbc69

Please sign in to comment.