Skip to content

Commit

Permalink
Add NIN Ninki Level Sync option
Browse files Browse the repository at this point in the history
Bhavacakra to Hellfrog Level Sync as per #442
  • Loading branch information
MKhayle committed Nov 17, 2024
1 parent bb6d260 commit 1497f4b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
20 changes: 20 additions & 0 deletions XIVComboExpanded/Combos/NIN.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public const uint
Suiton = 2271,
ArmorCrush = 3563,
DreamWithinADream = 3566,
Hellfrog = 7401,
Bhavacakra = 7402,
TenChiJin = 7403,
HakkeMujinsatsu = 16488,
Meisui = 16489,
Expand Down Expand Up @@ -300,3 +302,21 @@ protected override uint Invoke(uint actionID, uint lastComboActionID, float comb
return actionID;
}
}

internal class NinjaFrogLevelSync : CustomCombo
{
protected internal override CustomComboPreset Preset { get; } = CustomComboPreset.NinjaFrogLevelSyncFeature;

protected override uint Invoke(uint actionID, uint lastComboActionID, float comboTime, byte level)
{
if (actionID == NIN.Bhavacakra)
{
if (level < NIN.Levels.Bhavacakra)
{
return NIN.Hellfrog;
}
}

return actionID;
}
}
6 changes: 6 additions & 0 deletions XIVComboExpanded/CustomComboPreset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1347,6 +1347,12 @@ public enum CustomComboPreset
[CustomComboInfo("Hide to Ninjutsu", "Replace Hide with Ninjutsu if any Mudra are active. Takes precedence over Hide to Mug/Dokumori.", NIN.JobID)]
NinjaHideNinjutsuFeature = 3020,

[IconsCombo([NIN.Bhavacakra, UTL.ArrowLeft, NIN.Hellfrog])]
[SectionCombo("Level Synchronization")]
[ExpandedCustomCombo]
[CustomComboInfo("Bhavacakra to Hellfrog Level Sync", "Replace Bhavacakra with Hellfrog Medium when synced below 68.", NIN.JobID)]
NinjaFrogLevelSyncFeature = 3024,

#endregion
// ====================================================================================
#region PALADIN
Expand Down

0 comments on commit 1497f4b

Please sign in to comment.