Skip to content

Commit

Permalink
Merge pull request #567 from FFXIV-CombatReborn/mergeWIP
Browse files Browse the repository at this point in the history
reverse party NPC change from vbm: not all solo duties have a content ID larger than 0
  • Loading branch information
CarnifexOptimus authored Jan 20, 2025
2 parents d0809b0 + 6c9b350 commit 68b4ac3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 18 deletions.
8 changes: 3 additions & 5 deletions BossMod/Framework/WorldStateGameSync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -518,19 +518,17 @@ private unsafe void UpdatePartyAlliance(GroupManager.Group* group)

private unsafe void UpdatePartyNPCs()
{
var treatAlliesAsParty = _ws.CurrentCFCID != 0; // TODO: think more about it, do we ever care about allies in overworld?..
for (int i = PartyState.MaxAllianceSize; i < PartyState.MaxAllies; ++i)
for (var i = PartyState.MaxAllianceSize; i < PartyState.MaxAllies; ++i)
{
ref var m = ref _ws.Party.Members[i];
if (m.InstanceId != 0)
{
var actor = treatAlliesAsParty ? _ws.Actors.Find(m.InstanceId) : null;
var actor = _ws.Actors.Find(m.InstanceId);
if (actor == null || !actor.IsFriendlyNPC)
UpdatePartySlot(i, PartyState.EmptySlot);
}
}
if (!treatAlliesAsParty)
return;

foreach (var actor in _ws.Actors)
{
if (!actor.IsFriendlyNPC)
Expand Down
1 change: 1 addition & 0 deletions BossMod/Modules/Dawntrail/Quest/MSQ/TakingAStand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ float kbdist(WPos playerPos)
hints.AddForbiddenZone(kbdist, source.Activation);
}
}

class RiotousRampage(BossModule module) : Components.CastTowers(module, ActionID.MakeSpell(AID.RiotousRampage), 4);
class Roar1(BossModule module) : Components.RaidwideCast(module, ActionID.MakeSpell(AID.Roar1));
class Roar2(BossModule module) : Components.RaidwideCast(module, ActionID.MakeSpell(AID.Roar2));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,12 @@ public enum AID : uint
DeadlyTentaclesTB = 26997, // Boss->Estinien, 5.0s cast, single-target
TentacleWhipLFirst = 27004, // Boss->self, 5.0s cast, range 60 180-degree cone
TentacleWhipRSecond = 27006, // Helper->self, 7.0s cast, range 60 180-degree cone
SelfDestruct = 26991, // TerminusDetonator->self, no cast, range 6 circle
Petrifaction = 26999, // Boss->self, 4.0s cast, range 60 circle
TentacleWhipRFirst = 27001, // Boss->self, 5.0s cast, range 60 180-degree cone
TentacleWhipLSecond = 27003, // Helper->self, 7.0s cast, range 60 180-degree cone
Whack = 27007, // Boss->35F5, 5.0s cast, single-target
}
SelfDestruct = 26991, // TerminusDetonator->self, no cast, range 6 circle
Petrifaction = 26999, // Boss->self, 4.0s cast, range 60 circle

public enum IconID : uint
{
Stack = 218 // Estinien
Whack = 27007, // Boss->Estinien, 5.0s cast, single-target
}

public enum TetherID : uint
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BossMod.Endwalker.Quest.AsTheHeavensBurn.P3TerminusLacerator;
namespace BossMod.Endwalker.Quest.AsTheHeavensBurn.P3TerminusVanquisher;

public enum OID : uint
{
Expand Down Expand Up @@ -59,11 +59,11 @@ class ForcefulImpact2(BossModule module) : Components.SimpleAOEs(module, ActionI
class Shock(BossModule module) : Components.SimpleAOEs(module, ActionID.MakeSpell(AID.Shock), 10, 6);
class Depress(BossModule module) : Components.StackWithCastTargets(module, ActionID.MakeSpell(AID.Depress), 7);

class TerminusLaceratorStates : StateMachineBuilder
class TerminusVanquisherStates : StateMachineBuilder
{
private readonly TerminusLacerator _module;
private readonly TerminusVanquisher _module;

public TerminusLaceratorStates(TerminusLacerator module) : base(module)
public TerminusVanquisherStates(TerminusVanquisher module) : base(module)
{
_module = module;

Expand All @@ -85,8 +85,8 @@ public TerminusLaceratorStates(TerminusLacerator module) : base(module)
}
}

[ModuleInfo(BossModuleInfo.Maturity.Contributed, GroupType = BossModuleInfo.GroupType.CFC, GroupID = 804, NameID = 10933)]
public class TerminusLacerator(WorldState ws, Actor primary) : BossModule(ws, primary, new(-260.28f, 80.75f), new ArenaBoundsCircle(19.5f))
[ModuleInfo(BossModuleInfo.Maturity.Contributed, GroupType = BossModuleInfo.GroupType.CFC, GroupID = 804, NameID = 10935)]
public class TerminusVanquisher(WorldState ws, Actor primary) : BossModule(ws, primary, new(-260.28f, 80.75f), new ArenaBoundsCircle(19.5f))
{
public Actor? BossP2 => Enemies(OID.TerminusVanquisher)[0];

Expand Down

0 comments on commit 68b4ac3

Please sign in to comment.