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 #460 from FFXIV-CombatReborn/mergeWIP
Fafnir module updated
- Loading branch information
Showing
16 changed files
with
216 additions
and
120 deletions.
There are no files selected for viewing
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
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
71 changes: 18 additions & 53 deletions
71
BossMod/Modules/Dawntrail/Alliance/A12Fafnir/A12Fafnir.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 |
---|---|---|
@@ -1,69 +1,34 @@ | ||
namespace BossMod.Dawntrail.Alliance.A12Fafnir; | ||
|
||
class DarkMatterBlast(BossModule module) : Components.RaidwideCast(module, ActionID.MakeSpell(AID.DarkMatterBlast)); | ||
class HorridRoar2(BossModule module) : Components.LocationTargetedAOEs(module, ActionID.MakeSpell(AID.HorridRoarAOE), 4); | ||
class HorridRoar3(BossModule module) : Components.SpreadFromCastTargets(module, ActionID.MakeSpell(AID.HorridRoarSpread), 8); | ||
class HurricaneWingRaidwide(BossModule module) : Components.RaidwideCastDelay(module, ActionID.MakeSpell(AID.HurricaneWingVisual), ActionID.MakeSpell(AID.HurricaneWing1), 2.7f, "Raidwide x9"); | ||
class HorridRoarAOE(BossModule module) : Components.LocationTargetedAOEs(module, ActionID.MakeSpell(AID.HorridRoarAOE), 4); | ||
class HorridRoarSpread(BossModule module) : Components.SpreadFromCastTargets(module, ActionID.MakeSpell(AID.HorridRoarSpread), 8); | ||
class SpikeFlail(BossModule module) : Components.SelfTargetedAOEs(module, ActionID.MakeSpell(AID.SpikeFlail), new AOEShapeCone(80, 135.Degrees())); | ||
class Venom(BossModule module) : Components.SelfTargetedAOEs(module, ActionID.MakeSpell(AID.Venom), new AOEShapeCone(30, 60.Degrees())); | ||
class PestilentSphere(BossModule module) : Components.SingleTargetCast(module, ActionID.MakeSpell(AID.PestilentSphere)); | ||
class WingedTerror(BossModule module) : Components.SelfTargetedAOEs(module, ActionID.MakeSpell(AID.WingedTerror), new AOEShapeRect(70, 12.5f)); | ||
class AbsoluteTerror(BossModule module) : Components.SelfTargetedAOEs(module, ActionID.MakeSpell(AID.AbsoluteTerror), new AOEShapeRect(70, 10)); | ||
class Touchdown(BossModule module) : Components.SelfTargetedAOEs(module, ActionID.MakeSpell(AID.Touchdown), new AOEShapeCircle(24)); | ||
|
||
class HurricaneWing1(BossModule module) : Components.ConcentricAOEs(module, _shapes) | ||
class BalefulBreath(BossModule module) : Components.LineStack(module, (uint)IconID.LineStack, ActionID.MakeSpell(AID.BalefulBreath2), 8.2f, 70, 3, PartyState.MaxAllianceSize, PartyState.MaxAllianceSize, 3, false); | ||
class SharpSpike(BossModule module) : Components.BaitAwayIcon(module, new AOEShapeCircle(4), (uint)IconID.Tankbuster, ActionID.MakeSpell(AID.SharpSpike), 6.2f, true) | ||
{ | ||
private static readonly AOEShape[] _shapes = [new AOEShapeCircle(9), new AOEShapeDonut(9, 16), new AOEShapeDonut(16, 23), new AOEShapeDonut(23, 30)]; | ||
|
||
public override void OnCastStarted(Actor caster, ActorCastInfo spell) | ||
{ | ||
if ((AID)spell.Action.ID == AID.HurricaneWingConcentricA1) | ||
AddSequence(Arena.Center, Module.CastFinishAt(spell)); | ||
} | ||
|
||
public override void OnEventCast(Actor caster, ActorCastEvent spell) | ||
public override void AddGlobalHints(GlobalHints hints) | ||
{ | ||
if (Sequences.Count > 0) | ||
{ | ||
var order = (AID)spell.Action.ID switch | ||
{ | ||
AID.HurricaneWingConcentricA1 => 0, | ||
AID.HurricaneWingConcentricA2 => 1, | ||
AID.HurricaneWingConcentricA3 => 2, | ||
AID.HurricaneWingConcentricA4 => 3, | ||
_ => -1 | ||
}; | ||
AdvanceSequence(order, Arena.Center, WorldState.FutureTime(3)); | ||
} | ||
if (CurrentBaits.Count > 0) | ||
hints.Add("Tankbuster cleave"); | ||
} | ||
} | ||
|
||
class HurricaneWing2(BossModule module) : Components.ConcentricAOEs(module, _shapes) | ||
{ | ||
private static readonly AOEShape[] _shapes = [new AOEShapeCircle(9), new AOEShapeDonut(9, 16), new AOEShapeDonut(16, 23), new AOEShapeDonut(23, 30)]; | ||
|
||
public override void OnCastStarted(Actor caster, ActorCastInfo spell) | ||
{ | ||
if ((AID)spell.Action.ID == AID.HurricaneWingConcentricB1) | ||
AddSequence(Arena.Center, Module.CastFinishAt(spell)); | ||
} | ||
|
||
public override void OnEventCast(Actor caster, ActorCastEvent spell) | ||
{ | ||
if (Sequences.Count > 0) | ||
{ | ||
var order = (AID)spell.Action.ID switch | ||
{ | ||
AID.HurricaneWingConcentricB1 => 0, | ||
AID.HurricaneWingConcentricB2 => 1, | ||
AID.HurricaneWingConcentricB3 => 2, | ||
AID.HurricaneWingConcentricB4 => 3, | ||
_ => -1 | ||
}; | ||
AdvanceSequence(order, Arena.Center, WorldState.FutureTime(3)); | ||
} | ||
} | ||
} | ||
|
||
[ModuleInfo(BossModuleInfo.Maturity.WIP, Contributors = "The Combat Reborn Team (LTS)", GroupType = BossModuleInfo.GroupType.CFC, GroupID = 1015, NameID = 13662)] | ||
[ModuleInfo(BossModuleInfo.Maturity.Verified, Contributors = "The Combat Reborn Team (Malediktus, LTS)", GroupType = BossModuleInfo.GroupType.CFC, GroupID = 1015, NameID = 13662)] | ||
public class A12Fafnir(WorldState ws, Actor primary) : BossModule(ws, primary, ArenaCenter, new ArenaBoundsCircle(34.5f)) | ||
{ | ||
public static readonly WPos ArenaCenter = new(-500, 600); | ||
public static readonly ArenaBoundsCircle DefaultBounds = new(30); | ||
public static readonly ArenaBoundsCircle FireArena = new(16); | ||
|
||
protected override void DrawEnemies(int pcSlot, Actor pc) | ||
{ | ||
Arena.Actors(WorldState.Actors.Where(x => !x.IsAlly)); | ||
} | ||
} |
Oops, something went wrong.