Add patch offset changes

This commit is contained in:
Asriel Camora
2025-04-24 01:47:02 -07:00
parent bd065f496e
commit bce0e256d2
2 changed files with 17 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
using FFXIVClientStructs.FFXIV.Client.Game.Event;
using System.Runtime.InteropServices;
namespace Craftimizer.Utils;
[StructLayout(LayoutKind.Explicit)]
public unsafe struct CSCraftEventHandler
{
[FieldOffset(0x48A)] public unsafe fixed ushort WKSClassLevels[2];
[FieldOffset(0x48E)] public unsafe fixed ushort WKSClassJobs[2];
public static CSCraftEventHandler* Instance()
{
return (CSCraftEventHandler*)EventFramework.Instance()->GetCraftEventHandler();
}
}
+1 -1
View File
@@ -15,7 +15,7 @@ internal sealed unsafe class SynthesisValues(AddonSynthesis* addon)
private ReadOnlySpan<AtkValue> Values => new(Addon->AtkUnitBase.AtkValues, Addon->AtkUnitBase.AtkValuesCount);
// Always 0?
private uint Unk0 => GetUInt(0);
private uint IsInitializing => GetUInt(0);
private bool IsTrialSynthesis => TryGetBool(1) ?? false;
public SeString ItemName => GetString(2);
public uint ItemIconId => GetUInt(3);