Preserve enemy facing through push and pull slides (#418, #427)

This commit is contained in:
sganggs committed 2026-10-09 17:16:49 +08:00
1 parent 584cedc1b4
commit 4980ee786f
13 files changed
+153 -30

No files matched your search

+12
View File
@@ -115,3 +115,15 @@ clipping switches, dirty textures and zoom rescaling still update. Redeployment
Redeploy countdown labels share rasterized textures keyed by text, colour and resolution; late web fonts refresh
them in place. The 64 targeted renderer tests passed. The author's performance measurements are not reproduced
here; real Pixi checks are part of the integration pass. No battle rule or golden result is intentionally changed.
### 28.9 Preserve facing during pushes and pulls — #418 / PR #427
Ported from [PR #427](https://github.com/sganggs/Stronghold-Protocol/pull/427) by @YinqiMargatroid.
Successful pushes/pulls mark their displacement events `keepFacing` so the renderer retains pre-hit facing
while waiting for the endpoint snapshot and throughout the slide. Raw displacement and explicit
`keepFacing: false` retain the old directional behavior. Position, distance and unbalance time are unchanged.
The contributor's source clips and their limitations are retained in research 13; those observations were not
independently replayed for this port. **[ASSUMED]** other push sources and pulls against the target's old facing
share the examples' display behavior; the drag template alone cannot establish that engine rule.
Tests cover real push/pull skill paths, default/override metadata, snapshot reversal, and an earlier attack
arriving after slide prestart in either field direction. Golden metadata deliberately omits the display flag.