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
|
|
@ -477,9 +477,17 @@ public class ToolbarControllerTests
|
|||
repo.AddOrUpdate(new ClientObject { ObjectId = player, Type = ItemType.Creature });
|
||||
repo.AddOrUpdate(new ClientObject { ObjectId = pack, Type = ItemType.Container });
|
||||
repo.AddOrUpdate(new ClientObject { ObjectId = bow, StackSize = 1, StackSizeMax = 1 });
|
||||
repo.MoveItem(bow, player, newEquipLocation: EquipMask.MissileWeapon);
|
||||
repo.ApplyServerMove(
|
||||
bow,
|
||||
newContainerId: 0u,
|
||||
newWielderId: player,
|
||||
newEquipLocation: EquipMask.MissileWeapon);
|
||||
repo.AddOrUpdate(new ClientObject { ObjectId = arrows, StackSize = 42, StackSizeMax = 100 });
|
||||
repo.MoveItem(arrows, player, newEquipLocation: EquipMask.MissileAmmo);
|
||||
repo.ApplyServerMove(
|
||||
arrows,
|
||||
newContainerId: 0u,
|
||||
newWielderId: player,
|
||||
newEquipLocation: EquipMask.MissileAmmo);
|
||||
|
||||
ToolbarController.Bind(
|
||||
layout,
|
||||
|
|
@ -492,7 +500,7 @@ public class ToolbarControllerTests
|
|||
|
||||
Assert.Equal("42", ammoButton.Label);
|
||||
|
||||
Assert.True(repo.MoveItem(arrows, pack));
|
||||
Assert.True(repo.ApplyServerMove(arrows, pack, newWielderId: 0u));
|
||||
Assert.Null(ammoButton.Label);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue