Skip to content

Commit

Permalink
isplayeroccupied
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaksuhn committed Feb 4, 2024
1 parent cfbb74c commit 59174f8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion SomethingNeedDoing/Interface/HelpWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ static void DisplayChangelog(string date, string changes, bool separator = true)
"- Added PandoraPauseFeature()\n\n" +
"- Added GetClipboard()\n" +
"- Added SetClipboard()\n" +
"- Added CrashTheGame()\n");
"- Added CrashTheGame()\n" +
"- Added IsPlayerOccupied()\n");

DisplayChangelog(
"2024-02-01",
Expand Down
2 changes: 2 additions & 0 deletions SomethingNeedDoing/Misc/Commands/CharacterStateCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ public string GetCharacterName(bool includeWorld = false) =>

public unsafe bool IsMoving() => AgentMap.Instance()->IsPlayerMoving == 1;

public bool IsPlayerOccupied() => ECommons.GenericHelpers.IsOccupied();

public unsafe uint GetGil() => InventoryManager.Instance()->GetGil();

public uint GetClassJobId() => Svc.ClientState.LocalPlayer!.ClassJob.Id;
Expand Down
2 changes: 1 addition & 1 deletion SomethingNeedDoing/Misc/Commands/IpcCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public unsafe List<string> ARGetRegisteredEnabledCharacters() =>
.Where(c => _autoRetainerApi.GetOfflineCharacterData(c).Enabled)
.Select(c => $"{_autoRetainerApi.GetOfflineCharacterData(c).Name}@{_autoRetainerApi.GetOfflineCharacterData(c).World}").ToList();

public unsafe bool ARAnyWaitingToBeProcessed(bool allCharacters = false) => ARRetainersWaitingToBeProcessed(allCharacters) || ARSubsWaitingToBeProcessed(allCharacters)
public unsafe bool ARAnyWaitingToBeProcessed(bool allCharacters = false) => ARRetainersWaitingToBeProcessed(allCharacters) || ARSubsWaitingToBeProcessed(allCharacters);

public unsafe bool ARRetainersWaitingToBeProcessed(bool allCharacters = false)
{
Expand Down

0 comments on commit 59174f8

Please sign in to comment.