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

Commit

Permalink
chore: 3.4.9 released.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Nov 4, 2023
1 parent 9b2e39a commit b60166a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TargetFramework>net7.0-windows</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Authors>ArchiTed</Authors>
<Version>3.4.8</Version>
<Version>3.4.9</Version>
<PlatformTarget>x64</PlatformTarget>
<Platforms>AnyCPU</Platforms>

Expand Down
2 changes: 1 addition & 1 deletion Resources/RotationSolverRecord.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"ClickingCount": 54509,
"ClickingCount": 54513,
"SaidUsers": []
}
13 changes: 12 additions & 1 deletion RotationSolver.Basic/DataCenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,18 @@ namespace RotationSolver.Basic;

internal static class DataCenter
{
internal static BattleChara HostileTarget { get; set; } = null;
private static uint _hostileTargetId = GameObject.InvalidGameObjectId;
internal static BattleChara HostileTarget
{
get
{
return Svc.Objects.SearchById(_hostileTargetId) as BattleChara;
}
set
{
_hostileTargetId = value?.ObjectId ?? GameObject.InvalidGameObjectId;
}
}

internal static Queue<MapEffectData> MapEffects { get; } = new(64);
internal static Queue<ObjectEffectData> ObjectEffects { get; } = new(64);
Expand Down
6 changes: 3 additions & 3 deletions RotationSolver.Basic/Rotations/CustomRotation_OtherInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ public abstract partial class CustomRotation
#region Target
/// <summary>
/// The player's target.
/// <br>WARNING: You'd better not use it. Because this target isn't the action's target. Try to use <see cref="IBaseAction.Target"/> instead after using <seealso cref="IBaseAction.CanUse(out IAction, CanUseOption, byte, byte)"/></br>
/// <br>WARNING: You'd better not use it. Because this target isn't the action's target. Try to use <see cref="IBaseAction.Target"/> or <seealso cref="HostileTarget"/> instead after using <seealso cref="IBaseAction.CanUse(out IAction, CanUseOption, byte, byte)"/></br>
/// </summary>
[Obsolete("You'd better not use it. More information in summary.")]
protected static BattleChara Target => Svc.Targets.Target is BattleChara b ? b : Player;

/// <summary>
/// The last picked hostile target.
/// The last attacked hostile target.
/// </summary>
protected static BattleChara LastHostileTarget => DataCenter.HostileTarget;
protected static BattleChara HostileTarget => DataCenter.HostileTarget;

/// <summary>
/// Is there any hostile target in range? 25 for ranged jobs and healer, 3 for melee and tank.
Expand Down
1 change: 0 additions & 1 deletion RotationSolver/Commands/RSCommands_Actions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ public static void DoAction()
Svc.Targets.Target = tar;
}
}

}
}
}
Expand Down

0 comments on commit b60166a

Please sign in to comment.