feedback3 WH: an item gained as prep ends waits in hand and merges at the next prep start

This commit is contained in:
sganggs committed 2026-10-04 20:34:03 +08:00
1 parent c0cc1d6118
commit 9aaba7708c
7 files changed
+182 -5

No files matched your search

+2
View File
@@ -607,6 +607,8 @@ export function payHammers(ctx) {
ctx.setCounter(VICTORIA_COUNTER, paid + 1);
for (let i = 0; i < count; i++) {
const id = ctx.rollItem({ pool: p.pool });
// onPrepEnd: grantItem stows this and does not merge until the next prep start, so a second copy does not
// take an equipped hammer off for the fight (effectsMeta _deferItemMerge). [ASSUMED] every item that hook grants.
if (id && ctx.grantItem(id, { source: 'bond:victoriaShip' })) granted++;
}
}