feedback5: merge O10 — 自选 kits for 棘刺, 司霆惊蛰 and 赤刃明霄陈; golden: only diy moved
This commit is contained in:
commit
eba4f53e87
8 files changed
+2336
-122
No files matched your search
@@ -0,0 +1,361 @@
|
||||
// test/content/op_chen3.test.js — the 自选 operator kit of 赤刃明霄陈 (char_1050_chen3, 6★ 术战者; kit
|
||||
// server/sim/content/kits/ops/op-chen3.js), fielded the production way (a DIY slot + its `diy` pick, simdata getDiy) in
|
||||
// every form: tiers 5 / 6, normal (E2 Lv1, skill rank 4, no module) and elite (E2 Lv60, rank 7) with no module or AFT-X
|
||||
// “记忆残页” at stage 1 (tier 5) / 3 (tier 6). Every number is read back from data/backups.json (the form of that slot
|
||||
// status); the fidelity checklist of kits/README.md item by item.
|
||||
// Run: node --test test/content/op_chen3.test.js
|
||||
|
||||
import { test } from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { makeBattle, enemyRec, checkInvariants } from '../helpers/battleHarness.js';
|
||||
import { KITTED_CHARS, OPERATOR_KITS, KITS } from '../../server/sim/content/kits/index.js';
|
||||
import { diyPool, validateDiyPicks } from '../../shared/diy.js';
|
||||
|
||||
const load = (f) => JSON.parse(readFileSync(new URL(`../../data/${f}.json`, import.meta.url), 'utf8'));
|
||||
const CHESS = load('chess');
|
||||
const BACKUPS = load('backups');
|
||||
const CHEN3 = 'char_1050_chen3';
|
||||
const FORMS = BACKUPS.units[CHEN3].forms;
|
||||
const SLOT = { 5: 'chess_char_5_diy1_a', 6: 'chess_char_6_diy1_a' };
|
||||
const AFTX = 'uniequip_002_chen3';
|
||||
const S1 = 'skchr_chen3_1', S2 = 'skchr_chen3_2', S3 = 'skchr_chen3_3';
|
||||
const formOf = (tier, elite) => FORMS[elite ? (tier === 5 ? '2/60/7/1' : '2/60/7/3') : '2/1/4/0'];
|
||||
const skillOf = (tier, elite, id) => formOf(tier, elite).skills.find((s) => s.skillId === id);
|
||||
const modOf = (tier, mod) => (mod ? formOf(tier, true).modules.find((m) => m.uniEquipId === mod) : null);
|
||||
/** Talent `i`'s blackboard of a form with its module. */
|
||||
const tOf = (tier, elite, mod, i) => {
|
||||
const base = formOf(tier, elite).talents.find((t) => t.index === i).bb;
|
||||
const ch = elite && mod ? modOf(tier, mod).talentChanges.find((t) => t.talentIndex === i) : null;
|
||||
return { ...base, ...(ch?.bb ?? {}) };
|
||||
};
|
||||
const approx = (a, b, msg, eps = 1e-6) => assert.ok(Math.abs(a - b) <= eps * Math.max(1, Math.abs(b)), `${msg}: ${a} vs ${b}`);
|
||||
const dummy = (key, o = {}) => enemyRec({ key, hp: 1e9, speed: 0, mass: 0, ...o });
|
||||
const ENEMIES = {
|
||||
enemy_dummy: dummy('enemy_dummy'),
|
||||
enemy_fly: dummy('enemy_fly', { motion: 'FLY' }),
|
||||
enemy_frail: dummy('enemy_frail', { hp: 2000 }),
|
||||
enemy_mid: dummy('enemy_mid', { hp: 10000 }),
|
||||
enemy_big: dummy('enemy_big', { hp: 1e6 }),
|
||||
enemy_flymid: dummy('enemy_flymid', { hp: 10000, motion: 'FLY' }),
|
||||
enemy_mage: dummy('enemy_mage', { res: 60 }),
|
||||
enemy_tank: dummy('enemy_tank', { def: 5000 }),
|
||||
enemy_shooter: dummy('enemy_shooter', { atk: 100, range: 2.5, bat: 1 }),
|
||||
enemy_walk: enemyRec({ key: 'enemy_walk', hp: 1e9, speed: 0.6, mass: 0 }),
|
||||
};
|
||||
const FORMS_ALL = [[5, false, null], [6, false, null], ...[5, 6].flatMap((t) => [null, AFTX].map((m) => [t, true, m]))];
|
||||
|
||||
/** A battle with 赤刃明霄陈 as uid 1 at (row, col) facing RIGHT. */
|
||||
function field({ tier = 5, elite = false, mod = null, skill = 0, row = 10, col = 5, seed = 5, others = [] } = {}) {
|
||||
const h = makeBattle({
|
||||
defs: { enemies: ENEMIES }, timeLimit: 600, autoFinish: false, seed,
|
||||
flags: { dpPerSec: 0, dpMax: 999 }, hooks: ['damaged', 'skillStart', 'skillEnd', 'statusApplied', 'heal', 'deploy', 'dodge'], captureNoisy: true,
|
||||
units: [{ uid: 1, diy: { slot: SLOT[tier], charId: CHEN3, skillIndex: skill, uniEquipId: mod }, elite, row, col }, ...others],
|
||||
});
|
||||
h.step();
|
||||
return { h, u: h.unit(1) };
|
||||
}
|
||||
const from = (h, u, pred = () => true) => h.hooksOf('damaged').filter((c) => c.source === u && pred(c));
|
||||
const tagged = (c, t) => (c.dmg?.tags || []).includes(t);
|
||||
function done(h) {
|
||||
checkInvariants(h.b);
|
||||
assert.equal(h.b.errors.length, 0, JSON.stringify(h.b.errors[0]));
|
||||
}
|
||||
const label = ([tier, elite, mod]) => `T${tier} ${elite ? 'elite' : 'normal'} ${mod ?? 'none'}`;
|
||||
|
||||
test('赤刃明霄陈 in every 自选 form: her operator kit (all three skills authored), the form\'s stats + module attributes, 1-1, blocks 1, melee arts ground-only, 炎, no 特质, ground enemies can target her', () => {
|
||||
assert.equal(OPERATOR_KITS[CHEN3], KITS[CHEN3]);
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite, mod] = f;
|
||||
for (const skill of [0, 1, 2]) {
|
||||
const { h, u } = field({ tier, elite, mod, skill });
|
||||
const form = formOf(tier, elite), m = elite ? modOf(tier, mod) : null;
|
||||
assert.deepEqual([u.def.charId, u.def.diyFor, u.skill.id, !!u.kit.generic, u.kit.skillSource], [CHEN3, SLOT[tier], form.skills[skill].skillId, false, 'skills'], label(f));
|
||||
assert.deepEqual([u.base.maxHp, u.base.atk, u.base.def], [form.stats.maxHp + (m?.attr.maxHp ?? 0), form.stats.atk + (m?.attr.atk ?? 0), form.stats.def], `${label(f)}: stats`);
|
||||
assert.deepEqual([u.s.blockCnt, u.profile.sub, u.profile.attack, u.profile.canHitFly, u.profile.dmgType, u.base.bat], [1, 'artsfghter', 'melee', false, 'arts', 1.25], `${label(f)}: 术战者`);
|
||||
assert.deepEqual(u.liveRangeGrid, form.rangeGrid, `${label(f)}: 1-1`);
|
||||
assert.deepEqual([form.tokens, form.displayTokens, u.def.raw.tokens], [[], [], []], `${label(f)}: no summons`);
|
||||
assert.deepEqual([u.def.bonds, u.def.raw.garrisonIds], [['yanShip'], []], `${label(f)}: bonds / 特质`);
|
||||
assert.ok(!u.s.flags.liftoff && !u.s.flags.camou && !u.s.flags.stealth, `${label(f)}: ground enemies target her`);
|
||||
done(h);
|
||||
}
|
||||
}
|
||||
// E2 Lv1 2211 / 542 / 352, E2 Lv60 2674 / 627 / 400; AFT-X +240 / +30 → +420 / +60 (HP / ATK)
|
||||
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], [2211, 542, 2674, 627]);
|
||||
assert.deepEqual([modOf(5, AFTX).attr, modOf(6, AFTX).attr], [{ maxHp: 240, atk: 30 }, { maxHp: 420, atk: 60 }]);
|
||||
});
|
||||
|
||||
test('a 自选 pick: 赤刃明霄陈 is offered at tiers 5 and 6 (she has a kit) and a roster with her passes validateDiyPicks', () => {
|
||||
const data = { chess: CHESS, backups: BACKUPS };
|
||||
assert.ok(KITTED_CHARS.includes(CHEN3));
|
||||
for (const t of [5, 6]) assert.ok(diyPool(t, { data, kitted: KITTED_CHARS }).includes(CHEN3), `tier ${t}`);
|
||||
assert.deepEqual(validateDiyPicks({ [SLOT[5]]: { charId: CHEN3, skillIndex: 1, uniEquipId: AFTX } }, { data, kitted: KITTED_CHARS }),
|
||||
{ ok: true, picks: { [SLOT[5]]: { charId: CHEN3, skillIndex: 1, uniEquipId: AFTX } } });
|
||||
});
|
||||
|
||||
test('T1 形意洞照: ATK +13 %, ASPD +13; every physical / arts damage of hers is 弱点伤害 — physical on a high-RES enemy, arts on a high-DEF one', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite, mod] = f;
|
||||
const t0 = tOf(tier, elite, mod, 0);
|
||||
assert.deepEqual([t0.atk, t0.attack_speed], [0.13, 13]);
|
||||
const { h, u } = field({ tier, elite, mod, skill: 0 });
|
||||
approx(u.s.atk, u.base.atk * 1.13, `${label(f)}: ATK`);
|
||||
const as = elite && mod === AFTX ? 8 : 0; // she blocks nobody yet: AFT-X's +8 on top
|
||||
assert.equal(u.s.aspd, 100 + 13 + as, `${label(f)}: ASPD`);
|
||||
u.skill.sp = 0;
|
||||
const mage = h.spawn('enemy_mage', { pos: [10, 6] });
|
||||
h.runUntil(() => from(h, u, (c) => c.target === mage).length > 0, 3);
|
||||
const m = from(h, u, (c) => c.target === mage)[0];
|
||||
assert.deepEqual([m.type, m.dmg.isAttack], ['phys', true], `${label(f)}: physical on RES 60 / DEF 0`);
|
||||
approx(m.amount, u.s.atk, `${label(f)}: full`);
|
||||
h.b.kill(mage, null);
|
||||
const tank = h.spawn('enemy_tank', { pos: [10, 6] });
|
||||
h.runUntil(() => from(h, u, (c) => c.target === tank).length > 0, 3);
|
||||
assert.equal(from(h, u, (c) => c.target === tank)[0].type, 'arts', `${label(f)}: arts on DEF 5000 / RES 0`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('AFT-X “记忆残页” (stages 1 / 3): ASPD +8 while she blocks nobody — off while she blocks', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite, mod] = f;
|
||||
const { h, u } = field({ tier, elite, mod, skill: 0, row: 9, col: 5 });
|
||||
const on = elite && mod === AFTX;
|
||||
if (on) assert.deepEqual(u.def.raw.trait.bb, { attack_speed: 8 }, label(f));
|
||||
h.step();
|
||||
assert.equal(!!u.findBuff('trait:chen3:unblocked'), on, `${label(f)}: nobody blocked`);
|
||||
u.skill.sp = 0;
|
||||
h.spawn('enemy_walk', { routeIndex: 0 });
|
||||
assert.ok(h.runUntil(() => u.blocking.length > 0, 30), `${label(f)}: the walker reaches her`);
|
||||
h.step();
|
||||
assert.equal(u.findBuff('trait:chen3:unblocked'), null, `${label(f)}: blocking`);
|
||||
assert.equal(u.s.aspd, 113, `${label(f)}: ASPD while blocking`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('T2 寒暑觉知: every 7 s (AFT-X stage 3: 6 s) without damage a self-heal of ATK × a whole random percent of [30, 161) ([50, 201)) and one held dodge; any damage restarts the count', () => {
|
||||
for (const f of [[5, false, null], [6, true, null], [5, true, AFTX], [6, true, AFTX]]) {
|
||||
const [tier, elite, mod] = f;
|
||||
const t1 = tOf(tier, elite, mod, 1);
|
||||
const st = t1.stack_time, lo = t1.heal_atk_scale_min, hi = t1.heal_atk_scale_max;
|
||||
assert.deepEqual([st, lo, hi], elite && mod === AFTX && tier === 6 ? [6, 50, 201] : [7, 30, 161], label(f));
|
||||
const { h, u } = field({ tier, elite, mod, skill: 0 });
|
||||
u.hp = 100;
|
||||
const heals = () => h.hooksOf('heal').filter((c) => c.target === u && c.source === u && !c.opts?.regen);
|
||||
h.run(st - 0.15);
|
||||
assert.equal(heals().length, 0, `${label(f)}: not before ${st} s`);
|
||||
assert.equal(u.mem.chen3T2.evade, false);
|
||||
h.run(0.25);
|
||||
assert.equal(heals().length, 1, `${label(f)}: at ${st} s`);
|
||||
const pct = heals()[0].amount / u.s.atk * 100;
|
||||
assert.ok(Math.abs(pct - Math.round(pct)) < 1e-6 && pct >= lo && pct < hi, `${label(f)}: ${pct} % of ATK`);
|
||||
assert.equal(u.mem.chen3T2.evade, true, `${label(f)}: a dodge held`);
|
||||
// damage restarts the count: no second heal at 2 × st
|
||||
h.run(st - 3);
|
||||
const e = h.spawn('enemy_dummy', { pos: [12, 9] });
|
||||
h.b.dealDamage(e, u, { amount: 1, type: 'true' });
|
||||
h.run(3);
|
||||
assert.equal(heals().length, 1, `${label(f)}: the count restarted`);
|
||||
h.run(st - 3 + 0.2);
|
||||
assert.equal(heals().length, 2, `${label(f)}: ${st} s after the damage`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('T2: the held dodge cancels the next dodgeable physical / arts damage instance and is spent; true damage passes; a 流失 restarts nothing; her other dodges (S2) are rolled first and keep it', () => {
|
||||
const { h, u } = field({ tier: 5, skill: 0 });
|
||||
const e = h.spawn('enemy_dummy', { pos: [12, 9] });
|
||||
h.run(7.2);
|
||||
assert.equal(u.mem.chen3T2.evade, true);
|
||||
const hp0 = u.hp;
|
||||
assert.equal(h.b.dealDamage(e, u, { amount: 300, type: 'true' }), 300, 'true damage is not dodged');
|
||||
assert.equal(u.mem.chen3T2.evade, true, 'still held');
|
||||
assert.equal(h.b.dealDamage(e, u, { amount: 300, type: 'arts' }), 0, 'arts dodged');
|
||||
assert.equal(u.mem.chen3T2.evade, false, 'spent');
|
||||
assert.equal(h.hooksOf('dodge').filter((c) => c.target === u).length, 1, 'a dodge event');
|
||||
assert.equal(h.b.dealDamage(e, u, { amount: 300, type: 'phys' }) > 0, true, 'the next one lands');
|
||||
approx(u.hp, hp0 - 300 - (300 - u.s.def > 300 * 0.05 ? 300 - u.s.def : 15), 'HP');
|
||||
// a 流失 does not restart the count
|
||||
h.run(5);
|
||||
h.b.loseHp(u, 1, { source: e });
|
||||
h.run(2.2);
|
||||
assert.equal(u.mem.chen3T2.evade, true, 'a 流失 is no damage taken');
|
||||
// another dodge first: a certain one (p 1) wins and the held one is kept
|
||||
h.b.addBuff(u, { key: 'test:dodge', mods: { dodgePhys: 1 } });
|
||||
assert.equal(h.b.dealDamage(e, u, { amount: 300, type: 'phys' }), 0);
|
||||
assert.equal(u.mem.chen3T2.evade, true, 'kept behind the other dodge');
|
||||
done(h);
|
||||
});
|
||||
|
||||
test('S1 赤霄·奔夜 (MANUAL, data DEFAULT): ATK +65 % / +80 % for 18 s, every attack hits twice, 沉默 on its target until the skill ends', () => {
|
||||
for (const [tier, elite] of [[5, false], [6, true]]) {
|
||||
const sk = skillOf(tier, elite, S1);
|
||||
const { h, u } = field({ tier, elite, skill: 0 });
|
||||
assert.deepEqual([u.skill.rule, sk.duration, sk.bb.atk], ['DEFAULT', 18, elite ? 0.8 : 0.65], `T${tier}`);
|
||||
u.skill.gainSp(999);
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
assert.ok(h.runUntil(() => u.skill.active, 3), `T${tier}: cast`);
|
||||
approx(u.s.atk, u.base.atk * (1 + 0.13 + sk.bb.atk), `T${tier}: ATK`);
|
||||
const n0 = from(h, u).length;
|
||||
h.runUntil(() => from(h, u).length >= n0 + 2, 3);
|
||||
const two = from(h, u).slice(n0, n0 + 2);
|
||||
assert.equal(two[0].dmg.attackId, two[1].dmg.attackId, `T${tier}: one attack, two hits`);
|
||||
approx(two[0].amount, u.s.atk, `T${tier}: ATK each`);
|
||||
const sil = h.hooksOf('statusApplied').filter((c) => c.status === 'silence' && c.target === e && c.source === u);
|
||||
assert.ok(sil.length >= 1, `T${tier}: 沉默`);
|
||||
approx(sil[0].duration + sil[0].t, u.mem.chen3S1End, `T${tier}: until the skill ends`, 0.05);
|
||||
h.runUntil(() => !u.skill.active, 20);
|
||||
h.step();
|
||||
assert.ok(!e.s.flags.silence, `T${tier}: lifted with the skill's end`);
|
||||
done(h);
|
||||
}
|
||||
// knocked out mid-skill: the silences she set end with it
|
||||
const { h, u } = field({ tier: 5, skill: 0 });
|
||||
u.skill.gainSp(999);
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
h.runUntil(() => h.hooksOf('statusApplied').some((c) => c.status === 'silence'), 3);
|
||||
assert.ok(e.s.flags.silence);
|
||||
h.b.kill(u, null);
|
||||
h.step();
|
||||
assert.ok(!e.s.flags.silence, 'gone with the skill');
|
||||
done(h);
|
||||
});
|
||||
|
||||
test('S2 赤霄·绝影-驰 (MANUAL, 技能范围 x-1, data SKILL_RANGE): 10 slashes on the nearest enemy, 0.4 s apart, 390 % / 430 % ATK arts; 无敌, blocks nobody, no attack, stun immune; then a 【移动】 onto its tile and 6 s of ATK +230 % / +260 % with 40 % / 50 % physical and arts dodge', () => {
|
||||
for (const [tier, elite] of [[5, false], [6, true]]) {
|
||||
const sk = skillOf(tier, elite, S2);
|
||||
const { h, u } = field({ tier, elite, skill: 1 });
|
||||
assert.deepEqual([u.skill.rule, sk.rangeId, sk.duration, sk.bb.atk_scale, sk.bb['chen3_s2[respawn_buff].atk'], sk.bb['chen3_s2[respawn_buff].prob']],
|
||||
['SKILL_RANGE', 'x-1', 6, elite ? 4.3 : 3.9, elite ? 2.6 : 2.3, elite ? 0.5 : 0.4], `T${tier}`);
|
||||
u.skill.gainSp(999);
|
||||
const near = h.spawn('enemy_dummy', { pos: [11, 6] }); // √2 away
|
||||
const far = h.spawn('enemy_dummy', { pos: [10, 7] }); // 2 away
|
||||
const shooter = h.spawn('enemy_shooter', { pos: [12, 7] });
|
||||
assert.ok(h.runUntil(() => u.skill.active, 2), `T${tier}: cast`);
|
||||
const t0 = h.b.time;
|
||||
h.step();
|
||||
assert.ok(u.s.flags.invulnerable && u.s.flags.noBlock, `T${tier}: 无敌, 不可阻挡`);
|
||||
assert.equal(h.b.applyStatus(u, 'stun', { duration: 2, source: shooter }), false, `T${tier}: stun immune`);
|
||||
const hp0 = u.hp;
|
||||
h.run(3.5);
|
||||
assert.equal(u.hp, hp0, `T${tier}: nothing hurts her`);
|
||||
h.runUntil(() => u.mem.chen3S2?.phase !== 1, 3);
|
||||
const cuts = from(h, u, (c) => tagged(c, 'chen3:slash'));
|
||||
assert.equal(cuts.length, 10, `T${tier}: 10 slashes`);
|
||||
assert.ok(cuts.every((c) => c.target === near), `T${tier}: on the nearest`);
|
||||
cuts.forEach((c, i) => approx(c.t - cuts[0].t, 0.4 * i, `T${tier}: slash ${i + 1}`, 0.04));
|
||||
approx(cuts[0].t, t0, `T${tier}: the first at the cast`, 0.05);
|
||||
for (const c of cuts) { approx(c.amount, u.base.atk * 1.13 * sk.bb.atk_scale, `T${tier}: ${sk.bb.atk_scale * 100} % ATK`); assert.deepEqual([c.type, c.dmg.isSkill], ['arts', true]); }
|
||||
// the move onto the target's tile, the 6 s state
|
||||
const moves = h.hooksOf('deploy').filter((c) => c.unit === u && c.move);
|
||||
assert.equal(moves.length, 1, `T${tier}: one 【移动】`);
|
||||
approx(moves[0].t - cuts[0].t, 4, `T${tier}: after 10 × 0.4 s`, 0.05);
|
||||
assert.equal(from(h, u, (c) => c.dmg.isAttack && c.t < moves[0].t).length, 0, `T${tier}: no attack while slashing`);
|
||||
assert.deepEqual([u.tileR, u.tileC], [11, 6], `T${tier}: moved onto its tile`);
|
||||
assert.ok(!u.s.flags.invulnerable && !u.s.flags.noBlock, `T${tier}: the slashing is over`);
|
||||
approx(u.s.atk, u.base.atk * (1 + 0.13 + sk.bb['chen3_s2[respawn_buff].atk']), `T${tier}: ATK`);
|
||||
approx(u.s.dodgePhys, sk.bb['chen3_s2[respawn_buff].prob'], `T${tier}: physical dodge`);
|
||||
approx(u.s.dodgeArts, sk.bb['chen3_s2[respawn_buff].prob'], `T${tier}: arts dodge`);
|
||||
approx(u.skill.timeLeft, 6, `T${tier}: 6 s from the move`, 0.05);
|
||||
h.runUntil(() => !u.skill.active, 7);
|
||||
approx(u.s.atk, u.base.atk * 1.13, `T${tier}: back`);
|
||||
assert.equal(from(h, u, (c) => tagged(c, 'chen3:slash') && c.target === far).length, 0, `T${tier}: the farther one is never slashed`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('S2: a slashed enemy that falls hands the slashes to the nearest one within 1.7 (+1 slash); with nobody left the slashing ends and she moves back onto her own tile; damage on a 2000-HP target', () => {
|
||||
{
|
||||
const { h, u } = field({ tier: 5, skill: 1 });
|
||||
u.skill.gainSp(999);
|
||||
const frail = h.spawn('enemy_frail', { pos: [10, 6] }), next = h.spawn('enemy_dummy', { pos: [11, 7] });
|
||||
assert.ok(h.runUntil(() => u.skill.active, 2));
|
||||
h.runUntil(() => u.mem.chen3S2?.phase !== 1, 6);
|
||||
const cuts = from(h, u, (c) => tagged(c, 'chen3:slash'));
|
||||
assert.ok(!frail.alive, 'the first target fell');
|
||||
const onFrail = cuts.filter((c) => c.target === frail).length;
|
||||
assert.equal(cuts.length, 11, `11 slashes (${onFrail} on the first)`);
|
||||
assert.ok(cuts.slice(onFrail).every((c) => c.target === next), 'the rest on the next');
|
||||
assert.deepEqual([u.tileR, u.tileC], [11, 7], 'onto the last target\'s tile');
|
||||
done(h);
|
||||
}
|
||||
{
|
||||
const { h, u } = field({ tier: 5, skill: 1 });
|
||||
u.skill.gainSp(999);
|
||||
const frail = h.spawn('enemy_frail', { pos: [10, 6] });
|
||||
assert.ok(h.runUntil(() => u.skill.active, 2));
|
||||
h.runUntil(() => u.mem.chen3S2?.phase !== 1, 6);
|
||||
assert.ok(!frail.alive);
|
||||
assert.ok(from(h, u, (c) => tagged(c, 'chen3:slash')).length < 10, 'ended early');
|
||||
assert.deepEqual([u.tileR, u.tileC], [10, 5], 'back on her own tile');
|
||||
assert.equal(h.hooksOf('deploy').filter((c) => c.unit === u && c.move).length, 1, 'a 【移动】 in place');
|
||||
assert.ok(u.skill.active && u.findBuff('skill:chen3:respawn'), 'the 6 s state still');
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('S3 赤霄·天喟 (MANUAL, data ACTIVE_RANGE on 3-12): range 3-12, each attack hits up to 3 ground enemies 3 times for 165 % / 180 % ATK arts; back to 1-1 after 20 s', () => {
|
||||
for (const [tier, elite] of [[5, false], [6, true]]) {
|
||||
const sk = skillOf(tier, elite, S3);
|
||||
const { h, u } = field({ tier, elite, skill: 2 });
|
||||
assert.deepEqual([u.skill.rule, sk.rangeId, sk.duration, sk.bb['attack@atk_scale'], sk.bb['attack@max_target'], sk.bb.hp_ratio, sk.bb.projectile_min_atk_scale],
|
||||
['ACTIVE_RANGE', '3-12', 20, elite ? 1.8 : 1.65, 3, 0.06, elite ? 5.5 : 5.3], `T${tier}`);
|
||||
u.skill.gainSp(999);
|
||||
const ground = [[10, 7], [9, 6], [11, 6], [10, 8]].map((pos) => h.spawn('enemy_dummy', { pos }));
|
||||
const fly = h.spawn('enemy_fly', { pos: [11, 5] });
|
||||
assert.ok(h.runUntil(() => u.skill.active, 2), `T${tier}: an enemy on the 3-12`);
|
||||
assert.deepEqual(u.liveRangeGrid, sk.rangeGrid, `T${tier}: 3-12`);
|
||||
const n0 = from(h, u, (c) => c.dmg.isAttack).length;
|
||||
h.runUntil(() => from(h, u, (c) => c.dmg.isAttack).length >= n0 + 9, 4);
|
||||
const hits = from(h, u, (c) => c.dmg.isAttack).slice(n0, n0 + 9);
|
||||
assert.equal(new Set(hits.map((c) => c.dmg.attackId)).size, 1, `T${tier}: one attack`);
|
||||
assert.equal(new Set(hits.map((c) => c.target)).size, 3, `T${tier}: 3 targets`);
|
||||
assert.ok(hits.every((c) => c.target !== fly && ground.includes(c.target)), `T${tier}: ground only`);
|
||||
for (const c of hits) { approx(c.amount, u.s.atk * sk.bb['attack@atk_scale'], `T${tier}: ${sk.bb['attack@atk_scale'] * 100} %`); assert.equal(c.type, 'arts'); }
|
||||
h.runUntil(() => !u.skill.active, 21);
|
||||
assert.deepEqual(u.liveRangeGrid, formOf(tier, elite).rangeGrid, `T${tier}: back to 1-1`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('S3: the sword wave leaves her tile forward at 1.5 tiles/s, hits each enemy within 1.3 once per straight run (air too) for max(6 % of its HP, 530 % / 550 % ATK) arts, turns clockwise at the field\'s edge / high ground / gates and forgets whom it hit, and is gone with the skill', () => {
|
||||
for (const [tier, elite] of [[5, false], [6, true]]) {
|
||||
const sk = skillOf(tier, elite, S3);
|
||||
const { h, u } = field({ tier, elite, skill: 2 });
|
||||
u.skill.gainSp(999);
|
||||
const trigger = h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
assert.ok(h.runUntil(() => u.skill.active, 2));
|
||||
const t0 = h.b.time;
|
||||
const mid = h.spawn('enemy_mid', { pos: [10, 8] }), big = h.spawn('enemy_big', { pos: [9, 8] });
|
||||
const fly = h.spawn('enemy_flymid', { pos: [11, 9] });
|
||||
const corner = h.spawn('enemy_dummy', { pos: [10, 10] });
|
||||
const waveHits = (e) => from(h, u, (c) => tagged(c, 'chen3:wave') && c.target === e);
|
||||
h.run(3);
|
||||
const w = u.mem.chen3Wave;
|
||||
approx(w.x, 5 + 1.5 * (h.b.time - t0), `T${tier}: 1.5 tiles/s along row 10`, 0.02);
|
||||
assert.deepEqual([w.dr, w.dc, w.y], [0, 1, 10], `T${tier}: still heading right`);
|
||||
assert.equal(waveHits(trigger).length, 1, `T${tier}: once per run`);
|
||||
approx(waveHits(trigger)[0].t, t0, `T${tier}: at the cast`, 0.1);
|
||||
// 10 000 HP: 6 % = 600 < 530 % ATK ⇒ the ATK floor; 1 000 000 HP: 6 % = 60 000 wins
|
||||
for (const [e, amt] of [[mid, sk.bb.projectile_min_atk_scale * u.s.atk], [fly, sk.bb.projectile_min_atk_scale * u.s.atk], [big, 0.06 * 1e6]]) {
|
||||
assert.equal(waveHits(e).length, 1, `T${tier}: ${e.defId} once`);
|
||||
approx(waveHits(e)[0].amount, amt, `T${tier}: ${e.defId}`);
|
||||
assert.deepEqual([waveHits(e)[0].type, waveHits(e)[0].dmg.isSkill], ['arts', true]);
|
||||
}
|
||||
// the field ends after column 10: it turns down there (the corner enemy, within 1.3, is hit again), then left before
|
||||
// the 侵入点 at (9, 10) — and runs back along row 10
|
||||
h.run(1);
|
||||
assert.ok(waveHits(corner).length >= 2, `T${tier}: the corner one again after a turn (${waveHits(corner).length})`);
|
||||
h.run(2);
|
||||
assert.deepEqual([u.mem.chen3Wave.dr, u.mem.chen3Wave.dc], [0, -1], `T${tier}: heading left`);
|
||||
assert.ok(u.mem.chen3Wave.x < 10 && Math.round(u.mem.chen3Wave.y) === 10, `T${tier}: back along row 10`);
|
||||
h.runUntil(() => !u.skill.active, 20);
|
||||
h.step();
|
||||
assert.equal(u.mem.chen3Wave, null, `T${tier}: gone with the skill`);
|
||||
const n = from(h, u, (c) => tagged(c, 'chen3:wave')).length;
|
||||
h.run(3);
|
||||
assert.equal(from(h, u, (c) => tagged(c, 'chen3:wave')).length, n, `T${tier}: no more wave hits`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,371 @@
|
||||
// test/content/op_leizi2.test.js — the 自选 operator kit of 司霆惊蛰 (char_1043_leizi2, 6★ 解放者; kit
|
||||
// server/sim/content/kits/ops/op-leizi2.js), fielded the production way (a DIY slot + its `diy` pick, simdata getDiy) in
|
||||
// every form: tiers 5 / 6, normal (E2 Lv1, skill rank 4, no module) and elite (E2 Lv60, rank 7) with no module or LIB-X
|
||||
// “一念” at stage 1 (tier 5) / 3 (tier 6). Every number is read back from data/backups.json (the form of that slot
|
||||
// status); the fidelity checklist of kits/README.md item by item.
|
||||
// Run: node --test test/content/op_leizi2.test.js
|
||||
|
||||
import { test } from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { makeBattle, enemyRec, checkInvariants } from '../helpers/battleHarness.js';
|
||||
import { KITTED_CHARS, OPERATOR_KITS, KITS } from '../../server/sim/content/kits/index.js';
|
||||
import { diyPool, validateDiyPicks } from '../../shared/diy.js';
|
||||
import { COLS } from '../../server/sim/constants.js';
|
||||
|
||||
const load = (f) => JSON.parse(readFileSync(new URL(`../../data/${f}.json`, import.meta.url), 'utf8'));
|
||||
const CHESS = load('chess');
|
||||
const BACKUPS = load('backups');
|
||||
const LEIZI2 = 'char_1043_leizi2';
|
||||
const FORMS = BACKUPS.units[LEIZI2].forms;
|
||||
const SLOT = { 5: 'chess_char_5_diy1_a', 6: 'chess_char_6_diy1_a' };
|
||||
const LIBX = 'uniequip_002_leizi2';
|
||||
const S1 = 'skchr_leizi2_1', S2 = 'skchr_leizi2_2', S3 = 'skchr_leizi2_3';
|
||||
const formOf = (tier, elite) => FORMS[elite ? (tier === 5 ? '2/60/7/1' : '2/60/7/3') : '2/1/4/0'];
|
||||
const skillOf = (tier, elite, id) => formOf(tier, elite).skills.find((s) => s.skillId === id);
|
||||
const modOf = (tier, mod) => (mod ? formOf(tier, true).modules.find((m) => m.uniEquipId === mod) : null);
|
||||
const tOf = (tier, elite, mod, i) => {
|
||||
const base = formOf(tier, elite).talents.find((t) => t.index === i).bb;
|
||||
const ch = elite && mod ? modOf(tier, mod).talentChanges.find((t) => t.talentIndex === i) : null;
|
||||
return { ...base, ...(ch?.bb ?? {}) };
|
||||
};
|
||||
const approx = (a, b, msg, eps = 1e-6) => assert.ok(Math.abs(a - b) <= eps * Math.max(1, Math.abs(b)), `${msg}: ${a} vs ${b}`);
|
||||
const dummy = (key, o = {}) => enemyRec({ key, hp: 1e9, speed: 0, mass: 0, ...o });
|
||||
const ENEMIES = {
|
||||
enemy_dummy: dummy('enemy_dummy'),
|
||||
enemy_fly: dummy('enemy_fly', { motion: 'FLY' }),
|
||||
enemy_shooter: dummy('enemy_shooter', { atk: 100, range: 2.5, bat: 1 }),
|
||||
enemy_flyshooter: dummy('enemy_flyshooter', { atk: 100, range: 2.5, bat: 1, motion: 'FLY' }),
|
||||
};
|
||||
const FORMS_ALL = [[5, false, null], [6, false, null], ...[5, 6].flatMap((t) => [null, LIBX].map((m) => [t, true, m]))];
|
||||
const COUNT_IV = 31 / 30;
|
||||
|
||||
/** A battle with 司霆惊蛰 as uid 1 at (row, col) facing RIGHT; `rec` logs her damage with her ATK at that moment. */
|
||||
function field({ tier = 5, elite = false, mod = null, skill = 0, row = 10, col = 5, seed = 5, silence = false } = {}) {
|
||||
const log = [];
|
||||
const h = makeBattle({
|
||||
defs: { enemies: ENEMIES }, timeLimit: 900, autoFinish: false, seed,
|
||||
flags: { dpPerSec: 0, dpMax: 999 }, hooks: ['damaged', 'skillStart', 'skillEnd', 'statusApplied', 'attack'], captureNoisy: true,
|
||||
units: [{ uid: 1, diy: { slot: SLOT[tier], charId: LEIZI2, skillIndex: skill, uniEquipId: mod }, elite, row, col }],
|
||||
setup(b) {
|
||||
b.on('damaged', (c) => {
|
||||
const u = b.allyUnits.find((a) => a.uid === 1);
|
||||
if (c.source === u) log.push({ t: b.time, e: c.target, amount: c.amount, type: c.type, atk: u.s.atk, mul: u.s.atkScaleMul, tags: c.dmg?.tags || [], isAttack: !!c.dmg?.isAttack, isSplash: !!c.dmg?.isSplash, attackId: c.dmg?.attackId });
|
||||
}, { priority: 1000 });
|
||||
},
|
||||
});
|
||||
h.step();
|
||||
const u = h.unit(1);
|
||||
if (silence) h.b.addBuff(u, { key: 'test:silence', flags: { silence: true }, persist: true });
|
||||
return { h, u, log };
|
||||
}
|
||||
const tagged = (x, t) => x.tags.includes(t);
|
||||
function done(h) {
|
||||
checkInvariants(h.b);
|
||||
assert.equal(h.b.errors.length, 0, JSON.stringify(h.b.errors[0]));
|
||||
}
|
||||
const label = ([tier, elite, mod]) => `T${tier} ${elite ? 'elite' : 'normal'} ${mod ?? 'none'}`;
|
||||
|
||||
test('司霆惊蛰 in every 自选 form: her operator kit (all three skills authored), the form\'s stats + module attributes, 1-2, a 解放者 (no attack, block 0 while no skill runs), 起飞, melee physical ground-only, 炎, no 特质', () => {
|
||||
assert.equal(OPERATOR_KITS[LEIZI2], KITS[LEIZI2]);
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite, mod] = f;
|
||||
for (const skill of [0, 1, 2]) {
|
||||
const { h, u } = field({ tier, elite, mod, skill, silence: true });
|
||||
const form = formOf(tier, elite), m = elite ? modOf(tier, mod) : null;
|
||||
assert.deepEqual([u.def.charId, u.def.diyFor, u.skill.id, !!u.kit.generic, u.kit.skillSource], [LEIZI2, SLOT[tier], form.skills[skill].skillId, false, 'skills'], label(f));
|
||||
assert.deepEqual([u.base.maxHp, u.base.atk, u.base.def], [form.stats.maxHp + (m?.attr.maxHp ?? 0), form.stats.atk + (m?.attr.atk ?? 0), form.stats.def + (m?.attr.def ?? 0)], `${label(f)}: stats`);
|
||||
assert.deepEqual([form.stats.blockCnt, u.s.blockCnt, u.profile.sub, u.profile.noAttackUnlessSkill, u.profile.attack, u.profile.canHitFly, u.profile.dmgType, u.base.bat], [3, 0, 'librator', true, 'melee', false, 'phys', 1.2], `${label(f)}: 解放者`);
|
||||
assert.deepEqual([u.profile.rampMax, u.profile.rampTime, u.profile.rampInit], [2, 40, elite && mod === LIBX ? 1 : 0], `${label(f)}: the trait's ramp`);
|
||||
assert.deepEqual(u.liveRangeGrid, form.rangeGrid, `${label(f)}: 1-2`);
|
||||
assert.deepEqual([form.tokens, form.displayTokens, u.def.raw.tokens], [[], [], []], `${label(f)}: no summons`);
|
||||
assert.deepEqual([u.def.bonds, u.def.raw.garrisonIds], [['yanShip'], []], `${label(f)}: bonds / 特质`);
|
||||
assert.ok(u.s.flags.liftoff && !u.s.flags.camou && !u.s.flags.stealth, `${label(f)}: 起飞`);
|
||||
done(h);
|
||||
}
|
||||
}
|
||||
// E2 Lv1 3206 / 306 / 417, E2 Lv60 3642 / 342 / 466; LIB-X +225 / +26 / +27 → +360 / +42 / +36 (HP / ATK / DEF)
|
||||
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], [3206, 306, 3642, 342]);
|
||||
assert.deepEqual([modOf(5, LIBX).attr, modOf(6, LIBX).attr], [{ maxHp: 225, atk: 26, def: 27 }, { maxHp: 360, atk: 42, def: 36 }]);
|
||||
});
|
||||
|
||||
test('a 自选 pick: 司霆惊蛰 is offered at tiers 5 and 6 (she has a kit) and a roster with her passes validateDiyPicks', () => {
|
||||
const data = { chess: CHESS, backups: BACKUPS };
|
||||
assert.ok(KITTED_CHARS.includes(LEIZI2));
|
||||
for (const t of [5, 6]) assert.ok(diyPool(t, { data, kitted: KITTED_CHARS }).includes(LEIZI2), `tier ${t}`);
|
||||
assert.deepEqual(validateDiyPicks({ [SLOT[6]]: { charId: LEIZI2, skillIndex: 2, uniEquipId: LIBX } }, { data, kitted: KITTED_CHARS }),
|
||||
{ ok: true, picks: { [SLOT[6]]: { charId: LEIZI2, skillIndex: 2, uniEquipId: LIBX } } });
|
||||
});
|
||||
|
||||
test('trait + LIB-X: ATK +5 % a second up to +200 % while no skill runs (LIB-X stages 1 / 3: +100 % from each deployment); she never attacks then', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite, mod] = f;
|
||||
const { h, u } = field({ tier, elite, mod, skill: 1, silence: true });
|
||||
const init = elite && mod === LIBX ? 1 : 0;
|
||||
approx(u.s.atk, u.base.atk * (1 + init), `${label(f)}: at the deployment`);
|
||||
h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
h.run(10.05);
|
||||
approx(u.s.atk, u.base.atk * (1 + Math.min(2, init + 0.5)), `${label(f)}: after 10 s`);
|
||||
h.run(40);
|
||||
approx(u.s.atk, u.base.atk * 3, `${label(f)}: +200 % at most`);
|
||||
assert.equal(h.hooksOf('attack').filter((c) => c.attacker === u).length, 0, `${label(f)}: no attack`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('T1 明断 起飞: while no skill runs ground enemies never target her (a ground shooter in range stays idle, a flying one hits her); a skill lands her (0.5 s with no attack, counted in its time) and she blocks 3; after it the take-off clip (0.933 s) passes before she is up again', () => {
|
||||
for (const [tier, elite] of [[5, false], [6, true]]) {
|
||||
const { h, u } = field({ tier, elite, skill: 1, silence: true });
|
||||
const g = h.spawn('enemy_shooter', { pos: [10, 7] });
|
||||
h.run(4);
|
||||
assert.equal(h.hooksOf('damaged').filter((c) => c.target === u && c.source === g).length, 0, `T${tier}: the ground shooter cannot select her`);
|
||||
const air = h.spawn('enemy_flyshooter', { pos: [11, 6] });
|
||||
h.run(3);
|
||||
assert.ok(h.hooksOf('damaged').some((c) => c.target === u && c.source === air), `T${tier}: a flyer can`);
|
||||
h.spawn('enemy_dummy', { pos: [10, 6] }); // S2's SEARCH: a ground enemy on her 1-2
|
||||
h.b.removeBuff(u, 'test:silence');
|
||||
u.skill.gainSp(999);
|
||||
assert.ok(h.runUntil(() => u.skill.active, 2), `T${tier}: S2 (an enemy on her 1-2)`);
|
||||
const cast = h.b.time;
|
||||
assert.deepEqual([!!u.s.flags.liftoff, u.s.blockCnt], [false, 3], `T${tier}: landed`);
|
||||
h.run(3);
|
||||
assert.ok(h.hooksOf('damaged').some((c) => c.target === u && c.source === g), `T${tier}: now the ground shooter hits her`);
|
||||
const first = h.hooksOf('attack').find((c) => c.attacker === u);
|
||||
approx(first.t - cast, 0.5, `T${tier}: her first attack once the landing is over`, 0.05);
|
||||
h.runUntil(() => !u.skill.active, 40);
|
||||
approx(h.b.time - cast, skillOf(tier, elite, S2).duration, `T${tier}: the landing counts in the 36 s`, 0.05);
|
||||
h.step();
|
||||
assert.deepEqual([!!u.s.flags.liftoff, u.s.blockCnt], [false, 0], `T${tier}: taking off`);
|
||||
h.run(0.8);
|
||||
assert.ok(!u.s.flags.liftoff, `T${tier}: still taking off`);
|
||||
h.run(0.15);
|
||||
assert.deepEqual([!!u.s.flags.liftoff, u.s.blockCnt], [true, 0], `T${tier}: up again`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('T1 明断 strikes: every 1.0333 s each tile of her range counts — a struck tile is struck again 8–12 counts later, a new one within 2–16 — for 100 % ATK arts on every enemy there, air units too, 0.15 s after the cast', () => {
|
||||
for (const [tier, elite, mod] of [[5, false, null], [6, true, LIBX]]) {
|
||||
const t0 = tOf(tier, elite, mod, 0);
|
||||
assert.deepEqual([t0.interval, t0.atk_scale_t, t0.times], [1, 1, 1]);
|
||||
const { h, log } = field({ tier, elite, mod, skill: 0, silence: true });
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 6] }), fly = h.spawn('enemy_fly', { pos: [11, 5] }), off = h.spawn('enemy_dummy', { pos: [10, 7] });
|
||||
h.run(300);
|
||||
for (const tgt of [e, fly]) {
|
||||
const hits = log.filter((x) => x.e === tgt && tagged(x, 'leizi2:thunder'));
|
||||
assert.ok(hits.length >= 20, `T${tier}: ${hits.length} strikes on ${tgt.defId}`);
|
||||
const first = Math.round((hits[0].t - 0.15) / COUNT_IV);
|
||||
assert.ok(first >= 2 && first <= 16, `T${tier}: the first after ${first} counts`);
|
||||
approx(hits[0].t - 0.15, first * COUNT_IV, `T${tier}: on a count, landing 0.15 s later`, 0.02);
|
||||
for (let i = 1; i < hits.length; i++) {
|
||||
const k = (hits[i].t - hits[i - 1].t) / COUNT_IV;
|
||||
assert.ok(Math.abs(k - Math.round(k)) < 0.03 && Math.round(k) >= 8 && Math.round(k) <= 12, `T${tier}: ${k} counts apart`);
|
||||
}
|
||||
for (const x of hits) { approx(x.amount, x.atk * x.mul, `T${tier}: 100 % ATK`); assert.equal(x.type, 'arts'); approx(x.mul, 1, 'no skill: ×1'); }
|
||||
}
|
||||
assert.equal(log.filter((x) => x.e === off).length, 0, `T${tier}: (10,7) is off her 1-2`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('T1: ×1.07 (LIB-X stage 3: ×1.13) on everything she deals while a skill runs — an atkScaleMul buff for the skill\'s time', () => {
|
||||
for (const f of [[5, false, null], [6, true, null], [5, true, LIBX], [6, true, LIBX]]) {
|
||||
const [tier, elite, mod] = f;
|
||||
const up = tOf(tier, elite, mod, 0)['atk_scale[skill_up]'];
|
||||
assert.equal(up, elite && mod === LIBX && tier === 6 ? 1.13 : 1.07, label(f));
|
||||
const { h, u, log } = field({ tier, elite, mod, skill: 1 });
|
||||
approx(u.s.atkScaleMul, 1, `${label(f)}: off`);
|
||||
u.skill.gainSp(999);
|
||||
h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
assert.ok(h.runUntil(() => u.skill.active, 2));
|
||||
approx(u.s.atkScaleMul, up, `${label(f)}: on`);
|
||||
h.run(4);
|
||||
const atk = log.filter((x) => x.isAttack);
|
||||
assert.ok(atk.length > 0, `${label(f)}: attacks`);
|
||||
for (const x of atk) approx(x.amount, x.atk * skillOf(tier, elite, S2).bb['attack@atk_scale_s2'] * up, `${label(f)}: S2 attack × ${up}`);
|
||||
h.runUntil(() => !u.skill.active, 40);
|
||||
approx(u.s.atkScaleMul, 1, `${label(f)}: off again`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('T2 追责: every cast strikes each low tile of her range ring by ring from her tile (0.25 s apart; S1 0.07 s), landing 0.15 s later: 100 % ATK × skill bonus arts and 2 s 战栗 on every enemy there, air units too', () => {
|
||||
const t1 = tOf(5, false, null, 1);
|
||||
assert.deepEqual([t1.atk_scale_t2, t1.not_combat], [1, 2]);
|
||||
for (const [skill, gap, pos, d] of [[2, 0.25, [10, 7], 2], [0, 0.07, [10, 6], 1], [2, 0.25, [11, 6], 2]]) {
|
||||
const { h, u, log } = field({ tier: 5, skill });
|
||||
const e = h.spawn(pos[0] === 11 ? 'enemy_fly' : 'enemy_dummy', { pos });
|
||||
u.skill.gainSp(999);
|
||||
if (skill === 0) h.spawn('enemy_dummy', { pos: [11, 5] }); // S1 (SEARCH) needs a ground enemy on her 1-2
|
||||
assert.ok(h.runUntil(() => u.skill.active, 2), `S${skill + 1}: cast`);
|
||||
const t0 = h.b.time;
|
||||
h.run(1.2);
|
||||
const hits = log.filter((x) => x.e === e && tagged(x, 'leizi2:accuse'));
|
||||
assert.equal(hits.length, 1, `S${skill + 1}: one strike on ${pos}`);
|
||||
approx(hits[0].t - t0, d * gap + 0.15, `S${skill + 1}: ring ${d}`, 0.04);
|
||||
approx(hits[0].amount, hits[0].atk * 1.07, `S${skill + 1}: 100 % ATK × 1.07`);
|
||||
assert.equal(hits[0].type, 'arts');
|
||||
const tr = h.hooksOf('statusApplied').filter((c) => c.status === 'tremble' && c.target === e && c.source === u);
|
||||
assert.equal(tr.length, 1, `S${skill + 1}: 战栗`);
|
||||
approx(tr[0].duration, 2, 'for 2 s');
|
||||
done(h);
|
||||
}
|
||||
// S2: one cast per low tile of the flood fill (19 on the flat stage at (10,5)) — each gives a +10 % stack at once
|
||||
const { h, u } = field({ tier: 5, skill: 1 });
|
||||
u.skill.gainSp(999);
|
||||
h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
assert.ok(h.runUntil(() => u.skill.active, 2));
|
||||
const low = u.rangeKeys.filter((k) => h.b.grid.isLow(Math.floor(k / COLS), k % COLS)).length;
|
||||
assert.equal(low, 19, 'the flood fill');
|
||||
h.run(0.8);
|
||||
const st = u.findBuff('skill:leizi2:thunderAtk');
|
||||
assert.ok(st && st.stacks >= 19 && st.stacks <= 25, `S2 stacks after the rings: ${st?.stacks}`);
|
||||
done(h);
|
||||
});
|
||||
|
||||
test('S1 浩气长存 (MANUAL, 3 charges, data SEARCH): a 0.5 s skill on the 3-19; 0.3 s in, a 3-2 to her left, front and right each hits every ground enemy on it for 260 % / 300 % ATK × 1.07 physical (one on her tile three times, none diagonal, no flyer)', () => {
|
||||
for (const [tier, elite] of [[5, false], [6, true]]) {
|
||||
const sk = skillOf(tier, elite, S1);
|
||||
const { h, u, log } = field({ tier, elite, skill: 0, silence: true });
|
||||
assert.deepEqual([u.skill.rule, u.skill.maxCharges, sk.bb['attack@atk_scale_s1'], sk.rangeId, u.skill.spCost, sk.initSp], ['SEARCH', 3, elite ? 3 : 2.6, '3-19', elite ? 13 : 14, 17], `T${tier}`);
|
||||
const own = h.spawn('enemy_dummy', { pos: [10, 5] }), front = h.spawn('enemy_dummy', { pos: [10, 8] });
|
||||
const left = h.spawn('enemy_dummy', { pos: [12, 5] }), right = h.spawn('enemy_dummy', { pos: [9, 5] });
|
||||
const diag = h.spawn('enemy_dummy', { pos: [11, 6] }), fly = h.spawn('enemy_fly', { pos: [11, 5] });
|
||||
h.b.removeBuff(u, 'test:silence');
|
||||
assert.ok(h.runUntil(() => u.skill.active, 1), `T${tier}: cast`);
|
||||
const t0 = h.b.time;
|
||||
assert.deepEqual(u.liveRangeGrid, sk.rangeGrid, `T${tier}: the 3-19`);
|
||||
h.runUntil(() => !u.skill.active, 1);
|
||||
approx(h.b.time - t0, 0.5, `T${tier}: 0.5 s`, 0.04);
|
||||
const s1 = log.filter((x) => tagged(x, 'leizi2:s1'));
|
||||
const n = (e) => s1.filter((x) => x.e === e).length;
|
||||
assert.deepEqual([n(own), n(front), n(left), n(right), n(diag), n(fly)], [3, 1, 1, 1, 0, 0], `T${tier}: who is hit`);
|
||||
for (const x of s1) {
|
||||
approx(x.t - t0, 0.3, `T${tier}: 0.3 s in`, 0.04);
|
||||
approx(x.amount, x.atk * sk.bb['attack@atk_scale_s1'] * 1.07, `T${tier}: ${sk.bb['attack@atk_scale_s1'] * 100} % × 1.07`);
|
||||
assert.equal(x.type, 'phys');
|
||||
}
|
||||
assert.equal(log.filter((x) => x.isAttack).length, 0, `T${tier}: no normal attack`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('S1: "充能耗尽前特性不重置" — the ramp is kept while a charge remains and reset by the last one', () => {
|
||||
const { h, u } = field({ tier: 5, skill: 0, silence: true });
|
||||
h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
h.run(8.05);
|
||||
u.skill.gainSp(999);
|
||||
assert.equal(u.skill.charges, 3);
|
||||
const ramp0 = u.trait.ramp;
|
||||
approx(ramp0, 0.4, 'the ramp after 8 s');
|
||||
h.b.removeBuff(u, 'test:silence');
|
||||
assert.ok(h.runUntil(() => u.skill.activations === 1 && !u.skill.active, 2));
|
||||
assert.ok(u.trait.ramp >= ramp0 - 1e-9, `kept after the first charge (${u.trait.ramp})`);
|
||||
assert.ok(h.runUntil(() => u.skill.activations === 2 && !u.skill.active, 5));
|
||||
assert.ok(u.trait.ramp >= ramp0 - 1e-9, `kept after the second (${u.trait.ramp})`);
|
||||
approx(u.s.atk, u.base.atk * (1 + u.trait.ramp), 'ATK');
|
||||
assert.ok(h.runUntil(() => u.skill.activations === 3 && !u.skill.active, 5));
|
||||
assert.equal(u.skill.charges, 0);
|
||||
assert.ok(u.trait.ramp < 0.06, `reset by the last (${u.trait.ramp})`);
|
||||
done(h);
|
||||
});
|
||||
|
||||
test('S2 正霆摄威 (MANUAL, data SEARCH): range = the low tiles 3 four-way steps from hers (high ground and the field\'s edge stop it), 3 targets with air units for 110 % / 125 % ATK × 1.07, +10 % ATK per lightning cast up to 25, all gone after 36 s', () => {
|
||||
for (const [tier, elite] of [[5, false], [6, true]]) {
|
||||
const sk = skillOf(tier, elite, S2);
|
||||
assert.deepEqual([sk.bb['attack@atk_scale_s2'], sk.bb['attack@max_target_s2'], sk.bb.thunder_atk, sk.bb.thunder_max_stack_cnt, sk.duration, sk.rangeId], [elite ? 1.25 : 1.1, 3, 0.1, 25, 36, null]);
|
||||
const { h, u, log } = field({ tier, elite, skill: 1, row: 9, col: 3 });
|
||||
assert.equal(u.skill.rule, 'SEARCH');
|
||||
u.skill.gainSp(999);
|
||||
const targets = [[9, 4], [10, 3], [9, 5]].map((pos) => h.spawn('enemy_dummy', { pos }));
|
||||
const fly = h.spawn('enemy_fly', { pos: [10, 4] });
|
||||
assert.ok(h.runUntil(() => u.skill.active, 2), `T${tier}: cast`);
|
||||
// from (9,3): row 8 is high, (10,2) / (11,2) / (12,2) are high, (9,2) is low (the goal), columns < 0 are off the field
|
||||
const want = [];
|
||||
for (let r = 9; r <= 12; r++) for (let c = 0; c <= 10; c++) {
|
||||
const t = h.b.grid.tile(r, c);
|
||||
if (t.height === 'LOW' && Math.abs(r - 9) + Math.abs(c - 3) <= 3) want.push(`${r},${c}`);
|
||||
}
|
||||
const got = u.rangeKeys.map((k) => `${Math.floor(k / COLS)},${k % COLS}`).sort();
|
||||
assert.deepEqual(got, want.sort(), `T${tier}: the flood fill`);
|
||||
h.run(3);
|
||||
const atk = log.filter((x) => x.isAttack);
|
||||
const ids = new Set(atk.filter((x) => x.attackId === atk[0].attackId).map((x) => x.e));
|
||||
assert.equal(ids.size, 3, `T${tier}: 3 targets`);
|
||||
assert.ok(atk.some((x) => x.e === fly), `T${tier}: a flyer among them`);
|
||||
for (const x of atk) approx(x.amount, x.atk * sk.bb['attack@atk_scale_s2'] * 1.07, `T${tier}: ${sk.bb['attack@atk_scale_s2'] * 100} % × 1.07`);
|
||||
h.run(30);
|
||||
const st = u.findBuff('skill:leizi2:thunderAtk');
|
||||
assert.equal(st.stacks, 25, `T${tier}: 25 stacks at most`);
|
||||
approx(u.s.atk, u.base.atk * (1 + u.trait.ramp + 2.5), `T${tier}: +250 %`);
|
||||
h.runUntil(() => !u.skill.active, 10);
|
||||
assert.equal(u.findBuff('skill:leizi2:thunderAtk'), null, `T${tier}: gone`);
|
||||
assert.deepEqual([u.trait.ramp, u.liveRangeGrid], [0, formOf(tier, elite).rangeGrid], `T${tier}: the trait reset, 1-2 again`);
|
||||
void targets;
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('S3 天地通明 (MANUAL, data CUSTOM_RANGE on 2-1): range 2-1, attack interval 1.2 + 1.7 s, 210 % / 240 % ATK × 1.07 on the target and everyone within 1.65 (air too); then four currents', () => {
|
||||
for (const [tier, elite] of [[5, false], [6, true]]) {
|
||||
const sk = skillOf(tier, elite, S3);
|
||||
assert.deepEqual([sk.bb['attack@atk_scale_s3'], sk.bb.base_attack_time, sk.bb['attack@range_radius'], sk.bb['attack@atk_scale_current'], sk.bb.prob, sk.bb.not_combat, sk.duration, sk.rangeId],
|
||||
[elite ? 2.4 : 2.1, 1.7, 1.65, elite ? 0.56 : 0.45, elite ? 0.1 : 0.07, 3, 24, '2-1']);
|
||||
const { h, u, log } = field({ tier, elite, skill: 2 });
|
||||
assert.equal(u.skill.rule, 'CUSTOM_RANGE');
|
||||
u.skill.gainSp(999);
|
||||
const fly0 = h.spawn('enemy_fly', { pos: [12, 5] }); // a flyer on the 2-1 casts it
|
||||
assert.ok(h.runUntil(() => u.skill.active, 2), `T${tier}: a flyer on the 2-1`);
|
||||
assert.deepEqual(u.liveRangeGrid, sk.rangeGrid, `T${tier}: 2-1`);
|
||||
approx(u.s.interval, 2.9, `T${tier}: 2.9 s`);
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 6] }), side = h.spawn('enemy_dummy', { pos: [10, 7] }), flyNear = h.spawn('enemy_fly', { pos: [11, 7] });
|
||||
h.b.kill(fly0, null);
|
||||
h.runUntil(() => log.some((x) => x.isAttack && x.e === e), 4);
|
||||
const a0 = log.find((x) => x.isAttack && x.e === e);
|
||||
const one = log.filter((x) => x.isAttack && x.attackId === a0.attackId);
|
||||
assert.deepEqual(new Set(one.map((x) => x.e)), new Set([e, side, flyNear]), `T${tier}: the target and everyone within 1.65`);
|
||||
for (const x of one) approx(x.amount, x.atk * sk.bb['attack@atk_scale_s3'] * 1.07, `T${tier}: ${sk.bb['attack@atk_scale_s3'] * 100} % × 1.07`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('S3 currents: four from the target\'s spot (up, right, down, left; 0.28 s apart) at 1 tile/s for 3.1 s, bouncing off high ground and her own tile; 45 % / 56 % ATK × 1.07 arts on ground enemies of their tile, at most every 0.6 s per current; 战栗 7 % / 10 % for 3 s', () => {
|
||||
for (const [tier, elite] of [[5, false], [6, true]]) {
|
||||
const sk = skillOf(tier, elite, S3);
|
||||
const { h, u, log } = field({ tier, elite, skill: 2 });
|
||||
u.skill.gainSp(999);
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 7] });
|
||||
const fly = h.spawn('enemy_fly', { pos: [10, 8] });
|
||||
assert.ok(h.runUntil(() => u.skill.active, 2));
|
||||
h.runUntil(() => log.some((x) => x.isAttack && x.e === e), 4);
|
||||
const t0 = log.find((x) => x.isAttack && x.e === e).t;
|
||||
h.run(0.9);
|
||||
const cur = u.mem.leiziCurrents.slice(0, 4);
|
||||
assert.deepEqual(cur.map((c) => [c.dr, c.dc]), [[1, 0], [0, 1], [-1, 0], [0, -1]], `T${tier}: up, right, down, left`);
|
||||
// spawned 0, 0.28, 0.56, 0.84 s after the hit, 1 tile/s: the up one has risen (now − t0), the left one (now − t0 − 0.84)
|
||||
approx(cur[0].y, 10 + (h.b.time - t0), `T${tier}: the up current`, 0.03);
|
||||
approx(cur[3].x, 7 - (h.b.time - t0 - 0.84), `T${tier}: the left current`, 0.05);
|
||||
h.run(2.3);
|
||||
// the left one bounced before her tile (10,5): never past x 5.5; the up one bounced off row 13 (high)
|
||||
assert.ok(cur[3].x > 5.5 - 1e-9, `T${tier}: off her tile`);
|
||||
assert.ok(cur[0].y < 12.5 + 1e-9 && cur[0].dr === -1, `T${tier}: off the high row 13`);
|
||||
h.run(1);
|
||||
assert.ok(!u.mem.leiziCurrents.some((c) => cur.includes(c)), `T${tier}: gone after 3.1 s`);
|
||||
const zap = log.filter((x) => tagged(x, 'leizi2:current'));
|
||||
assert.ok(zap.length > 0 && zap.every((x) => x.e !== fly), `T${tier}: ground only`);
|
||||
for (const x of zap) { approx(x.amount, x.atk * sk.bb['attack@atk_scale_current'] * x.mul, `T${tier}: ${sk.bb['attack@atk_scale_current'] * 100} %`); assert.equal(x.type, 'arts'); }
|
||||
approx(zap[0].mul, 1.07, `T${tier}: × 1.07 while S3 runs`);
|
||||
done(h);
|
||||
}
|
||||
// 战栗: about prob of the current hits while S3 runs, 3 s each
|
||||
const { h, u, log } = field({ tier: 6, elite: true, skill: 2, seed: 9 });
|
||||
u.skill.gainSp(999);
|
||||
for (const pos of [[10, 6], [10, 7], [9, 7], [11, 7], [10, 8], [12, 7], [9, 6]]) h.spawn('enemy_dummy', { pos });
|
||||
assert.ok(h.runUntil(() => u.skill.active, 2));
|
||||
h.run(23);
|
||||
const zaps = log.filter((x) => tagged(x, 'leizi2:current')).length;
|
||||
const tr = h.hooksOf('statusApplied').filter((c) => c.status === 'tremble' && c.source === u && c.duration === 3);
|
||||
assert.ok(zaps > 60, `${zaps} current hits`);
|
||||
assert.ok(tr.length / zaps > 0.04 && tr.length / zaps < 0.18, `${tr.length} / ${zaps} ≈ 10 %`);
|
||||
done(h);
|
||||
});
|
||||
@@ -0,0 +1,395 @@
|
||||
// test/content/op_thorns.test.js — the 自选 operator kit of 棘刺 (char_293_thorns, 6★ 领主; kit
|
||||
// server/sim/content/kits/ops/op-thorns.js), fielded the production way (a DIY slot + its `diy` pick, simdata getDiy) in
|
||||
// every form: tiers 5 / 6, normal (E2 Lv1, skill rank 4, no module) and elite (E2 Lv60, rank 7) with no module, LOR-X
|
||||
// “盐与沙” or LOR-Δ “沙蚀” at stage 1 (tier 5) / 3 (tier 6). Every number is read back from data/backups.json (the form of
|
||||
// that slot status); the fidelity checklist of kits/README.md item by item.
|
||||
// Run: node --test test/content/op_thorns.test.js
|
||||
|
||||
import { test } from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { makeBattle, enemyRec, checkInvariants } from '../helpers/battleHarness.js';
|
||||
import { KITTED_CHARS, OPERATOR_KITS, KITS } from '../../server/sim/content/kits/index.js';
|
||||
import { diyPool, validateDiyPicks } from '../../shared/diy.js';
|
||||
|
||||
const load = (f) => JSON.parse(readFileSync(new URL(`../../data/${f}.json`, import.meta.url), 'utf8'));
|
||||
const CHESS = load('chess');
|
||||
const BACKUPS = load('backups');
|
||||
const THORNS = 'char_293_thorns';
|
||||
const FORMS = BACKUPS.units[THORNS].forms;
|
||||
const SLOT = { 5: 'chess_char_5_diy1_a', 6: 'chess_char_6_diy1_a' };
|
||||
const LORX = 'uniequip_002_thorns', LORD = 'uniequip_003_thorns';
|
||||
const S1 = 'skcom_atk_up[3]', S2 = 'skchr_thorns_2', S3 = 'skchr_thorns_3';
|
||||
const formOf = (tier, elite) => FORMS[elite ? (tier === 5 ? '2/60/7/1' : '2/60/7/3') : '2/1/4/0'];
|
||||
const skillOf = (tier, elite, id) => formOf(tier, elite).skills.find((s) => s.skillId === id);
|
||||
const modOf = (tier, mod) => (mod ? formOf(tier, true).modules.find((m) => m.uniEquipId === mod) : null);
|
||||
/** Talent 0's blackboard of a form with its module (the module talent change merged over the base). */
|
||||
const t0Of = (tier, elite, mod) => {
|
||||
const base = formOf(tier, elite).talents.find((t) => t.index === 0).bb;
|
||||
const ch = elite && mod ? modOf(tier, mod).talentChanges.find((t) => t.talentIndex === 0) : null;
|
||||
return { ...base, ...(ch?.bb ?? {}) };
|
||||
};
|
||||
const approx = (a, b, msg, eps = 1e-6) => assert.ok(Math.abs(a - b) <= eps * Math.max(1, Math.abs(b)), `${msg}: ${a} vs ${b}`);
|
||||
const dummy = (key, o = {}) => enemyRec({ key, hp: 1e9, speed: 0, mass: 0, ...o });
|
||||
const ENEMIES = {
|
||||
enemy_dummy: dummy('enemy_dummy'),
|
||||
enemy_fly: dummy('enemy_fly', { motion: 'FLY' }),
|
||||
enemy_ranged: dummy('enemy_ranged', { applyWay: 'RANGED' }),
|
||||
enemy_both: dummy('enemy_both', { applyWay: 'ALL' }),
|
||||
// a stationary ranged attacker: 100 ATK every second on whoever stands within 2.5
|
||||
enemy_shooter: dummy('enemy_shooter', { atk: 100, range: 2.5, bat: 1 }),
|
||||
};
|
||||
const FORMS_ALL = [[5, false, null], [6, false, null], ...[5, 6].flatMap((t) => [null, LORX, LORD].map((m) => [t, true, m]))];
|
||||
|
||||
/** A battle with 棘刺 as uid 1 at (row, col) facing RIGHT. */
|
||||
function field({ tier = 5, elite = false, mod = null, skill = 0, row = 10, col = 5, seed = 5, others = [] } = {}) {
|
||||
const h = makeBattle({
|
||||
defs: { enemies: ENEMIES }, timeLimit: 600, autoFinish: false, seed,
|
||||
flags: { dpPerSec: 0, dpMax: 999 }, hooks: ['damaged', 'skillStart', 'skillEnd', 'attack'], captureNoisy: true,
|
||||
units: [{ uid: 1, diy: { slot: SLOT[tier], charId: THORNS, skillIndex: skill, uniEquipId: mod }, elite, row, col }, ...others],
|
||||
});
|
||||
h.step();
|
||||
return { h, u: h.unit(1) };
|
||||
}
|
||||
const from = (h, u, pred = () => true) => h.hooksOf('damaged').filter((c) => c.source === u && pred(c));
|
||||
const tagged = (c, t) => (c.dmg?.tags || []).includes(t);
|
||||
function done(h) {
|
||||
checkInvariants(h.b);
|
||||
assert.equal(h.b.errors.length, 0, JSON.stringify(h.b.errors[0]));
|
||||
}
|
||||
const label = ([tier, elite, mod]) => `T${tier} ${elite ? 'elite' : 'normal'} ${mod ?? 'none'}`;
|
||||
|
||||
test('棘刺 in every 自选 form: his operator kit (all three skills authored), the form\'s stats + module attributes, 3-12, blocks 2, a 领主 hitting air, physical, no 特质, ground enemies can target him', () => {
|
||||
assert.equal(OPERATOR_KITS[THORNS], KITS[THORNS]);
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite, mod] = f;
|
||||
for (const skill of [0, 1, 2]) {
|
||||
const { h, u } = field({ tier, elite, mod, skill });
|
||||
const form = formOf(tier, elite), m = elite ? modOf(tier, mod) : null;
|
||||
assert.deepEqual([u.def.charId, u.def.diyFor, u.skill.id, !!u.kit.generic, u.kit.skillSource], [THORNS, SLOT[tier], form.skills[skill].skillId, false, 'skills'], label(f));
|
||||
assert.deepEqual([u.base.maxHp, u.base.atk, u.base.def, u.base.aspd], [form.stats.maxHp + (m?.attr.maxHp ?? 0), form.stats.atk + (m?.attr.atk ?? 0), form.stats.def, 100 + (m?.attr.aspd ?? 0)], `${label(f)}: stats`);
|
||||
assert.deepEqual([u.s.blockCnt, u.profile.sub, u.profile.attack, u.profile.canHitFly, u.profile.dmgType, u.base.bat, u.profile.rangedScale], [2, 'lord', 'ranged', true, 'phys', 1.3, 0.8], `${label(f)}: 领主`);
|
||||
assert.deepEqual(u.liveRangeGrid, form.rangeGrid, `${label(f)}: 3-12`);
|
||||
assert.deepEqual([form.tokens, form.displayTokens, u.def.raw.tokens], [[], [], []], `${label(f)}: no summons`);
|
||||
assert.deepEqual([u.def.bonds, u.def.raw.garrisonIds], [['emptyShip'], []], `${label(f)}: bonds / 特质`);
|
||||
assert.ok(!u.s.flags.liftoff && !u.s.flags.camou && !u.s.flags.stealth, `${label(f)}: ground enemies target him`);
|
||||
done(h);
|
||||
}
|
||||
}
|
||||
// the numbers of the forms (zh_CN): E2 Lv1 2063 / 575 / 333, E2 Lv60 2427 / 665 / 379; LOR-X +160 / +39 / +5 → +260 / +55 / +7,
|
||||
// LOR-Δ +80 / +60 / +5 → +150 / +75 / +7 (HP / ATK / ASPD)
|
||||
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], [2063, 575, 2427, 665]);
|
||||
assert.deepEqual([modOf(5, LORX).attr, modOf(6, LORX).attr, modOf(5, LORD).attr, modOf(6, LORD).attr],
|
||||
[{ maxHp: 160, atk: 39, aspd: 5 }, { maxHp: 260, atk: 55, aspd: 7 }, { maxHp: 80, atk: 60, aspd: 5 }, { maxHp: 150, atk: 75, aspd: 7 }]);
|
||||
});
|
||||
|
||||
test('a 自选 pick: 棘刺 is offered at tiers 5 and 6 (he has a kit) and a roster with him passes validateDiyPicks', () => {
|
||||
const data = { chess: CHESS, backups: BACKUPS };
|
||||
assert.ok(KITTED_CHARS.includes(THORNS));
|
||||
for (const t of [5, 6]) assert.ok(diyPool(t, { data, kitted: KITTED_CHARS }).includes(THORNS), `tier ${t}`);
|
||||
assert.deepEqual(validateDiyPicks({ [SLOT[6]]: { charId: THORNS, skillIndex: 2, uniEquipId: LORD } }, { data, kitted: KITTED_CHARS }),
|
||||
{ ok: true, picks: { [SLOT[6]]: { charId: THORNS, skillIndex: 2, uniEquipId: LORD } } });
|
||||
});
|
||||
|
||||
test('trait 领主: a ranged attack on an enemy two tiles ahead deals 80 % ATK, one on the tile in front 100 %; he hits a flyer', () => {
|
||||
for (const [tier, elite] of [[5, false], [6, true]]) {
|
||||
const { h, u } = field({ tier, elite, skill: 0 });
|
||||
u.skill.sp = 0; // keep S1 off
|
||||
const far = h.spawn('enemy_dummy', { pos: [10, 7] });
|
||||
h.runUntil(() => from(h, u, (c) => c.dmg.isAttack && c.target === far).length > 0, 5);
|
||||
approx(from(h, u, (c) => c.dmg.isAttack && c.target === far)[0].amount, u.s.atk * 0.8, `T${tier}: two tiles ahead`);
|
||||
h.b.kill(far, null);
|
||||
const near = h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
h.runUntil(() => from(h, u, (c) => c.dmg.isAttack && c.target === near).length > 0, 5);
|
||||
approx(from(h, u, (c) => c.dmg.isAttack && c.target === near)[0].amount, u.s.atk, `T${tier}: the tile in front`);
|
||||
h.b.kill(near, null);
|
||||
const fly = h.spawn('enemy_fly', { pos: [11, 6] });
|
||||
assert.ok(h.runUntil(() => from(h, u, (c) => c.dmg.isAttack && c.target === fly).length > 0, 5), `T${tier}: a flyer`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('S1 攻击力强化·γ型 (MANUAL, data DEFAULT): ATK +45 % / +60 % for 30 s with an enemy in range', () => {
|
||||
for (const [tier, elite] of [[5, false], [6, true]]) {
|
||||
const sk = skillOf(tier, elite, S1);
|
||||
const { h, u } = field({ tier, elite, skill: 0 });
|
||||
assert.deepEqual([u.skill.rule, sk.duration, sk.bb.atk, u.skill.spCost, sk.initSp], ['DEFAULT', 30, elite ? 0.6 : 0.45, elite ? 35 : 37, elite ? 10 : 5], `T${tier}`);
|
||||
u.skill.gainSp(999);
|
||||
h.run(2);
|
||||
assert.equal(u.skill.activations, 0, `T${tier}: no enemy, no cast`);
|
||||
h.spawn('enemy_dummy', { pos: [10, 7] });
|
||||
assert.ok(h.runUntil(() => u.skill.active, 3), `T${tier}: cast`);
|
||||
approx(u.s.atk, u.base.atk * (1 + sk.bb.atk), `T${tier}: ATK`);
|
||||
approx(u.skill.timeLeft, 30, `T${tier}: 30 s`, 0.01);
|
||||
h.runUntil(() => !u.skill.active, 31);
|
||||
approx(u.s.atk, u.base.atk, `T${tier}: back`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('S2 护身尖刺 (MANUAL, 技能范围 3-1, data SKILL_RANGE): no attack, ATK / DEF up; an enemy\'s 普通伤害 sets off up to 4 spikes 0.5 s later on the 3-1 (air too) for 80 % ATK physical, at most every 0.8 / 0.75 s; his range stays 3-12', () => {
|
||||
for (const [tier, elite] of [[5, false], [6, true]]) {
|
||||
const sk = skillOf(tier, elite, S2);
|
||||
const { h, u } = field({ tier, elite, skill: 1 });
|
||||
assert.deepEqual([u.skill.rule, sk.rangeId, sk.duration, sk.bb.atk, sk.bb.def, sk.bb.cooldown, sk.bb.max_target],
|
||||
['SKILL_RANGE', '3-1', elite ? 36 : 33, elite ? 0.4 : 0.3, elite ? 0.7 : 0.55, elite ? 0.75 : 0.8, 4], `T${tier}`);
|
||||
u.skill.gainSp(999);
|
||||
h.run(1);
|
||||
assert.equal(u.skill.activations, 0, `T${tier}: nobody on the 3-1`);
|
||||
// targets on the 3-1: (9,7) (11,7) (10,8) a flyer at (11,6); one outside it at (10,9)
|
||||
const shooter = h.spawn('enemy_shooter', { pos: [10, 7] });
|
||||
const a = h.spawn('enemy_dummy', { pos: [9, 7] }), b = h.spawn('enemy_dummy', { pos: [11, 7] });
|
||||
const fly = h.spawn('enemy_fly', { pos: [11, 6] }), out = h.spawn('enemy_dummy', { pos: [10, 9] });
|
||||
assert.ok(h.runUntil(() => u.skill.active, 2), `T${tier}: cast with an enemy on the 3-1`);
|
||||
approx(u.s.atk, u.base.atk * (1 + sk.bb.atk), `T${tier}: ATK`);
|
||||
approx(u.s.def, u.base.def * (1 + sk.bb.def), `T${tier}: DEF`);
|
||||
assert.deepEqual(u.liveRangeGrid, formOf(tier, elite).rangeGrid, `T${tier}: the card keeps his 3-12`);
|
||||
const n0 = from(h, u).length, cast = h.b.time;
|
||||
h.run(6);
|
||||
assert.equal(from(h, u, (c) => c.dmg.isAttack && c.t >= cast).length, 0, `T${tier}: 停止攻击`);
|
||||
const hurt = h.hooksOf('damaged').filter((c) => c.target === u && c.source === shooter);
|
||||
const spikes = from(h, u, (c) => tagged(c, 'thorns:spike')).filter((c) => from(h, u).indexOf(c) >= n0);
|
||||
assert.ok(hurt.length >= 4, `T${tier}: ${hurt.length} hits from the shooter`);
|
||||
// each shooter hit (1 s apart, cooldown < 1 s) ⇒ one volley of 4 spikes on the four nearest 3-1 enemies, 0.5 s later
|
||||
const volleys = new Map();
|
||||
for (const c of spikes) volleys.set(c.t, [...(volleys.get(c.t) ?? []), c]);
|
||||
assert.ok(volleys.size >= hurt.length - 1, `T${tier}: ${volleys.size} volleys for ${hurt.length} hits`);
|
||||
for (const [t, v] of volleys) {
|
||||
assert.equal(v.length, 4, `T${tier}: 4 spikes at ${t}`);
|
||||
assert.ok(v.every((c) => c.target !== out), `T${tier}: (10,9) is off the 3-1`);
|
||||
for (const c of v) { approx(c.amount, u.s.atk * 0.8, `T${tier}: 80 % ATK`); assert.deepEqual([c.type, c.dmg.isSkill, !!c.dmg.isAttack], ['phys', true, false]); }
|
||||
assert.ok(hurt.some((x) => Math.abs(x.t + 0.5 - t) < 0.05), `T${tier}: a hit 0.5 s before ${t}`);
|
||||
}
|
||||
assert.ok(spikes.some((c) => c.target === fly) && spikes.some((c) => c.target === a) && spikes.some((c) => c.target === b), `T${tier}: the flyer and the dummies`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('S2: the cooldown (0.8 s) holds a second hit back; 持续 / 溅射 / element / 流失 / 无来源 damage and an ally\'s set nothing off; a stunned 棘刺 casts none', () => {
|
||||
const { h, u } = field({ tier: 5, skill: 1 });
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
u.skill.gainSp(999);
|
||||
assert.ok(h.runUntil(() => u.skill.active, 2));
|
||||
const spikes = () => from(h, u, (c) => tagged(c, 'thorns:spike')).length;
|
||||
const hit = (o) => h.b.dealDamage(e, u, { amount: 1, type: 'phys', ...o });
|
||||
hit({ tags: ['dot'] }); hit({ tags: ['periodic'] }); hit({ isSplash: true }); hit({ sourceless: true });
|
||||
h.b.dealDamage(e, u, { type: 'element', element: 'burn', amount: 10 });
|
||||
h.b.loseHp(u, 1, { source: e });
|
||||
h.b.dealDamage(u, u, { amount: 1, type: 'phys' });
|
||||
h.run(1);
|
||||
assert.equal(spikes(), 0, 'none of those is an enemy\'s 普通伤害');
|
||||
hit({});
|
||||
h.run(0.3);
|
||||
hit({});
|
||||
h.run(1);
|
||||
assert.equal(spikes(), 1, 'the second hit fell inside the 0.8 s cooldown');
|
||||
hit({});
|
||||
h.b.applyStatus(u, 'stun', { duration: 1, source: e });
|
||||
h.run(0.8);
|
||||
assert.equal(spikes(), 1, 'stunned before the spikes landed: none');
|
||||
h.run(1);
|
||||
hit({});
|
||||
h.run(0.6);
|
||||
assert.equal(spikes(), 2, 'after the stun: a volley again');
|
||||
done(h);
|
||||
});
|
||||
|
||||
test('S3 至高之术 (MANUAL, attack SP, data ACTIVE_RANGE on 3-3): 30 s of range 3-3, ATK +33 % / +40 %, ASPD +14 / +16, no 80 % on ranged attacks; the second use of a deployment doubles both and never ends; a redeploy starts the count again', () => {
|
||||
for (const [tier, elite] of [[5, false], [6, true]]) {
|
||||
const sk = skillOf(tier, elite, S3);
|
||||
const { h, u } = field({ tier, elite, skill: 2 });
|
||||
assert.deepEqual([u.skill.rule, sk.rangeId, sk.spType, sk.spCost, sk.duration, sk.bb.atk, sk.bb.attack_speed, sk.bb['thorns_s_3[b].atk'], sk.bb['thorns_s_3[b].attack_speed'], sk.bb['thorns_s_3[b].duration']],
|
||||
['ACTIVE_RANGE', '3-3', 'INCREASE_WHEN_ATTACK', 15, 30, elite ? 0.4 : 0.33, elite ? 16 : 14, elite ? 0.8 : 0.66, elite ? 32 : 28, -1], `T${tier}`);
|
||||
u.skill.gainSp(999);
|
||||
const e = h.spawn('enemy_dummy', { pos: [11, 8] }); // on the 3-3, off the 3-12
|
||||
assert.ok(h.runUntil(() => u.skill.active, 2), `T${tier}: an enemy on the 3-3 casts it`);
|
||||
assert.deepEqual(u.liveRangeGrid, sk.rangeGrid, `T${tier}: range 3-3`);
|
||||
approx(u.s.atk, u.base.atk * (1 + sk.bb.atk), `T${tier}: ATK`);
|
||||
assert.equal(u.s.aspd, u.base.aspd + sk.bb.attack_speed, `T${tier}: ASPD`);
|
||||
approx(u.skill.timeLeft, 30, `T${tier}: 30 s`, 0.01);
|
||||
h.runUntil(() => from(h, u, (c) => c.dmg.isAttack && c.target === e).length > 0, 3);
|
||||
approx(from(h, u, (c) => c.dmg.isAttack && c.target === e)[0].amount, u.s.atk, `T${tier}: full ATK at range`);
|
||||
h.runUntil(() => !u.skill.active, 31);
|
||||
assert.deepEqual([u.liveRangeGrid, u.s.aspd], [formOf(tier, elite).rangeGrid, u.base.aspd], `T${tier}: back after 30 s`);
|
||||
u.skill.gainSp(999);
|
||||
assert.ok(h.runUntil(() => u.skill.active, 4), `T${tier}: the second use`);
|
||||
approx(u.s.atk, u.base.atk * (1 + sk.bb['thorns_s_3[b].atk']), `T${tier}: ATK ×2`);
|
||||
assert.equal(u.s.aspd, u.base.aspd + sk.bb['thorns_s_3[b].attack_speed'], `T${tier}: ASPD ×2`);
|
||||
h.run(120);
|
||||
assert.ok(u.skill.active, `T${tier}: 持续时间无限`);
|
||||
// knocked out and back: the count restarts
|
||||
h.b.kill(u, null);
|
||||
h.step();
|
||||
assert.ok(h.b.redeploy(u) && u.alive && u.deployed, `T${tier}: redeployed`);
|
||||
u.skill.gainSp(999);
|
||||
assert.ok(h.runUntil(() => u.skill.active, 4), `T${tier}: cast again`);
|
||||
approx(u.s.atk, u.base.atk * (1 + sk.bb.atk), `T${tier}: the first-use numbers again`);
|
||||
approx(u.skill.timeLeft, 30, `T${tier}: 30 s again`, 0.05);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('T1 神经腐蚀: an attack poisons its target — 3 ticks of 125 arts (250 on an enemy that attacks at range: RANGED / ALL), the first a second in, 持续伤害; a new hit refreshes it without a second instance', () => {
|
||||
for (const [tier, elite] of [[5, false], [6, true]]) {
|
||||
const t0 = t0Of(tier, elite, null);
|
||||
assert.deepEqual([t0['damage[normal]'], t0['damage[ranged]'], t0.duration], [125, 250, 3]);
|
||||
for (const [key, dmg] of [['enemy_dummy', 125], ['enemy_ranged', 250], ['enemy_both', 250]]) {
|
||||
const { h, u } = field({ tier, elite, skill: 0 });
|
||||
u.skill.sp = 0;
|
||||
const e = h.spawn(key, { pos: [10, 6] });
|
||||
h.runUntil(() => from(h, u, (c) => c.dmg.isAttack).length > 0, 3);
|
||||
const hitT = h.b.time;
|
||||
u.atkCd = 99; // no further attack
|
||||
h.run(4);
|
||||
const ticks = from(h, u, (c) => tagged(c, 'thorns:poison'));
|
||||
assert.equal(ticks.length, 3, `T${tier} ${key}: 3 ticks`);
|
||||
approx(ticks[0].t - hitT, 1, `T${tier} ${key}: the first a second in`, 0.05);
|
||||
for (const c of ticks) {
|
||||
approx(c.amount, dmg, `T${tier} ${key}: ${dmg} arts`);
|
||||
assert.deepEqual([c.type, c.dmg.canDodge, tagged(c, 'dot'), c.target], ['arts', false, true, e]);
|
||||
}
|
||||
done(h);
|
||||
}
|
||||
// refreshed by every hit: one poison per 棘刺, ticking once a second while he keeps attacking
|
||||
const { h, u } = field({ tier, elite, skill: 0 });
|
||||
u.skill.sp = 0;
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
h.run(10.05);
|
||||
assert.equal(e.buffs.filter((b) => b.key === `thorns:poison:${u.id}`).length, 1, `T${tier}: one instance`);
|
||||
const ticks = from(h, u, (c) => tagged(c, 'thorns:poison'));
|
||||
assert.ok(ticks.length >= 8 && ticks.length <= 10, `T${tier}: ${ticks.length} ticks in 10 s`);
|
||||
assert.ok(ticks.every((c) => Math.abs(c.amount - 125) < 1e-6), `T${tier}: the value never changes`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('T1 + LOR-X stage 3 "可叠加4次": the tick is 135 × the hits so far (≤ 4), 270 on a ranged enemy; stage 1 leaves the talent (125, one layer); a dodged hit poisons nothing', () => {
|
||||
const t03 = t0Of(6, true, LORX), t01 = t0Of(5, true, LORX);
|
||||
assert.deepEqual([t03['damage[normal]'], t03['damage[ranged]'], t03.max_cnt, t01['damage[normal]'], t01.max_cnt], [135, 270, 4, 125, undefined]);
|
||||
for (const [tier, per, cap] of [[6, 135, 4], [5, 125, 1]]) {
|
||||
const { h, u } = field({ tier, elite: true, mod: LORX, skill: 0 });
|
||||
u.skill.sp = 0;
|
||||
h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
h.run(12);
|
||||
const amounts = from(h, u, (c) => tagged(c, 'thorns:poison')).map((c) => c.amount);
|
||||
assert.ok(amounts.length >= 9, `T${tier}: ${amounts.length} ticks`);
|
||||
assert.equal(Math.max(...amounts), per * cap, `T${tier}: up to ${cap} layers`);
|
||||
assert.ok(amounts.every((a) => a % per === 0 && a <= per * cap), `T${tier}: multiples of ${per}`);
|
||||
// a hit every 1.3 × 100 / 107 s, a tick every second: one layer more per tick until the cap
|
||||
if (cap > 1) assert.deepEqual(amounts.slice(0, 4), [per, per * 2, per * 3, per * 4], `T${tier}: growing`);
|
||||
done(h);
|
||||
}
|
||||
// a dodged attack: no poison
|
||||
const { h, u } = field({ tier: 5, skill: 0 });
|
||||
u.skill.sp = 0;
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
h.b.addBuff(e, { key: 'test:dodge', mods: { dodgePhys: 1 } });
|
||||
h.run(5);
|
||||
assert.ok(h.hooksOf('attack').some((c) => c.attacker === u), 'he attacked');
|
||||
assert.equal(e.findBuff(`thorns:poison:${u.id}`), null, 'nothing hit, nothing poisoned');
|
||||
done(h);
|
||||
});
|
||||
|
||||
test('LOR-X “盐与沙” (stages 1 / 3): every attack hit adds 10 % ATK arts (附加伤害); none without it', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite, mod] = f;
|
||||
const { h, u } = field({ tier, elite, mod, skill: 0 });
|
||||
u.skill.sp = 0;
|
||||
h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
h.run(4);
|
||||
const atks = from(h, u, (c) => c.dmg.isAttack), adds = from(h, u, (c) => tagged(c, 'thorns:lorx'));
|
||||
const on = elite && mod === LORX;
|
||||
assert.equal(adds.length, on ? atks.length : 0, `${label(f)}: ${adds.length} additions for ${atks.length} hits`);
|
||||
if (on) {
|
||||
assert.deepEqual(u.def.raw.trait.bb, { atk_scale: 0.8, atk_scale_m: 0.1 }, label(f));
|
||||
for (const c of adds) { approx(c.amount, u.s.atk * 0.1, `${label(f)}: 10 % ATK`); assert.deepEqual([c.type, tagged(c, 'addition')], ['arts', true]); }
|
||||
}
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('LOR-Δ “沙蚀” (stages 1 / 3): every damage instance he deals carries 10 % of it as 神经损伤; stage 3 poison: ×2.5 元素伤害 in a 神经 burst, and S2\'s spikes poison no more (stage 1 still does)', () => {
|
||||
for (const [tier] of [[5], [6]]) {
|
||||
const { h, u } = field({ tier, elite: true, mod: LORD, skill: 0 });
|
||||
assert.deepEqual(u.def.raw.trait.bb, { atk_scale: 0.8, ep_damage_ratio: 0.1 }, `T${tier}`);
|
||||
u.skill.sp = 0;
|
||||
h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
h.run(6);
|
||||
const dealt = from(h, u, (c) => c.type !== 'element' && c.amount > 0);
|
||||
const fills = from(h, u, (c) => c.type === 'element' && c.dmg.element === 'neural');
|
||||
assert.ok(dealt.length > 3 && fills.length === dealt.length, `T${tier}: one fill per damage instance (${fills.length} / ${dealt.length})`);
|
||||
for (let i = 0; i < 3; i++) approx(fills[i].dmg.amount, dealt[i].amount * 0.1, `T${tier}: 10 %`);
|
||||
done(h);
|
||||
}
|
||||
// stage 3: the poison on an enemy in its 神经 burst
|
||||
const t03 = t0Of(6, true, LORD);
|
||||
assert.deepEqual([t03['damage[normal]'], t03['damage[ranged]'], t03.ep_break_multi], [300, 600, 2.5]);
|
||||
{
|
||||
const { h, u } = field({ tier: 6, elite: true, mod: LORD, skill: 0 });
|
||||
u.skill.sp = 0;
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
h.b.addBuff(e, { key: 'neuralBurst', duration: 30, flags: { burstLock: true } });
|
||||
h.run(4);
|
||||
const ticks = from(h, u, (c) => tagged(c, 'thorns:poison'));
|
||||
assert.ok(ticks.length >= 2, 'ticks');
|
||||
for (const c of ticks) { approx(c.amount, 300 * 2.5, '×2.5'); assert.deepEqual([c.type, c.dmg.element], ['elemental', 'neural']); }
|
||||
// thorns_e_003_t has no independentCharacterSource: one poison per enemy, not one per 棘刺
|
||||
assert.deepEqual([!!e.findBuff('thorns:poison'), !!e.findBuff(`thorns:poison:${u.id}`)], [true, false], 'the shared poison');
|
||||
done(h);
|
||||
}
|
||||
// stage 1 has no burst multiplier: plain arts ticks
|
||||
{
|
||||
const { h, u } = field({ tier: 5, elite: true, mod: LORD, skill: 0 });
|
||||
u.skill.sp = 0;
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
h.b.addBuff(e, { key: 'neuralBurst', duration: 30, flags: { burstLock: true } });
|
||||
h.run(4);
|
||||
for (const c of from(h, u, (x) => tagged(x, 'thorns:poison'))) { approx(c.amount, 125, 'stage 1: 125'); assert.equal(c.type, 'arts'); }
|
||||
done(h);
|
||||
}
|
||||
// S2 spikes: they poison at stage 1 and without a module, never at LOR-Δ stage 3
|
||||
for (const [tier, mod, poisons] of [[6, LORD, false], [5, LORD, true], [6, LORX, true], [6, null, true]]) {
|
||||
const { h, u } = field({ tier, elite: true, mod, skill: 1 });
|
||||
const shooter = h.spawn('enemy_shooter', { pos: [10, 7] });
|
||||
u.skill.gainSp(999);
|
||||
h.run(4);
|
||||
assert.ok(from(h, u, (c) => tagged(c, 'thorns:spike')).length > 0, `T${tier} ${mod}: spikes`);
|
||||
assert.equal(!!(shooter.findBuff(`thorns:poison:${u.id}`) || shooter.findBuff('thorns:poison')), poisons, `T${tier} ${mod}: spikes poison`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('T2 故土潮声: 生命回复速度 +3.5 % max HP/s (an hpRegenRatio buff, no 治疗: 禁疗 does not stop it) once his last attack is 2 s old — off while he attacks; S2\'s spikes are no 主动攻击', () => {
|
||||
for (const f of [[5, false, null], [6, true, LORX]]) {
|
||||
const [tier, elite, mod] = f;
|
||||
const { h, u } = field({ tier, elite, mod, skill: 0 });
|
||||
const r = formOf(tier, elite).talents.find((t) => t.index === 1).bb;
|
||||
assert.deepEqual([r.delay, r.hp_recovery_per_sec_by_max_hp_ratio], [2, 0.035]);
|
||||
assert.deepEqual(u.findBuff('talent:thorns:tide')?.mods, { hpRegenRatio: 0.035 }, `${label(f)}: on from the deployment`);
|
||||
approx(u.s.hpRegen, u.s.maxHp * 0.035, `${label(f)}: 3.5 % max HP / s`);
|
||||
u.skill.sp = 0;
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
h.runUntil(() => h.hooksOf('attack').some((c) => c.attacker === u), 3);
|
||||
h.step();
|
||||
assert.equal(u.findBuff('talent:thorns:tide'), null, `${label(f)}: off while attacking`);
|
||||
h.b.kill(e, null);
|
||||
h.run(1.9);
|
||||
assert.equal(u.findBuff('talent:thorns:tide'), null, `${label(f)}: not yet`);
|
||||
h.run(0.2);
|
||||
assert.ok(u.findBuff('talent:thorns:tide'), `${label(f)}: 2 s after his last attack`);
|
||||
// 禁疗 (flag healFree) keeps heals off, not the regeneration attribute
|
||||
h.b.addBuff(u, { key: 'test:healFree', flags: { healFree: true, noHeal: true } });
|
||||
u.hp = u.s.maxHp * 0.5;
|
||||
h.run(1);
|
||||
approx(u.hp, u.s.maxHp * (0.5 + 0.035), `${label(f)}: +3.5 % in a second under 禁疗`, 0.01);
|
||||
done(h);
|
||||
}
|
||||
// S2: the spikes keep the regeneration on
|
||||
const { h, u } = field({ tier: 5, skill: 1 });
|
||||
h.spawn('enemy_shooter', { pos: [10, 7] });
|
||||
u.skill.gainSp(999);
|
||||
h.run(5);
|
||||
assert.ok(from(h, u, (c) => tagged(c, 'thorns:spike')).length > 0, 'spikes');
|
||||
assert.ok(u.findBuff('talent:thorns:tide'), 'still on');
|
||||
done(h);
|
||||
});
|
||||
+334
-122
@@ -3036,131 +3036,137 @@
|
||||
"snaps": "2d9f8f73 d2731731 7ad6484b de506ad9 744afbb0 c80fca2f 66d47606 70a8ba35 d4329acf 5cb1fdbb 0f020029 88de71e9 8762bfc7 f80cf797 62fea1f7 63c7f32f 93829e16 17ab53e2 24bc8145 571b2e52"
|
||||
},
|
||||
"diy-071": {
|
||||
"about": "5_diy1_a=cdfend 5_diy2_b=cdfend 5_diy1_a=cguard 5_diy2_b=cguard 6_diy1_b=wisdel/S1 6_diy2_b=wisdel/S2 6_diy1_b=wisdel/S3 6_diy2_b=wisdel/S1/002_wisdel 6_diy1_b=wisdel/S2/002_wisdel 6_diy2_b=wisdel/S3/002_wisdel 5_diy1_a=csnipe 5_diy2_b=csnipe",
|
||||
"fast": true,
|
||||
"about": "5_diy1_a=thorns/S1 5_diy2_a=thorns/S2 5_diy1_a=thorns/S3 5_diy2_b=thorns/S1 5_diy1_b=thorns/S2 5_diy2_b=thorns/S3 6_diy1_b=wisdel/S1 6_diy2_b=wisdel/S2 6_diy1_b=wisdel/S3 6_diy2_b=wisdel/S1/002_wisdel 6_diy1_b=wisdel/S2/002_wisdel 6_diy2_b=wisdel/S3/002_wisdel",
|
||||
"fast": false,
|
||||
"kind": "normal",
|
||||
"stageId": "act1autochess_m05",
|
||||
"modeId": "mode_multi_funny",
|
||||
"round": 13,
|
||||
"seed": 1743045998,
|
||||
"waveId": "act1autochess_h06",
|
||||
"time": 200.23,
|
||||
"ticks": 6007,
|
||||
"time": 199.6,
|
||||
"ticks": 5988,
|
||||
"reason": "cleared",
|
||||
"killed": 129,
|
||||
"total": 129,
|
||||
"unspawned": 0,
|
||||
"bossHpLeft": null,
|
||||
"rngDraws": 2278,
|
||||
"rngDraws": 2124,
|
||||
"errors": {"count":0,"kinds":[]},
|
||||
"players": {"p1":{"killed":129,"total":129,"perfect":true,"leaks":0,"leaksUncounted":0,"coins":0,"dmg":1092882,"bossDmg":0,"heal":0,"deaths":1,"layerGains":{}}},
|
||||
"players": {"p1":{"killed":129,"total":129,"perfect":true,"leaks":0,"leaksUncounted":0,"coins":0,"dmg":1088442,"bossDmg":0,"heal":2331,"deaths":2,"layerGains":{}}},
|
||||
"units": [
|
||||
["p1",1,"op","chess_char_5_diy1_a",2,null,2128,1,3,0,0,0,0,0,0],
|
||||
["p1",2,"op","chess_char_5_diy2_b",2,"none",2908,1,6,0,0,0,0,0,0],
|
||||
["p1",3,"op","chess_char_5_diy1_a",2,null,2564,1,9,0,0,0,0,0,0],
|
||||
["p1",4,"op","chess_char_5_diy2_b",2,"none",0,0,12,1,5167,3334,0,84,3],
|
||||
["p1",5,"op","chess_char_6_diy1_b",0,"none",1735,1,14,5,32370,0,0,51,12],
|
||||
["p1",6,"op","chess_char_6_diy2_b",1,"none",1735,1,15,32,250298,0,0,118,4],
|
||||
["p1",7,"op","chess_char_6_diy1_b",2,"none",1735,1,1,0,0,0,0,0,1],
|
||||
["p1",8,"op","chess_char_6_diy2_b",0,"uniequip_002_wisdel",1735,1,4,6,57148,0,0,67,16],
|
||||
["p1",9,"op","chess_char_6_diy1_b",1,"uniequip_002_wisdel",1735,1,7,40,280613,0,0,121,4],
|
||||
["p1",10,"op","chess_char_6_diy2_b",2,"uniequip_002_wisdel",1735,1,10,41,411715,0,0,83,3],
|
||||
["p1",11,"op","chess_char_5_diy1_a",2,null,1271,1,13,0,4500,0,0,192,3],
|
||||
["p1",12,"op","chess_char_5_diy2_b",2,"none",1510,1,16,0,5660,0,0,192,3],
|
||||
["p1",1,"op","chess_char_5_diy1_a",0,null,2063,1,3,0,0,0,0,0,0],
|
||||
["p1",2,"op","chess_char_5_diy2_a",1,null,2063,1,6,0,657,0,0,9,2],
|
||||
["p1",3,"op","chess_char_5_diy1_a",2,null,2063,1,9,1,16110,0,0,164,2],
|
||||
["p1",4,"op","chess_char_5_diy2_b",0,"none",1215,1,12,0,15367,1212,0,151,3],
|
||||
["p1",5,"op","chess_char_5_diy1_b",1,"none",1970,1,13,4,13271,2788,2331,72,3],
|
||||
["p1",6,"op","chess_char_5_diy2_b",2,"none",0,0,94,0,5711,4854,0,57,2],
|
||||
["p1",7,"op","chess_char_6_diy1_b",0,"none",1735,1,14,4,16223,0,0,33,8],
|
||||
["p1",8,"op","chess_char_6_diy2_b",1,"none",1735,1,15,33,248150,0,0,118,4],
|
||||
["p1",9,"op","chess_char_6_diy1_b",2,"none",1735,1,1,0,0,0,0,0,1],
|
||||
["p1",10,"op","chess_char_6_diy2_b",0,"uniequip_002_wisdel",1735,1,4,3,35260,0,0,31,7],
|
||||
["p1",11,"op","chess_char_6_diy1_b",1,"uniequip_002_wisdel",1735,1,7,40,301670,0,0,120,4],
|
||||
["p1",12,"op","chess_char_6_diy2_b",2,"uniequip_002_wisdel",1735,1,10,40,399205,0,0,83,3],
|
||||
["p1","~1","token","token_10035_wisdel_wward",null,null,3500,1,2,0,0,0,0,0,0],
|
||||
["p1","~2","token","token_10035_wisdel_wward",null,null,3500,1,5,3,11577,0,0,0,36],
|
||||
["p1","~3","token","token_10035_wisdel_wward",null,null,3500,1,8,1,16565,0,0,0,48],
|
||||
["p1","~4","token","token_10035_wisdel_wward",null,null,3500,1,11,0,17269,0,0,0,51],
|
||||
["p1","~2","token","token_10035_wisdel_wward",null,null,3500,1,5,1,6044,0,0,0,15],
|
||||
["p1","~3","token","token_10035_wisdel_wward",null,null,3500,1,8,0,15646,0,0,0,47],
|
||||
["p1","~4","token","token_10035_wisdel_wward",null,null,3500,1,11,1,15129,0,0,0,48],
|
||||
["p1","~5","token","token_10035_wisdel_wward",null,null,3500,1,41,0,0,0,0,0,0]
|
||||
],
|
||||
"enemies": {"enemy_10124_uashld_2":[18,18,0,2568,432000],"enemy_1043_zomsbr":[66,66,0,0,167717],"enemy_1061_zomshd":[45,45,0,766,525605]},
|
||||
"hooks": [1,146,6007,914,914,10408,10408,17595,130,130,184,180,15,39811,2202,6,129,0,1,130,0,0,0],
|
||||
"events": {"atk":1255,"deploy":17,"die":130,"dmg":10408,"fx":463,"skill":364,"spawn":146,"status":1118},
|
||||
"fx": {"aoe":314,"camouflage":1,"overload":8,"strike":135,"summon":5},
|
||||
"snaps": "26a95a14 72d3b786 58cfa207 888fb447 256e095a a5cf08bf 079bec13 5ccf0eec 51fdcabe bcc4a5ff d1d1a0dd 45764c99 a1ed7dbd 71926661 3b3af91d fa2cd3b9 c0f99870 8c20c23f fbba0542 b59e13f6"
|
||||
"enemies": {"enemy_10124_uashld_2":[18,18,0,7491,432000],"enemy_1043_zomsbr":[66,66,0,22,165653],"enemy_1061_zomshd":[45,45,0,1341,519554]},
|
||||
"hooks": [1,147,5988,871,871,11238,11238,16721,131,131,149,144,15,33988,1855,30,129,0,1,131,0,0,0],
|
||||
"events": {"atk":1194,"deploy":18,"die":131,"dmg":11238,"fx":415,"skill":293,"spawn":146,"status":1195},
|
||||
"fx": {"aoe":283,"camouflage":1,"overload":8,"strike":110,"summon":5,"thorns":8},
|
||||
"snaps": "9847a5a5 564a7bc0 1e8dc4d6 7cf1b445 7ecfe44f efddcc39 dead53bd 2a30c02a 2da1518a 89d8ad3b 9fc7a9db 7ba6918f 7f2105fa 28b15aaa 05b765f0 0e9e3f0d 1e7e0e51 8139d8c9 1439c789 f4c1958b"
|
||||
},
|
||||
"diy-072": {
|
||||
"about": "5_diy1_a=acfend 5_diy2_b=acfend 5_diy1_a=acpion 5_diy2_b=acpion 5_diy1_a=acguad 5_diy2_b=acguad 5_diy1_a=ccast 5_diy2_b=ccast 5_diy1_a=cmedic 5_diy2_b=cmedic 5_diy1_a=csuppo 5_diy2_b=csuppo",
|
||||
"about": "5_diy1_b=thorns/S1/002_thorns 5_diy2_b=thorns/S2/002_thorns 5_diy1_b=thorns/S3/002_thorns 5_diy2_b=thorns/S1/003_thorns 5_diy1_b=thorns/S2/003_thorns 5_diy2_b=thorns/S3/003_thorns 6_diy1_a=thorns/S1 6_diy2_a=thorns/S2 6_diy1_a=thorns/S3 6_diy2_b=thorns/S1 6_diy1_b=thorns/S2 6_diy2_b=thorns/S3",
|
||||
"fast": false,
|
||||
"kind": "normal",
|
||||
"stageId": "act1autochess_m06",
|
||||
"modeId": "mode_single_hard",
|
||||
"round": 12,
|
||||
"round": 13,
|
||||
"seed": 3384200484,
|
||||
"waveId": "act1autochess_h05",
|
||||
"time": 204.6,
|
||||
"ticks": 6138,
|
||||
"waveId": "act1autochess_h06",
|
||||
"time": 217.97,
|
||||
"ticks": 6539,
|
||||
"reason": "cleared",
|
||||
"killed": 19,
|
||||
"total": 117,
|
||||
"killed": 0,
|
||||
"total": 78,
|
||||
"unspawned": 0,
|
||||
"bossHpLeft": null,
|
||||
"rngDraws": 56,
|
||||
"rngDraws": 0,
|
||||
"errors": {"count":0,"kinds":[]},
|
||||
"players": {"p1":{"killed":19,"total":117,"perfect":false,"leaks":98,"leaksUncounted":0,"coins":0,"dmg":159729,"bossDmg":0,"heal":16045,"deaths":23,"layerGains":{}}},
|
||||
"players": {"p1":{"killed":0,"total":78,"perfect":false,"leaks":78,"leaksUncounted":0,"coins":0,"dmg":218895,"bossDmg":0,"heal":3785,"deaths":19,"layerGains":{}}},
|
||||
"units": [
|
||||
["p1",1,"op","chess_char_5_diy1_a",2,null,0,0,93,0,7137,11030,0,39,0],
|
||||
["p1",2,"op","chess_char_5_diy2_b",2,"uniequip_002_acfend",3371,1,6,0,0,0,0,0,0],
|
||||
["p1",3,"op","chess_char_5_diy1_a",2,null,1529,1,9,8,31289,0,0,0,7],
|
||||
["p1",4,"op","chess_char_5_diy2_b",2,"uniequip_002_acpion",0,0,128,4,20803,5712,0,33,1],
|
||||
["p1",5,"op","chess_char_5_diy1_a",2,null,0,0,113,3,20962,7381,0,44,2],
|
||||
["p1",6,"op","chess_char_5_diy2_b",2,"uniequip_002_acguad",0,0,120,2,39208,8511,0,56,2],
|
||||
["p1",7,"op","chess_char_5_diy1_a",2,null,0,0,99,0,4203,2266,0,9,2],
|
||||
["p1",8,"op","chess_char_5_diy2_b",2,"none",0,0,92,1,23030,2720,0,52,2],
|
||||
["p1",9,"op","chess_char_5_diy1_a",2,null,0,0,88,0,0,5014,7904,23,2],
|
||||
["p1",10,"op","chess_char_5_diy2_b",2,"none",0,0,87,0,0,4315,8141,17,2],
|
||||
["p1",11,"op","chess_char_5_diy1_a",2,null,0,0,134,0,4227,2796,0,14,0],
|
||||
["p1",12,"op","chess_char_5_diy2_b",2,"none",0,0,142,1,8871,5676,0,25,1]
|
||||
["p1",1,"op","chess_char_5_diy1_b",0,"uniequip_002_thorns",0,0,78,0,8845,5174,0,21,1],
|
||||
["p1",2,"op","chess_char_5_diy2_b",1,"uniequip_002_thorns",2587,1,7,0,21334,0,0,63,3],
|
||||
["p1",3,"op","chess_char_5_diy1_b",2,"uniequip_002_thorns",2587,1,9,0,112925,0,0,193,2],
|
||||
["p1",4,"op","chess_char_5_diy2_b",0,"uniequip_003_thorns",0,0,92,0,4064,7521,0,19,0],
|
||||
["p1",5,"op","chess_char_5_diy1_b",1,"uniequip_003_thorns",0,0,87,0,25959,6385,1371,15,1],
|
||||
["p1",6,"op","chess_char_5_diy2_b",2,"uniequip_003_thorns",2507,1,101,0,11046,5643,629,39,2],
|
||||
["p1",7,"op","chess_char_6_diy1_a",0,null,2063,1,99,0,2732,4126,0,13,0],
|
||||
["p1",8,"op","chess_char_6_diy2_a",1,null,0,0,61,0,3878,4845,719,10,1],
|
||||
["p1",9,"op","chess_char_6_diy1_a",2,null,0,0,59,0,3585,4126,0,17,0],
|
||||
["p1",10,"op","chess_char_6_diy2_b",0,"none",0,0,1,0,7071,2427,0,20,1],
|
||||
["p1",11,"op","chess_char_6_diy1_b",1,"none",0,0,3,0,3922,3493,1066,3,1],
|
||||
["p1",12,"op","chess_char_6_diy2_b",2,"none",0,0,63,0,13534,4854,0,48,2]
|
||||
],
|
||||
"enemies": {"enemy_1006_shield_3":[18,0,18,24196,19254],"enemy_1043_zomsbr":[72,19,53,8536,91885],"enemy_1402_tgshd_2":[27,0,27,22691,48590]},
|
||||
"hooks": [1,142,6138,532,532,643,627,7310,42,140,21,21,0,20309,38,41,117,98,1,45,0,0,16],
|
||||
"events": {"atk":532,"deploy":25,"die":42,"dmg":627,"fx":240,"heal":40,"leak":98,"skill":42,"spawn":129,"status":119},
|
||||
"fx": {"dodge":16,"dp":20,"expose":143,"slash":61},
|
||||
"snaps": "edadf2fb 7583fb4c cfa55f1f 6c4b397c 562ed971 5a325195 87a1cfde 57e48e44 6e31121b c85b4fa4 ddd106d8 87048e9a bfc4e6fe 8ce79edc 6c260053 c3c5a3a1 b83e6c72 be4087c8 ae11705c 3a471c74 89ab6038"
|
||||
"enemies": {"enemy_1045_hammer_2":[18,0,18,16769,32318],"enemy_1061_zomshd":[60,0,60,31825,186577]},
|
||||
"hooks": [1,101,6539,598,598,1915,2344,23516,19,97,14,13,0,9782,3,40,78,78,1,19,0,0,0],
|
||||
"events": {"atk":598,"deploy":23,"die":19,"dmg":2344,"fx":27,"leak":78,"skill":27,"spawn":90,"status":6},
|
||||
"fx": {"thorns":27},
|
||||
"snaps": "f251b603 b64b2167 b37b9261 d5617ca3 e3a1fd94 8ce6f2e1 84292712 75cc7040 bd4fecc0 e41e936d f1e2a3e5 f770e310 dfa9d1b8 b7d6fac2 3952c796 5accfaf7 4d9eb087 94016144 1f3df616 5a8fd859 e66b35aa 76e4018a"
|
||||
},
|
||||
"diy-073": {
|
||||
"about": "5_diy1_a=sharp2 5_diy2_b=sharp2 5_diy1_a=acspec 5_diy2_b=acspec 5_diy1_a=acnipe 5_diy2_b=acnipe 5_diy1_a=accast 5_diy2_b=accast 5_diy1_a=acmedc 5_diy2_b=acmedc 5_diy1_a=acsupo 5_diy2_b=acsupo",
|
||||
"about": "6_diy1_b=thorns/S1/002_thorns 6_diy2_b=thorns/S2/002_thorns 6_diy1_b=thorns/S3/002_thorns 6_diy2_b=thorns/S1/003_thorns 6_diy1_b=thorns/S2/003_thorns 6_diy2_b=thorns/S3/003_thorns 5_diy1_a=chen3/S1 5_diy2_a=chen3/S2 5_diy1_a=chen3/S3 5_diy2_b=chen3/S1 5_diy1_b=chen3/S2 5_diy2_b=chen3/S3",
|
||||
"fast": false,
|
||||
"kind": "normal",
|
||||
"stageId": "act1autochess_m07",
|
||||
"modeId": "mode_multi_normal",
|
||||
"round": 12,
|
||||
"round": 13,
|
||||
"seed": 2756955908,
|
||||
"waveId": "act1autochess_h05",
|
||||
"time": 230,
|
||||
"ticks": 6900,
|
||||
"reason": "timeout",
|
||||
"killed": 7,
|
||||
"total": 90,
|
||||
"waveId": "act1autochess_h06",
|
||||
"time": 205.07,
|
||||
"ticks": 6152,
|
||||
"reason": "cleared",
|
||||
"killed": 68,
|
||||
"total": 153,
|
||||
"unspawned": 0,
|
||||
"bossHpLeft": null,
|
||||
"rngDraws": 860,
|
||||
"rngDraws": 131,
|
||||
"errors": {"count":0,"kinds":[]},
|
||||
"players": {"p1":{"killed":7,"total":90,"perfect":false,"leaks":83,"leaksUncounted":0,"coins":0,"dmg":565936,"bossDmg":0,"heal":37862,"deaths":15,"layerGains":{}}},
|
||||
"players": {"p1":{"killed":68,"total":153,"perfect":false,"leaks":85,"leaksUncounted":0,"coins":0,"dmg":822552,"bossDmg":0,"heal":4609,"deaths":18,"layerGains":{}}},
|
||||
"units": [
|
||||
["p1",1,"op","chess_char_5_diy1_a",0,null,0,0,116,1,23376,5595,0,42,1],
|
||||
["p1",2,"op","chess_char_5_diy2_b",0,"uniequip_002_sharp2",0,0,115,3,87314,10246,0,44,2],
|
||||
["p1",3,"op","chess_char_5_diy1_a",2,null,1154,1,117,2,37753,19555,0,152,0],
|
||||
["p1",4,"op","chess_char_5_diy2_b",2,"uniequip_002_acspec",1448,1,114,0,16429,26745,0,182,0],
|
||||
["p1",5,"op","chess_char_5_diy1_a",2,null,1272,1,4,0,16123,0,0,113,2],
|
||||
["p1",6,"op","chess_char_5_diy2_b",2,"uniequip_002_acnipe",1587,1,7,1,39656,0,0,130,2],
|
||||
["p1",7,"op","chess_char_5_diy1_a",2,null,1372,1,10,0,77688,0,0,51,2],
|
||||
["p1",8,"op","chess_char_5_diy2_b",2,"uniequip_002_accast",1749,1,13,0,89279,0,0,48,2],
|
||||
["p1",9,"op","chess_char_5_diy1_a",2,null,1224,1,14,0,0,0,0,0,0],
|
||||
["p1",10,"op","chess_char_5_diy2_b",2,"uniequip_002_acmedc",1414,1,5,0,0,0,37862,58,3],
|
||||
["p1",11,"op","chess_char_5_diy1_a",2,null,1160,1,8,0,73430,0,0,157,3],
|
||||
["p1",12,"op","chess_char_5_diy2_b",2,"uniequip_002_acsupo",1430,1,11,0,104888,0,0,161,3],
|
||||
["p1",1,"op","chess_char_6_diy1_b",0,"uniequip_002_thorns",0,0,143,5,19764,5374,0,25,1],
|
||||
["p1",2,"op","chess_char_6_diy2_b",1,"uniequip_002_thorns",0,0,182,2,13255,8566,505,13,1],
|
||||
["p1",3,"op","chess_char_6_diy1_b",2,"uniequip_002_thorns",0,0,112,9,16606,5374,0,28,1],
|
||||
["p1",4,"op","chess_char_6_diy2_b",0,"uniequip_003_thorns",0,0,176,4,18098,7731,0,25,1],
|
||||
["p1",5,"op","chess_char_6_diy1_b",1,"uniequip_003_thorns",0,0,107,0,9833,5671,517,15,1],
|
||||
["p1",6,"op","chess_char_6_diy2_b",2,"uniequip_003_thorns",0,0,100,1,9802,5154,0,14,0],
|
||||
["p1",7,"op","chess_char_5_diy1_a",0,null,0,0,165,0,5512,6633,0,15,0],
|
||||
["p1",8,"op","chess_char_5_diy2_a",1,null,2211,1,175,2,3,0,0,0,1],
|
||||
["p1",9,"op","chess_char_5_diy1_a",2,null,2211,1,5,5,179400,0,0,15,3],
|
||||
["p1",10,"op","chess_char_5_diy2_b",0,"none",2674,1,7,0,12,0,0,7,1],
|
||||
["p1",11,"op","chess_char_5_diy1_b",1,"none",0,0,117,5,86486,5304,2630,51,4],
|
||||
["p1",12,"op","chess_char_5_diy2_b",2,"none",2674,1,11,35,463782,957,957,85,4],
|
||||
["-","~1","device","trap_1105_accrate",null,null,100,1,1,0,0,0,0,0,null],
|
||||
["-","~2","device","trap_1105_accrate",null,null,100,1,2,0,0,0,0,0,null]
|
||||
],
|
||||
"enemies": {"enemy_1116_liprr_2":[27,6,21,7860,157842],"enemy_1119_vofsd":[39,1,37,25542,243517],"enemy_1121_lifbos_2":[24,0,24,28739,164577]},
|
||||
"hooks": [1,117,6900,1235,1235,1585,1650,4412,22,104,20,26,0,32957,7577,27,90,82,1,22,0,0,0],
|
||||
"events": {"atk":1361,"deploy":25,"die":22,"dmg":1619,"fx":49,"heal":68,"leak":82,"skill":59,"spawn":104,"status":941},
|
||||
"fx": {"aoe":6,"displace":2,"dodge":9,"liberate":20,"spGain":12},
|
||||
"snaps": "47ef258d f9e9aba1 190ac938 372c5487 ed5a908a 815460f1 55cea32d f76bcba9 6667fc01 24413ad2 2fd382d9 19e2cfc3 759441ca acbe5115 f94bb0ba e8ea30b1 ce1bcacd b79a43bf 180f16ed 40dda8e9 ae9ed60a a9074d2a 9e3ce0d0"
|
||||
"enemies": {
|
||||
"enemy_1197_sfshu": [15,10,5,1199,71664],
|
||||
"enemy_1197_sfshu_2": [39,10,29,7107,178806],
|
||||
"enemy_1198_msfshu": [30,15,15,0,57],
|
||||
"enemy_1198_msfshu_2": [30,27,3,0,108],
|
||||
"enemy_9010_acpupp": [39,6,33,42458,571918]
|
||||
},
|
||||
"hooks": [1,182,6152,381,381,1003,1085,465,86,171,18,18,0,16107,5,46,153,85,1,92,0,0,8],
|
||||
"events": {"atk":405,"deploy":27,"die":86,"dmg":1085,"fx":437,"heal":4,"leak":85,"skill":36,"spawn":167,"status":8},
|
||||
"fx": {"blink":5,"dash":12,"dodge":8,"ember":6,"shield":131,"shieldBreak":2,"slash":243,"summon":20,"telegraph":6,"thorns":4},
|
||||
"snaps": "8a3cfafb d17ada74 14edbc58 d8fa1fa9 21fc9472 5547dd82 cb7436e8 fe09dc23 b431d4f8 f267feb6 d47f7c8e e1e078a5 0ddd76df f2940500 cf2f3746 7ebd9419 0b8f7618 0d8de4bd c44f12f2 254b7d70 51f2cc5a"
|
||||
},
|
||||
"diy-074": {
|
||||
"about": "6_diy1_a=acfend 6_diy2_b=acfend 6_diy1_a=acpion 6_diy2_b=acpion 6_diy1_a=acguad 6_diy2_b=acguad 6_diy1_a=acnipe 6_diy2_b=acnipe 6_diy1_a=accast 6_diy2_b=accast 6_diy1_a=acmedc 6_diy2_b=acmedc",
|
||||
"about": "5_diy1_b=chen3/S1/002_chen3 5_diy2_b=chen3/S2/002_chen3 5_diy1_b=chen3/S3/002_chen3 6_diy1_a=chen3/S1 6_diy2_a=chen3/S2 6_diy1_a=chen3/S3 6_diy2_b=chen3/S1 6_diy1_b=chen3/S2 6_diy2_b=chen3/S3 6_diy1_b=chen3/S1/002_chen3 6_diy2_b=chen3/S2/002_chen3 6_diy1_b=chen3/S3/002_chen3",
|
||||
"fast": false,
|
||||
"kind": "normal",
|
||||
"stageId": "act2autochess_m01",
|
||||
@@ -3168,70 +3174,276 @@
|
||||
"round": 13,
|
||||
"seed": 102712569,
|
||||
"waveId": "act1autochess_h06",
|
||||
"time": 221.87,
|
||||
"ticks": 6656,
|
||||
"time": 226.5,
|
||||
"ticks": 6795,
|
||||
"reason": "cleared",
|
||||
"killed": 8,
|
||||
"killed": 21,
|
||||
"total": 105,
|
||||
"unspawned": 0,
|
||||
"bossHpLeft": null,
|
||||
"rngDraws": 205,
|
||||
"rngDraws": 72,
|
||||
"errors": {"count":0,"kinds":[]},
|
||||
"players": {"p1":{"killed":8,"total":105,"perfect":false,"leaks":97,"leaksUncounted":0,"coins":0,"dmg":305544,"bossDmg":0,"heal":25311,"deaths":24,"layerGains":{}}},
|
||||
"players": {"p1":{"killed":21,"total":105,"perfect":false,"leaks":84,"leaksUncounted":0,"coins":0,"dmg":566712,"bossDmg":0,"heal":0,"deaths":22,"layerGains":{}}},
|
||||
"units": [
|
||||
["p1",1,"op","chess_char_6_diy1_a",2,null,0,0,73,0,203,5208,0,4,0],
|
||||
["p1",2,"op","chess_char_6_diy2_b",2,"uniequip_002_acfend",0,0,72,0,168,6862,0,4,0],
|
||||
["p1",3,"op","chess_char_6_diy1_a",2,null,0,0,117,0,11702,4587,0,5,1],
|
||||
["p1",4,"op","chess_char_6_diy2_b",2,"uniequip_002_acpion",0,0,123,1,87482,6798,0,8,2],
|
||||
["p1",5,"op","chess_char_6_diy1_a",2,null,0,0,80,1,16290,5276,0,15,1],
|
||||
["p1",6,"op","chess_char_6_diy2_b",2,"uniequip_002_acguad",0,0,8,1,27795,17209,0,14,1],
|
||||
["p1",7,"op","chess_char_6_diy1_a",2,null,1272,1,130,0,19769,2544,0,30,1],
|
||||
["p1",8,"op","chess_char_6_diy2_b",2,"uniequip_002_acnipe",0,0,91,1,66539,3286,0,45,1],
|
||||
["p1",9,"op","chess_char_6_diy1_a",2,null,0,0,4,4,49537,1372,0,11,1],
|
||||
["p1",10,"op","chess_char_6_diy2_b",2,"uniequip_002_accast",0,0,66,0,26060,6199,0,6,1],
|
||||
["p1",11,"op","chess_char_6_diy1_a",2,null,0,0,112,0,0,4229,9625,8,1],
|
||||
["p1",12,"op","chess_char_6_diy2_b",2,"uniequip_002_acmedc",0,0,129,0,0,9133,15687,16,1]
|
||||
["p1",1,"op","chess_char_5_diy1_b",0,"uniequip_002_chen3",2914,1,132,1,21366,5828,0,14,1],
|
||||
["p1",2,"op","chess_char_5_diy2_b",1,"uniequip_002_chen3",0,0,116,2,42372,5828,0,8,1],
|
||||
["p1",3,"op","chess_char_5_diy1_b",2,"uniequip_002_chen3",0,0,131,4,216393,8742,0,26,1],
|
||||
["p1",4,"op","chess_char_6_diy1_a",0,null,0,0,125,0,1102,4422,0,3,0],
|
||||
["p1",5,"op","chess_char_6_diy2_a",1,null,0,0,74,1,31896,4422,0,2,1],
|
||||
["p1",6,"op","chess_char_6_diy1_a",2,null,0,0,5,0,31583,2211,0,9,1],
|
||||
["p1",7,"op","chess_char_6_diy2_b",0,"none",0,0,77,1,7760,5348,0,8,1],
|
||||
["p1",8,"op","chess_char_6_diy1_b",1,"none",0,0,48,4,40661,2674,0,8,1],
|
||||
["p1",9,"op","chess_char_6_diy2_b",2,"none",0,0,2,6,114218,2674,0,21,2],
|
||||
["p1",10,"op","chess_char_6_diy1_b",0,"uniequip_002_chen3",0,0,81,0,1053,6188,0,2,0],
|
||||
["p1",11,"op","chess_char_6_diy2_b",1,"uniequip_002_chen3",0,0,75,2,53661,6188,0,20,1],
|
||||
["p1",12,"op","chess_char_6_diy1_b",2,"uniequip_002_chen3",0,0,68,0,4647,6188,0,9,0]
|
||||
],
|
||||
"enemies": {"enemy_1229_darmy":[27,5,22,10928,81346],"enemy_1229_darmy_2":[57,3,54,20729,130893],"enemy_1275_dwlock_2":[21,0,21,41047,93304]},
|
||||
"hooks": [1,130,6656,287,287,718,780,47,32,129,11,11,0,10225,0,35,105,97,1,102,0,6,0],
|
||||
"events": {"atk":354,"deploy":25,"die":32,"dmg":780,"fx":84,"heal":47,"leak":97,"skill":22,"spawn":117,"status":18},
|
||||
"fx": {"aoe":10,"beam":36,"burst":6,"dp":4,"explode":2,"slash":24,"spGain":2},
|
||||
"snaps": "0d9dfdaa 32539bfa 43860568 067d2c23 bef0b9e3 3d406805 b49ce9e9 b869cbb4 25e59436 d8053893 f537a887 b66f5aa1 af47af96 de57bc15 7c78eae1 e7a644ec 1a687f01 b8c42e5f 6b4fb3ce 2ec2ec96 20f31e31 d63d7191 fb610efc"
|
||||
"enemies": {"enemy_1229_darmy":[27,6,21,587,90296],"enemy_1229_darmy_2":[57,10,47,10226,206501],"enemy_1275_dwlock_2":[21,5,16,49900,269915]},
|
||||
"hooks": [1,132,6795,211,211,513,539,60,43,127,10,10,0,7956,12,29,105,84,1,43,0,1,21],
|
||||
"events": {"atk":227,"deploy":27,"die":43,"dmg":539,"fx":244,"leak":84,"skill":20,"spawn":117,"status":8},
|
||||
"fx": {"beam":45,"blink":4,"burst":1,"dash":8,"dodge":21,"shield":60,"slash":105},
|
||||
"snaps": "45e32aa4 9e2f1376 c0152cae 9f741ff8 cc554332 cd3d8d95 e73ef0f3 3b182583 b13290ac 1ad128dd 247f28ef 02d233e2 e284f0bc dad6ce0b b37b0587 de541236 7ed7a8d3 fd46f9c7 41d01aa4 1c43a222 8635abfb 3725fd22 80d163ed"
|
||||
},
|
||||
"diy-075": {
|
||||
"about": "6_diy1_a=sharp2 6_diy2_b=sharp2 6_diy1_a=acspec 6_diy2_b=acspec 6_diy1_a=acsupo 6_diy2_b=acsupo",
|
||||
"about": "5_diy1_a=leizi2/S1 5_diy2_a=leizi2/S2 5_diy1_a=leizi2/S3 5_diy2_b=leizi2/S1 5_diy1_b=leizi2/S2 5_diy2_b=leizi2/S3 5_diy1_b=leizi2/S1/002_leizi2 5_diy2_b=leizi2/S2/002_leizi2 5_diy1_b=leizi2/S3/002_leizi2 6_diy1_a=leizi2/S1 6_diy2_a=leizi2/S2 6_diy1_a=leizi2/S3",
|
||||
"fast": false,
|
||||
"kind": "normal",
|
||||
"stageId": "act2autochess_m02",
|
||||
"modeId": "mode_single_normal",
|
||||
"round": 13,
|
||||
"round": 12,
|
||||
"seed": 3770869562,
|
||||
"waveId": "act1autochess_h06",
|
||||
"time": 212,
|
||||
"ticks": 6360,
|
||||
"waveId": "act1autochess_h05",
|
||||
"time": 184.87,
|
||||
"ticks": 5546,
|
||||
"reason": "cleared",
|
||||
"killed": 7,
|
||||
"total": 102,
|
||||
"killed": 149,
|
||||
"total": 153,
|
||||
"unspawned": 0,
|
||||
"bossHpLeft": null,
|
||||
"rngDraws": 178,
|
||||
"rngDraws": 1810,
|
||||
"errors": {"count":0,"kinds":[]},
|
||||
"players": {"p1":{"killed":7,"total":102,"perfect":false,"leaks":95,"leaksUncounted":0,"coins":0,"dmg":328833,"bossDmg":0,"heal":0,"deaths":21,"layerGains":{}}},
|
||||
"players": {"p1":{"killed":149,"total":153,"perfect":false,"leaks":4,"leaksUncounted":0,"coins":0,"dmg":1261456,"bossDmg":0,"heal":0,"deaths":3,"layerGains":{}}},
|
||||
"units": [
|
||||
["p1",1,"op","chess_char_6_diy1_a",0,null,0,0,126,1,26885,5595,0,29,1],
|
||||
["p1",2,"op","chess_char_6_diy2_b",0,"uniequip_002_sharp2",2344,1,129,2,65444,5138,0,27,1],
|
||||
["p1",3,"op","chess_char_6_diy1_a",2,null,0,0,128,0,34841,10386,0,49,0],
|
||||
["p1",4,"op","chess_char_6_diy2_b",2,"uniequip_002_acspec",120.14,1,127,3,67065,11752,0,80,0],
|
||||
["p1",5,"op","chess_char_6_diy1_a",2,null,1160,1,6,0,52776,0,0,114,2],
|
||||
["p1",6,"op","chess_char_6_diy2_b",2,"uniequip_002_acsupo",1450,1,7,1,81822,0,0,136,3],
|
||||
["p1",1,"op","chess_char_5_diy1_a",0,null,2288.89,1,3,15,68115,917,0,0,9],
|
||||
["p1",2,"op","chess_char_5_diy2_a",1,null,0,0,4,5,30933,3206,0,19,2],
|
||||
["p1",3,"op","chess_char_5_diy1_a",2,null,2224.71,1,5,17,111591,981,0,15,3],
|
||||
["p1",4,"op","chess_char_5_diy2_b",0,"none",1773.07,1,7,11,121111,1869,0,0,14],
|
||||
["p1",5,"op","chess_char_5_diy1_b",1,"none",0,0,11,33,206266,3642,0,53,2],
|
||||
["p1",6,"op","chess_char_5_diy2_b",2,"none",3579.88,1,157,10,149324,3704,0,14,3],
|
||||
["p1",7,"op","chess_char_5_diy1_b",0,"uniequip_002_leizi2",2242.29,1,14,13,128441,1625,0,0,15],
|
||||
["p1",8,"op","chess_char_5_diy2_b",1,"uniequip_002_leizi2",2797.44,1,8,10,83970,1070,0,27,2],
|
||||
["p1",9,"op","chess_char_5_diy1_b",2,"uniequip_002_leizi2",2645.54,1,12,13,164793,1221,0,18,3],
|
||||
["p1",10,"op","chess_char_6_diy1_a",0,null,3062.4,1,9,1,27992,144,0,0,7],
|
||||
["p1",11,"op","chess_char_6_diy2_a",1,null,3125.94,1,10,17,133890,80,0,30,2],
|
||||
["p1",12,"op","chess_char_6_diy1_a",2,null,3206,1,6,4,35032,0,0,5,3],
|
||||
["-","~1","device","trap_1105_accrate",null,null,100,1,1,0,0,0,0,0,null],
|
||||
["-","~2","device","trap_1105_accrate",null,null,100,1,2,0,0,0,0,0,null]
|
||||
],
|
||||
"enemies": {"enemy_1267_nhpbr_2":[27,6,21,7965,101509],"enemy_1270_nhstlk_2":[36,1,35,5072,104987],"enemy_9006_actoxi":[39,0,39,19834,122338]},
|
||||
"hooks": [1,129,6360,551,551,755,785,0,28,123,7,22,0,10737,5368,32,102,95,1,28,0,0,8],
|
||||
"events": {"atk":572,"deploy":25,"die":28,"dmg":720,"fx":50,"leak":95,"skill":47,"spawn":110,"status":709},
|
||||
"fx": {"displace":32,"dodge":12,"zone":6},
|
||||
"snaps": "219bb3e6 15948f1c 968d0d57 4e777f00 76716f4d d8dae95c a1a991dc 5c7c06a7 3ad889af 10e3e009 8f5f1c4b a6a6d4ea 4d2f29e9 1b0021ec c8db6150 d2e30a7c c0e91e16 4106ca50 3ccfeb13 e5e829bb 56a2c338 72359c7e"
|
||||
"enemies": {"enemy_1249_lysdb_2":[60,60,0,1488,559872],"enemy_1251_lysyta":[63,63,0,334,269438],"enemy_1329_cbshld":[30,26,4,16637,432145]},
|
||||
"hooks": [1,168,5546,313,313,2173,2113,0,152,156,65,61,0,39328,293,121,153,4,1,152,0,0,0],
|
||||
"events": {"atk":536,"deploy":13,"die":152,"dmg":2113,"fx":1586,"leak":4,"skill":126,"spawn":167,"status":306},
|
||||
"fx": {"aoe":45,"lightning":1429,"pulse":52,"shieldBreak":60},
|
||||
"snaps": "279180c1 ec59986c 8724f011 2c0b4ef4 0ef558f2 84e4a729 66364554 c0b920f3 6e7185e5 79a82568 49b6ed9f 7493c0a1 f161d189 3b2e9b0a 7a7d89d9 3cf87903 b2fb1d51 9322cda8 bdcbf5e7"
|
||||
},
|
||||
"diy-076": {
|
||||
"about": "6_diy1_b=leizi2/S1 6_diy2_b=leizi2/S2 6_diy1_b=leizi2/S3 6_diy2_b=leizi2/S1/002_leizi2 6_diy1_b=leizi2/S2/002_leizi2 6_diy2_b=leizi2/S3/002_leizi2 5_diy1_a=cdfend 5_diy2_b=cdfend 5_diy1_a=cguard 5_diy2_b=cguard 5_diy1_a=csnipe 5_diy2_b=csnipe",
|
||||
"fast": true,
|
||||
"kind": "normal",
|
||||
"stageId": "act2autochess_m03",
|
||||
"modeId": "mode_multi_abyss",
|
||||
"round": 13,
|
||||
"seed": 1116500759,
|
||||
"waveId": "act1autochess_h06",
|
||||
"time": 221.37,
|
||||
"ticks": 6641,
|
||||
"reason": "cleared",
|
||||
"killed": 8,
|
||||
"total": 144,
|
||||
"unspawned": 0,
|
||||
"bossHpLeft": null,
|
||||
"rngDraws": 704,
|
||||
"errors": {"count":0,"kinds":[]},
|
||||
"players": {"p1":{"killed":8,"total":144,"perfect":false,"leaks":136,"leaksUncounted":0,"coins":0,"dmg":682344,"bossDmg":0,"heal":0,"deaths":26,"layerGains":{}}},
|
||||
"units": [
|
||||
["p1",1,"op","chess_char_6_diy1_b",0,"none",2232.16,1,175,1,100633,8694,0,0,7],
|
||||
["p1",2,"op","chess_char_6_diy2_b",1,"none",0,0,114,1,49891,7284,0,10,2],
|
||||
["p1",3,"op","chess_char_6_diy1_b",2,"none",3642,1,176,1,91439,7284,0,7,2],
|
||||
["p1",4,"op","chess_char_6_diy2_b",0,"uniequip_002_leizi2",0,0,133,0,102305,8004,0,0,7],
|
||||
["p1",5,"op","chess_char_6_diy1_b",1,"uniequip_002_leizi2",0,0,145,0,63113,8004,0,8,2],
|
||||
["p1",6,"op","chess_char_6_diy2_b",2,"uniequip_002_leizi2",0,0,165,5,251964,8004,0,9,2],
|
||||
["p1",7,"op","chess_char_5_diy1_a",2,null,0,0,90,0,1356,4256,0,6,0],
|
||||
["p1",8,"op","chess_char_5_diy2_b",2,"none",0,0,81,0,647,5816,0,9,0],
|
||||
["p1",9,"op","chess_char_5_diy1_a",2,null,2564,1,174,0,5994,5128,0,12,0],
|
||||
["p1",10,"op","chess_char_5_diy2_b",2,"none",0,0,95,0,6114,6668,0,8,0],
|
||||
["p1",11,"op","chess_char_5_diy1_a",2,null,0,0,158,0,4551,3813,0,14,0],
|
||||
["p1",12,"op","chess_char_5_diy2_b",2,"none",0,0,152,0,4336,4530,0,14,0],
|
||||
["-","~1","device","trap_1105_accrate",null,null,100,1,1,0,0,0,0,0,null],
|
||||
["-","~2","device","trap_1105_accrate",null,null,100,1,2,0,0,0,0,0,null],
|
||||
["-","~3","device","trap_1105_accrate",null,null,100,1,3,0,0,0,0,0,null]
|
||||
],
|
||||
"enemies": {"enemy_1251_lysyta_2":[51,8,43,10477,247839],"enemy_1252_lysytb_2":[54,0,54,37950,262303],"enemy_1329_cbshld_2":[39,0,39,29059,172202]},
|
||||
"hooks": [1,176,6641,280,280,1112,1112,0,34,170,22,22,0,13611,164,65,144,136,1,34,0,0,0],
|
||||
"events": {"atk":316,"deploy":29,"die":34,"dmg":1112,"fx":293,"leak":136,"skill":44,"spawn":159,"status":227},
|
||||
"fx": {"aoe":11,"lightning":266,"pulse":16},
|
||||
"snaps": "b6e40abe f0db8570 c90e6e20 e302c918 dfa05526 3d4b8649 85bc75bd 172418e4 a05afe46 4e4a8c54 12204c69 9175c57b 23f62e93 06bc7066 fee8a47b 9f03d8c8 094d031e 1727f1eb 90766837 fc7af1c2 7af0403b 904c6c85 74a2d458"
|
||||
},
|
||||
"diy-077": {
|
||||
"about": "5_diy1_a=acfend 5_diy2_b=acfend 5_diy1_a=acpion 5_diy2_b=acpion 5_diy1_a=acguad 5_diy2_b=acguad 5_diy1_a=ccast 5_diy2_b=ccast 5_diy1_a=cmedic 5_diy2_b=cmedic 5_diy1_a=csuppo 5_diy2_b=csuppo",
|
||||
"fast": false,
|
||||
"kind": "normal",
|
||||
"stageId": "act2autochess_m04",
|
||||
"modeId": "mode_multi_funny",
|
||||
"round": 12,
|
||||
"seed": 489962961,
|
||||
"waveId": "act1autochess_h05",
|
||||
"time": 216.43,
|
||||
"ticks": 6493,
|
||||
"reason": "cleared",
|
||||
"killed": 28,
|
||||
"total": 114,
|
||||
"unspawned": 0,
|
||||
"bossHpLeft": null,
|
||||
"rngDraws": 119,
|
||||
"errors": {"count":0,"kinds":[]},
|
||||
"players": {"p1":{"killed":28,"total":114,"perfect":false,"leaks":86,"leaksUncounted":0,"coins":0,"dmg":155075,"bossDmg":0,"heal":4683,"deaths":26,"layerGains":{}}},
|
||||
"units": [
|
||||
["p1",1,"op","chess_char_5_diy1_a",2,null,0,0,131,3,15003,5208,0,69,1],
|
||||
["p1",2,"op","chess_char_5_diy2_b",2,"uniequip_002_acfend",0,0,124,1,24440,6742,0,66,2],
|
||||
["p1",3,"op","chess_char_5_diy1_a",2,null,0,0,132,4,18564,3058,0,18,2],
|
||||
["p1",4,"op","chess_char_5_diy2_b",2,"uniequip_002_acpion",0,0,141,1,5622,5712,0,13,2],
|
||||
["p1",5,"op","chess_char_5_diy1_a",2,null,0,0,96,0,2043,5276,0,4,0],
|
||||
["p1",6,"op","chess_char_5_diy2_b",2,"uniequip_002_acguad",0,0,90,4,29193,6822,0,23,1],
|
||||
["p1",7,"op","chess_char_5_diy1_a",2,null,0,0,3,6,13608,1133,0,37,1],
|
||||
["p1",8,"op","chess_char_5_diy2_b",2,"none",0,0,4,4,26194,1360,0,54,2],
|
||||
["p1",9,"op","chess_char_5_diy1_a",2,null,0,0,128,0,0,5310,3125,8,1],
|
||||
["p1",10,"op","chess_char_5_diy2_b",2,"none",0,0,125,0,0,7149,1558,6,0],
|
||||
["p1",11,"op","chess_char_5_diy1_a",2,null,0,0,140,4,12459,1864,0,36,1],
|
||||
["p1",12,"op","chess_char_5_diy2_b",2,"none",0,0,142,1,7948,3393,0,19,1],
|
||||
["-","~1","device","trap_1105_accrate",null,null,100,1,1,0,0,0,0,0,null],
|
||||
["-","~2","device","trap_1105_accrate",null,null,100,1,2,0,0,0,0,0,null]
|
||||
],
|
||||
"enemies": {"enemy_1019_jshoot_2":[51,14,37,7067,50822],"enemy_1381_winman":[27,11,16,343,68509],"enemy_1389_winbab_2":[36,3,33,45616,71345]},
|
||||
"hooks": [1,142,6493,1168,1168,2271,2234,14,54,140,14,14,0,15903,50,49,114,86,1,71,0,0,37],
|
||||
"events": {"atk":1168,"deploy":26,"die":54,"dmg":2234,"fx":125,"heal":14,"leak":86,"skill":28,"spawn":128,"status":104},
|
||||
"fx": {"aoe":67,"dodge":37,"dp":9,"slash":12},
|
||||
"snaps": "a8ebaa0a c7a3f563 86d849aa c41775ad 4cd063ec 661332c4 3a9b60a3 6c16de62 51354213 50776bdd 1fcc01fb a21d8b42 d9ca94c1 1bd48914 49095136 084282f3 de456c61 1d5569a8 88d801e3 38867e16 f557042a 2ccda668"
|
||||
},
|
||||
"diy-078": {
|
||||
"about": "5_diy1_a=sharp2 5_diy2_b=sharp2 5_diy1_a=acspec 5_diy2_b=acspec 5_diy1_a=acnipe 5_diy2_b=acnipe 5_diy1_a=accast 5_diy2_b=accast 5_diy1_a=acmedc 5_diy2_b=acmedc 5_diy1_a=acsupo 5_diy2_b=acsupo",
|
||||
"fast": false,
|
||||
"kind": "normal",
|
||||
"stageId": "act1autochess_m01",
|
||||
"modeId": "mode_single_hard",
|
||||
"round": 12,
|
||||
"seed": 2130619692,
|
||||
"waveId": "act1autochess_h05",
|
||||
"time": 211.13,
|
||||
"ticks": 6334,
|
||||
"reason": "cleared",
|
||||
"killed": 7,
|
||||
"total": 114,
|
||||
"unspawned": 0,
|
||||
"bossHpLeft": null,
|
||||
"rngDraws": 48,
|
||||
"errors": {"count":0,"kinds":[]},
|
||||
"players": {"p1":{"killed":7,"total":114,"perfect":false,"leaks":107,"leaksUncounted":0,"coins":0,"dmg":64050,"bossDmg":0,"heal":2112,"deaths":32,"layerGains":{}}},
|
||||
"units": [
|
||||
["p1",1,"op","chess_char_5_diy1_a",0,null,0,0,7,0,5325,2016,0,7,1],
|
||||
["p1",2,"op","chess_char_5_diy2_b",0,"uniequip_002_sharp2",0,0,9,4,22936,2374,0,14,1],
|
||||
["p1",3,"op","chess_char_5_diy1_a",2,null,1154,1,151,0,7836,11540,0,12,0],
|
||||
["p1",4,"op","chess_char_5_diy2_b",2,"uniequip_002_acspec",1448,1,150,1,16367,13032,0,22,0],
|
||||
["p1",5,"op","chess_char_5_diy1_a",2,null,0,0,97,0,1239,2544,0,5,0],
|
||||
["p1",6,"op","chess_char_5_diy2_b",2,"uniequip_002_acnipe",0,0,5,2,3182,1765,0,5,1],
|
||||
["p1",7,"op","chess_char_5_diy1_a",2,null,0,0,11,0,1663,1608,0,1,0],
|
||||
["p1",8,"op","chess_char_5_diy2_b",2,"uniequip_002_accast",0,0,13,0,3986,1749,0,4,0],
|
||||
["p1",9,"op","chess_char_5_diy1_a",2,null,0,0,6,0,0,1224,777,3,1],
|
||||
["p1",10,"op","chess_char_5_diy2_b",2,"uniequip_002_acmedc",0,0,78,0,0,4163,1335,3,0],
|
||||
["p1",11,"op","chess_char_5_diy1_a",2,null,0,0,71,0,789,2320,0,2,0],
|
||||
["p1",12,"op","chess_char_5_diy2_b",2,"uniequip_002_acsupo",0,0,8,0,727,1642,0,1,1],
|
||||
["-","~1","device","trap_1105_accrate",null,null,100,1,1,0,0,0,0,0,null],
|
||||
["-","~2","device","trap_1105_accrate",null,null,100,1,2,0,0,0,0,0,null],
|
||||
["-","~3","device","trap_1105_accrate",null,null,100,1,3,0,0,0,0,0,null]
|
||||
],
|
||||
"enemies": {"enemy_1019_jshoot_2":[51,3,48,6735,13561],"enemy_1381_winman":[27,4,23,274,48141],"enemy_1389_winbab_2":[36,0,36,38969,2348]},
|
||||
"hooks": [1,151,6334,389,389,313,328,8,39,146,5,24,0,6349,19,23,114,107,1,39,0,0,0],
|
||||
"events": {"atk":393,"deploy":34,"die":39,"dmg":314,"fx":8,"heal":7,"leak":107,"skill":36,"spawn":129,"status":35},
|
||||
"fx": {"displace":6,"spGain":2},
|
||||
"snaps": "cbc574c2 514473e2 75591f1c cfb07d82 a78b7245 8f48f6aa be3b725d 921fad95 439e2f43 d25dc3db 519fe02f f01841f2 1a6f7d56 55197d41 f972b250 b95a084c b5ed1052 522fa670 7e2846cd df5e04a5 17e0c749 a7b2c538"
|
||||
},
|
||||
"diy-079": {
|
||||
"about": "6_diy1_a=acfend 6_diy2_b=acfend 6_diy1_a=acpion 6_diy2_b=acpion 6_diy1_a=acguad 6_diy2_b=acguad 6_diy1_a=acnipe 6_diy2_b=acnipe 6_diy1_a=accast 6_diy2_b=accast 6_diy1_a=acmedc 6_diy2_b=acmedc",
|
||||
"fast": false,
|
||||
"kind": "normal",
|
||||
"stageId": "act1autochess_m02",
|
||||
"modeId": "mode_multi_normal",
|
||||
"round": 13,
|
||||
"seed": 1503726279,
|
||||
"waveId": "act1autochess_h06",
|
||||
"time": 220.87,
|
||||
"ticks": 6626,
|
||||
"reason": "cleared",
|
||||
"killed": 18,
|
||||
"total": 111,
|
||||
"unspawned": 0,
|
||||
"bossHpLeft": null,
|
||||
"rngDraws": 741,
|
||||
"errors": {"count":0,"kinds":[]},
|
||||
"players": {"p1":{"killed":18,"total":111,"perfect":false,"leaks":93,"leaksUncounted":0,"coins":0,"dmg":1112925,"bossDmg":0,"heal":16745,"deaths":12,"layerGains":{}}},
|
||||
"units": [
|
||||
["p1",1,"op","chess_char_6_diy1_a",2,null,0,0,124,0,403,7812,0,12,0],
|
||||
["p1",2,"op","chess_char_6_diy2_b",2,"uniequip_002_acfend",0,0,91,0,9431,7244,0,46,2],
|
||||
["p1",3,"op","chess_char_6_diy1_a",2,null,1529,1,117,0,20345,1529,0,41,4],
|
||||
["p1",4,"op","chess_char_6_diy2_b",2,"uniequip_002_acpion",1904,1,113,3,123004,5991,0,33,7],
|
||||
["p1",5,"op","chess_char_6_diy1_a",2,null,1249.23,1,10,5,61613,8772,0,61,3],
|
||||
["p1",6,"op","chess_char_6_diy2_b",2,"uniequip_002_acguad",3531,1,132,3,65671,6743,0,39,2],
|
||||
["p1",7,"op","chess_char_6_diy1_a",2,null,1272,1,5,1,34182,0,0,89,2],
|
||||
["p1",8,"op","chess_char_6_diy2_b",2,"uniequip_002_acnipe",1643,1,8,0,236086,0,0,194,3],
|
||||
["p1",9,"op","chess_char_6_diy1_a",2,null,1372,1,6,4,232286,0,0,79,2],
|
||||
["p1",10,"op","chess_char_6_diy2_b",2,"uniequip_002_accast",1819,1,9,2,329906,0,0,84,3],
|
||||
["p1",11,"op","chess_char_6_diy1_a",2,null,1224,1,114,0,0,4128,1680,4,0],
|
||||
["p1",12,"op","chess_char_6_diy2_b",2,"uniequip_002_acmedc",0,0,77,0,0,2928,15065,20,2]
|
||||
],
|
||||
"enemies": {"enemy_1010_demon":[54,8,46,28411,532284],"enemy_1320_wdrrl_2":[18,0,18,14717,193787],"enemy_1422_lrsldr_2":[39,10,29,2019,386854]},
|
||||
"hooks": [1,132,6626,818,818,2133,2113,42,30,123,30,28,0,37558,0,25,111,93,1,34,0,0,20],
|
||||
"events": {"atk":1045,"deploy":21,"die":30,"dmg":2113,"fx":194,"heal":36,"leak":93,"skill":58,"spawn":123,"status":22},
|
||||
"fx": {"aoe":68,"dodge":20,"dp":14,"explode":4,"slash":88},
|
||||
"snaps": "a44439af 086db0a0 a68e4f3a 84f700cd 7a9ed117 7e3f7e4f 35f4764e 45919dbf 8d33b48a 809ac470 2a21b044 0d9e3e70 4aff1df9 12c0a2e9 19050d4e ecd037c6 cf2f56ed 4dc0e234 f974bf40 2bcc5e1a 38d67c2c 029d3b9d"
|
||||
},
|
||||
"diy-080": {
|
||||
"about": "6_diy1_a=sharp2 6_diy2_b=sharp2 6_diy1_a=acspec 6_diy2_b=acspec 6_diy1_a=acsupo 6_diy2_b=acsupo",
|
||||
"fast": false,
|
||||
"kind": "normal",
|
||||
"stageId": "act1autochess_m03",
|
||||
"modeId": "mode_multi_hard",
|
||||
"round": 13,
|
||||
"seed": 3144258890,
|
||||
"waveId": "act1autochess_h06",
|
||||
"time": 204.37,
|
||||
"ticks": 6131,
|
||||
"reason": "cleared",
|
||||
"killed": 2,
|
||||
"total": 109,
|
||||
"unspawned": 0,
|
||||
"bossHpLeft": null,
|
||||
"rngDraws": 107,
|
||||
"errors": {"count":0,"kinds":[]},
|
||||
"players": {"p1":{"killed":2,"total":109,"perfect":false,"leaks":107,"leaksUncounted":0,"coins":0,"dmg":252435,"bossDmg":0,"heal":0,"deaths":22,"layerGains":{}}},
|
||||
"units": [
|
||||
["p1",1,"op","chess_char_6_diy1_a",0,null,0,0,136,0,12809,5595,0,27,1],
|
||||
["p1",2,"op","chess_char_6_diy2_b",0,"uniequip_002_sharp2",0,0,80,2,35608,4988,0,25,1],
|
||||
["p1",3,"op","chess_char_6_diy1_a",2,null,0,0,134,0,27421,10386,0,46,0],
|
||||
["p1",4,"op","chess_char_6_diy2_b",2,"uniequip_002_acspec",1484,1,137,0,54545,11872,0,58,0],
|
||||
["p1",5,"op","chess_char_6_diy1_a",2,null,1160,1,6,0,43256,0,0,80,2],
|
||||
["p1",6,"op","chess_char_6_diy2_b",2,"uniequip_002_acsupo",1450,1,9,0,78795,0,0,108,2],
|
||||
["-","~1","device","trap_1105_accrate",null,null,100,1,1,0,0,0,0,0,null],
|
||||
["-","~2","device","trap_1105_accrate",null,null,100,1,2,0,0,0,0,0,null],
|
||||
["-","~3","device","trap_1105_accrate",null,null,100,1,3,0,0,0,0,0,null]
|
||||
],
|
||||
"enemies": {"enemy_1195_sfyin":[39,2,37,9962,63124],"enemy_1196_msfyin":[4,0,4,0,0],"enemy_1197_sfshu":[48,0,48,16642,92959],"enemy_1199_sfjin":[18,0,18,6237,96351]},
|
||||
"hooks": [1,137,6131,461,461,559,589,0,24,131,6,23,0,10394,3192,29,109,107,1,24,0,0,0],
|
||||
"events": {"atk":470,"deploy":25,"die":24,"dmg":553,"fx":16,"leak":107,"skill":48,"spawn":118,"status":562},
|
||||
"fx": {"displace":13,"dodge":1,"summon":2},
|
||||
"snaps": "40212f08 7ee7edf5 4e04eafe 1553e3a7 99a50525 30be47aa 60aae4c8 e173c070 f9824ca4 6f4c6d3e a164bbd5 974997f8 450b5a36 a6a2e8fa 582b939d 71eab21c e8b519ac 7bfb7ce5 da5081ed f7ada234 fcc66ab5"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user