Count Fartooth granted layers on doll swaps (#415, #429)

This commit is contained in:
sganggs committed 2026-10-09 17:12:18 +08:00
1 parent 33f0e01093
commit 3f19b5981d
5 files changed
+125 -1

No files matched your search

+10
View File
@@ -77,3 +77,13 @@ whole selection before copying, and always removes it and restores focus, includ
The secure Clipboard API remains first choice; a failed fallback returns false for the existing manual-copy UI.
Shared invite/loadout copying uses the same helper. Device tests passed 16/16; independent interaction probes
passed 12/12. The real nested-dialog regression is included in `test/ui/modal.e2e.test.js` for integration testing.
### 28.5 远牙's granted trait on substitute switches — #415 / PR #429
Ported from [PR #429](https://github.com/sganggs/Stronghold-Protocol/pull/429) by @CXUtk; reported and
original-mode interaction confirmed by @rosexxxp. The official activity table supplies the amounts:
`garrison_148_a/b` grants `garrison_108_a/b`, +4/+8 to active 卡西米尔 and 精准, capped at 24/48 per battle.
Only that granted trait additionally listens to `dollSwap`, in both directions, through the existing gain function.
Deployment and switches share the original cap, active-bond checks and grant deduplication. Other deployment
traits keep their existing triggers. The 7 regression cases cover both real dollkeepers, natural and S2 returns,
shared caps, duplicate grant holders, inactive bonds and unrelated timed windows.