This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add a feature for target the treasure hunt in order.
- Loading branch information
1 parent
90623c1
commit 97d71c4
Showing
7 changed files
with
63 additions
and
14 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
5 changes: 2 additions & 3 deletions
5
RotationSolver/Data/MarkingController.cs → RotationSolver/Helpers/MarkingHelper.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using Dalamud.Game.ClientState.Objects.Types; | ||
using RotationSolver.Helpers; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace RotationSolver.Updaters; | ||
|
||
internal static partial class TargetUpdater | ||
{ | ||
public static uint[] TreasureCharas { get; private set; } | ||
private static void UpdateNamePlate(IEnumerable<BattleChara> allTargets) | ||
{ | ||
List<uint> charas = new List<uint>(5); | ||
//60701 - 60705 For treasure hunt. | ||
for (int i = 60701; i <= 60705; i++) | ||
{ | ||
var b = allTargets.FirstOrDefault(obj => obj.GetNamePlateIcon() == i); | ||
if (b == null || b.CurrentHp == 0) continue; | ||
charas.Add(b.ObjectId); | ||
} | ||
TreasureCharas = charas.ToArray(); | ||
} | ||
} |