feedback5 CB1: item 20 follow-up — bot-smarter's 坎诺特 case no longer assumes the round-7 level-up costs 9
Seed 7's solo bot plays 佩佩 for rounds 1–6; with paid special refreshes (96794c5) it reaches level 3 a round later, so
the 3 → 4 upgrade at round 7 costs 10 instead of 9 and 14 − 10 leaves 4. The test now checks what it means — after the
level-up on the curve the bot spends nothing that takes it under the 5 capital — whatever that price is. No product
change; golden unchanged.
This commit is contained in:
1 parent
3e13bb4436
commit
3bfe17bd07
1 file changed
+6
-2
@@ -237,11 +237,15 @@ test('坎诺特 (利滚利: leftover funds are kept, +1 at ≥ 5): with a full b
|
||||
assert.ok(m.gd.leftoverKeptBands.includes(ps.bandId));
|
||||
ps.funds = 14;
|
||||
const merges = ps.stats.merges;
|
||||
// the level-up on the curve is paid for first (its price depends on the rounds the run levelled at: 9 or 10 here);
|
||||
// after it the bot buys / refreshes nothing that takes it under the 5 capital
|
||||
const level0 = ps.shop.level, price0 = ps.shop.upgradePrice;
|
||||
h.run(() => m.phase === PHASE.COMBAT && m.round === 7);
|
||||
// (a merge may spend the reserve; the level-up on the curve is paid for first and leaves enough here)
|
||||
// (a merge may spend the reserve)
|
||||
if (ps.stats.merges === merges) {
|
||||
checked++;
|
||||
assert.ok(ps.funds >= 5, `seed ${seed}: ${ps.funds} funds banked`);
|
||||
const afterLevelUp = 14 - (ps.shop.level > level0 ? price0 : 0);
|
||||
assert.ok(ps.funds >= Math.min(5, afterLevelUp), `seed ${seed}: ${ps.funds} funds banked (${afterLevelUp} after the level-up)`);
|
||||
}
|
||||
m.dispose();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user