feedback6: merge R21P — every operator at full potential (潜能 6; GitHub #252, PR #255 by @SpiritedAwayCN, the owner's decision of 2026-10-07)
- tools/build-data.mjs applies every potentialRanks attribute step (COST, RESPAWN_TIME, ATK, MAX_HP, DEF, MAGIC_RESISTANCE, ATTACK_SPEED) to the chess, elites, 补位 and 自选 units and picks talent / trait / module-talent candidates up to requiredPotentialRank 5; summons take the owner's potential for their talents, not its stat steps. data/chess.json, backups.json, tokens.json and the en / ja / ko / zh-TW data translations rebuilt; op-wang.js reads her stock cap (8 at full potential). 刺玫 435 ATK / cost 15, 砾 16 s, 至简 70 s. - No conflicts outside the golden files (regenerated). Golden vs HEAD: roster 49, bonds 46, fields 22, matches 18, diy 133 (standins and diy-012 / diy-135…138 unchanged: no potential ranks or never hit). Union check against the branch and the merge base: every scenario only the branch moved equals the branch, except roster-048 and solo-ABYSS-2: at full potential a 频次 器物 is reached there (roster-048: one more enemy dies instead of leaking, 86 → 87 units), so R21H's hit count (data × hpMul ÷ supplyHpMul) applies where it did not before — with only that rule put back (archetypes.js times as at the merge base) both equal the branch exactly. - Tests: broad node --test 5147 / 5147; lint 0 errors.
This commit is contained in:
commit
b05845f507
178 files changed
+7667
-7317
No files matched your search
@@ -30,7 +30,7 @@ const lethal = (h, u) => h.b.dealDamage(null, u, { amount: 1e9, type: 'true', ca
|
||||
const waitOf = (u) => (u.def.raw.talents || []).find((t) => t.index === 1).bb['surtr_t_2[withdraw].interval'];
|
||||
|
||||
describe('#52 史尔特尔 余烬: 禁疗 from the lethal blow until she leaves', () => {
|
||||
test('a medic beside her heals the other injured operator instead — 0 heals reach her, she is never its target, she still leaves at 8 s; the 禁疗 status is shown', () => {
|
||||
test('a medic beside her heals the other injured operator instead — 0 heals reach her, she is never its target, she still leaves at 9 s (8 + the potential step); the 禁疗 status is shown', () => {
|
||||
const h = makeBattle({
|
||||
defs: { enemies: { enemy_dummy: DUMMY } }, autoFinish: false, timeLimit: 200, seed: 2,
|
||||
units: [
|
||||
@@ -42,7 +42,7 @@ describe('#52 史尔特尔 余烬: 禁疗 from the lethal blow until she leaves'
|
||||
});
|
||||
const s = h.unit(SURTR), medic = h.unit(MEDIC), tank = h.unit(TANK);
|
||||
const wait = waitOf(s);
|
||||
assert.equal(wait, 8, 'data: surtr_t_2[withdraw].interval');
|
||||
assert.equal(wait, 9, 'data: surtr_t_2[withdraw].interval (8 s, 9 at full potential)');
|
||||
h.run(1);
|
||||
const healed = new Map();
|
||||
const picked = new Set();
|
||||
@@ -57,18 +57,18 @@ describe('#52 史尔特尔 余烬: 禁疗 from the lethal blow until she leaves'
|
||||
assert.deepEqual(on.map((ev) => ev[3]), [1], 'the status 禁疗 is reported to the clients');
|
||||
assert.equal(statusIconKey('healFree'), 'healFree');
|
||||
assert.ok(STATUS_KEYS.includes('healFree'), 'and drawn in the status atlas');
|
||||
// 不死: a second lethal blow inside the window changes nothing (and does not restart the 8 s)
|
||||
// 不死: a second lethal blow inside the window changes nothing (and does not restart the 9 s)
|
||||
h.run(3);
|
||||
lethal(h, s);
|
||||
assert.ok(s.alive && s.hp >= 1);
|
||||
h.run(wait - 3 - 0.2);
|
||||
assert.ok(s.alive && s.deployed, 'still on the field just before 8 s');
|
||||
assert.ok(s.alive && s.deployed, 'still on the field just before 9 s');
|
||||
assert.ok(s.hp < 2, 'nobody healed her');
|
||||
assert.equal(healed.get(s) ?? 0, 0, '0 heals to her');
|
||||
assert.ok(!picked.has(s), 'the medic never picks her');
|
||||
assert.ok((healed.get(tank) ?? 0) > 0 && picked.has(tank), 'the medic heals the other injured operator instead');
|
||||
h.run(0.4);
|
||||
assert.equal(s.deployed, false, 'she leaves at 8 s');
|
||||
assert.equal(s.deployed, false, 'she leaves at 9 s');
|
||||
assert.equal(s.removeReason, 'retreat', '"强制退出战场视为撤回干员"');
|
||||
assert.ok(h.b.time - t0 <= wait + 0.25);
|
||||
const ev = h.eventsOf('status').filter((e) => e[1] === s.id && e[2] === 'healFree').map((e) => e[3]);
|
||||
@@ -76,7 +76,7 @@ describe('#52 史尔特尔 余烬: 禁疗 from the lethal blow until she leaves'
|
||||
clean(h);
|
||||
});
|
||||
|
||||
test('her own heals stop too (休眠子裔), an HP-regen attribute does not, and S3 黄昏\'s start heal ignores 禁疗 (PRTS 技能3 备注) — she still leaves at 8 s', () => {
|
||||
test('her own heals stop too (休眠子裔), an HP-regen attribute does not, and S3 黄昏\'s start heal ignores 禁疗 (PRTS 技能3 备注) — she still leaves at 9 s', () => {
|
||||
const mk = (o = {}) => makeBattle({
|
||||
defs: { enemies: { enemy_dummy: DUMMY } }, autoFinish: false, timeLimit: 200, seed: 2,
|
||||
units: [{ chessId: SURTR, row: 9, col: 5, dir: 'RIGHT', carryState: { sp: 0 }, ...o }],
|
||||
@@ -115,7 +115,7 @@ describe('#52 史尔特尔 余烬: 禁疗 from the lethal blow until she leaves'
|
||||
assert.ok(u.hp > u.s.maxHp - 50, 'healed to full in spite of 禁疗');
|
||||
h3.runUntil(() => !u.deployed, waitOf(u) + 1);
|
||||
assert.equal(u.removeReason, 'retreat');
|
||||
assert.ok(Math.abs(h3.b.time - t0 - waitOf(u)) < 0.1, 'and she still leaves 8 s after the lethal blow');
|
||||
assert.ok(Math.abs(h3.b.time - t0 - waitOf(u)) < 0.1, 'and she still leaves 9 s after the lethal blow');
|
||||
clean(h); clean(h3);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -105,7 +105,9 @@ test('getChess(id, loadout): selected skill (bb, SP, trigger) and module (stats,
|
||||
assert.equal(m3.raw.module.id, 'uniequip_003_mlyss');
|
||||
assert.equal(m3.raw.module.active, true);
|
||||
assert.equal(none.raw.module.active, false, 'no module ⇒ moduleOn(chess) false for kits');
|
||||
assert.ok(m3.talents.some((t) => t.bb.runtime_cost === -1 && t.bb.cost === -2), 'module talent change applied');
|
||||
// 开源节流 at full potential (runtime_cost −2; the module restates it) and the module's own data-only talents (sp_other)
|
||||
assert.ok(m3.talents.some((t) => t.bb.runtime_cost === -2 && t.bb.cost === -2), 'module talent change applied');
|
||||
assert.ok(m3.talents.some((t) => t.bb.sp_other === 10) && !none.talents.some((t) => t.bb.sp_other === 10), 'the module-only talent');
|
||||
assert.equal(m3.skill.id, dm.skill.id, 'a module choice keeps the skill');
|
||||
const both = d.getChess(MLYSS, { skillIndex: 0, moduleId: 'none' });
|
||||
assert.equal(both.skill.id, 'skchr_mlyss_1');
|
||||
|
||||
@@ -581,8 +581,8 @@ test('#18 安洁莉娜 兼职工作 is an HP-regen attribute (PRTS 备注 "不
|
||||
assert.ok(!ag.skill.active, 'skill off');
|
||||
const w = h.b.allyUnits.find((x) => x.defId === 'token_10028_vigil_wolf' && x.alive);
|
||||
assert.ok(w.s.flags.noHeal, '狼群 holds 禁疗');
|
||||
assert.equal(w.findBuff('aglina:parttime')?.mods.hpRegen, 20, '禁疗 does not stop the regen attribute');
|
||||
assert.ok(w.s.hpRegen >= 20);
|
||||
assert.equal(w.findBuff('aglina:parttime')?.mods.hpRegen, 25, '禁疗 does not stop the regen attribute (20 + the potential step)');
|
||||
assert.ok(w.s.hpRegen >= 25);
|
||||
assert.ok(!y.findBuff('aglina:parttime') && !y.findBuff('aglina:field'), '孤立: no ally talent selects 炎佑');
|
||||
assert.ok(h.unit('chess_char_3_19_a').findBuff('aglina:field'), 'the operators get 加速力场');
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user