forked from awgil/ffxiv_bossmod
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #545 from FFXIV-CombatReborn/mergeWIP
DRS and DRN improvement
- Loading branch information
Showing
14 changed files
with
114 additions
and
96 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
BossMod/Modules/Shadowbringers/Foray/DRTrinitySeekerSharedBounds.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
namespace BossMod.Shadowbringers.Foray.DelubrumReginae; | ||
|
||
public abstract class TrinitySeeker(WorldState ws, Actor primary) : BossModule(ws, primary, StartingArena.Center, StartingArena) | ||
{ | ||
private static readonly WPos ArenaCenter = new(0, 278); | ||
private static readonly DonutSegmentV[] barricades = [.. GenerateBarricades(), .. GenerateBarricadesHitBoxCushion()]; | ||
|
||
private static List<DonutSegmentV> GenerateBarricades() | ||
{ | ||
List<DonutSegmentV> barricades = new(4); | ||
for (var i = 0; i < 4; ++i) | ||
barricades.Add(new(ArenaCenter, 18.7f, 21.6f, 45.Degrees() + 90.Degrees() * i, 22.5f.Degrees(), 6)); | ||
return barricades; | ||
} | ||
private static List<DonutSegmentV> GenerateBarricadesHitBoxCushion() | ||
{ | ||
List<DonutSegmentV> barricades = new(8); | ||
for (var i = 0; i < 4; ++i) | ||
{ | ||
barricades.Add(new(ArenaCenter, 18.7f, 21.6f, 26.1f.Degrees() + 90.Degrees() * i, 5.Degrees(), 2)); | ||
barricades.Add(new(ArenaCenter, 18.7f, 21.6f, 63.9f.Degrees() + 90.Degrees() * i, 5.Degrees(), 2)); | ||
} | ||
return barricades; | ||
} | ||
|
||
public static readonly ArenaBoundsComplex StartingArena = new([new Polygon(ArenaCenter, 29.5f, 48)], [.. barricades, new Rectangle(new(0, 248), 20, 1.25f), new Rectangle(new(0, 308), 20, 1.43f)]); | ||
public static readonly ArenaBoundsComplex DefaultArena = new([new Polygon(ArenaCenter, 25, 48)], barricades); | ||
} |
24 changes: 24 additions & 0 deletions
24
BossMod/Modules/Shadowbringers/Foray/DelubrumReginaeNormal/DRN1TrinitySeeker/ArenaChange.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace BossMod.Shadowbringers.Foray.DelubrumReginae.Normal.DRN1TrinitySeeker; | ||
|
||
class ArenaChange(BossModule module) : Components.GenericAOEs(module) | ||
{ | ||
private static readonly AOEShapeDonut donut = new(25, 30); | ||
private AOEInstance? _aoe; | ||
|
||
public override IEnumerable<AOEInstance> ActiveAOEs(int slot, Actor actor) => Utils.ZeroOrOne(_aoe); | ||
public override void OnCastStarted(Actor caster, ActorCastInfo spell) | ||
{ | ||
if ((AID)spell.Action.ID == AID.VerdantTempest && Arena.Bounds == TrinitySeeker.StartingArena) | ||
_aoe = new(donut, Arena.Center, default, Module.CastFinishAt(spell, 3.8f)); | ||
} | ||
|
||
public override void OnEventEnvControl(byte index, uint state) | ||
{ | ||
if (state == 0x00020001 && index == 0x1B) | ||
{ | ||
Arena.Bounds = TrinitySeeker.DefaultArena; | ||
Arena.Center = TrinitySeeker.DefaultArena.Center; | ||
_aoe = null; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
BossMod/Modules/Shadowbringers/Foray/DelubrumReginaeSavage/DRS1TrinitySeeker/ArenaChange.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace BossMod.Shadowbringers.Foray.DelubrumReginae.DRS1TrinitySeeker; | ||
|
||
class ArenaChange(BossModule module) : Components.GenericAOEs(module) | ||
{ | ||
private static readonly AOEShapeDonut donut = new(25, 30); | ||
private AOEInstance? _aoe; | ||
|
||
public override IEnumerable<AOEInstance> ActiveAOEs(int slot, Actor actor) => Utils.ZeroOrOne(_aoe); | ||
public override void OnCastStarted(Actor caster, ActorCastInfo spell) | ||
{ | ||
if ((AID)spell.Action.ID == AID.VerdantTempest && Arena.Bounds == TrinitySeeker.StartingArena) | ||
_aoe = new(donut, Arena.Center, default, Module.CastFinishAt(spell, 3.8f)); | ||
} | ||
|
||
public override void OnEventEnvControl(byte index, uint state) | ||
{ | ||
if (state == 0x00020001 && index == 0x1B) | ||
{ | ||
Arena.Bounds = TrinitySeeker.DefaultArena; | ||
Arena.Center = TrinitySeeker.DefaultArena.Center; | ||
_aoe = null; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
BossMod/Modules/Shadowbringers/Foray/DelubrumReginaeSavage/DRS1TrinitySeeker/DRS1States.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters