feat(D.5.2): route live UiEffects updates (0x02CE) to the item icon
Subscribe ObjectIntPropertyUpdated (added in Group C Task 4) in GameWindow next to the existing VitalUpdated/VitalCurrentUpdated subscriptions. Routes PublicUpdatePropertyInt(0x02CE) UiEffects (property 18) → ItemRepository. UpdateIntProperty → ItemInstance.Effects → ItemPropertiesUpdated → UiItemSlot re-composites the icon in real time. The end-to-end path is the visual- verification acceptance test (live ACE server + a draining magical item). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
e0dce5aa9f
commit
2f789da73d
1 changed files with 8 additions and 0 deletions
|
|
@ -2631,6 +2631,14 @@ public sealed class GameWindow : IDisposable
|
|||
LocalPlayer.OnVitalUpdate(v.VitalId, v.Ranks, v.Start, v.Xp, v.Current);
|
||||
_liveSession.VitalCurrentUpdated += v =>
|
||||
LocalPlayer.OnVitalCurrent(v.VitalId, v.Current);
|
||||
|
||||
// D.5.2: live PublicUpdatePropertyInt(0x02CE). Route UiEffects (18) to the item
|
||||
// repository so a draining/charging item re-composites its icon in real time.
|
||||
_liveSession.ObjectIntPropertyUpdated += u =>
|
||||
{
|
||||
if (u.Property == AcDream.Core.Items.ItemRepository.UiEffectsPropertyId)
|
||||
Items.UpdateIntProperty(u.Guid, u.Property, u.Value);
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue