修复三合一奖励抽不到自选干员 #515

This commit is contained in:
Siornya committed 2026-10-12 13:59:42 +08:00
1 parent bc50cac01f
commit dcf498d9bd
5 files changed
+35 -15

No files matched your search

+9
View File
@@ -274,3 +274,12 @@ enemy: picking emitted a unit click with no definition, instead of the tile clic
engine-canvas regression retains the card/100 HP assertions and also covers another field refresh, live HP loss and
closing the card when the crate is destroyed. Device metadata supplied by the new entry still wins; changing fields
does not carry old devices across. Gameplay and allied targeting rules are unchanged.
### 29.15 Promotion rewards include the player's stocked 自选 at the reward tier (#515)
The player confirmed from gameplay that a 自编干员 can appear in the three-in-a-row promotion reward. Include every
unbanned 自选 entry with remaining personal stock in the reward roll, filtered by the reward's tier rather than the
ordinary shop's slot-level gate. The ordinary shop keeps its existing unlock gate. Displaying a candidate still reserves
no copies; `g.reward` rechecks stock and acquiring the pick takes exactly one from that player's `DiyStock`. Coverage in
`test/match/diy-shop.test.js` forces the shared tier-5/6 pools empty to check the level-4→tier-5 and level-5→tier-6
boundaries, then checks stock is unchanged on display and decremented once on selection.