-
Notifications
You must be signed in to change notification settings - Fork 120
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 #304 from CarnifexOptimus/slave_cagnazzo
Lapis Manalis modules
- Loading branch information
Showing
9 changed files
with
1,038 additions
and
1 deletion.
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
51 changes: 51 additions & 0 deletions
51
BossMod/Modules/Endwalker/Dungeon/D11LapisManalis/D130AlbusGriffin.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,51 @@ | ||
// CONTRIB: made by malediktus, not checked | ||
using System.Linq; | ||
|
||
namespace BossMod.Endwalker.Dungeon.D13LapisManalis.D130AlbusGriffin | ||
{ | ||
public enum OID : uint | ||
{ | ||
Boss = 0x3E9F, //R=4.6 | ||
} | ||
|
||
public enum AID : uint | ||
{ | ||
AutoAttack = 870, // Boss->player, no cast, single-target | ||
WindsOfWinter = 32785, // Boss->self, 5,0s cast, range 40 circle | ||
Freefall = 32786, // Boss->location, 3,5s cast, range 8 circle | ||
GoldenTalons = 32787, // Boss->self, 4,5s cast, range 8 90-degree cone | ||
}; | ||
|
||
class WindsOfWinter : Components.RaidwideCast | ||
{ | ||
public WindsOfWinter() : base(ActionID.MakeSpell(AID.WindsOfWinter), "Stun Albus Griffin, Raidwide") { } | ||
} | ||
|
||
class GoldenTalons : Components.SelfTargetedAOEs | ||
{ | ||
public GoldenTalons() : base(ActionID.MakeSpell(AID.GoldenTalons), new AOEShapeCone(8, 45.Degrees())) { } | ||
} | ||
|
||
class Freefall : Components.LocationTargetedAOEs | ||
{ | ||
public Freefall() : base(ActionID.MakeSpell(AID.Freefall), 8) { } | ||
} | ||
|
||
class D130AlbusGriffinStates : StateMachineBuilder | ||
{ | ||
public D130AlbusGriffinStates(BossModule module) : base(module) | ||
{ | ||
TrivialPhase() | ||
.ActivateOnEnter<Freefall>() | ||
.ActivateOnEnter<WindsOfWinter>() | ||
.ActivateOnEnter<GoldenTalons>() | ||
.Raw.Update = () => module.Enemies(OID.Boss).All(e => e.IsDead); | ||
} | ||
} | ||
|
||
[ModuleInfo(CFCID = 896, NameID = 12245)] | ||
public class D130AlbusGriffin : BossModule | ||
{ | ||
public D130AlbusGriffin(WorldState ws, Actor primary) : base(ws, primary, new ArenaBoundsRect(new(47, -570.5f), 8.5f, 11.5f)) { } | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
BossMod/Modules/Endwalker/Dungeon/D11LapisManalis/D130CaladriusMaturus.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,46 @@ | ||
// CONTRIB: made by malediktus, not checked | ||
using System.Linq; | ||
|
||
namespace BossMod.Endwalker.Dungeon.D13LapisManalis.D130CaladriusMaturus | ||
{ | ||
public enum OID : uint | ||
{ | ||
Boss = 0x3D56, //R=3.96 | ||
Caladrius = 0x3CE2, //R=1.8 | ||
} | ||
|
||
public enum AID : uint | ||
{ | ||
AutoAttack = 872, // Caladrius/Boss->player, no cast, single-target | ||
TransonicBlast = 32535, // Caladrius->self, 4,0s cast, range 9 90-degree cone | ||
}; | ||
|
||
class TransonicBlast : Components.SelfTargetedAOEs | ||
{ | ||
public TransonicBlast() : base(ActionID.MakeSpell(AID.TransonicBlast), new AOEShapeCone(9, 45.Degrees())) { } | ||
} | ||
|
||
class D130CaladriusMaturusStates : StateMachineBuilder | ||
{ | ||
public D130CaladriusMaturusStates(BossModule module) : base(module) | ||
{ | ||
TrivialPhase() | ||
.ActivateOnEnter<TransonicBlast>() | ||
.Raw.Update = () => module.Enemies(OID.Boss).All(e => e.IsDead) && module.Enemies(OID.Caladrius).All(e => e.IsDead); | ||
} | ||
} | ||
|
||
[ModuleInfo(CFCID = 896, NameID = 12078)] | ||
public class D130CaladriusMaturus : BossModule | ||
{ | ||
public D130CaladriusMaturus(WorldState ws, Actor primary) : base(ws, primary, new ArenaBoundsRect(new(47, -570.5f), 8.5f, 11.5f)) { } | ||
|
||
protected override void DrawEnemies(int pcSlot, Actor pc) | ||
{ | ||
Arena.Actor(PrimaryActor, ArenaColor.Enemy); | ||
foreach (var s in Enemies(OID.Caladrius)) | ||
Arena.Actor(s, ArenaColor.Enemy); | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.