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

Commit

Permalink
fix: changed some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 12, 2023
1 parent a03555d commit 6c2ae2f
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 10 deletions.
31 changes: 27 additions & 4 deletions RotationSolver.Basic/Data/ActionEffectHeader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,38 @@ namespace RotationSolver.Basic.Data;
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public unsafe struct ActionEffectHeader
{
public ulong animationTargetId; // who the animation targets
public uint actionId; // what the casting player casts, shown in battle log / ui
/// <summary>
/// who the animation targets
/// </summary>
public ulong animationTargetId;

/// <summary>
/// what the casting player casts, shown in battle log / ui
/// </summary>
public uint actionId;

/// <summary>
/// Number of the effect
/// </summary>
public uint globalEffectCounter;
public float animationLockTime;
public uint SomeTargetID;
public ushort SourceSequence; // 0 = initiated by server, otherwise corresponds to client request sequence id

/// <summary>
/// 0 = initiated by server, otherwise corresponds to client request sequence id
/// </summary>
public ushort SourceSequence;
public ushort rotation;
public ushort actionAnimationId;
public byte variation; // animation

/// <summary>
/// animation
/// </summary>
public byte variation;

/// <summary>
/// Action Type
/// </summary>
public ActionType actionType;
public byte unknown20;
public byte NumTargets; // machina calls it 'effectCount', but it is misleading imo
Expand Down
3 changes: 3 additions & 0 deletions RotationSolver.Basic/Data/ActionID.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
namespace RotationSolver.Basic.Data;

/// <summary>
/// The id of the action
/// </summary>
public enum ActionID : uint
{
None = 0,
Expand Down
6 changes: 6 additions & 0 deletions RotationSolver.Basic/RotationSolver.Basic.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>1701;1702;1591</NoWarn>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<NoWarn>1701;1702;1591</NoWarn>
</PropertyGroup>

<ItemGroup>
<Using Include="System.ComponentModel" />
Expand Down
7 changes: 1 addition & 6 deletions RotationSolver.Basic/Rotations/CustomRotation_Actions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,18 +95,13 @@ internal RoleAction(ActionID actionID, JobRole[] roles, bool isFriendly = false,
{
StatusID.SuperBolide, StatusID.HallowedGround,
StatusID.Rampart, StatusID.Bulwark,
//原初的直觉和血气
StatusID.RawIntuition, StatusID.BloodWhetting,
//复仇
StatusID.Vengeance,
//预警
StatusID.Sentinel,
//暗影墙
StatusID.ShadowWall,
//星云
StatusID.Nebula,

//TODO:BLU的减伤技能
//TODO:BLU Debuff
}.Union(StatusHelper.NoNeedHealingStatus).ToArray(),
ActionCheck = BaseAction.TankDefenseSelf,
};
Expand Down

0 comments on commit 6c2ae2f

Please sign in to comment.