Skip to content

Commit

Permalink
VPR update
Browse files Browse the repository at this point in the history
added All-in-one Reawaken combo
  • Loading branch information
MKhayle committed Jul 14, 2024
1 parent 3559097 commit 69c85e4
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
41 changes: 41 additions & 0 deletions XIVComboExpanded/Combos/VPR.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,47 @@ protected override uint Invoke(uint actionID, uint lastComboMove, float comboTim
}
}

internal class AutoGenerationLegacies : CustomCombo
{
protected internal override CustomComboPreset Preset { get; } = CustomComboPreset.ViperAutoGenerationsLegaciesFeature;

protected override uint Invoke(uint actionID, uint lastComboMove, float comboTime, byte level)
{
if (actionID == VPR.Reawaken && HasEffect(VPR.Buffs.Reawakened))
{
var gauge = GetJobGauge<VPRGauge>();
var maxtribute = 4;

if (level == 100)
{
if (OriginalHook(VPR.SerpentsTail) == VPR.FirstLegacy)
return VPR.FirstLegacy;
if (OriginalHook(VPR.SerpentsTail) == VPR.SecondLegacy)
return VPR.SecondLegacy;
if (OriginalHook(VPR.SerpentsTail) == VPR.ThirdLegacy)
return VPR.ThirdLegacy;
if (OriginalHook(VPR.SerpentsTail) == VPR.FourthLegacy)
return VPR.FourthLegacy;
}

if (level >= VPR.Levels.Ouroboros)
maxtribute = 5;
if (gauge.AnguineTribute == maxtribute)
return VPR.FirstGeneration;
if (gauge.AnguineTribute == maxtribute - 1)
return VPR.SecondGeneration;
if (gauge.AnguineTribute == maxtribute - 2)
return VPR.ThirdGeneration;
if (gauge.AnguineTribute == maxtribute - 3)
return VPR.FourthGeneration;
if (gauge.AnguineTribute == 1 && level >= VPR.Levels.Ouroboros)
return VPR.Ouroboros;
}

return actionID;
}
}

internal class GenerationLegacies : CustomCombo
{
protected internal override CustomComboPreset Preset { get; } = CustomComboPreset.ViperGenerationLegaciesFeature;
Expand Down
4 changes: 4 additions & 0 deletions XIVComboExpanded/CustomComboPreset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,10 @@ public enum CustomComboPreset
[CustomComboInfo("Twin Coil AoE Feature", "Replace Swiftskin's Den and Hunter's Den with their respective Twinblood and Twinfang skills.", VPR.JobID)]
ViperTwinDenFeature = 4104,

[SecretCustomCombo]
[CustomComboInfo("All-in-one Reawaken Feature", "Replace Reawaken by the Generation skills with their respective Legacies in order.", VPR.JobID)]
ViperAutoGenerationsLegaciesFeature = 4123,

[CustomComboInfo("Generation Legacy Feature", "Replaces the Generation skills with their respective Legacies.", VPR.JobID)]
ViperGenerationLegaciesFeature = 4105,

Expand Down

0 comments on commit 69c85e4

Please sign in to comment.