feedback6 R21P: every operator fights at full potential (潜能 6) — the owner's decision of 2026-10-07 (GitHub #252, PR #255; no host slider): tools/build-data.mjs OPERATOR_POTENTIAL adds every character_table potentialRanks attribute step (部署费用 / 再部署时间 / ATK / HP / DEF / RES / ASPD, all ADDITION, before rounding) to every chess (normal and elite), 补位 and 自选 unit form and picks talent / trait / module-talent candidates up to requiredPotentialRank 5 (「天赋效果增强」); a summon picks its talent candidates at its owner's potential (their requiredPotentialRank mirrors the owner's — PRTS 凯尔希: Mon3tr 3.5 s / 1400) and takes none of the owner's attribute steps; the 原型干员 stand-ins have no potential ranks (unchanged). 刺玫 413 / 17 → 435 / 15 as in the tournament video, 砾 18 → 16 s, 至简 80 → 70 s. data/chess.json (256 records), backups.json (the 71 owned picks, 8 summons), tokens.json (5 summons) and the data translations en / ja / ko / zh-TW rebuilt — only potential-driven fields (JSON-compared); the 干员调配 局内数值 and detail cards read the records. op-wang.js reads her stock cap 「最多拥有8(+1)枚」 through the potential step (the pattern fell back to 7: she sat at the cap from the start). Docs: DATA §2 / §18 / tokens, PLAYING (detail card), research 03, kits README, shared/diy.js / standIn.js, the 71 自选 kit headers and the kit comments that quoted potential-0 numbers. Tests: test/full-potential.test.js (new, fails on the parent); data.test.js re-derivation adds the potential steps (+ respawnTime); every test that hard-coded a potential-0 number carries the full-potential one (from the data and the test's own formula; no check loosened); golden: moves almost everywhere — roster 49/49, bonds 46/46, fields 22/22, matches 18/18, diy 133/138 (each battle parts on a stat: roster-001 / roster-020 at tick 1 on 角峰's HP (生命上限+250), bond-arcaneShip-high at 4.73 s and diy-001 at 3.70 s on an enemy's HP from a higher ATK; diy-110 / 111 also by 望's cap; the matches through those battles); unchanged: standins 10/10 and diy-135…138 (no potential ranks), diy-012 (twelve 夜莺 never hit, never redeployed)
This commit is contained in:
1 parent
783bd30afd
commit
806a047717
178 files changed
+7616
-7268
No files matched your search
@@ -71,8 +71,9 @@ test('珊比 in every 自选 form: her operator kit (all three skills authored),
|
||||
done(h);
|
||||
}
|
||||
}
|
||||
// the numbers of the forms (zh_CN): E2 Lv1 2565 / 536 / 430, E2 Lv60 3194 / 625 / 516; PRP-X +250 / +50 → +450 / +80
|
||||
assert.deepEqual([FORMS['2/1/4/0'].stats.maxHp, FORMS['2/1/4/0'].stats.atk, FORMS['2/60/7/1'].stats.maxHp, FORMS['2/60/7/1'].stats.atk], [2565, 536, 3194, 625]);
|
||||
// the numbers of the forms (zh_CN, full potential: HP +270): E2 Lv1 2835 / 536 / 430, E2 Lv60 3464 / 625 / 516; PRP-X +250 / +50
|
||||
// → +450 / +80
|
||||
assert.deepEqual([FORMS['2/1/4/0'].stats.maxHp, FORMS['2/1/4/0'].stats.atk, FORMS['2/60/7/1'].stats.maxHp, FORMS['2/60/7/1'].stats.atk], [2835, 536, 3464, 625]);
|
||||
assert.deepEqual([modOf(5, PRPX).attr, modOf(6, PRPX).attr], [{ maxHp: 250, atk: 50 }, { maxHp: 450, atk: 80 }]);
|
||||
});
|
||||
|
||||
@@ -273,18 +274,18 @@ test('S3 belt damage: every second from the cast, each targetable ground enemy o
|
||||
}
|
||||
});
|
||||
|
||||
test('T1 探险理论: 元素损伤 she takes ×0.85; her physical damage adds 10 % ATK 侵蚀损伤 (not her arts), or — while the target\'s 侵蚀 burst runs — shortens that burst by 1 s instead', () => {
|
||||
test('T1 探险理论: 元素损伤 she takes ×0.8; her physical damage adds 12 % ATK 侵蚀损伤 (not her arts), or — while the target\'s 侵蚀 burst runs — shortens that burst by 1.2 s instead', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite, mod] = f;
|
||||
const { h, u } = field({ tier, elite, mod, skill: 0, row: 9 });
|
||||
noSp(h, u);
|
||||
assert.deepEqual(u.def.raw.talents.find((t) => t.index === 0).bb, { ep_damage_scale: 0.85, duration_dec: 1, 'ep_damage_ratio[trigger]': 0.1 }, label(f));
|
||||
assert.deepEqual(u.def.raw.talents.find((t) => t.index === 0).bb, { ep_damage_scale: 0.8, duration_dec: 1.2, 'ep_damage_ratio[trigger]': 0.12 }, label(f));
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 8] });
|
||||
h.step();
|
||||
h.b.dealDamage(e, u, { type: 'element', element: 'burn', amount: 100 });
|
||||
approx(u.elem.burn, 85, `${label(f)}: 元素损伤 taken ×0.85`);
|
||||
approx(u.elem.burn, 80, `${label(f)}: 元素损伤 taken ×0.8`);
|
||||
h.b.dealDamage(u, e, { amount: 100, type: 'phys' });
|
||||
approx(e.elem.erosion, 0.1 * u.s.atk, `${label(f)}: 10 % ATK 侵蚀损伤 (not blocking: no module bonus)`);
|
||||
approx(e.elem.erosion, 0.12 * u.s.atk, `${label(f)}: 12 % ATK 侵蚀损伤 (not blocking: no module bonus)`);
|
||||
const e0 = e.elem.erosion;
|
||||
h.b.dealDamage(u, e, { amount: 100, type: 'arts' });
|
||||
assert.equal(e.elem.erosion, e0, `${label(f)}: not on arts damage`);
|
||||
@@ -293,26 +294,26 @@ test('T1 探险理论: 元素损伤 she takes ×0.85; her physical damage adds 1
|
||||
assert.ok(lock, `${label(f)}: bursting`);
|
||||
const left = lock.timeLeft;
|
||||
h.b.dealDamage(u, e, { amount: 100, type: 'phys' });
|
||||
approx(lock.timeLeft, left - 1, `${label(f)}: the burst 1 s shorter`);
|
||||
approx(lock.timeLeft, left - 1.2, `${label(f)}: the burst 1.2 s shorter`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('T2 坚硬脚板: an enemy she has damaged whose 侵蚀 bursts gives her DEF +8 (PRP-X stage 3: DEF +12, ATK +5; ≤ 30 stacks) and 250 (400) 屏障 added to one barrier, ≤ 300 % max HP; unmarked enemies nothing; the marks go when she leaves', () => {
|
||||
test('T2 坚硬脚板: an enemy she has damaged whose 侵蚀 bursts gives her DEF +11 (PRP-X stage 3: DEF +15, ATK +6; ≤ 30 stacks) and 330 (480) 屏障 added to one barrier, ≤ 300 % max HP; unmarked enemies nothing; the marks go when she leaves', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite, mod] = f;
|
||||
const { h, u } = field({ tier, elite, mod, skill: 0, row: 9 });
|
||||
noSp(h, u);
|
||||
const x3 = elite && mod === PRPX && tier === 6;
|
||||
const t1 = u.def.raw.talents.find((t) => t.index === 1).bb;
|
||||
assert.deepEqual(t1, x3 ? { def: 12, atk: 5, shield_value: 400, max_stack_cnt: 30, scale: 3 } : { def: 8, atk: 0, shield_value: 250, max_stack_cnt: 30, scale: 3 }, label(f));
|
||||
assert.deepEqual(t1, x3 ? { def: 15, atk: 6, shield_value: 480, max_stack_cnt: 30, scale: 3 } : { def: 11, atk: 0, shield_value: 330, max_stack_cnt: 30, scale: 3 }, label(f));
|
||||
const marked = h.spawn('enemy_dummy', { pos: [10, 8] }), other = h.spawn('enemy_dummy', { pos: [11, 8] });
|
||||
h.step();
|
||||
h.b.dealDamage(null, other, { type: 'element', element: 'erosion', amount: 1000 });
|
||||
assert.equal(u.findBuff('talent:thumpy:sole'), null, `${label(f)}: an unmarked enemy's burst`);
|
||||
h.b.dealDamage(u, marked, { amount: 10, type: 'arts' });
|
||||
h.b.dealDamage(null, marked, { type: 'element', element: 'erosion', amount: 1000 });
|
||||
assert.deepEqual(u.findBuff('talent:thumpy:sole')?.mods, x3 ? { defFlat: 12, atkFlat: 5 } : { defFlat: 8 }, `${label(f)}: the stack`);
|
||||
assert.deepEqual(u.findBuff('talent:thumpy:sole')?.mods, x3 ? { defFlat: 15, atkFlat: 6 } : { defFlat: 11 }, `${label(f)}: the stack`);
|
||||
assert.equal(u.findBuff('talent:thumpy:barrier')?.shield, t1.shield_value, `${label(f)}: 屏障`);
|
||||
h.run(8.1);
|
||||
h.b.dealDamage(null, marked, { type: 'element', element: 'erosion', amount: 1000 });
|
||||
@@ -344,12 +345,12 @@ test('PRP-X 出发的勇气 trait: every 元素损伤 she deals ×1.15 while she
|
||||
const far = h.spawn('enemy_dummy', { pos: [10, 8] });
|
||||
h.step();
|
||||
h.b.dealDamage(u, far, { amount: 100, type: 'phys' });
|
||||
approx(far.elem.erosion, 0.1 * u.s.atk, `${label(f)}: blocking nobody`);
|
||||
approx(far.elem.erosion, 0.12 * u.s.atk, `${label(f)}: blocking nobody`);
|
||||
const near = h.spawn('enemy_dummy', { pos: [10, 5] });
|
||||
assert.ok(h.runUntil(() => near.blockedBy === u, 1), `${label(f)}: blocking`);
|
||||
const g0 = far.elem.erosion;
|
||||
h.b.dealDamage(u, far, { amount: 100, type: 'phys' });
|
||||
approx(far.elem.erosion - g0, 0.1 * u.s.atk * (x ? 1.15 : 1), `${label(f)}: while blocking`);
|
||||
approx(far.elem.erosion - g0, 0.12 * u.s.atk * (x ? 1.15 : 1), `${label(f)}: while blocking`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user