Skip to content

Commit

Permalink
namespace fix and add ASleepDisturbed
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaksuhn committed May 4, 2024
1 parent d4a3ef3 commit 1d4f3bf
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 1 deletion.
69 changes: 69 additions & 0 deletions BossMod/Modules/Endwalker/Quest/ASleepDisturbed.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
namespace BossMod.Endwalker.Quest.ASleepDisturbed;

public enum OID : uint
{
Uimet = 0x2D3F, // R0.500, x?
Cymet = 0x2D40, // R0.500, x?
Almet = 0x2D3E, // R0.500, x?
Yshtola = 0x2D3D, // R0.500, x?
BossHelper = 0x233C, // R0.500, x?, 523 type
Boss = 0x2D3C, // R7.500, x?
ThornHuaca = 0x2D42, // R1.600, x?, Voidgate helper?
Voidgate = 0x2D44, // R1.000, x?
CubusHuaca = 0x2D43, // R2.250, x?, adds
}

public enum AID : uint
{
TheTouchOfShadowCast = 19616, // Boss->self, 4.0s cast, single-target
TheTouchOfShadow = 19617, // BossHelper->self, 4.0s cast, range 70 circle
TheMarrowOfFlameCast = 19612, // Boss->self, 8.0s cast, ???
TheMarrowOfFlame = 19613, // BossHelper->player/Cymet/Uimet/Almet/Yshtola, 8.0s cast, range 8 circle
TheGraceOfCalamityCast = 19614, // Boss->self, 5.0s cast, single-target
TheGraceOfCalamity = 19615, // BossHelper->Yshtola, 5.0s cast, range 6 circle
Summon = 19622, // Boss->self, 3.0s cast, single-target
TimeAfar = 19619, // Boss->self, 3.0s cast, single-target
AetherialPull = 19620, // Voidgate->player/Cymet, no cast, single-target
LimbsOfLead = 19621, // Voidgate->player/Cymet, no cast, single-target
BurningBeam = 19623, // ThornHuaca->Cymet/Yshtola/Almet/Uimet, no cast, range 40 width 4 rect
BurningBeam2 = 19624, // ThornHuaca->player/Yshtola/Almet/Uimet, no cast, range 40 width 4 rect
TheSoundOfHeat = 19618, // Boss->self, 4.0s cast, range 60 60-degree cone
TheDeceitOfPainCast = 19628, // Boss->self, 5.0s cast, ???
TheDeceitOfPain = 19629, // BossHelper->location, 5.0s cast, range 14 circle
Animate = 19630, // Boss->self, 5.0s cast, single-target
TheBalmOfDisgraceCast = 19626, // Boss->self, 4.0s cast, ???
TheBalmOfDisgrace = 19627, // BossHelper->self, 4.0s cast, range 12 circle
}

public enum TetherID : uint
{
NPCBaitAway = 1, // ThornHuaca->player/Cymet/Yshtola/Almet/Uimet
BaitAway = 84, // ThornHuaca->Cymet/player
}

class TouchOfShadow(BossModule module) : Components.RaidwideCast(module, ActionID.MakeSpell(AID.TheTouchOfShadow));
class MarrowOfFlame(BossModule module) : Components.SpreadFromCastTargets(module, ActionID.MakeSpell(AID.TheMarrowOfFlame), 8);
class GraceOfCalamity(BossModule module) : Components.StackWithCastTargets(module, ActionID.MakeSpell(AID.TheGraceOfCalamity), 6);
class BurningBeamNPC(BossModule module) : Components.BaitAwayTethers(module, new AOEShapeRect(40, 2), (uint)TetherID.NPCBaitAway);
class BurningBeamPlayer(BossModule module) : Components.BaitAwayTethers(module, new AOEShapeRect(40, 2), (uint)TetherID.BaitAway);
class SoundOfHeat(BossModule module) : Components.SelfTargetedAOEs(module, ActionID.MakeSpell(AID.TheSoundOfHeat), new AOEShapeCone(60, 30.Degrees()));
class DeceitOfPain(BossModule module) : Components.LocationTargetedAOEs(module, ActionID.MakeSpell(AID.TheDeceitOfPain), 14);
class BalmOfDisgrace(BossModule module) : Components.SelfTargetedAOEs(module, ActionID.MakeSpell(AID.TheBalmOfDisgrace), new AOEShapeCircle(12));
class ASleepDisturbedStates : StateMachineBuilder
{
public ASleepDisturbedStates(BossModule module) : base(module)
{
TrivialPhase()
.ActivateOnEnter<TouchOfShadow>()
.ActivateOnEnter<MarrowOfFlame>()
.ActivateOnEnter<GraceOfCalamity>()
.ActivateOnEnter<BurningBeamNPC>()
.ActivateOnEnter<BurningBeamPlayer>()
.ActivateOnEnter<SoundOfHeat>()
.ActivateOnEnter<DeceitOfPain>()
.ActivateOnEnter<BalmOfDisgrace>();
}
}

[ModuleInfo(BossModuleInfo.Maturity.Contributed, Contributors = "croizat", GroupType = BossModuleInfo.GroupType.Quest, GroupID = 69301, NameID = 9296)]
public class ASleepDisturbed(WorldState ws, Actor primary) : BossModule(ws, primary, new ArenaBoundsSquare(new(100, 100), 20));

Check failure on line 69 in BossMod/Modules/Endwalker/Quest/ASleepDisturbed.cs

View workflow job for this annotation

GitHub Actions / Build

'float' does not contain a constructor that takes 2 arguments

Check failure on line 69 in BossMod/Modules/Endwalker/Quest/ASleepDisturbed.cs

View workflow job for this annotation

GitHub Actions / Build

There is no argument given that corresponds to the required parameter 'bounds' of 'BossModule.BossModule(WorldState, Actor, WPos, ArenaBounds)'

Check failure on line 69 in BossMod/Modules/Endwalker/Quest/ASleepDisturbed.cs

View workflow job for this annotation

GitHub Actions / Build

'float' does not contain a constructor that takes 2 arguments

Check failure on line 69 in BossMod/Modules/Endwalker/Quest/ASleepDisturbed.cs

View workflow job for this annotation

GitHub Actions / Build

There is no argument given that corresponds to the required parameter 'bounds' of 'BossModule.BossModule(WorldState, Actor, WPos, ArenaBounds)'
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BossMod.Endwalker.Quest;
namespace BossMod.Endwalker.Quest.VowsOfVirtueDeedsOfCruelty;

public enum OID : uint
{
Expand Down

0 comments on commit 1d4f3bf

Please sign in to comment.