fix(gameplay): reconcile wield ownership and target facing
Preserve PlayerDescription inventory/equipment ownership across authoritative manifest replacement, make weapon switching and combat/UI consumers read the same canonical object state, and carry the complete outbound player position frame across landblocks. Route target-facing and mouse-look through the shared MovementManager and MotionInterpreter completion owner. Match retail input aggregation, toggle ordering, turn/sidestep remapping, per-axis hold keys, and synchronous movement publication without render-only heading state. Initialize the live streaming origin from the first accepted canonical player Position, defer other projections until that origin exists, and retain logical entity identity through hydration. Advance the project ledger from completed M2 to active M3, synchronize CLAUDE.md/AGENTS.md and durable memory, and record the next cast-lifecycle, spellbook/enchantment, and two-client portal gates. Co-Authored-By: Codex <noreply@openai.com>
This commit is contained in:
parent
b26f84cc69
commit
7b7ffcd278
36 changed files with 3884 additions and 761 deletions
|
|
@ -440,6 +440,29 @@ public class PaperdollControllerTests
|
|||
Assert.Equal(0xF01u, lists[HeadSlot].Cell.ItemId); // the head slot repainted with the helm
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Confirmed_unwield_to_side_bag_clears_slot_from_old_wielder_state()
|
||||
{
|
||||
var (layout, lists) = BuildLayout();
|
||||
var objects = new ClientObjectTable();
|
||||
const uint helm = 0xF03u, sideBag = 0x50000020u;
|
||||
Bind(layout, objects);
|
||||
objects.AddOrUpdate(new ClientObject { ObjectId = helm });
|
||||
Assert.True(objects.ApplyServerMove(
|
||||
helm,
|
||||
newContainerId: 0u,
|
||||
newWielderId: Player,
|
||||
newEquipLocation: EquipMask.HeadWear));
|
||||
Assert.Equal(helm, lists[HeadSlot].Cell.ItemId);
|
||||
|
||||
Assert.True(objects.ApplyServerMove(
|
||||
helm,
|
||||
newContainerId: sideBag,
|
||||
newWielderId: 0u));
|
||||
|
||||
Assert.Equal(0u, lists[HeadSlot].Cell.ItemId);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Live_npc_equip_does_not_appear_on_the_doll() // player-scoped: a remote creature's wielded item never leaks
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue