Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Direction override option for PLD Passage of Arms #588

Merged
merged 1 commit into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions BossMod/ActionQueue/Tanks/PLD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,14 @@ public void Dispose() { }

private void Customize(ActionDefinitions d)
{
d.Spell(AID.PassageOfArms)!.TransformAngle = (ws, player, _, _) => _config.Wings switch
{
PLDConfig.WingsBehavior.CharacterForward => player.Rotation + 180.Degrees(),
PLDConfig.WingsBehavior.CameraBackward => ws.Client.CameraAzimuth + 180.Degrees(),
PLDConfig.WingsBehavior.CameraForward => ws.Client.CameraAzimuth,
_ => null
};

d.Spell(AID.Intervention)!.SmartTarget = ActionDefinitions.SmartTargetCoTank;
d.Spell(AID.HolySpirit)!.ForbidExecute = (ws, player, _, _) => _config.ForbidEarlyHolySpirit && !player.InCombat && ws.Client.CountdownRemaining > 1.75f;
d.Spell(AID.ShieldLob)!.ForbidExecute = (ws, player, _, _) => _config.ForbidEarlyShieldLob && !player.InCombat && ws.Client.CountdownRemaining > 0.7f;
Expand Down
18 changes: 18 additions & 0 deletions BossMod/ActionTweaks/ClassActions/PLDConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,22 @@ class PLDConfig : ConfigNode

[PropertyDisplay("Prevent use of 'Shield Lob' too early when in pre-pull (if Holy Spirit is not unlocked)")]
public bool ForbidEarlyShieldLob = true;

public enum WingsBehavior : uint
{
[PropertyDisplay("Game default (character-relative, backwards)")]
Default = 0,

[PropertyDisplay("Character-relative, forwards")]
CharacterForward = 1,

[PropertyDisplay("Camera-relative, backwards")]
CameraBackward = 2,

[PropertyDisplay("Camera-relative, forwards")]
CameraForward = 3,
}

[PropertyDisplay("Passage of Arms direction")]
public WingsBehavior Wings = WingsBehavior.Default;
}