fix #211: index login-equipped items under player
Project PlayerDescription equipment through the same contained-by-wielder ownership and ordered contents index as live WieldObject updates. Preserve equip masks and priorities so retail GetObjectAtLocation selects Missile for an already-equipped crossbow instead of sending a server-rejected Melee request. Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
parent
e74efc5c06
commit
ab98cda26b
6 changed files with 150 additions and 12 deletions
|
|
@ -537,7 +537,13 @@ public static class GameEventWiring
|
|||
items.RecordMembership(inv.Guid, containerTypeHint: inv.ContainerType);
|
||||
}
|
||||
foreach (var eq in p.Value.Equipped)
|
||||
items.RecordMembership(eq.Guid, equip: (EquipMask)eq.EquipLocation);
|
||||
{
|
||||
items.RecordMembership(
|
||||
eq.Guid,
|
||||
containerId: ownerGuid,
|
||||
equip: (EquipMask)eq.EquipLocation,
|
||||
priority: eq.Priority);
|
||||
}
|
||||
|
||||
// D.5.1 Task 4: forward shortcut bar entries to the caller so the
|
||||
// toolbar can read them without holding a parser reference.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue