Skip to content

Commit

Permalink
bomb enrage
Browse files Browse the repository at this point in the history
  • Loading branch information
xanunderscore committed Feb 1, 2025
1 parent fcbf212 commit 461c8d4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions BossMod/Modules/Global/DeepDungeon/AutoClear.cs
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@ protected virtual void OnActorCreated(Actor c)

private DateTime CastFinishAt(Actor c) => World.FutureTime(c.CastInfo!.NPCRemainingTime);

protected virtual void CalculateExtraHints(int playerSlot, Actor player, AIHints hints) { }

public override void CalculateAIHints(int playerSlot, Actor player, AIHints hints)
{
if (!_config.Enable || Palace.IsBossFloor || BetweenFloors)
Expand All @@ -395,6 +397,7 @@ public override void CalculateAIHints(int playerSlot, Actor player, AIHints hint

HandleFloorPathfind(player, hints);
DrawAOEs(playerSlot, player, hints);
CalculateExtraHints(playerSlot, player, hints);

var isStunned = player.IsTransformed || player.Statuses.Any(s => (SID)s.ID is SID.Silence or SID.Pacification);
var isOccupied = player.InCombat || isStunned;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@ protected override void OnStatusLose(Actor actor, ActorStatus status)
break;
}
}

protected override void CalculateExtraHints(int playerSlot, Actor player, AIHints hints)
{
foreach (var p in hints.PotentialTargets)
{
// this mob will enrage after some time
if (p.Actor.OID == 0x1842 && p.Actor.InCombat && p.Actor.TargetID == player.InstanceID)
p.Priority = 10;
}
}
}

[ZoneModuleInfo(BossModuleInfo.Maturity.WIP, 174)]
Expand Down

0 comments on commit 461c8d4

Please sign in to comment.