Refuel: final badge art (Engine Started, Refueled 3/6/12, kie.ai, ribbon heights measured) + month-4 Twin Engine Featured bonus is 100 credits (was one Featured day = 40), Marty 2026-10-24; chatbot + test updated; my.js?v=20261024bd

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-24 06:38:58 -05:00
parent 6b3cdaaa70
commit 8ecef442a1
10 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -137,13 +137,13 @@ const D = (day, k) => new Date(Date.UTC(...day.split('-').map((v, i) => i === 1
const r = await W.buy('iap', 'late', 2000, 2000, late);
assert.strictEqual(r.month, before + 1, 'kept by a fresh free miss'); assert.strictEqual(W.rec().misses[0].free, true);
});
await t('m4+ both engines: +40% each and one free Featured day on InstantAdPay, once per cycle', async () => {
await t('m4+ both engines: +40% each and a 100-credit Featured bonus on InstantAdPay, once per cycle', async () => {
const W = world();
let day = '2026-11-02';
for (let k = 1; k <= 4; k++) { await W.buy('iap', 'i' + k, 2000, 2000, day); if (k < 4) day = D(day, 30); }
await W.buy('linkspin', 'L4', 2500, 2500, D(day, 2));
assert.strictEqual((await W.out('linkspin')).find(x => x.ref === 'rf:linkspin:L4').payload.credits, 1000);
const feat = W.earned.filter(e => /free Featured day/.test(e.opts.log.note)); assert.strictEqual(feat.length, 1); assert.strictEqual(feat[0].credits, 40);
const feat = W.earned.filter(e => /Featured bonus/.test(e.opts.log.note)); assert.strictEqual(feat.length, 1); assert.strictEqual(feat[0].credits, 100);
const top = W.earned.find(e => e.opts.log.ref === 'rftop:iap:L4'); assert.strictEqual(top.credits, 800 - 500);
});
await t('stacking: the streak grant is its own labelled grant (Friday and Wednesday add theirs untouched)', async () => {