RynthCore as of 2026-10-04 (internal 843c801): RynthNav auto-travel and the navigation map, plugin API v75 (server and titles), launcher with Available plugins, download progress and the update on the front page, opt-in usage statistics, NPC names, radar colours, title-bar text size, FPS limiter, client action unlocks, release 2026.10.4.6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
9b5e2765b7
commit
a24ed6df7c
322 changed files with 83009 additions and 7504 deletions
|
|
@ -93,6 +93,7 @@ internal static class SmartBoxHooks
|
|||
{
|
||||
delegate* unmanaged[Thiscall]<IntPtr, IntPtr, int, uint> pGeDetour = &DispatchGameEventDetour;
|
||||
MinHook.Hook(geAddr, (IntPtr)pGeDetour, out _originalDispatchGameEventPtr);
|
||||
_gameEventHookInstalled = true;
|
||||
RynthLog.Verbose($"Compat: game-event hook ready @ 0x{geAddr.ToInt32():X8}");
|
||||
}
|
||||
else RynthLog.Compat("Compat: game-event pattern matched already-hooked address.");
|
||||
|
|
@ -164,6 +165,7 @@ internal static class SmartBoxHooks
|
|||
RecursionGuard.Tick("SmartBoxHooks.DispatchGameEvent");
|
||||
var pOriginal = (delegate* unmanaged[Thiscall]<IntPtr, IntPtr, int, uint>)_originalDispatchGameEventPtr;
|
||||
|
||||
EnchantmentChange? enchantment = null;
|
||||
try
|
||||
{
|
||||
// Reject undersized payloads instead of clamping up: an inflated
|
||||
|
|
@ -173,17 +175,84 @@ internal static class SmartBoxHooks
|
|||
{
|
||||
uint eventType = unchecked((uint)Marshal.ReadInt32(data));
|
||||
int len = size > 0x4000 ? 0x4000 : size;
|
||||
// Property messages (2026-09-30): the identify reply, PlayerDescription and every
|
||||
// UpdateProperty* message pass through here, from their type on. `size` is the
|
||||
// real length (the function bounds itself with data+size), so the two large ones
|
||||
// get all of it (PlayerDescription runs to ~29 KB) instead of the 16 KB clamp.
|
||||
ParsePropertyMessage(eventType, data, size > 0x10000 ? 0x10000 : size);
|
||||
ParseGameEvent(eventType, data, (uint)len);
|
||||
if ((eventType >= 0x02C2 && eventType <= 0x02C8) || eventType == 0x0312)
|
||||
enchantment = CaptureEnchantmentEvent(eventType, data, (uint)len);
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
|
||||
return pOriginal(thisPtr, data, size);
|
||||
uint status = pOriginal(thisPtr, data, size);
|
||||
|
||||
// Enchantment events are queued AFTER the original ran: by then AC's
|
||||
// CEnchantmentRegistry holds the change (ClientMagicSystem::Handle_Magic__*
|
||||
// update it synchronously), so a plugin that re-reads the registry when the
|
||||
// event reaches it on the pump sees the new state. Queue only, never call
|
||||
// plugins from here (AC's main thread).
|
||||
if (enchantment != null)
|
||||
{
|
||||
try { FlushEnchantmentEvent(enchantment); } catch { }
|
||||
}
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
// spike/decal-bridge: set while a game event from the Decal bridge is parsed on the
|
||||
// plugin pump thread, where the main-thread-only live reads must not run.
|
||||
[ThreadStatic] private static bool _fromBridge;
|
||||
|
||||
/// <summary>
|
||||
/// spike/decal-bridge: a game event taken from Decal's raw server message instead of
|
||||
/// the ProcessNetBlobData hook. <paramref name="data"/> is [eventType][payload], as the
|
||||
/// hook sees it. Runs on the pump thread after AC has already applied the event, so an
|
||||
/// enchantment is queued at once, and a purge (no ids on the wire) can't be diffed.
|
||||
/// </summary>
|
||||
internal static unsafe void ProcessBridgeGameEvent(byte* data, int size)
|
||||
{
|
||||
if (data == null || size < 4)
|
||||
return;
|
||||
uint eventType = *(uint*)data;
|
||||
int len = size > 0x4000 ? 0x4000 : size;
|
||||
_fromBridge = true;
|
||||
try
|
||||
{
|
||||
ParseGameEvent(eventType, (IntPtr)data, (uint)len);
|
||||
if ((eventType >= 0x02C2 && eventType <= 0x02C8) && eventType != 0x02C6)
|
||||
{
|
||||
EnchantmentChange? c = CaptureEnchantmentEvent(eventType, (IntPtr)data, (uint)len);
|
||||
if (c != null)
|
||||
FlushEnchantmentEvent(c);
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
finally { _fromBridge = false; }
|
||||
}
|
||||
|
||||
private static int _geEventLogCount;
|
||||
private static int _hpReadLogCount;
|
||||
|
||||
// Feeds the property caches (AppraisalHooks, PropertyUpdateHooks) from the messages that
|
||||
// carry properties. Parsing only: nothing here touches AC state. Each parser is
|
||||
// bounds-checked against `size` and ignores a message it can't read.
|
||||
private static void ParsePropertyMessage(uint eventType, IntPtr data, int size)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (eventType == PropertyWire.EventIdentifyObjectResponse)
|
||||
AppraisalHooks.OnIdentifyWire(data, size);
|
||||
else if (eventType == PropertyWire.EventPlayerDescription)
|
||||
PropertyUpdateHooks.OnPlayerDescriptionWire(data, size);
|
||||
else if (PropertyWire.IsPropertyUpdateOpcode(eventType))
|
||||
PropertyUpdateHooks.OnUpdateWire(data, size);
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
// Parse an inbound GameEvent for the events combat cares about. `data` points
|
||||
// at the event blob: inner type @ +0, payload @ +4. `size` bounds reads.
|
||||
private static void ParseGameEvent(uint eventType, IntPtr data, uint size)
|
||||
|
|
@ -199,6 +268,20 @@ internal static class SmartBoxHooks
|
|||
RynthLog.Compat($"GE evt=0x{eventType:X4} len={size} p=[{d1:X8} {d2:X8} {d3:X8}]");
|
||||
}
|
||||
|
||||
// v75: the character's titles (0x0029 at login, 0x002B per new title; see CharacterTitles).
|
||||
if (CharacterTitles.IsTitleEvent(eventType))
|
||||
{
|
||||
try { CharacterTitles.OnGameEvent(eventType, data, size, ClientHelperHooks.GetPlayerId()); } catch { }
|
||||
return;
|
||||
}
|
||||
|
||||
// v72: the player-to-player trade events (0x01FD-0x0208; see PlayerTrade).
|
||||
if (PlayerTrade.IsTradeEvent(eventType))
|
||||
{
|
||||
PlayerTrade.OnGameEvent(eventType, data, size);
|
||||
return;
|
||||
}
|
||||
|
||||
switch (eventType)
|
||||
{
|
||||
case 0x01C0: // UpdateHealth: [targetId u32][ratio f32]
|
||||
|
|
@ -213,7 +296,8 @@ internal static class SmartBoxHooks
|
|||
// The plugin QueryHealth()s its combat target on lock, which is
|
||||
// what makes this fire for the mobs it's actually fighting.
|
||||
// Falls back to the wire-parsed appraisal cache if the read fails.
|
||||
bool gotReal = ClientObjectHooks.TryReadCreatureMaxHealth(targetId, out uint realMax) && realMax > 0;
|
||||
uint realMax = 0;
|
||||
bool gotReal = !_fromBridge && ClientObjectHooks.TryReadCreatureMaxHealth(targetId, out realMax) && realMax > 0;
|
||||
if (gotReal)
|
||||
maxHealth = realMax;
|
||||
else if (ObjectQualityCache.TryGetCreatureVitals(targetId, out CreatureVitals exact) && exact.MaxHealth > 0)
|
||||
|
|
@ -245,6 +329,7 @@ internal static class SmartBoxHooks
|
|||
RynthLog.Compat($"Combat: kill notify '{msg}'");
|
||||
}
|
||||
PluginManager.QueueKillNotification(msg);
|
||||
ImGuiBackend.Hud.HudFeed.OnKillMessage(msg); // kill burst
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
@ -259,6 +344,9 @@ internal static class SmartBoxHooks
|
|||
{
|
||||
uint err = size >= 8 ? unchecked((uint)Marshal.ReadInt32(IntPtr.Add(data, 4))) : 0;
|
||||
int seq = System.Threading.Interlocked.Increment(ref _useDoneSeq);
|
||||
// v70: the sequence and its error code as one 64-bit value, so a reader
|
||||
// on the plugin pump never pairs one UseDone's number with another's code.
|
||||
System.Threading.Interlocked.Exchange(ref _useDoneLast, ((long)(uint)seq << 32) | err);
|
||||
if (_useDoneLogCount < 25)
|
||||
{
|
||||
_useDoneLogCount++;
|
||||
|
|
@ -266,6 +354,33 @@ internal static class SmartBoxHooks
|
|||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case 0x028A: // WeenieError: [errorType u32]. "Your spell fizzled",
|
||||
// "You don't know that spell", ... — AC's own refusal lines.
|
||||
// A cast that fizzles ends with this AND a UseDone(None).
|
||||
if (size >= 8)
|
||||
{
|
||||
uint code = unchecked((uint)Marshal.ReadInt32(IntPtr.Add(data, 4)));
|
||||
RecordWeenieError(eventType, code, 0);
|
||||
if (code == 0x0529) // TradeComplete (v72 trade state)
|
||||
PlayerTrade.OnTradeComplete();
|
||||
}
|
||||
break;
|
||||
|
||||
case 0x028B: // WeenieErrorWithString: [errorType u32][string16 text]
|
||||
if (size >= 8)
|
||||
RecordWeenieError(eventType, unchecked((uint)Marshal.ReadInt32(IntPtr.Add(data, 4))), 0);
|
||||
break;
|
||||
|
||||
case 0x00A0: // InventoryServerSaveFailed: [objectId u32][errorType u32] —
|
||||
// the server refused an inventory change (wield, move, ...).
|
||||
// Layout from UIQueueManager::ProcessNetBlobData's inline case
|
||||
// @0x0055C012 (edx=[p], esi=[p+4]) and ACE's writer.
|
||||
if (size >= 12)
|
||||
RecordWeenieError(eventType,
|
||||
unchecked((uint)Marshal.ReadInt32(IntPtr.Add(data, 8))),
|
||||
unchecked((uint)Marshal.ReadInt32(IntPtr.Add(data, 4))));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -273,8 +388,225 @@ internal static class SmartBoxHooks
|
|||
// at cast time and re-reads it to detect the server finishing the cast.
|
||||
private static int _useDoneSeq;
|
||||
private static int _useDoneLogCount;
|
||||
// (seq << 32) | errorType of the most recent UseDone; 0 until the first one.
|
||||
private static long _useDoneLast;
|
||||
private static bool _gameEventHookInstalled;
|
||||
/// <summary>True once the game-event detour (UIQueueManager::ProcessNetBlobData) is installed.</summary>
|
||||
public static bool IsGameEventHookInstalled => _gameEventHookInstalled;
|
||||
public static int GetUseDoneSeq() => System.Threading.Volatile.Read(ref _useDoneSeq);
|
||||
|
||||
/// <summary>
|
||||
/// v70: the most recent UseDone's sequence number (as GetUseDoneSeq counts them) and its
|
||||
/// WeenieError code (0 = the action completed). Any thread. False when the game-event
|
||||
/// hook isn't installed; seq 0 = no UseDone yet this session.
|
||||
/// </summary>
|
||||
public static bool TryGetLastUseDone(out int seq, out uint error)
|
||||
{
|
||||
long v = System.Threading.Interlocked.Read(ref _useDoneLast);
|
||||
seq = unchecked((int)(v >> 32));
|
||||
error = unchecked((uint)v);
|
||||
return _gameEventHookInstalled;
|
||||
}
|
||||
|
||||
// ── Weenie errors (v70) ─────────────────────────────────────────────
|
||||
// The last refusal the server sent: WeenieError (0x028A), WeenieErrorWithString
|
||||
// (0x028B) or InventoryServerSaveFailed (0x00A0, with the item id). Written on AC's
|
||||
// main thread, read from the plugin pump: four fields, so a lock (never contended).
|
||||
private static readonly object _weenieErrorLock = new();
|
||||
private static int _weenieErrorSeq;
|
||||
private static uint _weenieErrorCode, _weenieErrorEvent, _weenieErrorObject;
|
||||
private static int _weenieErrorLogCount;
|
||||
|
||||
private static void RecordWeenieError(uint eventType, uint code, uint objectId)
|
||||
{
|
||||
int seq;
|
||||
lock (_weenieErrorLock)
|
||||
{
|
||||
seq = ++_weenieErrorSeq;
|
||||
_weenieErrorCode = code;
|
||||
_weenieErrorEvent = eventType;
|
||||
_weenieErrorObject = objectId;
|
||||
}
|
||||
if (_weenieErrorLogCount < 25)
|
||||
{
|
||||
_weenieErrorLogCount++;
|
||||
RynthLog.Compat($"WeenieError seq={seq} evt=0x{eventType:X3} err=0x{code:X4} obj=0x{objectId:X8}");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// v70: the most recent server refusal (see RecordWeenieError). seq counts them (0 = none
|
||||
/// yet); eventType says which message carried it; objectId is the item for 0x00A0, else 0.
|
||||
/// Any thread. False when the game-event hook isn't installed.
|
||||
/// </summary>
|
||||
public static bool TryGetLastWeenieError(out int seq, out uint error, out uint eventType, out uint objectId)
|
||||
{
|
||||
lock (_weenieErrorLock)
|
||||
{
|
||||
seq = _weenieErrorSeq;
|
||||
error = _weenieErrorCode;
|
||||
eventType = _weenieErrorEvent;
|
||||
objectId = _weenieErrorObject;
|
||||
}
|
||||
return _gameEventHookInstalled;
|
||||
}
|
||||
|
||||
// ── Enchantment events (v70) ────────────────────────────────────────
|
||||
// The player's enchantment changes arrive as these GameEvents (all dispatched by
|
||||
// UIQueueManager::ProcessNetBlobData, the function this file hooks; the case targets
|
||||
// were traced to CM_Magic::DispatchUI_* in the Chorizite map):
|
||||
// 0x02C2 UpdateEnchantment Enchantment
|
||||
// 0x02C4 UpdateMultipleEnchantments u32 count + Enchantment[]
|
||||
// 0x02C3 RemoveEnchantment LayeredSpellId (u16 spell, u16 layer)
|
||||
// 0x02C5 RemoveMultipleEnchantments u32 count + LayeredSpellId[]
|
||||
// 0x02C7 DispelEnchantment LayeredSpellId (silent removal)
|
||||
// 0x02C8 DispelMultipleEnchantments u32 count + LayeredSpellId[]
|
||||
// 0x02C6 PurgeEnchantments (none: all but vitae go, e.g. on death)
|
||||
// 0x0312 PurgeBadEnchantments (none: the harmful ones go)
|
||||
// The purges carry no ids, so the player's registry is read just before and just after
|
||||
// AC applies them and the spells that disappeared are reported. Removals report the spell
|
||||
// id (layer stripped), which is what OnEnchantmentRemoved's plugins key on.
|
||||
//
|
||||
// Enchantment on the wire (ACE's writer, 60 bytes, +4 when HasSpellSetId != 0):
|
||||
// +0 u16 spellId +2 u16 layer +4 u16 category +6 u16 hasSpellSetId +8 u32 power
|
||||
// +12 f64 startTime +20 f64 duration +28 u32 caster +32 f32 degradeMod
|
||||
// +36 f32 degradeLimit +40 f64 lastDegraded +48 u32 statModType +52 u32 key
|
||||
// +56 f32 value [+60 u32 spellSetId]
|
||||
private const int EnchantmentWireSize = 60;
|
||||
private const int MaxEnchantmentsPerEvent = 256;
|
||||
private static int _enchantmentEventLogCount;
|
||||
|
||||
private sealed class EnchantmentChange
|
||||
{
|
||||
public uint EventType;
|
||||
public bool Added;
|
||||
public int Count;
|
||||
public uint[] SpellIds = Array.Empty<uint>();
|
||||
public double[] Durations = Array.Empty<double>();
|
||||
/// <summary>Purges: the player's spell ids before AC applied it (null = unreadable).</summary>
|
||||
public uint[]? Before;
|
||||
}
|
||||
|
||||
private static EnchantmentChange? CaptureEnchantmentEvent(uint eventType, IntPtr data, uint size)
|
||||
{
|
||||
// Payload starts at data+4; `size` counts the 4-byte event type too.
|
||||
switch (eventType)
|
||||
{
|
||||
case 0x02C2: // UpdateEnchantment
|
||||
{
|
||||
if (size < 4 + EnchantmentWireSize) return null;
|
||||
var c = new EnchantmentChange { EventType = eventType, Added = true, Count = 1, SpellIds = new uint[1], Durations = new double[1] };
|
||||
ReadWireEnchantment(data, 4, out c.SpellIds[0], out c.Durations[0]);
|
||||
return c.SpellIds[0] != 0 ? c : null;
|
||||
}
|
||||
|
||||
case 0x02C4: // UpdateMultipleEnchantments
|
||||
{
|
||||
if (size < 8) return null;
|
||||
uint count = unchecked((uint)Marshal.ReadInt32(IntPtr.Add(data, 4)));
|
||||
if (count == 0 || count > MaxEnchantmentsPerEvent) return null;
|
||||
var c = new EnchantmentChange { EventType = eventType, Added = true, SpellIds = new uint[count], Durations = new double[count] };
|
||||
uint off = 8;
|
||||
for (uint i = 0; i < count; i++)
|
||||
{
|
||||
if (off + EnchantmentWireSize > size) break;
|
||||
ushort hasSet = unchecked((ushort)Marshal.ReadInt16(IntPtr.Add(data, (int)off + 6)));
|
||||
ReadWireEnchantment(data, (int)off, out uint spellId, out double duration);
|
||||
off += EnchantmentWireSize + (hasSet != 0 ? 4u : 0u);
|
||||
if (spellId == 0) continue;
|
||||
c.SpellIds[c.Count] = spellId;
|
||||
c.Durations[c.Count] = duration;
|
||||
c.Count++;
|
||||
}
|
||||
return c.Count > 0 ? c : null;
|
||||
}
|
||||
|
||||
case 0x02C3: // RemoveEnchantment
|
||||
case 0x02C7: // DispelEnchantment
|
||||
{
|
||||
if (size < 8) return null;
|
||||
uint spellId = (uint)(ushort)Marshal.ReadInt16(IntPtr.Add(data, 4));
|
||||
if (spellId == 0) return null;
|
||||
return new EnchantmentChange { EventType = eventType, Count = 1, SpellIds = new[] { spellId } };
|
||||
}
|
||||
|
||||
case 0x02C5: // RemoveMultipleEnchantments
|
||||
case 0x02C8: // DispelMultipleEnchantments
|
||||
{
|
||||
if (size < 8) return null;
|
||||
uint count = unchecked((uint)Marshal.ReadInt32(IntPtr.Add(data, 4)));
|
||||
if (count == 0 || count > MaxEnchantmentsPerEvent) return null;
|
||||
var c = new EnchantmentChange { EventType = eventType, SpellIds = new uint[count] };
|
||||
for (uint i = 0; i < count && 8 + i * 4 + 4 <= size; i++)
|
||||
{
|
||||
uint spellId = (uint)(ushort)Marshal.ReadInt16(IntPtr.Add(data, (int)(8 + i * 4)));
|
||||
if (spellId != 0) c.SpellIds[c.Count++] = spellId;
|
||||
}
|
||||
return c.Count > 0 ? c : null;
|
||||
}
|
||||
|
||||
case 0x02C6: // PurgeEnchantments
|
||||
case 0x0312: // PurgeBadEnchantments
|
||||
return new EnchantmentChange { EventType = eventType, Before = SnapshotPlayerSpellIds() };
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private static void ReadWireEnchantment(IntPtr data, int off, out uint spellId, out double duration)
|
||||
{
|
||||
spellId = (uint)(ushort)Marshal.ReadInt16(IntPtr.Add(data, off));
|
||||
duration = BitConverter.Int64BitsToDouble(Marshal.ReadInt64(IntPtr.Add(data, off + 20)));
|
||||
}
|
||||
|
||||
private static void FlushEnchantmentEvent(EnchantmentChange c)
|
||||
{
|
||||
// The registry just changed: refresh the off-thread player snapshot NOW (we
|
||||
// are on the main thread, after AC applied the change), before the event is
|
||||
// queued, so a plugin re-reading on the event sees the new state as before.
|
||||
EnchantmentHooks.RefreshPlayerSnapshotNow();
|
||||
|
||||
if (c.Before != null)
|
||||
{
|
||||
// A purge: whatever left the registry.
|
||||
uint[]? after = SnapshotPlayerSpellIds();
|
||||
if (after == null) return;
|
||||
var remaining = new HashSet<uint>(after);
|
||||
var reported = new HashSet<uint>();
|
||||
foreach (uint id in c.Before)
|
||||
if (!remaining.Contains(id) && reported.Add(id))
|
||||
PluginManager.QueueEnchantmentRemoved(id);
|
||||
LogEnchantmentEvent(c.EventType, reported.Count, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < c.Count; i++)
|
||||
{
|
||||
if (c.Added) PluginManager.QueueEnchantmentAdded(c.SpellIds[i], c.Durations[i]);
|
||||
else PluginManager.QueueEnchantmentRemoved(c.SpellIds[i]);
|
||||
}
|
||||
LogEnchantmentEvent(c.EventType, c.Count, c.SpellIds[0]);
|
||||
}
|
||||
|
||||
private static void LogEnchantmentEvent(uint eventType, int count, uint firstSpellId)
|
||||
{
|
||||
if (_enchantmentEventLogCount >= 25) return;
|
||||
_enchantmentEventLogCount++;
|
||||
RynthLog.Compat($"Enchantment evt=0x{eventType:X3} count={count} first={firstSpellId}");
|
||||
}
|
||||
|
||||
/// <summary>The player's enchantment spell ids (main thread here), or null when unreadable.</summary>
|
||||
private static unsafe uint[]? SnapshotPlayerSpellIds()
|
||||
{
|
||||
const int Max = 512;
|
||||
uint* ids = stackalloc uint[Max];
|
||||
double* expiry = stackalloc double[Max];
|
||||
int n = EnchantmentHooks.ReadPlayerEnchantments(ids, expiry, Max);
|
||||
if (n < 0) return null;
|
||||
var result = new uint[n];
|
||||
for (int i = 0; i < n; i++) result[i] = ids[i];
|
||||
return result;
|
||||
}
|
||||
|
||||
// AttackerNotification (0x01B1) / DefenderNotification (0x01B2). Payload at
|
||||
// data+4: string16 name, u32 damageType, f64 percent, u32 damage,
|
||||
// [u32 damageLocation (defender only),] u32 crit, …. Read-only byte math.
|
||||
|
|
@ -282,6 +614,9 @@ internal static class SmartBoxHooks
|
|||
{
|
||||
if (size < 24) return;
|
||||
bool attacker = eventType == 0x01B1;
|
||||
// "X hits you": the nameplates' engaged filter keys attackers by name (no id on the wire).
|
||||
if (!attacker)
|
||||
ImGuiBackend.Hud.MonsterHudData.RecordAttacker(ReadString16Latin1(data, 4, size));
|
||||
|
||||
int nameLen = (ushort)Marshal.ReadInt16(IntPtr.Add(data, 4));
|
||||
int strBlock = ((2 + nameLen + 3) / 4) * 4; // u16 len + chars, padded to a multiple of 4
|
||||
|
|
@ -300,6 +635,8 @@ internal static class SmartBoxHooks
|
|||
RynthLog.Compat($"Combat: damage evt 0x{eventType:X3} dmg={damage} crit={crit} atk={attacker} len={size}");
|
||||
}
|
||||
PluginManager.QueueCombatDamage(damage, damageType, crit != 0, attacker);
|
||||
// RynthVision combat text: the attacker event names the monster hit.
|
||||
ImGuiBackend.Hud.HudFeed.OnDamageEvent(attacker, attacker ? ReadString16Latin1(data, 4, size) : null, damage, crit != 0);
|
||||
}
|
||||
|
||||
private static SmartBoxEventInfo ReadSmartBoxEventInfo(IntPtr blob)
|
||||
|
|
@ -417,6 +754,7 @@ internal static class SmartBoxHooks
|
|||
}
|
||||
|
||||
PluginManager.QueueCombatDamage(damage, damageType, crit != 0, attacker);
|
||||
ImGuiBackend.Hud.HudFeed.OnDamageEvent(attacker, attacker ? ReadString16Latin1(payloadPtr, nameOff, info.BlobSize) : null, damage, crit != 0);
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue