Summary
Fixes #163 (pending iPad acceptance). A beltable item dropped over an expanded belt row can first hit an overlapping body slot, be snapped to that slot's center, and arm the equipment fallback. The supplied build-10230825 log records mp5 potions being sent to body slot 7 and rejected; it does not uniquely identify the reported column-3 row-3 gesture.
修正可入腰带物品在重叠处先命中装备位、被吸到装备槽中心的代码路径。玩家具体格子的端到端结果仍需真机确认,本 PR 保持草稿。
Changes
- For beltable drops initially classified as
slot_*, check the original image point against a visible Belt inside the already selected panel. When accepted, normalize as a belt/grid target rather than a body slot; no equipment fallback is recorded. - Preserve existing empty-hand taps, non-beltable drops, native acceptance/occupied-cell rules and panel isolation. Do not invoke auto-fill or choose another cell.
- Add a once-per-second overlap diagnostic with the original slot and image/finger coordinates.
- Add production-helper tests and a bilingual investigation/manual-acceptance record in
docs/feedback/belt-drop-overlap.md.
Testing
make -C dm/host/tests build/t_belt_drop && dm/host/tests/build/t_belt_drop: 407 checks, 0 failures. Authored hit regions cover all 16 cells at 720/1360/2160 viewport heights, either child order, hidden belt/ancestors, non-beltable items, non-body targets, bounds and other panels.- Same fixture with
-fsanitize=undefined -fno-sanitize-recover=all: 407 checks, 0 failures. scan_literals.py,dm_i18n.py --check,native_write_scan.py --selftest,widget_cache_scan.py --selftest,mode_scan.py,git diff --check: passed.- Make prints an existing duplicate
t_loader_weakrecipe warning; the new test builds and exits 0. - Not run: full game build/host suite, native geometry/gameplay, real iPad. Game program/RomFS is unavailable. Synthetic fixtures verify the branch and coordinate handling, not end-to-end placement or all deferred-action races.
Screenshots / Device acceptance
No gameplay screenshot is available. Before promoting from draft: on iPad drag potions into column 3 row 3 and every other available belt cell, with inventory-only and stash layouts, 1–4-row belts, empty/occupied cells, rapid swaps, full inventory and collapsed/expanded boundaries. Check actual final positions/counts, no invisible held items, normal real-equipment interactions, and no body-slot equip fallback for a belt-targeted potion. Detailed steps and anonymized log excerpts are in the investigation record.
Activity
1This pull request is a draft
Merging is unavailable until it is marked ready for review.