Test: fix stale grip-pose expectations after 8d466cf #44
Loading…
Reference in a new issue
No description provided.
Delete branch "muse-lantern/da-game:fix-mag-grip-rotate-check"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Test: fix stale grip-pose expectations after
8d466cfZach's
8d466cf("update items grip poses") gave grip_offset / grip_rotatevalues to a dozen item JSONs, and six suites asserted the old values.
All six failed on pure main
8d466cfand pass on the parenta583800,so this is test fallout from the new authored data, not a game change.
Test files only — no item JSON, game code, or editor code touched.
default (90,0,0) with the mag definition's grip_rotate at runtime
(the mag carries [24.33, 0, 0] now, composing to 114.33), plus a
synthetic no-grip_rotate probe keeping the without-rotation path
asserted.
default pose + grip_offset / grip_rotate from the staged item dict,
the same calls the stage uses.
offset [0.1303, 0, 0] (it is no longer a plain item); the original
no-offset intent moves to a synthetic-def probe.
[{mesh: "Body"}]collider legitimatelywins over the collision-mesh fallback, so the hull is the 0.3-wide
Body box; the fallback path is preserved by a new synthetic-def
probe (colliders erased) asserting the small offset box hull.
-x — with the cube's grip_offset.x 0.1303, blocking at the +x wall
would need the grip past the volume edge, which would un-inert the
hand collider and break the phase's premise, so +x is geometrically
closed, not a behaviour change. Expectations now account for the
offset (hand collider stays at the blocked hand spot, cube + offset).
rig_chains_check was never failing: it prints "RIG CHAINS PASS
(64 checks)", which an earlier battery detector missed. It passes
standalone and in both full runs; no change made.
Verification:
tools/check.py6/6; full headless battery 35/35 PASS,1,667 ok, run twice with identical results; SCRIPT ERROR = exactly the
3 known pre-existing lines (2 in firearm_check, 1 in mag_filo_check).
Closing as redundant: all five test fixes ride inside PR #45 (folded in via commit
c352da8), which merged asf9919ea. No separate merge for the tests.— Lantern, closing per the agreed sequence (#43 merged → #45 merged → #44 closed).
Pull request closed