Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: add more for target status.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 15, 2023
1 parent 3d1f2cc commit c22f5e9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@ jobs:
package-name: release-please-action
default-branch: release

on-released:
if: ${{ needs.release-please.outputs.released }}
runs-on: ubuntu-latest
steps:
- name: Trigger Repo Update
uses: peter-evans/repository-dispatch@v2
with:
event-type: new-release

build:
name : build
if: ${{ needs.release-please.outputs.released }}
Expand Down Expand Up @@ -84,3 +75,12 @@ jobs:
asset_path: artifact/latest.zip
asset_name: latest.zip
asset_content_type: application/zip

on-released:
runs-on: ubuntu-latest
needs: release
steps:
- name: Trigger Repo Update
uses: peter-evans/repository-dispatch@v2
with:
event-type: new-release
3 changes: 2 additions & 1 deletion RotationSolver.Basic/Helpers/ObjectHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static class ObjectHelper
EventHandlerType.Quest,
};

private unsafe static BNpcBase GetObjectNPC(this GameObject obj)
public static BNpcBase GetObjectNPC(this GameObject obj)
{
if (obj == null) return null;
return Service.GetSheet<BNpcBase>().GetRow(obj.DataId);
Expand Down Expand Up @@ -95,6 +95,7 @@ public static bool CanInterrupt(this BattleChara b)
}

public static bool IsDummy(this BattleChara obj) => obj?.NameId == 541;

/// <summary>
/// Is character a boss? Max HP exceeds a certain amount.
/// </summary>
Expand Down
13 changes: 12 additions & 1 deletion RotationSolver/UI/RotationConfigWindow_Debug.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,18 @@ private unsafe void DrawTargetData()
ImGui.Text("NamePlate: " + b.GetNamePlateIcon().ToString());
ImGui.Text("StatusFlags: " + b.StatusFlags.ToString());
ImGui.Text("InView: " + Service.WorldToScreen(b.Position, out _).ToString());
ImGui.Text("NameId: " + b.NameId.ToString());
ImGui.Text("DataId: " + b.DataId.ToString());

var npc = b.GetObjectNPC();
if(npc != null)
{
ImGui.Text("Unknown0: " + npc.Behavior.Value?.Unknown0.ToString());
ImGui.Text("Unknown1: " + npc.Behavior.Value?.Unknown1.ToString());
ImGui.Text("Condition0Type: " + npc.Behavior.Value?.Condition0Type.ToString());
ImGui.Text("Condition0Target: " + npc.Behavior.Value?.Condition0Target.ToString());
ImGui.Text("Condition1Type: " + npc.Behavior.Value?.Condition1Type.ToString());
ImGui.Text("Condition1Target: " + npc.Behavior.Value?.Condition1Target.ToString());
}

foreach (var status in b.StatusList)
{
Expand Down

0 comments on commit c22f5e9

Please sign in to comment.