feedback5: merge O20 — 自选 kits for 多萝西 (with her 共振装置), 予愿安洁莉娜 and 黑键; engine: the 缚地 status (groundbind: a flyer that 浮空 can land on, weight halving; 掠海漂移体 / 吉兆飞鳞 drop on it); golden: only diy moved
This commit is contained in:
commit
b4d10ff1b1
16 files changed
+2713
-159
No files matched your search
@@ -0,0 +1,377 @@
|
||||
// test/content/op_aglna2.test.js — the 自选 operator kit of 予愿安洁莉娜 (char_1015_aglna2, 6★ 巡空者; kit
|
||||
// server/sim/content/kits/ops/op-aglna2.js) and of her S3 marker “一会儿见!” (token_10071_aglna2_agairp), fielded the
|
||||
// production way (a DIY slot + its `diy` pick, simdata getDiy) in every form: tiers 5 / 6, normal (E2 Lv1, skill rank 4)
|
||||
// and elite (E2 Lv60, rank 7) — she has no module. Numbers from data/backups.json; the fidelity checklist of kits/README.md.
|
||||
// The engine's 缚地 status her S2 brings: test/sim/feedback5-groundbind.test.js.
|
||||
// Run: node --test test/content/op_aglna2.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 { canTargetAlly } from '../../server/sim/targeting.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 AGL = 'char_1015_aglna2';
|
||||
const MARKER = 'token_10071_aglna2_agairp';
|
||||
const FORMS = BACKUPS.units[AGL].forms;
|
||||
const SLOT = { 5: 'chess_char_5_diy1_a', 6: 'chess_char_6_diy1_a' };
|
||||
const S1 = 'skchr_aglna2_1', S2 = 'skchr_aglna2_2', S3 = 'skchr_aglna2_3';
|
||||
const statusOf = (tier, elite) => (elite ? (tier === 5 ? '2/60/7/1' : '2/60/7/3') : '2/1/4/0');
|
||||
const formOf = (tier, elite) => FORMS[statusOf(tier, elite)];
|
||||
const skillOf = (tier, elite, id) => formOf(tier, elite).skills.find((s) => s.skillId === id);
|
||||
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_heavy: dummy('enemy_heavy', { mass: 4 }), enemy_heavier: dummy('enemy_heavier', { mass: 5 }),
|
||||
enemy_fly: dummy('enemy_fly', { motion: 'FLY' }),
|
||||
enemy_flyheavy: dummy('enemy_flyheavy', { motion: 'FLY', mass: 4 }),
|
||||
enemy_walk: enemyRec({ key: 'enemy_walk', hp: 1e9, speed: 0.6, mass: 0, atk: 100 }),
|
||||
enemy_flywalk: enemyRec({ key: 'enemy_flywalk', hp: 1e9, speed: 0.6, mass: 0, motion: 'FLY', atk: 100 }),
|
||||
};
|
||||
const FORMS_ALL = [[5, false], [6, false], [5, true], [6, true]];
|
||||
const label = ([tier, elite]) => `T${tier} ${elite ? 'elite' : 'normal'}`;
|
||||
const ANY_ATK = (h, u) => h.hooksOf('damaged').filter((c) => c.source === u && c.dmg?.isAttack);
|
||||
const extras = (h, u) => h.hooksOf('damaged').filter((c) => c.source === u && (c.dmg?.tags || []).includes('aglna2:extra'));
|
||||
|
||||
/** 予愿安洁莉娜 as uid 1 at (row, col) facing RIGHT, plus `others`. */
|
||||
function field({ tier = 5, elite = false, skill = 0, row = 10, col = 4, others = [], seed = 5, marker = null } = {}) {
|
||||
const piece = marker ? [{ uid: 9, kind: 'token', tokenId: MARKER, ownerUid: 1, row: marker[0], col: marker[1] }] : [];
|
||||
const h = makeBattle({
|
||||
defs: { enemies: ENEMIES }, timeLimit: 900, autoFinish: false, seed,
|
||||
flags: { dpPerSec: 0, dpMax: 999 }, hooks: ['damaged', 'skillStart', 'skillEnd', 'statusApplied', 'deploy', 'dodge'], captureNoisy: true,
|
||||
units: [{ uid: 1, diy: { slot: SLOT[tier], charId: AGL, skillIndex: skill }, elite, row, col }, ...piece, ...others],
|
||||
});
|
||||
h.step();
|
||||
return { h, u: h.unit(1) };
|
||||
}
|
||||
function done(h) {
|
||||
checkInvariants(h.b);
|
||||
assert.equal(h.b.errors.length, 0, JSON.stringify(h.b.errors[0]));
|
||||
}
|
||||
|
||||
test('予愿安洁莉娜 in every 自选 form: her operator kit (all three skills authored), the form\'s stats, 2-2, melee physical that hits air units, blocks 2, 叙拉古, no 特质; S1 a timed deployment skill, S2 / S3 the data\'s ACTIVE_RANGE', () => {
|
||||
assert.equal(OPERATOR_KITS[AGL], KITS[AGL]);
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite] = f;
|
||||
for (const skill of [0, 1, 2]) {
|
||||
const { h, u } = field({ tier, elite, skill });
|
||||
const form = formOf(tier, elite);
|
||||
assert.deepEqual([u.def.charId, u.def.diyFor, u.skill.id, !!u.kit.generic, u.kit.skillSource], [AGL, SLOT[tier], form.skills[skill].skillId, false, 'skills'], label(f));
|
||||
assert.deepEqual([u.base.maxHp, u.base.atk, u.base.def], [form.stats.maxHp, form.stats.atk, form.stats.def], `${label(f)}: stats`);
|
||||
assert.deepEqual([u.s.blockCnt, u.profile.attack, u.profile.dmgType, u.profile.canHitFly, u.base.bat], [2, 'melee', 'phys', true, 1.5], `${label(f)}: 巡空者`);
|
||||
assert.deepEqual([u.def.bonds, u.def.raw.garrisonIds], [['siracusaShip'], []], `${label(f)}: bonds / 特质`);
|
||||
if (skill === 0) {
|
||||
assert.deepEqual([u.skill.rule, u.skill.kind, u.skill.active], ['NEVER', 'duration', true], `${label(f)}: S1 runs from the deployment`);
|
||||
assert.deepEqual(u.liveRangeGrid, form.skills[0].rangeGrid, `${label(f)}: 3-6 while it runs`);
|
||||
} else {
|
||||
assert.equal(u.skill.rule, form.skills[skill].trigger.rule, `${label(f)}: the data's trigger`);
|
||||
assert.equal(u.skill.rule, 'ACTIVE_RANGE');
|
||||
assert.deepEqual(u.liveRangeGrid, form.rangeGrid, `${label(f)}: 2-2`);
|
||||
assert.ok(!u.s.flags.liftoff && !u.s.flags.blockFly, `${label(f)}: on the ground`);
|
||||
}
|
||||
done(h);
|
||||
}
|
||||
}
|
||||
// E2 Lv1 1884 / 628 / 410, E2 Lv60 2216 / 739 / 483
|
||||
assert.deepEqual([FORMS['2/1/4/0'].stats.maxHp, FORMS['2/1/4/0'].stats.atk, FORMS['2/60/7/1'].stats.atk, FORMS['2/60/7/3'].stats.atk], [1884, 628, 739, 739]);
|
||||
assert.deepEqual(FORMS['2/60/7/3'].modules ?? [], []);
|
||||
});
|
||||
|
||||
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(AGL));
|
||||
for (const t of [5, 6]) assert.ok(diyPool(t, { data, kitted: KITTED_CHARS }).includes(AGL), `tier ${t}`);
|
||||
assert.deepEqual(validateDiyPicks({ [SLOT[5]]: { charId: AGL, skillIndex: 2, uniEquipId: null } }, { data, kitted: KITTED_CHARS }),
|
||||
{ ok: true, picks: { [SLOT[5]]: { charId: AGL, skillIndex: 2, uniEquipId: null } } });
|
||||
});
|
||||
|
||||
test('trait 巡空者: on the ground she blocks ground enemies, not flyers; airborne (起飞) she blocks flyers, not ground enemies, and no ground enemy selects her; taking off releases the ground enemies, landing the flyers', () => {
|
||||
for (const f of [[5, false], [6, true]]) {
|
||||
const [tier, elite] = f;
|
||||
const { h, u } = field({ tier, elite, skill: 1, row: 9, col: 4 });
|
||||
u.skill.spCostMul = 1000; // (no cast of its own: the test takes off below)
|
||||
const w = h.spawn('enemy_walk', { routeIndex: 0 });
|
||||
assert.ok(h.runUntil(() => w.blockedBy === u, 30), `${label(f)}: blocks the walker on the ground`);
|
||||
const fl = h.spawn('enemy_flywalk', { routeIndex: 2 });
|
||||
assert.ok(h.runUntil(() => fl.x < u.x - 1, 30), `${label(f)}: the flyer passes`);
|
||||
assert.notEqual(fl.blockedBy, u, `${label(f)}: no air block on the ground`);
|
||||
h.b.kill(fl, null);
|
||||
// S2: take off (the walker walks on)
|
||||
assert.ok(u.skill.activate('test', { free: true }));
|
||||
assert.ok(u.s.flags.liftoff && u.s.flags.blockFly, `${label(f)}: airborne`);
|
||||
assert.equal(w.blockedBy, null, `${label(f)}: the ground enemy released`);
|
||||
assert.equal(canTargetAlly(w, u, true), false, `${label(f)}: 对地规避`);
|
||||
const fl2 = h.spawn('enemy_flywalk', { routeIndex: 2 });
|
||||
assert.ok(h.runUntil(() => fl2.blockedBy === u, 30), `${label(f)}: blocks a flyer airborne`);
|
||||
assert.equal(canTargetAlly(fl2, u, true), true, `${label(f)}: flyers still select her`);
|
||||
u.skill.end('test');
|
||||
assert.equal(fl2.blockedBy, null, `${label(f)}: landing releases the flyer`);
|
||||
assert.ok(!u.s.flags.liftoff, `${label(f)}: landed`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('T1 飘浮大地之上: every damage she outputs adds ATK × 35 % arts on a target of weight ≤ 3, else × 25 % — dodged hits too, never on itself; airborne, every enemy of her range is 失重 (weight −1, not with another 失重), gone when she lands', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite] = f;
|
||||
const t0 = formOf(tier, elite).talents[0].bb;
|
||||
assert.deepEqual([t0.atk_scale_lo, t0.atk_scale_hi, t0.mass_level], [0.25, 0.35, 3], label(f));
|
||||
// on the ground (S3 picked, not cast): weight 0 ⇒ 35 %, weight 4 ⇒ 25 %
|
||||
{
|
||||
const { h, u } = field({ tier, elite, skill: 2 });
|
||||
u.skill.sp = 0;
|
||||
const a = h.spawn('enemy_dummy', { pos: [10, 5] });
|
||||
assert.ok(h.runUntil(() => ANY_ATK(h, u).length > 0, 3));
|
||||
const hit = ANY_ATK(h, u)[0];
|
||||
const ex = extras(h, u).filter((c) => c.target === a);
|
||||
assert.equal(ex.length, 1, `${label(f)}: one addition per damage`);
|
||||
approx(ex[0].amount, u.s.atk * 0.35, `${label(f)}: weight 0`, 1e-6);
|
||||
assert.equal(ex[0].type, 'arts');
|
||||
approx(hit.amount, u.s.atk, `${label(f)}: her attack 100 %`, 1e-6);
|
||||
h.b.kill(a, null);
|
||||
const heavy = h.spawn('enemy_heavy', { pos: [10, 5] });
|
||||
assert.ok(h.runUntil(() => extras(h, u).some((c) => c.target === heavy), 3));
|
||||
approx(extras(h, u).find((c) => c.target === heavy).amount, u.s.atk * 0.25, `${label(f)}: weight 4 ⇒ 25 %`, 1e-6);
|
||||
// a dodged hit still adds it
|
||||
h.b.addBuff(heavy, { key: 'test:dodge', mods: { dodgePhys: 1 } });
|
||||
const n0 = extras(h, u).length, d0 = h.hooksOf('dodge').length;
|
||||
assert.ok(h.runUntil(() => h.hooksOf('dodge').length > d0, 3), 'dodged');
|
||||
assert.equal(extras(h, u).length, n0 + 1, `${label(f)}: an output, dodged or not`);
|
||||
done(h);
|
||||
}
|
||||
// airborne (S1): 失重 in range — the weight-4 enemy counts as 3 ⇒ 35 %
|
||||
{
|
||||
const { h, u } = field({ tier, elite, skill: 0 });
|
||||
const heavy = h.spawn('enemy_heavy', { pos: [11, 6] });
|
||||
const far = h.spawn('enemy_heavy', { pos: [10, 8] });
|
||||
const marked = h.spawn('enemy_dummy', { pos: [9, 5] });
|
||||
h.b.addBuff(marked, { key: 'other:weightless', status: 'weightless', mods: { massFlat: -1 } });
|
||||
h.step();
|
||||
assert.equal(heavy.weight, 3, `${label(f)}: 失重 in her range`);
|
||||
assert.equal(far.weight, 4, `${label(f)}: not outside it`);
|
||||
assert.equal(marked.buffs.filter((b) => b.status === 'weightless').length, 1, `${label(f)}: 同名效果不可叠加`);
|
||||
const k0 = extras(h, u).length;
|
||||
assert.ok(h.runUntil(() => extras(h, u).slice(k0).some((c) => c.target === heavy), 3));
|
||||
approx(extras(h, u).slice(k0).find((c) => c.target === heavy).amount, u.s.atk * 0.35, `${label(f)}: weight 3 (失重) ⇒ 35 %`, 1e-6);
|
||||
u.skill.end('test');
|
||||
h.step();
|
||||
assert.equal(heavy.weight, 4, `${label(f)}: 失重 gone when she lands`);
|
||||
done(h);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
test('T2 天穹间的舞步: while she is on the field every airborne allied operator (her included) has ATK +13 % and, while it blocks, 生命回复速度 +8 % max HP (hpRegenRatio — no heal, 禁疗 does not stop it); none on the ground', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite] = f;
|
||||
const t1 = formOf(tier, elite).talents[1].bb;
|
||||
assert.deepEqual([t1.atk, t1.hp_recovery_per_sec_by_max_hp_ratio], [0.13, 0.08], label(f));
|
||||
const others = [{ uid: 2, chessId: 'chess_char_1_02_a', row: 12, col: 3 }];
|
||||
const { h, u } = field({ tier, elite, skill: 0, row: 9, col: 4, others });
|
||||
const yak = h.unit(2);
|
||||
h.run(0.3);
|
||||
assert.deepEqual(u.findBuff('talent:aglna2:dance')?.mods, { atkPct: 0.13 }, `${label(f)}: airborne, not blocking`);
|
||||
approx(u.s.atk, u.base.atk * (1 + skillOf(tier, elite, S1).bb.atk + 0.13), `${label(f)}: ATK`);
|
||||
assert.equal(yak.findBuff('talent:aglna2:dance'), null, `${label(f)}: 角峰 on the ground: none`);
|
||||
h.b.addBuff(u, { key: 'test:healFree', flags: { noHeal: true, healFree: true } });
|
||||
const fl = h.spawn('enemy_flywalk', { routeIndex: 2 });
|
||||
assert.ok(h.runUntil(() => fl.blockedBy === u, 30), 'she blocks a flyer');
|
||||
h.run(0.3);
|
||||
assert.deepEqual(u.findBuff('talent:aglna2:dance')?.mods, { atkPct: 0.13, hpRegenRatio: 0.08 }, `${label(f)}: blocking`);
|
||||
approx(u.s.hpRegen, 0.08 * u.s.maxHp, `${label(f)}: 8 % max HP / s as 生命回复速度`);
|
||||
u.hp = u.s.maxHp / 2;
|
||||
const hp0 = u.hp;
|
||||
h.run(1);
|
||||
approx(u.hp - hp0, 0.08 * u.s.maxHp, `${label(f)}: regenerated under 禁疗`, 0.05);
|
||||
done(h);
|
||||
}
|
||||
// S3 picked, before its cast: on the ground — no buff
|
||||
const { h, u } = field({ tier: 6, elite: true, skill: 2 });
|
||||
h.run(1);
|
||||
assert.equal(u.findBuff('talent:aglna2:dance'), null);
|
||||
done(h);
|
||||
});
|
||||
|
||||
test('S1 极速送达 (被动 ON_DEPLOY): at each deployment she takes off for 56 s — range 3-6, ATK +75 % / +100 %, 2 targets at once — then lands', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite] = f;
|
||||
const sk = skillOf(tier, elite, S1);
|
||||
assert.deepEqual([sk.skillType, sk.spType, sk.duration, sk.bb.atk, sk.bb['attack@max_target'], sk.rangeId], ['PASSIVE', 'ON_DEPLOY', 56, elite ? 1 : 0.75, 2, '3-6'], label(f));
|
||||
const { h, u } = field({ tier, elite, skill: 0 });
|
||||
assert.ok(u.skill.active && u.s.flags.liftoff, `${label(f)}: airborne from the deployment`);
|
||||
approx(u.skill.timeLeft, 56 - 1 / 30, `${label(f)}: 56 s`, 1e-3);
|
||||
const a = h.spawn('enemy_dummy', { pos: [9, 6] });
|
||||
const b = h.spawn('enemy_dummy', { pos: [11, 5] });
|
||||
assert.ok(h.runUntil(() => ANY_ATK(h, u).length >= 2, 3));
|
||||
const first = ANY_ATK(h, u)[0];
|
||||
const same = ANY_ATK(h, u).filter((c) => c.dmg.attackId === first.dmg.attackId);
|
||||
assert.deepEqual(same.map((c) => c.target).sort((x, y) => x.id - y.id), [a, b].sort((x, y) => x.id - y.id), `${label(f)}: two targets`);
|
||||
h.runUntil(() => !u.skill.active, 60);
|
||||
assert.ok(!u.s.flags.liftoff && !u.s.flags.blockFly, `${label(f)}: landed`);
|
||||
assert.deepEqual(u.liveRangeGrid, formOf(tier, elite).rangeGrid, `${label(f)}: 2-2`);
|
||||
h.run(0.4); // (her T2 lapses within one refresh)
|
||||
approx(u.s.atk, u.base.atk, `${label(f)}: ATK back`);
|
||||
// a redeployment takes off again
|
||||
h.b.retreat(u);
|
||||
h.b.redeploy(u, { free: true });
|
||||
assert.ok(u.skill.active && u.s.flags.liftoff, `${label(f)}: again at the next deployment`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('S2 重力自定义 (MANUAL, data ACTIVE_RANGE on 3-10): takes off; 2.5 s 吟唱 (no attack, 无敌, control statuses refused) while the sweep (3.0 wide, 1.3 thick, 6 tiles/s, 4 tiles ahead) 浮空s ground enemies 10 / 12 s and 缚地s flyers 20 / 22 s; then ATK +105 % / +135 %, interval −0.6 / −0.8 s, arts, 4 / 5 targets, range 3-10; 22 s', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite] = f;
|
||||
const sk = skillOf(tier, elite, S2);
|
||||
assert.deepEqual([sk.duration, sk.bb.atk, sk.bb.base_attack_time, sk.bb['attack@max_target'], sk.bb.chant_duration, sk.bb.buff_duration_levitate, sk.bb.buff_duration_ground_bound, sk.spCost, sk.initSp, sk.rangeId],
|
||||
[22, elite ? 1.35 : 1.05, elite ? -0.8 : -0.6, elite ? 5 : 4, 2.5, elite ? 12 : 10, elite ? 22 : 20, elite ? 29 : 32, elite ? 20 : 17, '3-10'], label(f));
|
||||
assert.deepEqual(sk.trigger.customRangeGrid, sk.rangeGrid);
|
||||
const { h, u } = field({ tier, elite, skill: 1 });
|
||||
u.skill.gainSp(999);
|
||||
h.run(1);
|
||||
assert.equal(u.skill.activations, 0, `${label(f)}: no enemy, no cast`);
|
||||
const g = h.spawn('enemy_dummy', { pos: [10, 8] }); // 4 ahead: swept
|
||||
const heavy = h.spawn('enemy_heavier', { pos: [11, 7] }); // swept, weight 5 − her 失重 1 = 4: half
|
||||
const fl = h.spawn('enemy_fly', { pos: [9, 6] }); // swept flyer
|
||||
const far = h.spawn('enemy_dummy', { pos: [10, 9] }); // 5 ahead: not swept
|
||||
const wide = h.spawn('enemy_dummy', { pos: [12, 6] }); // 2 aside: not swept
|
||||
assert.ok(h.runUntil(() => u.skill.active, 1), `${label(f)}: cast with an enemy in 3-10 (none in her 2-2)`);
|
||||
assert.ok(u.s.flags.liftoff, `${label(f)}: airborne`);
|
||||
assert.ok(u.s.flags.disarm && u.s.flags.invulnerable, `${label(f)}: 吟唱`);
|
||||
assert.equal(h.b.applyStatus(u, 'stun', { duration: 3, source: g }), false, `${label(f)}: control statuses refused while gliding`);
|
||||
h.run(1);
|
||||
const st = (e, k) => h.hooksOf('statusApplied').find((c) => c.target === e && c.status === k);
|
||||
approx(st(g, 'levitate')?.duration, sk.bb.buff_duration_levitate, `${label(f)}: 浮空`);
|
||||
approx(st(heavy, 'levitate')?.duration, sk.bb.buff_duration_levitate / 2, `${label(f)}: halved on weight > 3`);
|
||||
approx(st(fl, 'groundbind')?.duration, sk.bb.buff_duration_ground_bound, `${label(f)}: 缚地`);
|
||||
assert.ok(!st(far, 'levitate') && !st(wide, 'levitate'), `${label(f)}: outside the sweep`);
|
||||
assert.equal(fl.isFlying, false, `${label(f)}: a 缚地 flyer is a ground unit`);
|
||||
assert.equal(ANY_ATK(h, u).length, 0, `${label(f)}: no attack while gliding`);
|
||||
h.run(1.6);
|
||||
assert.ok(!u.s.flags.disarm && !u.s.flags.invulnerable, `${label(f)}: the 吟唱 over at 2.5 s`);
|
||||
assert.deepEqual(u.liveRangeGrid, sk.rangeGrid, `${label(f)}: 3-10`);
|
||||
approx(u.s.atk, u.base.atk * (1 + sk.bb.atk + 0.13), `${label(f)}: ATK (+13 % of her T2)`);
|
||||
approx(u.s.interval, (1.5 + sk.bb.base_attack_time) * 100 / u.s.aspd, `${label(f)}: interval`);
|
||||
for (const p of [[9, 7], [11, 5], [9, 8], [11, 8]]) h.spawn('enemy_dummy', { pos: p });
|
||||
const n0 = ANY_ATK(h, u).length;
|
||||
assert.ok(h.runUntil(() => ANY_ATK(h, u).length > n0, 3));
|
||||
const a1 = ANY_ATK(h, u)[n0];
|
||||
const one = ANY_ATK(h, u).filter((c) => c.dmg.attackId === a1.dmg.attackId);
|
||||
assert.equal(one.length, sk.bb['attack@max_target'], `${label(f)}: ${sk.bb['attack@max_target']} targets`);
|
||||
assert.ok(one.every((c) => c.type === 'arts'), `${label(f)}: arts`);
|
||||
h.runUntil(() => !u.skill.active, 30);
|
||||
approx(h.hooksOf('skillEnd').at(-1).t - h.hooksOf('skillStart').at(-1).t, 22, `${label(f)}: 22 s from the cast`, 0.01);
|
||||
assert.deepEqual(u.liveRangeGrid, formOf(tier, elite).rangeGrid, `${label(f)}: 2-2 back`);
|
||||
assert.ok(!u.s.flags.liftoff, `${label(f)}: landed`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('S3 酸橙的心事 (MANUAL, data ACTIVE_RANGE on 3-9): 30 / 31 bullets, ATK +20 % / +30 %, 对空庇护 55 % / 60 %, range 3-9 + the 8 around her; each attack 275 % / 305 % on ≤ 3 ground enemies and flyers up to 4; flyers in range ×0.6 speed', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite] = f;
|
||||
const sk = skillOf(tier, elite, S3);
|
||||
assert.deepEqual([sk.bb['attack@trigger_time'], sk.bb.atk, sk.bb.damage_resistance, sk.bb['attack@atk_scale'], sk.bb['attack@max_target'], sk.bb['attack@max_walk_target'], sk.bb.move_speed, sk.bbStr['attack@attack_range_id'], sk.spCost, sk.initSp],
|
||||
[elite ? 31 : 30, elite ? 0.3 : 0.2, elite ? 0.6 : 0.55, elite ? 3.05 : 2.75, 4, 3, -0.4, 'x-4', elite ? 36 : 42, elite ? 22 : 19], label(f));
|
||||
const { h, u } = field({ tier, elite, skill: 2 });
|
||||
u.skill.gainSp(999);
|
||||
const grounds = [[10, 8], [10, 5], [11, 6], [9, 6]].map((p) => h.spawn('enemy_dummy', { pos: p }));
|
||||
assert.ok(h.runUntil(() => u.skill.active, 1), `${label(f)}: cast with an enemy in 3-9`);
|
||||
assert.equal(u.skill.ammoMax, sk.bb['attack@trigger_time'], `${label(f)}: bullets`);
|
||||
const range = u.liveRangeGrid.map((p) => p.join(',')).sort();
|
||||
for (const p of [...sk.rangeGrid, [1, -1], [0, -1], [-1, -1]]) assert.ok(range.includes(p.join(',')), `${label(f)}: ${p} in her range`);
|
||||
h.run(0.25); // (her T2 refreshes every 0.2 s)
|
||||
approx(u.s.atk, u.base.atk * (1 + sk.bb.atk + 0.13), `${label(f)}: ATK`);
|
||||
// 对空庇护
|
||||
const flyer = h.spawn('enemy_fly', { pos: [12, 4] });
|
||||
const taken = h.b.dealDamage(flyer, u, { amount: 1000, type: 'arts' });
|
||||
approx(taken, 1000 * (1 - sk.bb.damage_resistance), `${label(f)}: from an air unit`, 1e-6);
|
||||
assert.equal(h.b.dealDamage(grounds[0], u, { amount: 1000, type: 'arts' }), 0, `${label(f)}: a ground enemy cannot select her (对地规避)`);
|
||||
approx(h.b.dealDamage(grounds[0], u, { amount: 1000, type: 'arts', ignoreSelect: true }), 1000, `${label(f)}: a ground source's that reaches her: not reduced`, 1e-6);
|
||||
h.b.kill(flyer, null);
|
||||
// ≤ 3 ground + flyers to 4 (she blocks nothing meanwhile: the flyers are on tiles she may not take)
|
||||
const f1 = h.spawn('enemy_fly', { pos: [10, 7] }), f2 = h.spawn('enemy_fly', { pos: [11, 7] });
|
||||
h.b.addBuff(f1, { key: 'test:ub', flags: { unblockable: true } });
|
||||
h.b.addBuff(f2, { key: 'test:ub', flags: { unblockable: true } });
|
||||
const n0 = h.hooksOf('damaged').filter((c) => c.source === u && c.dmg?.isAttack).length;
|
||||
assert.ok(h.runUntil(() => ANY_ATK(h, u).length > n0, 3));
|
||||
const a1 = ANY_ATK(h, u)[n0];
|
||||
const one = ANY_ATK(h, u).filter((c) => c.dmg.attackId === a1.dmg.attackId);
|
||||
assert.equal(one.filter((c) => !c.target.isFlying).length, 3, `${label(f)}: 3 ground`);
|
||||
assert.equal(one.filter((c) => c.target.isFlying).length, 1, `${label(f)}: + 1 flyer`);
|
||||
for (const c of one) approx(c.amount, u.s.atk * sk.bb['attack@atk_scale'], `${label(f)}: ${sk.bb['attack@atk_scale']} × ATK`, 1e-6);
|
||||
const used = ANY_ATK(h, u).map((c) => c.dmg.attackId).filter((x, i, a) => a.indexOf(x) === i).length;
|
||||
assert.equal(u.skill.ammoLeft, sk.bb['attack@trigger_time'] - used, `${label(f)}: one bullet per attack`);
|
||||
// flyers of her range ×0.6
|
||||
approx(f1.s.moveSpeed, f1.base.moveSpeed * 0.6, `${label(f)}: flyer slowed`);
|
||||
approx(grounds[0].s.moveSpeed, grounds[0].base.moveSpeed, `${label(f)}: ground enemies not`);
|
||||
u.skill.addAmmo(0);
|
||||
h.runUntil(() => !u.skill.active, 120);
|
||||
assert.equal(h.hooksOf('skillEnd').at(-1).reason, 'ammo', `${label(f)}: ends with its bullets`);
|
||||
assert.deepEqual(u.liveRangeGrid, formOf(tier, elite).rangeGrid, `${label(f)}: 2-2 back`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('S3 move: blocking nothing, she flies (2 tiles/s, 无敌, disarmed) to the tile of an unblocked flyer she can block inside the original 3-9, lands there by a 【移动】 (the skill and its bullets kept) and blocks it; “一会儿见!” marks her deployment tile; her range stays that 3-9 + the 8 around her; at the end she goes back and the marker leaves', () => {
|
||||
for (const f of [[5, false], [6, true]]) {
|
||||
const [tier, elite] = f;
|
||||
const { h, u } = field({ tier, elite, skill: 2 });
|
||||
u.skill.gainSp(999);
|
||||
const fl = h.spawn('enemy_fly', { pos: [11, 7] });
|
||||
assert.ok(h.runUntil(() => u.skill.active, 1), `${label(f)}: cast`);
|
||||
const ammo0 = u.skill.ammoLeft;
|
||||
assert.ok(h.runUntil(() => !!u.findBuff('aglna2:move'), 0.5), `${label(f)}: the flight starts`);
|
||||
assert.ok(u.s.flags.invulnerable && u.s.flags.disarm, `${label(f)}: 无敌, disarmed in flight`);
|
||||
const t0 = h.b.time;
|
||||
assert.ok(h.runUntil(() => u.tileR === 11 && u.tileC === 7, 5), `${label(f)}: on the flyer's tile`);
|
||||
approx(h.b.time - t0, Math.hypot(1, 3) / 2, `${label(f)}: at 2 tiles/s`, 0.05);
|
||||
assert.ok(u.skill.active && u.skill.ammoLeft <= ammo0, `${label(f)}: the skill kept`);
|
||||
assert.ok(h.runUntil(() => fl.blockedBy === u, 1), `${label(f)}: she blocks it`);
|
||||
const m = h.b.allyUnits.find((t) => t.kind === 'token' && t.defId === MARKER && t.alive);
|
||||
assert.ok(m, `${label(f)}: the marker`);
|
||||
assert.deepEqual([m.tileR, m.tileC], [10, 4], `${label(f)}: on her deployment tile`);
|
||||
assert.ok(m.s.flags.invulnerable && m.s.flags.untargetable && m.s.flags.isolated && m.s.flags.noBlock, `${label(f)}: 无敌, 孤立, unselectable, blocks nothing`);
|
||||
// her range: the 3-9 of (10, 4) facing RIGHT + the 8 around her new tile (11, 7)
|
||||
const keys = new Set(u.rangeKeys);
|
||||
assert.ok(keys.has(12 * 21 + 4) && keys.has(9 * 21 + 5), `${label(f)}: the anchored 3-9 ((12, 4), (9, 5))`);
|
||||
assert.ok(keys.has(12 * 21 + 8) && keys.has(11 * 21 + 8), `${label(f)}: the 8 around her ((12, 8), (11, 8))`);
|
||||
assert.ok(!keys.has(11 * 21 + 10), `${label(f)}: no 3-9 around her new tile ((11, 10))`);
|
||||
u.skill.end('test');
|
||||
assert.deepEqual([u.tileR, u.tileC], [10, 4], `${label(f)}: back home at the end`);
|
||||
assert.ok(!m.alive, `${label(f)}: the marker left`);
|
||||
assert.deepEqual(u.liveRangeGrid, formOf(tier, elite).rangeGrid, `${label(f)}: 2-2`);
|
||||
assert.equal(u.extraRangeKeys, null);
|
||||
done(h);
|
||||
}
|
||||
// a placed “一会儿见!” piece never deploys by itself; it is the marker
|
||||
{
|
||||
const { h, u } = field({ tier: 6, elite: true, skill: 2, marker: [12, 9] });
|
||||
const piece = h.b.allyUnits.find((t) => t.kind === 'token' && t.uid === 9);
|
||||
assert.ok(piece && !piece.alive && piece.deferDeploy, 'not deployed at the start');
|
||||
u.skill.gainSp(999);
|
||||
h.spawn('enemy_fly', { pos: [11, 7] });
|
||||
assert.ok(h.runUntil(() => u.tileR === 11 && u.tileC === 7, 5));
|
||||
assert.ok(piece.alive && piece.tileR === 10 && piece.tileC === 4, 'the piece marks her deployment tile');
|
||||
u.skill.end('test');
|
||||
assert.ok(!piece.alive && !piece.removed, 'withdrawn, kept as a piece');
|
||||
done(h);
|
||||
}
|
||||
// blocking something, she stays
|
||||
{
|
||||
const { h, u } = field({ tier: 5, skill: 2 });
|
||||
u.skill.gainSp(999);
|
||||
const fl = h.spawn('enemy_fly', { pos: [11, 7] });
|
||||
assert.ok(h.runUntil(() => fl.blockedBy === u, 5), 'she flew to it and blocks it');
|
||||
const at = [u.tileR, u.tileC];
|
||||
h.spawn('enemy_fly', { pos: [9, 6] });
|
||||
h.run(2);
|
||||
assert.deepEqual([u.tileR, u.tileC], at, 'no move while blocking');
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,391 @@
|
||||
// test/content/op_doroth.test.js — the 自选 operator kit of 多萝西 (char_4048_doroth, 6★ 陷阱师; kit
|
||||
// server/sim/content/kits/ops/op-doroth.js) and of her trap 共振装置 (token_10025_doroth_recttp), fielded the production
|
||||
// way (a DIY slot + its `diy` pick, simdata getDiy; her traps as the placed hand pieces of her player) in every form:
|
||||
// tiers 5 / 6, normal (E2 Lv1, skill rank 4, no module) and elite (E2 Lv60, rank 7) with no module, TRP-Y 童话书 or TRP-X
|
||||
// 梦中人 at stage 1 (tier 5) / 3 (tier 6). Numbers from data/backups.json; the fidelity checklist of kits/README.md.
|
||||
// Run: node --test test/content/op_doroth.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 DOR = 'char_4048_doroth';
|
||||
const TRAP = 'token_10025_doroth_recttp';
|
||||
const FORMS = BACKUPS.units[DOR].forms;
|
||||
const TOKREC = BACKUPS.tokens[TRAP];
|
||||
const SLOT = { 5: 'chess_char_5_diy1_a', 6: 'chess_char_6_diy1_a' };
|
||||
const Y = 'uniequip_002_doroth', X = 'uniequip_003_doroth';
|
||||
const S1 = 'skchr_doroth_1';
|
||||
const statusOf = (tier, elite) => (elite ? (tier === 5 ? '2/60/7/1' : '2/60/7/3') : '2/1/4/0');
|
||||
const formOf = (tier, elite) => FORMS[statusOf(tier, elite)];
|
||||
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 talentOf = (tier, elite, mod, i) => modOf(tier, mod)?.talentChanges.find((t) => t.talentIndex === i)?.bb ?? formOf(tier, elite).talents[i].bb;
|
||||
/** The trap's variant of a form, with the pick's skill / module (getDiyToken). */
|
||||
const tokOf = (tier, elite, skill, mod) => {
|
||||
let v = TOKREC.variants[`${DOR}@${statusOf(tier, elite)}`];
|
||||
if (v.bySkill?.[skill]) v = { ...v, ...v.bySkill[skill] };
|
||||
if (mod && v.byModule?.[mod]) v = { ...v, ...v.byModule[mod] };
|
||||
return v;
|
||||
};
|
||||
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' }) };
|
||||
const FORMS_ALL = [[5, false, null], [6, false, null], ...[5, 6].flatMap((t) => [null, Y, X].map((m) => [t, true, m]))];
|
||||
const label = ([tier, elite, mod]) => `T${tier} ${elite ? 'elite' : 'normal'} ${mod ?? 'none'}`;
|
||||
|
||||
/** 多萝西 as uid 1 at (10, 4) facing RIGHT; `pieces` = the tiles of her placed traps (uids 2…). */
|
||||
function field({ tier = 5, elite = false, mod = null, skill = 0, pieces = [], dp = 0, seed = 5, others = [] } = {}) {
|
||||
const units = [{ uid: 1, diy: { slot: SLOT[tier], charId: DOR, skillIndex: skill, uniEquipId: mod }, elite, row: 10, col: 4 }];
|
||||
pieces.forEach(([r, c], i) => units.push({ uid: 2 + i, kind: 'token', tokenId: TRAP, ownerUid: 1, row: r, col: c }));
|
||||
const h = makeBattle({
|
||||
defs: { enemies: ENEMIES }, timeLimit: 900, autoFinish: false, seed,
|
||||
flags: { dpPerSec: 0, dpMax: 999, dpInit: dp }, hooks: ['damaged', 'skillStart', 'statusApplied', 'deploy', 'death'], captureNoisy: true,
|
||||
units: [...units, ...others],
|
||||
});
|
||||
h.step();
|
||||
return { h, u: h.unit(1) };
|
||||
}
|
||||
const traps = (h) => h.b.allyUnits.filter((t) => t.kind === 'token' && t.defId === TRAP);
|
||||
const alive = (h) => traps(h).filter((t) => t.alive);
|
||||
const piece = (h, uid) => traps(h).find((t) => t.uid === uid);
|
||||
const trapHits = (h) => h.hooksOf('damaged').filter((c) => c.source?.defId === TRAP && c.type !== 'element');
|
||||
const D = (u) => u.trait.doroth;
|
||||
function done(h) {
|
||||
checkInvariants(h.b);
|
||||
assert.equal(h.b.errors.length, 0, JSON.stringify(h.b.errors[0]));
|
||||
}
|
||||
|
||||
test('多萝西 in every 自选 form: her operator kit (all three skills authored, SP_FULL), the form\'s stats + module attributes, 3-3, ranged physical arrows that hit air units, blocks 1, ground-targetable, 空 bond, no 特质; her traps untargetable, blocking nothing, no attack', () => {
|
||||
assert.equal(OPERATOR_KITS[DOR], KITS[DOR]);
|
||||
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, pieces: [[9, 6]] });
|
||||
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], [DOR, 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([u.s.blockCnt, u.profile.attack, u.profile.dmgType, u.profile.canHitFly, u.profile.projectile, u.base.bat], [1, 'ranged', 'phys', true, 'arrow', 0.85], `${label(f)}: 陷阱师`);
|
||||
assert.deepEqual(u.liveRangeGrid, form.rangeGrid, `${label(f)}: 3-3`);
|
||||
assert.deepEqual([form.skills[skill].trigger.rule, u.skill.rule], ['DEFAULT', 'SP_FULL'], `${label(f)}: AUTO acting on herself — SP_FULL`);
|
||||
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 her`);
|
||||
const t = piece(h, 2);
|
||||
const v = tokOf(tier, elite, skill, mod);
|
||||
assert.ok(t.alive && !t.kit.generic, `${label(f)}: the placed trap deployed with its kit`);
|
||||
assert.deepEqual([t.def.skill.id, t.s.flags.untargetable, t.s.blockCnt, t.profile.noAttack, t.base.cost], [v.skill.skillId, true, 0, true, v.stats.cost], `${label(f)}: the trap`);
|
||||
done(h);
|
||||
}
|
||||
}
|
||||
// E2 Lv1 1186 / 476 / 142, E2 Lv60 1395 / 546 / 162; TRP-Y +120 / +42 → +155 / +57, TRP-X +36 / +12 → +60 / +30
|
||||
assert.deepEqual([FORMS['2/1/4/0'].stats.atk, FORMS['2/60/7/1'].stats.atk], [476, 546]);
|
||||
assert.deepEqual([modOf(5, Y).attr, modOf(6, Y).attr, modOf(5, X).attr, modOf(6, X).attr], [{ maxHp: 120, atk: 42 }, { maxHp: 155, atk: 57 }, { atk: 36, def: 12 }, { atk: 60, def: 30 }]);
|
||||
// the trap card: cost 3 (TRP-X 2), redeploy 5 s, deploy limit 10 (TRP-X 13)
|
||||
assert.deepEqual([tokOf(6, true, 0, null).stats.cost, tokOf(6, true, 0, X).stats.cost, tokOf(6, true, 0, null).stats.respawnTime, tokOf(6, true, 0, null).stats.deployLimit, tokOf(6, true, 0, X).stats.deployLimit], [3, 2, 5, 10, 13]);
|
||||
});
|
||||
|
||||
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(DOR));
|
||||
for (const t of [5, 6]) assert.ok(diyPool(t, { data, kitted: KITTED_CHARS }).includes(DOR), `tier ${t}`);
|
||||
assert.deepEqual(validateDiyPicks({ [SLOT[6]]: { charId: DOR, skillIndex: 2, uniEquipId: X } }, { data, kitted: KITTED_CHARS }),
|
||||
{ ok: true, picks: { [SLOT[6]]: { charId: DOR, skillIndex: 2, uniEquipId: X } } });
|
||||
});
|
||||
|
||||
test('T1 共振装置: at her deployment her stock is cnt (8) and attack@max_cnt traps (2; TRP-X stage 3: 3) appear on free melee tiles of her range (the enemies\' ground paths first) — no stock spent, inside the limit (10; TRP-X 13) with room left for the placed pieces', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite, mod] = f;
|
||||
const t0 = talentOf(tier, elite, mod, 0);
|
||||
const lim = tokOf(tier, elite, 0, mod).stats.deployLimit;
|
||||
assert.deepEqual([t0.cnt, t0['attack@max_cnt'], lim], [8, mod === X && tier === 6 ? 3 : 2, mod === X ? 13 : 10], label(f));
|
||||
{
|
||||
const { h, u } = field({ tier, elite, mod });
|
||||
const made = alive(h);
|
||||
assert.equal(made.length, t0['attack@max_cnt'], `${label(f)}: ${t0['attack@max_cnt']} at her deployment`);
|
||||
assert.deepEqual([D(u).stock, D(u).limit], [8, lim], `${label(f)}: stock 8, limit ${lim}`);
|
||||
const range = new Set(u.rangeKeys), path = h.b.groundPathTiles();
|
||||
for (const t of made) {
|
||||
const k = t.tileR * 21 + t.tileC;
|
||||
assert.ok(range.has(k) && path.has(k) && h.b.grid.canStand(t.tileR, t.tileC), `${label(f)}: on a path melee tile of her range`);
|
||||
assert.equal(t.uid, null);
|
||||
}
|
||||
done(h);
|
||||
}
|
||||
// nine placed pieces: the summons leave them their slots (limit 10 ⇒ one; 13 ⇒ all)
|
||||
{
|
||||
const tiles = [[9, 5], [9, 6], [9, 7], [9, 8], [9, 9], [12, 5], [12, 6], [12, 7], [12, 8]];
|
||||
const { h, u } = field({ tier, elite, mod, pieces: tiles });
|
||||
const summoned = alive(h).filter((t) => t.uid == null);
|
||||
assert.equal(alive(h).filter((t) => t.uid != null).length, 9, `${label(f)}: every piece deployed at the start`);
|
||||
if (!(mod === X && tier === 6)) assert.equal(summoned.length, Math.min(t0['attack@max_cnt'], lim - 9), `${label(f)}: summons within the limit`);
|
||||
assert.ok(alive(h).length <= lim, `${label(f)}: never past the limit`);
|
||||
assert.equal(D(u).stock, 8, `${label(f)}: the start deployment spends no trap`);
|
||||
done(h);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
test('the skills\' 主动效果 "立即获得一个陷阱": +1 to her stock as soon as the SP is full (no enemy needed: SP_FULL); 阻回 while the stock is full (the deploy limit)', () => {
|
||||
for (const f of [[5, false, null], [6, true, X]]) {
|
||||
const [tier, elite, mod] = f;
|
||||
const sk = skillOf(tier, elite, S1);
|
||||
assert.deepEqual([sk.skillType, sk.spCost, sk.initSp, sk.bb.cnt], ['AUTO', elite ? 16 : 19, 0, 1], label(f));
|
||||
const { h, u } = field({ tier, elite, mod });
|
||||
const lim = D(u).limit;
|
||||
assert.ok(h.runUntil(() => u.skill.activations === 1, sk.spCost + 1), `${label(f)}: cast at full SP`);
|
||||
assert.equal(D(u).stock, 9, `${label(f)}: +1`);
|
||||
h.run(sk.spCost * (lim - 9) + 1);
|
||||
assert.equal(D(u).stock, lim, `${label(f)}: full`);
|
||||
assert.ok(u.findBuff('talent:doroth:full') && u.s.flags.noSp, `${label(f)}: 阻回`);
|
||||
const sp = u.skill.sp, casts = u.skill.activations;
|
||||
h.run(sk.spCost + 2);
|
||||
assert.deepEqual([u.skill.sp, u.skill.activations], [sp, casts], `${label(f)}: no SP, no cast while full`);
|
||||
D(u).stock--;
|
||||
h.step();
|
||||
assert.ok(!u.s.flags.noSp, `${label(f)}: SP again below the limit`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('the trap goes off under the first selectable ground enemy on its tile (flyers never), with her ATK, from the trap, and withdraws: S1 atk_scale × ATK physical on it + DEF ×(1 − 25 % / 30 %) 5 s', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite, mod] = f;
|
||||
const tb = tokOf(tier, elite, 0, mod).skill.bb;
|
||||
assert.deepEqual([tb.atk_scale, tb.def, tb.duration], [elite ? 3.7 : 3.3, elite ? -0.3 : -0.25, 5], label(f));
|
||||
const { h, u } = field({ tier, elite, mod, skill: 0, pieces: [[9, 6]] });
|
||||
const t = piece(h, 2);
|
||||
h.spawn('enemy_fly', { pos: [9, 6] });
|
||||
h.run(0.5);
|
||||
assert.ok(t.alive, `${label(f)}: a flyer does not set it off`);
|
||||
const e = h.spawn('enemy_dummy', { pos: [9, 6] });
|
||||
const near = h.spawn('enemy_dummy', { pos: [9, 7] });
|
||||
h.step();
|
||||
assert.ok(!t.alive, `${label(f)}: used up`);
|
||||
const hits = trapHits(h);
|
||||
assert.deepEqual(hits.map((c) => c.target), [e], `${label(f)}: only the enemy on it`);
|
||||
assert.equal(hits[0].source, t);
|
||||
const dbl = t.mem.dorDouble ? modOf(tier, mod)?.traitOverride?.bb.atk_scale ?? 1 : 1;
|
||||
approx(hits[0].amount, u.s.atk * tb.atk_scale * dbl, `${label(f)}: ${tb.atk_scale} × her ATK${dbl > 1 ? ' × 2 (TRP-Y)' : ''}`, 1e-6);
|
||||
assert.equal(hits[0].type, 'phys');
|
||||
const dd = h.hooksOf('statusApplied').find((c) => c.target === e && c.status === 'defDown');
|
||||
assert.deepEqual([dd?.duration, dd?.value], [5, -tb.def], `${label(f)}: DEF cut`);
|
||||
assert.ok(!near.findBuff('defDown'));
|
||||
assert.ok(h.eventsOf('fx').some((x) => x[1] === 'explode' && x[4]?.consumed === true && x[4]?.id === t.id), `${label(f)}: the blast marks it consumed`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('S2 流沙区域生成: every selectable ground enemy within 1.2 takes atk_scale × ATK physical and 束缚 duration s (2 / 2.5) — duration_2 (3.5 / 5) when it hits one', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite, mod] = f;
|
||||
const tb = tokOf(tier, elite, 1, mod).skill.bb;
|
||||
assert.deepEqual([tb.atk_scale, tb.duration, tb.duration_2, tb.cnt_2], [elite ? 2.6 : 2.3, elite ? 2.5 : 2, elite ? 5 : 3.5, 1], label(f));
|
||||
{
|
||||
const { h, u } = field({ tier, elite, mod, skill: 1, pieces: [[9, 6]] });
|
||||
const t = piece(h, 2);
|
||||
const a = h.spawn('enemy_dummy', { pos: [9, 6] });
|
||||
const b = h.spawn('enemy_dummy', { pos: [10, 6] }); // 1.0 away
|
||||
const c = h.spawn('enemy_dummy', { pos: [10, 7] }); // 1.41 away: outside
|
||||
const fl = h.spawn('enemy_fly', { pos: [9, 7] });
|
||||
h.step();
|
||||
const hits = trapHits(h);
|
||||
assert.deepEqual(hits.map((x) => x.target).sort((p, q) => p.id - q.id), [a, b], `${label(f)}: within 1.2, ground only`);
|
||||
const dbl = t.mem.dorDouble ? 2 : 1;
|
||||
for (const x of hits) approx(x.amount, u.s.atk * tb.atk_scale * dbl, `${label(f)}: damage`, 1e-6);
|
||||
for (const e of [a, b]) approx(h.hooksOf('statusApplied').find((x) => x.target === e && x.status === 'bind').duration, tb.duration, `${label(f)}: 束缚`);
|
||||
assert.ok(!c.findBuff('bind') && !fl.findBuff('bind'));
|
||||
done(h);
|
||||
}
|
||||
{
|
||||
const { h } = field({ tier, elite, mod, skill: 1, pieces: [[9, 6]] });
|
||||
const a = h.spawn('enemy_dummy', { pos: [9, 6] });
|
||||
h.step();
|
||||
approx(h.hooksOf('statusApplied').find((x) => x.target === a && x.status === 'bind').duration, tb.duration_2, `${label(f)}: one enemy ⇒ duration_2`);
|
||||
done(h);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
test('S3 高速共振排障: every selectable ground enemy on its x-6 takes atk_scale × ATK arts and 停顿 3 / 3.5 s, and the other traps on that x-6 go off 2 s later (no enemy needed), chaining on', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite, mod] = f;
|
||||
const tv = tokOf(tier, elite, 2, mod).skill;
|
||||
assert.deepEqual([tv.bb.atk_scale, tv.bb.sluggish, tv.bb.interval, tv.rangeId], [elite ? 2.8 : 2.5, elite ? 3.5 : 3, 2, 'x-6'], label(f));
|
||||
// A (9, 5) — B (9, 7) on A's x-6 — C (11, 7) on B's x-6, not on A's
|
||||
const { h, u } = field({ tier, elite, mod, skill: 2, pieces: [[9, 5], [9, 7], [11, 7]] });
|
||||
for (const t of alive(h)) if (t.uid == null) h.b.retreat(t, { reason: 'expired', permanent: true });
|
||||
const [A, B, C] = [piece(h, 2), piece(h, 3), piece(h, 4)];
|
||||
const e = h.spawn('enemy_dummy', { pos: [9, 5] });
|
||||
const side = h.spawn('enemy_dummy', { pos: [11, 5] }); // A's x-6 ([2, 0] … facing RIGHT: (11, 5))
|
||||
const off = h.spawn('enemy_dummy', { pos: [10, 6] }); // diagonal: not on A's x-6
|
||||
h.step();
|
||||
const t0 = h.b.time;
|
||||
assert.ok(!A.alive && B.alive && C.alive, `${label(f)}: A went off`);
|
||||
const hitsA = trapHits(h).filter((x) => x.source === A);
|
||||
assert.deepEqual(hitsA.map((x) => x.target).sort((p, q) => p.id - q.id), [e, side], `${label(f)}: A's x-6`);
|
||||
const dbl = A.mem.dorDouble ? 2 : 1;
|
||||
approx(hitsA[0].amount, u.base.atk * tv.bb.atk_scale * dbl, `${label(f)}: arts damage with her ATK before the stack (S3)`, 1e-6);
|
||||
assert.ok(hitsA.every((x) => x.type === 'arts'));
|
||||
approx(h.hooksOf('statusApplied').find((x) => x.target === e && x.status === 'sluggish').duration, tv.bb.sluggish, `${label(f)}: 停顿`);
|
||||
assert.ok(!off.findBuff('sluggish'));
|
||||
assert.ok(h.runUntil(() => !B.alive, 3), `${label(f)}: B goes off`);
|
||||
approx(h.b.time - t0, 2, `${label(f)}: 2 s later`, 0.05);
|
||||
assert.ok(h.runUntil(() => !C.alive, 3), `${label(f)}: C after B`);
|
||||
approx(h.b.time - t0, 4, `${label(f)}: 2 s after B`, 0.05);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('T2 梦想家: every trap that goes off gives her ATK +2 % (TRP-Y stage 3: 4 %), up to 10 stacks, until she leaves — with S1 / S2 before the trap\'s damage, with S3 after it', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite, mod] = f;
|
||||
const t1 = talentOf(tier, elite, mod, 1);
|
||||
assert.deepEqual([t1.atk, t1.max_stack_cnt], [mod === Y && tier === 6 ? 0.04 : 0.02, 10], label(f));
|
||||
for (const skill of [0, 2]) {
|
||||
const { h, u } = field({ tier, elite, mod, skill, pieces: [[9, 6]] });
|
||||
for (const t of alive(h)) if (t.uid == null) h.b.retreat(t, { reason: 'expired', permanent: true });
|
||||
const t = piece(h, 2);
|
||||
const atk0 = u.s.atk;
|
||||
h.spawn('enemy_dummy', { pos: [9, 6] });
|
||||
h.step();
|
||||
const b = u.findBuff('talent:doroth:dream');
|
||||
assert.deepEqual([b?.stacks, b?.mods], [1, { atkPct: t1.atk }], `${label(f)} S${skill + 1}: one stack`);
|
||||
const hit = trapHits(h).find((x) => x.source === t);
|
||||
const scale = tokOf(tier, elite, skill, mod).skill.bb.atk_scale * (t.mem.dorDouble ? 2 : 1);
|
||||
const atkUsed = skill === 0 ? u.base.atk * (1 + t1.atk) : atk0;
|
||||
approx(hit.amount, atkUsed * scale, `${label(f)} S${skill + 1}: the ATK ${skill === 0 ? 'with' : 'before'} the new stack`, 1e-6);
|
||||
done(h);
|
||||
}
|
||||
}
|
||||
// ten at most, gone when she leaves
|
||||
const { h, u } = field({ tier: 5, skill: 0, pieces: [[9, 6]] });
|
||||
const trap = piece(h, 2);
|
||||
for (let i = 0; i < 12; i++) {
|
||||
const e = h.spawn('enemy_dummy', { pos: [9, 6] });
|
||||
h.step();
|
||||
h.b.kill(e, null);
|
||||
trap.mem.dorFired = false;
|
||||
if (!trap.alive) h.b.redeploy(trap, { free: true });
|
||||
}
|
||||
assert.equal(u.findBuff('talent:doroth:dream').stacks, 10, 'ten stacks at most');
|
||||
h.b.retreat(u);
|
||||
assert.equal(u.findBuff('talent:doroth:dream'), null, 'gone when she leaves');
|
||||
done(h);
|
||||
});
|
||||
|
||||
test('a used-up piece comes back on its tile once the card is ready (5 s after the last trap deployment), a trap is in stock and its cost is paid — never on a ground enemy, past the limit or while she is off the field; her traps leave with her', () => {
|
||||
for (const f of [[5, false, null], [6, true, X]]) {
|
||||
const [tier, elite, mod] = f;
|
||||
const cost = tokOf(tier, elite, 0, mod).stats.cost;
|
||||
const { h, u } = field({ tier, elite, mod, skill: 0, pieces: [[9, 6], [9, 8]], dp: 0 });
|
||||
for (const t of alive(h)) if (t.uid == null) h.b.retreat(t, { reason: 'expired', permanent: true });
|
||||
const p = piece(h, 2);
|
||||
const e = h.spawn('enemy_dummy', { pos: [9, 6] });
|
||||
h.step();
|
||||
assert.ok(!p.alive && !p.removed, `${label(f)}: used up, still its tile's piece`);
|
||||
h.run(6);
|
||||
assert.ok(!p.alive, `${label(f)}: not on a ground enemy (and no DP)`);
|
||||
h.b.kill(e, null);
|
||||
h.run(2);
|
||||
assert.ok(!p.alive, `${label(f)}: no DP yet`);
|
||||
h.b.players[0].dp = 10;
|
||||
const stock = D(u).stock;
|
||||
h.run(0.3);
|
||||
assert.ok(p.alive && p.tileR === 9 && p.tileC === 6, `${label(f)}: back on its tile`);
|
||||
approx(h.b.players[0].dp, 10 - cost, `${label(f)}: paid ${cost} DP`);
|
||||
assert.equal(D(u).stock, stock - 1, `${label(f)}: one trap spent`);
|
||||
// the card's redeploy time: a second used-up piece waits 5 s from that deployment
|
||||
const q = piece(h, 3);
|
||||
const e2 = h.spawn('enemy_dummy', { pos: [9, 8] });
|
||||
h.step();
|
||||
h.b.kill(e2, null);
|
||||
const back = h.b.time;
|
||||
h.runUntil(() => q.alive, 10);
|
||||
assert.ok(h.b.time - back >= 5 - 0.35 - 1e-9 && q.alive, `${label(f)}: after the card's 5 s`);
|
||||
// her traps leave with her; the pieces come back after her redeploy
|
||||
h.b.retreat(u);
|
||||
assert.equal(alive(h).length, 0, `${label(f)}: her traps leave with her`);
|
||||
h.b.players[0].dp = 99;
|
||||
h.run(8);
|
||||
assert.equal(alive(h).filter((t) => t.uid != null).length, 0, `${label(f)}: not while she is off the field`);
|
||||
h.b.redeploy(u, { free: true });
|
||||
assert.equal(D(u).stock, 8, `${label(f)}: the stock refilled at her deployment`);
|
||||
h.runUntil(() => alive(h).filter((t) => t.uid != null).length === 2, 20);
|
||||
assert.equal(alive(h).filter((t) => t.uid != null).length, 2, `${label(f)}: both pieces back`);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('TRP-Y 童话书: each trap deployment has a 20 % chance to be a ×2 trap (the red "!"), the double applied to its damage; none without the module', () => {
|
||||
for (const f of [[5, true, Y], [6, true, Y], [6, true, X], [6, false, null]]) {
|
||||
const [tier, elite, mod] = f;
|
||||
const tb = modOf(tier, mod)?.traitOverride?.bb ?? {};
|
||||
const y = mod === Y;
|
||||
if (y) assert.deepEqual([tb.prob, tb.atk_scale], [0.2, 2], label(f));
|
||||
const { h, u } = field({ tier, elite, mod, skill: 0, seed: 11 });
|
||||
let n = 0, d = 0;
|
||||
for (let i = 0; i < 60; i++) {
|
||||
for (const t of alive(h)) { n++; if (t.mem.dorDouble) d++; }
|
||||
h.b.retreat(u);
|
||||
h.b.redeploy(u, { free: true });
|
||||
}
|
||||
if (y) assert.ok(d / n > 0.1 && d / n < 0.32, `${label(f)}: ${d} / ${n} doubles ≈ 20 %`);
|
||||
else assert.equal(d, 0, `${label(f)}: no double trap`);
|
||||
// a double trap's damage ×2
|
||||
if (y) {
|
||||
const t = alive(h).find((x) => x.mem.dorDouble) ?? alive(h)[0];
|
||||
const e = h.spawn('enemy_dummy', { pos: [t.tileR, t.tileC] });
|
||||
h.step();
|
||||
const hit = trapHits(h).find((x) => x.source === t && x.target === e);
|
||||
approx(hit.amount, u.base.atk * (1 + talentOf(tier, elite, mod, 1).atk) * tokOf(tier, elite, 0, mod).skill.bb.atk_scale * (t.mem.dorDouble ? 2 : 1), `${label(f)}: ×2`, 1e-6);
|
||||
assert.ok(h.eventsOf('fx').some((x) => x[1] === 'mark' && x[4]?.kind === 'doroth:double'));
|
||||
}
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('TRP-X 梦中人: traps cost 2, limit / stock 13; stage 3: 3 traps at her deployment and, at every deployment of a placed piece, 50 % to summon one more in her range (no trap spent, inside the limit) — rolled again for each placed piece standing when her T2 stacks fill', () => {
|
||||
for (const tier of [5, 6]) {
|
||||
const hb = Object.assign({}, ...modOf(tier, X).talentChanges.filter((t) => t.talentIndex === -1).map((t) => t.bb));
|
||||
if (tier === 5) { assert.deepEqual(hb, {}, 'stage 1: no extra summon'); continue; }
|
||||
assert.deepEqual([hb.prob, hb.max_cnt], [0.5, 1]);
|
||||
// force the 50 % rolls to succeed: one extra per placed piece
|
||||
{
|
||||
const units = [[9, 6], [9, 8], [12, 6]];
|
||||
const h0 = makeBattle({ defs: { enemies: ENEMIES }, timeLimit: 300, autoFinish: false, seed: 5, flags: { dpPerSec: 0, dpMax: 999 },
|
||||
units: [{ uid: 1, diy: { slot: SLOT[6], charId: DOR, skillIndex: 0, uniEquipId: X }, elite: true, row: 10, col: 4 },
|
||||
...units.map(([r, c], i) => ({ uid: 2 + i, kind: 'token', tokenId: TRAP, ownerUid: 1, row: r, col: c }))],
|
||||
setup(b) { const ch = b.rng.chance.bind(b.rng); b.rng.chance = (p) => (p === 0.5 ? true : ch(p)); } });
|
||||
h0.step();
|
||||
assert.equal(alive(h0).filter((t) => t.uid == null).length, 3 + 3, 'three at her deployment + one per placed piece');
|
||||
assert.ok(alive(h0).length <= 13);
|
||||
// her T2 full: every placed piece standing rolls again
|
||||
const u0 = h0.unit(1);
|
||||
const before = alive(h0).filter((t) => t.uid == null).length;
|
||||
for (let i = 0; i < 9; i++) h0.b.addBuff(u0, { key: 'talent:doroth:dream', refresh: 'stack', stacks: 1, maxStacks: 10, mods: { atkPct: 0.02 } });
|
||||
const spare = alive(h0).find((t) => t.uid == null);
|
||||
h0.spawn('enemy_dummy', { pos: [spare.tileR, spare.tileC] });
|
||||
h0.step();
|
||||
assert.equal(u0.findBuff('talent:doroth:dream').stacks, 10);
|
||||
const after = alive(h0).filter((t) => t.uid == null).length;
|
||||
assert.equal(after, Math.min(13 - 3, before - 1 + 3), 'one more per placed piece standing (inside the limit)');
|
||||
checkInvariants(h0.b);
|
||||
assert.equal(h0.b.errors.length, 0);
|
||||
}
|
||||
// the plain roll ≈ 50 % (summons only for placed pieces)
|
||||
let rolls = 0, extras = 0;
|
||||
for (let seed = 1; seed <= 12; seed++) {
|
||||
const { h } = field({ tier: 6, elite: true, mod: X, skill: 0, seed, pieces: [[9, 6], [9, 8], [12, 6], [12, 8]] });
|
||||
rolls += 4;
|
||||
extras += alive(h).filter((t) => t.uid == null).length - 3;
|
||||
done(h);
|
||||
}
|
||||
assert.ok(extras / rolls > 0.3 && extras / rolls < 0.7, `${extras} / ${rolls} ≈ 50 %`);
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,445 @@
|
||||
// test/content/op_ebnhlz.test.js — the 自选 operator kit of 黑键 (char_4046_ebnhlz, 6★ 秘术师; kit
|
||||
// server/sim/content/kits/ops/op-ebnhlz.js) and of his S2 summon 旧日残影 (token_10024_ebnhlz_rcube), 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, MSC-X 源石骰子收纳盒, MSC-Y “乐理阐释者” or MSC-Δ 朽坏传承 at stage 1
|
||||
// (tier 5) / 3 (tier 6). Numbers from data/backups.json; the fidelity checklist of kits/README.md.
|
||||
// Run: node --test test/content/op_ebnhlz.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 EBN = 'char_4046_ebnhlz';
|
||||
const REMNANT = 'token_10024_ebnhlz_rcube';
|
||||
const FORMS = BACKUPS.units[EBN].forms;
|
||||
const SLOT = { 5: 'chess_char_5_diy1_a', 6: 'chess_char_6_diy1_a' };
|
||||
const MX = 'uniequip_002_ebnhlz', MY = 'uniequip_003_ebnhlz', MD = 'uniequip_004_ebnhlz';
|
||||
const S1 = 'skchr_ebnhlz_1', S2 = 'skchr_ebnhlz_2', S3 = 'skchr_ebnhlz_3';
|
||||
const statusOf = (tier, elite) => (elite ? (tier === 5 ? '2/60/7/1' : '2/60/7/3') : '2/1/4/0');
|
||||
const formOf = (tier, elite) => FORMS[statusOf(tier, elite)];
|
||||
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);
|
||||
/** The composed talent `i` of a form + module (the module's change replaces the base talent). */
|
||||
const talentOf = (tier, elite, mod, i) => modOf(tier, mod)?.talentChanges.find((t) => t.talentIndex === i)?.bb ?? formOf(tier, elite).talents[i].bb;
|
||||
const traitOf = (tier, elite, mod) => modOf(tier, mod)?.traitOverride?.bb ?? formOf(tier, elite).trait.bb;
|
||||
const hiddenOf = (tier, mod) => Object.assign({}, ...(modOf(tier, mod)?.talentChanges ?? []).filter((t) => t.talentIndex === -1).map((t) => t.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_elite: dummy('enemy_elite', { rank: 'ELITE' }), enemy_boss: dummy('enemy_boss', { rank: 'BOSS' }),
|
||||
enemy_fly: dummy('enemy_fly', { motion: 'FLY' }), enemy_heavy: dummy('enemy_heavy', { mass: 3 }),
|
||||
};
|
||||
const FORMS_ALL = [[5, false, null], [6, false, null], ...[5, 6].flatMap((t) => [null, MX, MY, MD].map((m) => [t, true, m]))];
|
||||
const label = ([tier, elite, mod]) => `T${tier} ${elite ? 'elite' : 'normal'} ${mod ?? 'none'}`;
|
||||
|
||||
/** 黑键 as uid 1 at (row, col) facing `dir` (default RIGHT), plus `others`. */
|
||||
function field({ tier = 5, elite = false, mod = null, skill = 0, row = 10, col = 4, dir = 'RIGHT', others = [], seed = 5 } = {}) {
|
||||
const h = makeBattle({
|
||||
defs: { enemies: ENEMIES }, timeLimit: 900, autoFinish: false, seed,
|
||||
flags: { dpPerSec: 0, dpMax: 999 }, hooks: ['damaged', 'skillStart', 'skillEnd', 'statusApplied', 'attack', 'death'], captureNoisy: true,
|
||||
units: [{ uid: 1, diy: { slot: SLOT[tier], charId: EBN, skillIndex: skill, uniEquipId: mod }, elite, row, col, dir }, ...others],
|
||||
});
|
||||
h.step();
|
||||
return { h, u: h.unit(1) };
|
||||
}
|
||||
const stored = (u) => ({ n: u.trait.ebn?.n ?? 0, e: u.trait.ebn?.e ?? 0 });
|
||||
const tagged = (c, t) => (c.dmg?.tags || []).includes(t);
|
||||
const mainHits = (h, u) => h.hooksOf('damaged').filter((c) => c.source === u && c.dmg?.isAttack && !tagged(c, 'ebnhlz:energy'));
|
||||
const energyHits = (h, u) => h.hooksOf('damaged').filter((c) => c.source === u && tagged(c, 'ebnhlz:energy'));
|
||||
const yiyinHits = (h, u) => h.hooksOf('damaged').filter((c) => c.source === u && tagged(c, 'ebnhlz:yiyin'));
|
||||
/** Hold his skill off (SP 0, no charge): the trait / talent checks see no cast. */
|
||||
const holdSkill = (u) => { u.skill.sp = 0; u.skill.charges = 0; };
|
||||
/** Start a check with nothing stored. */
|
||||
const clearEnergy = (u) => { const v = u.trait.ebn; if (v) { v.n = 0; v.e = 0; } };
|
||||
function done(h) {
|
||||
checkInvariants(h.b);
|
||||
assert.equal(h.b.errors.length, 0, JSON.stringify(h.b.errors[0]));
|
||||
}
|
||||
/** Step until he holds `n` / `e` (no enemy on the field), recording [time, interval] at each store. */
|
||||
function storeUp(h, u, n, e, max = 60) {
|
||||
const log = [];
|
||||
let last = stored(u).n + stored(u).e;
|
||||
for (let i = 0; i < max * 30; i++) {
|
||||
const s = stored(u);
|
||||
if (s.n === n && s.e === e) return log;
|
||||
h.step();
|
||||
const t = stored(u).n + stored(u).e;
|
||||
if (t !== last) { log.push([h.b.time, u.atkCd]); last = t; }
|
||||
}
|
||||
assert.fail(`stores up to ${n}/${e}: ${JSON.stringify(stored(u))}`);
|
||||
return log;
|
||||
}
|
||||
|
||||
test('黑键 in every 自选 form: his operator kit (all three skills authored), the form\'s stats + module attributes, 3-14, ranged arts every 3 s that hits air units, blocks 1, ground-targetable, the data\'s DEFAULT triggers, 空 bond, no 特质', () => {
|
||||
assert.equal(OPERATOR_KITS[EBN], KITS[EBN]);
|
||||
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], [EBN, SLOT[tier], form.skills[skill].skillId, false, 'skills'], label(f));
|
||||
assert.deepEqual([u.base.maxHp, u.base.atk, u.base.def, u.base.res, u.base.aspd],
|
||||
[form.stats.maxHp + (m?.attr.maxHp ?? 0), form.stats.atk + (m?.attr.atk ?? 0), form.stats.def + (m?.attr.def ?? 0), form.stats.res + (m?.attr.res ?? 0), 100 + (m?.attr.aspd ?? 0)], `${label(f)}: stats`);
|
||||
assert.deepEqual([u.s.blockCnt, u.profile.attack, u.profile.dmgType, u.profile.canHitFly, u.base.bat], [1, 'ranged', 'arts', true, 3], `${label(f)}: 秘术师`);
|
||||
assert.deepEqual(u.liveRangeGrid, form.rangeGrid, `${label(f)}: 3-14`);
|
||||
assert.equal(u.skill.rule, 'DEFAULT', `${label(f)}: the data's trigger`);
|
||||
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 (zh_CN): E2 Lv1 1359 / 1134 / 120 / 20, E2 Lv60 1570 / 1310 / 130 / 20; MSC-X +58 ATK +3 ASPD → +90 / +5,
|
||||
// MSC-Y +80 HP +88 ATK → +175 / +135, MSC-Δ +76 ATK +4 RES → +124 / +5
|
||||
assert.deepEqual([FORMS['2/1/4/0'].stats.maxHp, FORMS['2/1/4/0'].stats.atk, FORMS['2/60/7/1'].stats.atk], [1359, 1134, 1310]);
|
||||
assert.deepEqual([modOf(5, MX).attr, modOf(6, MX).attr, modOf(5, MY).attr, modOf(6, MY).attr, modOf(5, MD).attr, modOf(6, MD).attr],
|
||||
[{ atk: 58, aspd: 3 }, { atk: 90, aspd: 5 }, { maxHp: 80, atk: 88 }, { maxHp: 175, atk: 135 }, { atk: 76, res: 4 }, { atk: 124, res: 5 }]);
|
||||
// he hits a flyer
|
||||
const { h, u } = field({ skill: 2 });
|
||||
holdSkill(u);
|
||||
const f = h.spawn('enemy_fly', { pos: [10, 6] });
|
||||
assert.ok(h.runUntil(() => mainHits(h, u).some((c) => c.target === f), 5), 'an air unit is hit');
|
||||
done(h);
|
||||
});
|
||||
|
||||
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(EBN));
|
||||
for (const t of [5, 6]) assert.ok(diyPool(t, { data, kitted: KITTED_CHARS }).includes(EBN), `tier ${t}`);
|
||||
assert.deepEqual(validateDiyPicks({ [SLOT[6]]: { charId: EBN, skillIndex: 1, uniEquipId: MD } }, { data, kitted: KITTED_CHARS }),
|
||||
{ ok: true, picks: { [SLOT[6]]: { charId: EBN, skillIndex: 1, uniEquipId: MD } } });
|
||||
});
|
||||
|
||||
test('trait + T1 强弱法: no target ⇒ one energy per attack interval (an attack action — PRTS 分支特性信息), up to times (3; MSC-X 4), then the one elite-only energy, then idle; MSC-Y: ASPD +30 while he holds any', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite, mod] = f;
|
||||
const { h, u } = field({ tier, elite, mod, skill: 0 });
|
||||
const N = traitOf(tier, elite, mod).times, E = talentOf(tier, elite, mod, 0).times_2;
|
||||
assert.deepEqual([N, E], [mod === MX ? 4 : 3, 1], `${label(f)}: times / times_2`);
|
||||
assert.deepEqual(stored(u), { n: 1, e: 0 }, `${label(f)}: the first at once (his attack is ready at deployment)`);
|
||||
const first = [h.b.time, u.atkCd];
|
||||
approx(first[1], u.base.bat * 100 / u.base.aspd, `${label(f)}: then a full interval`, 1e-6);
|
||||
const log = [first, ...storeUp(h, u, N, E)];
|
||||
assert.equal(log.length, N + E, `${label(f)}: ${N} + ${E} stores`);
|
||||
for (let i = 1; i < log.length; i++) approx(log[i][0] - log[i - 1][0], log[i - 1][1], `${label(f)}: store ${i + 1} one interval after the last`, 0.02);
|
||||
const aspd = hiddenOf(tier, mod).attack_speed ?? 0;
|
||||
assert.equal(aspd, mod === MY ? 30 : 0, `${label(f)}: MSC-Y attack_speed`);
|
||||
approx(u.s.aspd, u.base.aspd + aspd, `${label(f)}: ASPD while holding energy`);
|
||||
const before = h.b.time;
|
||||
h.run(10);
|
||||
assert.deepEqual(stored(u), { n: N, e: E }, `${label(f)}: full — idle`);
|
||||
assert.ok(h.b.time - before >= 10 - 1e-9);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('the volley: his next attack releases every normal energy at its target, ATK × atk_scale (1.35; MSC-X stage 3 1.43) arts attack hits landing with the main bolt; the elite energy only at an elite or leader target', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite, mod] = f;
|
||||
const { h, u } = field({ tier, elite, mod, skill: 0 });
|
||||
const N = traitOf(tier, elite, mod).times, E = talentOf(tier, elite, mod, 0).times_2;
|
||||
const scale = talentOf(tier, elite, mod, 0).atk_scale;
|
||||
assert.equal(scale, mod === MX && tier === 6 ? 1.43 : 1.35, `${label(f)}: 强弱法 scale`);
|
||||
storeUp(h, u, N, E);
|
||||
holdSkill(u);
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
assert.ok(h.runUntil(() => mainHits(h, u).length > 0, 5), `${label(f)}: attacks`);
|
||||
const main = mainHits(h, u)[0];
|
||||
const en = energyHits(h, u).filter((c) => c.dmg.attackId === main.dmg.attackId);
|
||||
assert.equal(en.length, N, `${label(f)}: ${N} normal energies at a normal enemy`);
|
||||
for (const c of en) { approx(c.amount, u.s.atk * scale, `${label(f)}: energy ×${scale}`, 1e-3); assert.deepEqual([c.type, c.target, c.dmg.isAttack], ['arts', e, true]); }
|
||||
approx(main.amount, u.s.atk, `${label(f)}: the main bolt 100 %`, 1e-3);
|
||||
assert.deepEqual(stored(u), { n: 0, e: E }, `${label(f)}: the elite energy kept`);
|
||||
// an elite target: the elite energy goes too
|
||||
h.b.kill(e, null);
|
||||
holdSkill(u);
|
||||
const el = h.spawn('enemy_elite', { pos: [10, 6] });
|
||||
const n0 = mainHits(h, u).length;
|
||||
assert.ok(h.runUntil(() => mainHits(h, u).length > n0 && mainHits(h, u).at(-1).target === el, 8), `${label(f)}: attacks the elite`);
|
||||
const m2 = mainHits(h, u).at(-1);
|
||||
const en2 = energyHits(h, u).filter((c) => c.dmg.attackId === m2.dmg.attackId);
|
||||
assert.equal(en2.length, E, `${label(f)}: the elite energy at an elite`);
|
||||
assert.deepEqual(stored(u), { n: 0, e: 0 });
|
||||
done(h);
|
||||
}
|
||||
// a leader (BOSS rank) takes it too
|
||||
const { h, u } = field({ tier: 6, elite: true });
|
||||
storeUp(h, u, 3, 1);
|
||||
holdSkill(u);
|
||||
h.spawn('enemy_boss', { pos: [10, 6] });
|
||||
assert.ok(h.runUntil(() => mainHits(h, u).length > 0, 5));
|
||||
assert.equal(energyHits(h, u).length, 4, 'three normal + the elite energy at a leader');
|
||||
done(h);
|
||||
});
|
||||
|
||||
test('T2 倚音: per projectile (the main bolt and every energy) a target with no other enemy within range_radius 1.1 takes ATK × atk_scale arts (15 %; MSC-Y 20 %, MSC-Δ 30 % at stage 3); with one there: nothing — MSC-Y stage 3 ATK × 36 % arts splash on the others instead; MSC-Δ stage 3: + ATK × 30 % 元素伤害 on a target in its 凋亡 burst', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite, mod] = f;
|
||||
const t1 = talentOf(tier, elite, mod, 1);
|
||||
assert.equal(t1.range_radius, 1.1);
|
||||
assert.equal(t1.atk_scale, tier === 6 && mod === MY ? 0.2 : tier === 6 && mod === MD ? 0.3 : 0.15, `${label(f)}: atk_scale`);
|
||||
// alone: the main bolt + 2 energies ⇒ 3 additions
|
||||
{
|
||||
const { h, u } = field({ tier, elite, mod, skill: 0 });
|
||||
storeUp(h, u, 2, 0);
|
||||
holdSkill(u);
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
assert.ok(h.runUntil(() => mainHits(h, u).length > 0, 5));
|
||||
const id = mainHits(h, u)[0].dmg.attackId;
|
||||
const add = yiyinHits(h, u).filter((c) => c.dmg.attackId === id && c.type === 'arts');
|
||||
assert.equal(add.length, 3, `${label(f)}: the main bolt and 2 energies`);
|
||||
for (const c of add) { approx(c.amount, u.s.atk * t1.atk_scale, `${label(f)}: ${t1.atk_scale}`, 1e-3); assert.equal(c.target, e); }
|
||||
done(h);
|
||||
}
|
||||
// not alone: an enemy 1.0 away (within 1.1)
|
||||
{
|
||||
const { h, u } = field({ tier, elite, mod, skill: 0 });
|
||||
holdSkill(u);
|
||||
clearEnergy(u);
|
||||
const a = h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
const b = h.spawn('enemy_dummy', { pos: [11, 6] });
|
||||
assert.ok(h.runUntil(() => mainHits(h, u).length > 0, 5));
|
||||
const main = mainHits(h, u)[0];
|
||||
const add = yiyinHits(h, u).filter((c) => c.dmg.attackId === main.dmg.attackId);
|
||||
const other = main.target === a ? b : a;
|
||||
if (t1.atk_scale_2 > 0) {
|
||||
assert.equal(t1.atk_scale_2, 0.36, `${label(f)}: MSC-Y stage 3`);
|
||||
assert.deepEqual(add.map((c) => c.target), [other], `${label(f)}: the splash spares the main target`);
|
||||
approx(add[0].amount, u.s.atk * 0.36, `${label(f)}: 36 %`, 1e-3);
|
||||
assert.ok(add[0].dmg.isSplash);
|
||||
} else assert.equal(add.length, 0, `${label(f)}: no addition with another enemy near`);
|
||||
done(h);
|
||||
}
|
||||
// MSC-Δ stage 3: a target in its 凋亡 burst
|
||||
if (t1.element_atk_scale > 0) {
|
||||
assert.deepEqual([tier, mod, t1.element_atk_scale], [6, MD, 0.3]);
|
||||
const { h, u } = field({ tier, elite, mod, skill: 0 });
|
||||
holdSkill(u);
|
||||
clearEnergy(u);
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
h.b.addBuff(e, { key: 'apoptosisBurst', duration: 15, flags: { burstLock: true } });
|
||||
assert.ok(h.runUntil(() => mainHits(h, u).length > 0, 5));
|
||||
const id = mainHits(h, u)[0].dmg.attackId;
|
||||
const add = yiyinHits(h, u).filter((c) => c.dmg.attackId === id);
|
||||
assert.deepEqual(add.map((c) => c.type), ['arts', 'elemental'], 'arts first, then 元素伤害 (PRTS 备注)');
|
||||
approx(add[1].amount, u.s.atk * 0.3, '30 % 元素伤害', 1e-3);
|
||||
done(h);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
test('MSC-Δ 朽坏传承: every arts damage of his (attacks, energies, 倚音) and of his 旧日残影 attaches 8 % of it as 凋亡损伤; none without the module', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite, mod] = f;
|
||||
const ratio = hiddenOf(tier, mod).ep_damage_ratio ?? 0;
|
||||
assert.equal(ratio, mod === MD ? 0.08 : 0, label(f));
|
||||
const { h, u } = field({ tier, elite, mod, skill: 0 });
|
||||
holdSkill(u);
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
assert.ok(h.runUntil(() => mainHits(h, u).length > 0, 5));
|
||||
const id = mainHits(h, u)[0].dmg.attackId;
|
||||
const arts = h.hooksOf('damaged').filter((c) => c.source === u && c.type === 'arts' && c.dmg.attackId === id);
|
||||
const sum = arts.reduce((s, c) => s + c.amount, 0);
|
||||
approx(e.elem.apoptosis, sum * ratio, `${label(f)}: 凋亡 gauge = ${ratio} × the arts dealt`, 1e-6);
|
||||
done(h);
|
||||
}
|
||||
// the remnant's blast too
|
||||
const { h, u } = field({ tier: 6, elite: true, mod: MD, skill: 1 });
|
||||
u.skill.gainSp(999);
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 7] });
|
||||
assert.ok(h.runUntil(() => h.hooksOf('damaged').some((c) => c.source?.defId === REMNANT), 5), 'a remnant blast');
|
||||
const blast = h.hooksOf('damaged').find((c) => c.source?.defId === REMNANT && c.type === 'arts');
|
||||
const fills = h.hooksOf('damaged').filter((c) => c.source === blast.source && c.type === 'element');
|
||||
approx(fills[0].dmg.amount, blast.amount * 0.08, 'the remnant attaches 8 % too', 1e-6);
|
||||
assert.equal(e.alive, true);
|
||||
done(h);
|
||||
});
|
||||
|
||||
test('S1 渐快急板 (MANUAL, data DEFAULT): 5 s, range 4-1, attack interval ×0.2, every attack 35 % / 40 % ATK arts — the energies released meanwhile 35 % / 40 % × 强弱法; all back after', () => {
|
||||
for (const f of FORMS_ALL) {
|
||||
const [tier, elite, mod] = f;
|
||||
const sk = skillOf(tier, elite, S1);
|
||||
assert.deepEqual([sk.duration, sk.bb['attack@atk_scale'], sk.bb.base_attack_time, sk.rangeId, sk.spCost, sk.initSp], [5, elite ? 0.4 : 0.35, 0.2, '4-1', elite ? 19 : 22, 5], label(f));
|
||||
const { h, u } = field({ tier, elite, mod, skill: 0 });
|
||||
const own = () => u.base.bat * 100 / u.s.aspd;
|
||||
u.skill.gainSp(999);
|
||||
h.run(1);
|
||||
assert.equal(u.skill.activations, 0, `${label(f)}: no enemy, no cast`);
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
assert.ok(h.runUntil(() => u.skill.active, 5), `${label(f)}: cast with an enemy in 3-14`);
|
||||
assert.deepEqual(u.liveRangeGrid, sk.rangeGrid, `${label(f)}: 4-1`);
|
||||
approx(u.skill.timeLeft, 5, `${label(f)}: 5 s`, 0.02);
|
||||
approx(u.s.interval, own() * 0.2, `${label(f)}: ×0.2`, 1e-6);
|
||||
assert.ok(h.runUntil(() => mainHits(h, u).length > 0, 2));
|
||||
const main = mainHits(h, u)[0];
|
||||
approx(main.amount, u.s.atk * sk.bb['attack@atk_scale'], `${label(f)}: ${sk.bb['attack@atk_scale']} ATK`, 1e-3);
|
||||
const en = energyHits(h, u).filter((c) => c.dmg.attackId === main.dmg.attackId);
|
||||
assert.equal(en.length, 1);
|
||||
approx(en[0].amount, u.s.atk * sk.bb['attack@atk_scale'] * talentOf(tier, elite, mod, 0).atk_scale, `${label(f)}: the energy at the skill's scale`, 1e-3);
|
||||
// the 4-1 reaches 4 tiles ahead (3-14 only 3)
|
||||
const far = h.spawn('enemy_dummy', { pos: [10, 8] });
|
||||
h.b.kill(e, null);
|
||||
assert.ok(h.runUntil(() => mainHits(h, u).some((c) => c.target === far), 2), `${label(f)}: the 4-1's far tile`);
|
||||
h.runUntil(() => !u.skill.active, 6);
|
||||
assert.deepEqual(u.liveRangeGrid, formOf(tier, elite).rangeGrid, `${label(f)}: 3-14 back`);
|
||||
approx(u.s.interval, own(), `${label(f)}: interval back`, 1e-6);
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('S2 荒芜回响 (AUTO, data DEFAULT): spends every energy (elite first) on energies + 1 旧日残影 on free tiles of his range — the enemy\'s tile first, then the nearest; fewer tiles ⇒ fewer spent; no free tile ⇒ no cast (the charge back)', () => {
|
||||
for (const [tier, elite, mod] of [[5, false, null], [6, true, MX]]) {
|
||||
const sk = skillOf(tier, elite, S2);
|
||||
assert.deepEqual([sk.skillType, sk.bb.atk_scale, sk.bb.force, sk.spCost, sk.initSp], ['AUTO', elite ? 2 : 1.7, 1, elite ? 14 : 15, 0]);
|
||||
const { h, u } = field({ tier, elite, mod, skill: 1 });
|
||||
const N = traitOf(tier, elite, mod).times;
|
||||
storeUp(h, u, N, 1);
|
||||
u.skill.gainSp(999);
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 7] });
|
||||
assert.ok(h.runUntil(() => u.skill.activations === 1, 5), 'cast with an enemy in range');
|
||||
const rem = h.b.allyUnits.filter((t) => t.kind === 'token' && t.defId === REMNANT);
|
||||
assert.equal(rem.length, N + 2, `${N} + 1 energies + 1 remnants`);
|
||||
assert.deepEqual([rem[0].tileR, rem[0].tileC], [10, 7], 'the enemy\'s tile first');
|
||||
const d = (t) => Math.hypot(t.tileC - 7, t.tileR - 10);
|
||||
for (let i = 2; i < rem.length; i++) assert.ok(d(rem[i]) >= d(rem[i - 1]) - 1e-9, 'then by the distance to the enemy');
|
||||
assert.deepEqual(stored(u), { n: 0, e: 0 }, 'every energy spent');
|
||||
assert.equal(energyHits(h, u).length, 0, 'none left for the attack');
|
||||
void e;
|
||||
done(h);
|
||||
}
|
||||
// the flat stage's edge (col 2: RANGED tiles; cols 0–1 none): facing LEFT from (10, 2) no tile of his range is free
|
||||
{
|
||||
const { h, u } = field({ tier: 5, skill: 1, row: 10, col: 2, dir: 'LEFT' });
|
||||
storeUp(h, u, 3, 1);
|
||||
u.skill.gainSp(999);
|
||||
h.spawn('enemy_dummy', { pos: [10, 1] });
|
||||
assert.ok(h.runUntil(() => u.skill.activations >= 1, 5), 'the DEFAULT condition holds (an enemy in range)');
|
||||
assert.equal(h.b.allyUnits.filter((t) => t.kind === 'token').length, 0, 'no placeable tile: no remnant');
|
||||
assert.ok(u.skill.ready, 'the charge is back');
|
||||
done(h);
|
||||
}
|
||||
// fewer free tiles than energies + 1: facing LEFT from (10, 3) only (10, 2) and (11, 2) are placeable
|
||||
{
|
||||
const { h, u } = field({ tier: 5, skill: 1, row: 10, col: 3, dir: 'LEFT' });
|
||||
storeUp(h, u, 3, 1);
|
||||
u.skill.gainSp(999);
|
||||
let atEnd = null;
|
||||
h.b.on('skillEnd', (c) => { if (c.unit === u) atEnd = stored(u); });
|
||||
h.spawn('enemy_dummy', { pos: [10, 2] });
|
||||
assert.ok(h.runUntil(() => u.skill.activations === 1, 5));
|
||||
const rem = h.b.allyUnits.filter((t) => t.kind === 'token' && t.defId === REMNANT);
|
||||
assert.deepEqual(rem.map((t) => [t.tileR, t.tileC]), [[10, 2], [11, 2]], 'the enemy\'s tile, then the other free one');
|
||||
assert.deepEqual(atEnd, { n: 3, e: 0 }, 'one energy spent — the elite one first');
|
||||
assert.ok(h.runUntil(() => energyHits(h, u).length === 3, 2), 'the attack that follows releases the three left');
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('旧日残影: a selectable ground enemy within 1.35 activates it; 0.93 s later every ground enemy within 1.35 takes 黑键\'s ATK × 170 % / 200 % arts from it and a 中力 inward push, then it withdraws; never flyers; 30 s life; it leaves with 黑键', () => {
|
||||
for (const [tier, elite] of [[5, false], [6, true]]) {
|
||||
const sk = skillOf(tier, elite, S2);
|
||||
const { h, u } = field({ tier, elite, skill: 1 });
|
||||
u.skill.gainSp(999);
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 7] });
|
||||
assert.ok(h.runUntil(() => u.skill.activations === 1, 5));
|
||||
const r = h.b.allyUnits.find((t) => t.kind === 'token' && t.defId === REMNANT && t.tileR === 10 && t.tileC === 7);
|
||||
assert.ok(r && r.alive, 'a remnant on the enemy');
|
||||
const near = h.spawn('enemy_dummy', { pos: [11, 8] }); // 1.41 away: outside
|
||||
const fly = h.spawn('enemy_fly', { pos: [10, 8] });
|
||||
const t0 = h.b.time;
|
||||
assert.ok(h.runUntil(() => h.hooksOf('damaged').some((c) => c.source === r), 3), 'it goes off');
|
||||
approx(h.b.time - t0, 0.93, 'about 0.93 s after the activation', 0.05);
|
||||
const hits = h.hooksOf('damaged').filter((c) => c.source === r && c.type === 'arts');
|
||||
assert.deepEqual(hits.map((c) => c.target), [e], 'only the ground enemy within 1.35');
|
||||
approx(hits[0].amount, u.s.atk * sk.bb.atk_scale, `${sk.bb.atk_scale} × his ATK`, 1e-3);
|
||||
assert.ok(!hits.some((c) => c.target === fly || c.target === near));
|
||||
assert.ok(!r.alive, 'withdrawn once its skill went off');
|
||||
done(h);
|
||||
}
|
||||
// an inward push: a light enemy 1 tile off is drawn towards it
|
||||
{
|
||||
const { h, u } = field({ tier: 6, elite: true, skill: 1 });
|
||||
u.skill.gainSp(999);
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 7] });
|
||||
assert.ok(h.runUntil(() => u.skill.activations === 1, 5));
|
||||
const r = h.b.allyUnits.find((t) => t.kind === 'token' && t.tileR === 10 && t.tileC === 7);
|
||||
const side = h.spawn('enemy_dummy', { pos: [11, 7] });
|
||||
const d0 = Math.hypot(side.x - r.x, side.y - r.y);
|
||||
assert.ok(h.runUntil(() => !r.alive, 3));
|
||||
assert.ok(Math.hypot(side.x - r.x, side.y - r.y) < d0 - 0.1, 'pulled in (a push towards it)');
|
||||
void e;
|
||||
done(h);
|
||||
}
|
||||
// life 30 s (no enemy near), and gone with 黑键
|
||||
{
|
||||
const { h, u } = field({ tier: 5, skill: 1 });
|
||||
storeUp(h, u, 3, 1);
|
||||
u.skill.gainSp(999);
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 7] });
|
||||
assert.ok(h.runUntil(() => u.skill.activations === 1, 5));
|
||||
const quiet = h.b.allyUnits.filter((t) => t.kind === 'token' && t.alive && Math.hypot(t.x - e.x, t.y - e.y) > 1.35);
|
||||
assert.ok(quiet.length >= 1, 'a remnant out of reach');
|
||||
assert.equal(h.b.tokenDef(REMNANT, u).talents[0].bb.duration, 30);
|
||||
h.b.kill(e, null);
|
||||
h.run(29);
|
||||
assert.ok(quiet.every((t) => t.alive), 'still there at 29 s');
|
||||
h.run(1.5);
|
||||
assert.ok(quiet.every((t) => !t.alive), 'gone after 30 s');
|
||||
done(h);
|
||||
}
|
||||
{
|
||||
const { h, u } = field({ tier: 5, skill: 1 });
|
||||
u.skill.gainSp(999);
|
||||
const e = h.spawn('enemy_dummy', { pos: [10, 7] });
|
||||
assert.ok(h.runUntil(() => u.skill.activations === 1, 5));
|
||||
h.b.kill(e, null);
|
||||
assert.ok(h.b.allyUnits.some((t) => t.kind === 'token' && t.alive));
|
||||
h.b.retreat(u);
|
||||
h.step();
|
||||
assert.ok(!h.b.allyUnits.some((t) => t.kind === 'token' && t.alive), 'withdrawn when he leaves');
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
|
||||
test('S3 寂静之声 (MANUAL, data DEFAULT): 30 s, ASPD +50 / +60, ATK +43 % / +50 %; attacks only elite or leader enemies (with none he stores elite energy); energies turn elite at its start, deal × talent_scale_multiplier (1.23 / 1.30); at its end one stays elite, the rest normal', () => {
|
||||
for (const [tier, elite, mod] of [[5, false, null], [6, false, null], [5, true, MY], [6, true, MX]]) {
|
||||
const sk = skillOf(tier, elite, S3);
|
||||
assert.deepEqual([sk.duration, sk.bb.attack_speed, sk.bb.atk, sk.bb.talent_scale_multiplier, sk.spCost, sk.initSp],
|
||||
[30, elite ? 60 : 50, elite ? 0.5 : 0.43, elite ? 1.3 : 1.23, elite ? 22 : 24, elite ? 8 : 6]);
|
||||
const { h, u } = field({ tier, elite, mod, skill: 2 });
|
||||
const N = traitOf(tier, elite, mod).times;
|
||||
storeUp(h, u, 2, 0);
|
||||
u.skill.gainSp(999);
|
||||
let atCast = null;
|
||||
h.b.on('skillStart', (c) => { if (c.unit === u) atCast = stored(u); });
|
||||
const a = h.spawn('enemy_dummy', { pos: [10, 6] });
|
||||
assert.ok(h.runUntil(() => u.skill.active, 5), 'cast with an enemy in range');
|
||||
assert.deepEqual(atCast, { n: 0, e: 2 }, 'the stored energies turned elite');
|
||||
approx(u.s.atk, u.base.atk * (1 + sk.bb.atk), 'ATK');
|
||||
const n0 = mainHits(h, u).length;
|
||||
h.run(8);
|
||||
assert.equal(mainHits(h, u).length, n0, 'never a normal enemy');
|
||||
assert.deepEqual(stored(u), { n: 0, e: N + 1 }, `elite energies only, up to ${N} + 1`);
|
||||
const el = h.spawn('enemy_elite', { pos: [11, 6] });
|
||||
assert.ok(h.runUntil(() => mainHits(h, u).length > n0, 5), 'the elite is attacked');
|
||||
const main = mainHits(h, u).at(-1);
|
||||
assert.equal(main.target, el);
|
||||
const en = energyHits(h, u).filter((c) => c.dmg.attackId === main.dmg.attackId);
|
||||
assert.equal(en.length, N + 1);
|
||||
const scale = talentOf(tier, elite, mod, 0).atk_scale * sk.bb.talent_scale_multiplier;
|
||||
approx(en[0].amount, u.s.atk * scale, `energies × ${scale}`, 1e-3);
|
||||
approx(u.s.aspd, u.base.aspd + sk.bb.attack_speed, 'ASPD');
|
||||
// at the end: one elite stays, the rest normal
|
||||
h.b.kill(el, null);
|
||||
h.runUntil(() => stored(u).e === N + 1, 30);
|
||||
u.skill.end('test');
|
||||
assert.deepEqual(stored(u), { n: N, e: 1 }, 'one elite kept, the rest normal (up to times)');
|
||||
void a;
|
||||
done(h);
|
||||
}
|
||||
});
|
||||
+399
-132
@@ -4699,136 +4699,164 @@
|
||||
"snaps": "941f2507 1f02b017 b5a0bbcf b9e31d2e 528ae78e 91942887 6a303812 d84d1cae 7445eca2 7a7a2edb 84e23849 c7adb678 6170d754 bfd7e072 28926e7b b088035f 2fcbafb9 ec04b0b2 2200069d a865855b 7e919058 25616cc0"
|
||||
},
|
||||
"diy-111": {
|
||||
"about": "5_diy1_a=cdfend 5_diy2_b=cdfend 5_diy1_a=cguard 5_diy2_b=cguard 6_diy1_b=wang/S1 6_diy2_b=wang/S2 6_diy1_b=wang/S3 6_diy2_b=wang/S1/002_wang 6_diy1_b=wang/S2/002_wang 6_diy2_b=wang/S3/002_wang 5_diy1_a=csnipe 5_diy2_b=csnipe",
|
||||
"fast": true,
|
||||
"about": "6_diy1_b=wang/S1 6_diy2_b=wang/S2 6_diy1_b=wang/S3 6_diy2_b=wang/S1/002_wang 6_diy1_b=wang/S2/002_wang 6_diy2_b=wang/S3/002_wang 5_diy1_a=doroth/S1 5_diy2_a=doroth/S2 5_diy1_a=doroth/S3 5_diy2_b=doroth/S1 5_diy1_b=doroth/S2 5_diy2_b=doroth/S3",
|
||||
"fast": false,
|
||||
"kind": "normal",
|
||||
"stageId": "act1autochess_m01",
|
||||
"modeId": "mode_single_normal",
|
||||
"round": 13,
|
||||
"seed": 452407399,
|
||||
"waveId": "act1autochess_h06",
|
||||
"time": 230,
|
||||
"ticks": 6900,
|
||||
"reason": "timeout",
|
||||
"killed": 16,
|
||||
"time": 220.63,
|
||||
"ticks": 6619,
|
||||
"reason": "cleared",
|
||||
"killed": 15,
|
||||
"total": 150,
|
||||
"unspawned": 0,
|
||||
"bossHpLeft": null,
|
||||
"rngDraws": 0,
|
||||
"errors": {"count":0,"kinds":[]},
|
||||
"players": {"p1":{"killed":16,"total":150,"perfect":false,"leaks":134,"leaksUncounted":0,"coins":0,"dmg":312779,"bossDmg":0,"heal":0,"deaths":16,"layerGains":{}}},
|
||||
"players": {"p1":{"killed":15,"total":150,"perfect":false,"leaks":135,"leaksUncounted":0,"coins":0,"dmg":329930,"bossDmg":0,"heal":0,"deaths":18,"layerGains":{}}},
|
||||
"units": [
|
||||
["p1",1,"op","chess_char_5_diy1_a",2,null,0,0,176,0,731,6384,0,35,1],
|
||||
["p1",2,"op","chess_char_5_diy2_b",2,"none",1730.76,1,174,0,2424,4085,0,119,3],
|
||||
["p1",3,"op","chess_char_5_diy1_a",2,null,0,0,170,1,10729,7692,0,29,0],
|
||||
["p1",4,"op","chess_char_5_diy2_b",2,"none",0,0,165,3,14064,10002,0,39,1],
|
||||
["p1",5,"op","chess_char_6_diy1_b",0,"none",1375,1,4,4,59537,0,0,248,1],
|
||||
["p1",6,"op","chess_char_6_diy2_b",1,"none",1375,1,5,2,55344,0,0,248,1],
|
||||
["p1",7,"op","chess_char_6_diy1_b",2,"none",1375,1,11,0,1565,0,0,5,1],
|
||||
["p1",8,"op","chess_char_6_diy2_b",0,"uniequip_002_wang",1525,1,13,1,46927,0,0,234,1],
|
||||
["p1",9,"op","chess_char_6_diy1_b",1,"uniequip_002_wang",1525,1,6,0,41495,0,0,199,1],
|
||||
["p1",10,"op","chess_char_6_diy2_b",2,"uniequip_002_wang",1525,1,14,3,60994,0,0,17,1],
|
||||
["p1",11,"op","chess_char_5_diy1_a",2,null,1271,1,177,0,809,3813,0,14,0],
|
||||
["p1",12,"op","chess_char_5_diy2_b",2,"none",0,0,173,2,18159,4530,0,56,1],
|
||||
["p1",1,"op","chess_char_6_diy1_b",0,"none",1375,1,4,0,50918,0,0,220,1],
|
||||
["p1",2,"op","chess_char_6_diy2_b",1,"none",1375,1,5,1,52588,0,0,222,1],
|
||||
["p1",3,"op","chess_char_6_diy1_b",2,"none",1375,1,13,4,54653,0,0,14,1],
|
||||
["p1",4,"op","chess_char_6_diy2_b",0,"uniequip_002_wang",1525,1,15,1,46863,0,0,234,1],
|
||||
["p1",5,"op","chess_char_6_diy1_b",1,"uniequip_002_wang",1525,1,6,1,51377,0,0,213,1],
|
||||
["p1",6,"op","chess_char_6_diy2_b",2,"uniequip_002_wang",1525,1,16,6,35584,0,0,17,1],
|
||||
["p1",7,"op","chess_char_5_diy1_a",0,null,0,0,175,1,2552,3558,0,18,1],
|
||||
["p1",8,"op","chess_char_5_diy2_a",1,null,0,0,170,0,3950,3558,0,33,1],
|
||||
["p1",9,"op","chess_char_5_diy1_a",2,null,0,0,164,0,3927,3558,0,31,1],
|
||||
["p1",10,"op","chess_char_5_diy2_b",0,"none",0,0,168,0,6230,4185,0,39,1],
|
||||
["p1",11,"op","chess_char_5_diy1_b",1,"none",0,0,160,0,3389,4185,0,29,0],
|
||||
["p1",12,"op","chess_char_5_diy2_b",2,"none",0,0,180,1,7089,4185,0,44,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]
|
||||
["-","~3","device","trap_1105_accrate",null,null,100,1,3,0,0,0,0,0,null],
|
||||
["p1","~1","token","token_10025_doroth_recttp",null,null,1000,0,9,0,6971,0,0,0,null],
|
||||
["p1","~2","token","token_10025_doroth_recttp",null,null,1000,0,11,0,1989,0,0,0,null],
|
||||
["p1","~3","token","token_10025_doroth_recttp",null,null,1000,0,165,0,1737,0,0,0,null],
|
||||
["p1","~4","token","token_10025_doroth_recttp",null,null,1000,0,171,0,112,0,0,0,null]
|
||||
],
|
||||
"enemies": {"enemy_1249_lysdb_2":[60,4,54,18280,159416],"enemy_1251_lysyta":[51,12,38,3255,127868],"enemy_1329_cbshld":[39,0,39,14972,25495]},
|
||||
"hooks": [1,177,6900,1530,1530,1556,1500,0,32,163,12,9,0,12955,0,38,150,131,1,32,0,0,0],
|
||||
"events": {"atk":1530,"deploy":24,"die":32,"dmg":1500,"engage":12,"fx":70,"leak":131,"skill":21,"spawn":165},
|
||||
"fx": {"explode":6,"shieldBreak":56,"summon":8},
|
||||
"snaps": "d1aaf5af 35d6af59 2ab35dc8 9ba4fc0a 36713380 275c6ad9 edb1c4d5 34360102 6aef12cf dff9a82a 77deb5b4 8153a299 85dbad1c d5e5c3fa 48f6184e da987d4b d6e91782 a02ef9ed cc1fd38a 51cbcc8d 0eb59901 144d4ffd ef954f88"
|
||||
"enemies": {"enemy_1249_lysdb_2":[60,5,55,4173,151824],"enemy_1251_lysyta":[51,10,41,582,134181],"enemy_1329_cbshld":[39,0,39,18473,43925]},
|
||||
"hooks": [1,181,6619,1165,1165,1233,1177,0,33,172,12,10,0,9554,16,22,150,135,1,33,0,0,0],
|
||||
"events": {"atk":1165,"deploy":28,"die":37,"dmg":1177,"engage":12,"fx":90,"leak":135,"skill":22,"spawn":169,"status":32},
|
||||
"fx": {"explode":16,"shieldBreak":56,"summon":18},
|
||||
"snaps": "819c4dcb 083b795d aee1d4d2 fe976322 068f4029 96e4c62c 134e840d 50bab74e 67a66b15 7d1d26d1 c3e4c11d 21a32a09 31854436 06e45560 8b0430ec 14b4e3f6 0c01415a f59d03ed 7c6528ac 7f0f3e1a 49dd1890 cccac255"
|
||||
},
|
||||
"diy-112": {
|
||||
"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=doroth/S1/002_doroth 5_diy2_b=doroth/S2/002_doroth 5_diy1_b=doroth/S3/002_doroth 5_diy2_b=doroth/S1/003_doroth 5_diy1_b=doroth/S2/003_doroth 5_diy2_b=doroth/S3/003_doroth 6_diy1_a=doroth/S1 6_diy2_a=doroth/S2 6_diy1_a=doroth/S3 6_diy2_b=doroth/S1 6_diy1_b=doroth/S2 6_diy2_b=doroth/S3",
|
||||
"fast": false,
|
||||
"kind": "normal",
|
||||
"stageId": "act1autochess_m02",
|
||||
"modeId": "mode_multi_abyss",
|
||||
"round": 12,
|
||||
"round": 13,
|
||||
"seed": 3106580722,
|
||||
"waveId": "act1autochess_h05",
|
||||
"time": 197.6,
|
||||
"ticks": 5928,
|
||||
"waveId": "act1autochess_h06",
|
||||
"time": 214.33,
|
||||
"ticks": 6430,
|
||||
"reason": "cleared",
|
||||
"killed": 5,
|
||||
"total": 135,
|
||||
"killed": 0,
|
||||
"total": 105,
|
||||
"unspawned": 0,
|
||||
"bossHpLeft": null,
|
||||
"rngDraws": 62,
|
||||
"rngDraws": 16,
|
||||
"errors": {"count":0,"kinds":[]},
|
||||
"players": {"p1":{"killed":5,"total":135,"perfect":false,"leaks":130,"leaksUncounted":0,"coins":0,"dmg":185275,"bossDmg":0,"heal":1681,"deaths":24,"layerGains":{}}},
|
||||
"players": {"p1":{"killed":0,"total":105,"perfect":false,"leaks":105,"leaksUncounted":0,"coins":0,"dmg":44487,"bossDmg":0,"heal":0,"deaths":29,"layerGains":{}}},
|
||||
"units": [
|
||||
["p1",1,"op","chess_char_5_diy1_a",2,null,0,0,3,0,2926,2604,0,22,0],
|
||||
["p1",2,"op","chess_char_5_diy2_b",2,"uniequip_002_acfend",0,0,1,1,20026,3371,0,42,1],
|
||||
["p1",3,"op","chess_char_5_diy1_a",2,null,1529,1,160,1,23977,3058,0,14,2],
|
||||
["p1",4,"op","chess_char_5_diy2_b",2,"uniequip_002_acpion",0,0,100,1,55389,3808,0,31,3],
|
||||
["p1",5,"op","chess_char_5_diy1_a",2,null,0,0,125,0,17384,5276,0,16,1],
|
||||
["p1",6,"op","chess_char_5_diy2_b",2,"uniequip_002_acguad",0,0,149,1,33388,6822,0,19,1],
|
||||
["p1",7,"op","chess_char_5_diy1_a",2,null,0,0,104,0,6865,2266,0,17,1],
|
||||
["p1",8,"op","chess_char_5_diy2_b",2,"none",0,0,98,0,16470,3087,0,37,1],
|
||||
["p1",9,"op","chess_char_5_diy1_a",2,null,0,0,159,0,0,4208,1476,3,1],
|
||||
["p1",10,"op","chess_char_5_diy2_b",2,"none",0,0,95,0,0,3508,206,1,1],
|
||||
["p1",11,"op","chess_char_5_diy1_a",2,null,0,0,137,0,1304,2796,0,4,0],
|
||||
["p1",12,"op","chess_char_5_diy2_b",2,"none",0,0,109,1,7547,2262,0,19,1]
|
||||
["p1",1,"op","chess_char_5_diy1_b",0,"uniequip_002_doroth",0,0,144,0,897,4545,0,19,1],
|
||||
["p1",2,"op","chess_char_5_diy2_b",1,"uniequip_002_doroth",0,0,150,0,963,4545,0,21,1],
|
||||
["p1",3,"op","chess_char_5_diy1_b",2,"uniequip_002_doroth",0,0,155,0,6535,4545,0,15,1],
|
||||
["p1",4,"op","chess_char_5_diy2_b",0,"uniequip_003_doroth",807.62,1,158,0,5522,3377,0,17,1],
|
||||
["p1",5,"op","chess_char_5_diy1_b",1,"uniequip_003_doroth",0,0,109,0,698,2790,0,24,1],
|
||||
["p1",6,"op","chess_char_5_diy2_b",2,"uniequip_003_doroth",0,0,90,0,2302,2790,0,17,1],
|
||||
["p1",7,"op","chess_char_6_diy1_a",0,null,0,0,86,0,95,2372,0,4,0],
|
||||
["p1",8,"op","chess_char_6_diy2_a",1,null,0,0,138,0,844,3558,0,13,0],
|
||||
["p1",9,"op","chess_char_6_diy1_a",2,null,0,0,79,0,516,2372,0,9,0],
|
||||
["p1",10,"op","chess_char_6_diy2_b",0,"none",0,0,133,0,831,4185,0,6,0],
|
||||
["p1",11,"op","chess_char_6_diy1_b",1,"none",0,0,125,0,944,2790,0,21,1],
|
||||
["p1",12,"op","chess_char_6_diy2_b",2,"none",0,0,85,0,736,2790,0,16,1],
|
||||
["p1","~1","token","token_10025_doroth_recttp",null,null,1000,0,3,0,6420,0,0,0,null],
|
||||
["p1","~2","token","token_10025_doroth_recttp",null,null,1000,0,4,0,0,0,0,0,null],
|
||||
["p1","~3","token","token_10025_doroth_recttp",null,null,1000,0,6,0,5867,0,0,0,null],
|
||||
["p1","~4","token","token_10025_doroth_recttp",null,null,1000,0,9,0,0,0,0,0,null],
|
||||
["p1","~5","token","token_10025_doroth_recttp",null,null,1000,0,10,0,0,0,0,0,null],
|
||||
["p1","~6","token","token_10025_doroth_recttp",null,null,1000,0,13,0,2749,0,0,0,null],
|
||||
["p1","~7","token","token_10025_doroth_recttp",null,null,1000,0,15,0,0,0,0,0,null],
|
||||
["p1","~8","token","token_10025_doroth_recttp",null,null,1000,0,82,0,0,0,0,0,null],
|
||||
["p1","~9","token","token_10025_doroth_recttp",null,null,1000,0,88,0,0,0,0,0,null],
|
||||
["p1","~10","token","token_10025_doroth_recttp",null,null,1000,0,92,0,0,0,0,0,null],
|
||||
["p1","~11","token","token_10025_doroth_recttp",null,null,1000,0,103,0,0,0,0,0,null],
|
||||
["p1","~12","token","token_10025_doroth_recttp",null,null,1000,0,126,0,0,0,0,0,null],
|
||||
["p1","~13","token","token_10025_doroth_recttp",null,null,1000,0,145,0,0,0,0,0,null],
|
||||
["p1","~14","token","token_10025_doroth_recttp",null,null,1000,0,151,0,559,0,0,0,null],
|
||||
["p1","~15","token","token_10025_doroth_recttp",null,null,1000,0,156,0,5374,0,0,0,null],
|
||||
["p1","~16","token","token_10025_doroth_recttp",null,null,1000,0,157,0,2634,0,0,0,null],
|
||||
["p1","~17","token","token_10025_doroth_recttp",null,null,1000,1,159,0,0,0,0,0,null],
|
||||
["p1","~18","token","token_10025_doroth_recttp",null,null,1000,1,160,0,0,0,0,0,null]
|
||||
],
|
||||
"enemies": {"enemy_2021_syfish":[105,5,100,10120,180575],"enemy_2025_syufo":[30,0,30,32947,4699]},
|
||||
"hooks": [1,160,5928,492,492,643,752,4,29,159,13,13,0,12002,22,25,135,130,1,50,0,13,16],
|
||||
"events": {"atk":492,"deploy":25,"die":29,"dmg":752,"engage":10,"fx":103,"heal":4,"leak":130,"skill":26,"spawn":147,"status":96},
|
||||
"fx": {"aoe":30,"burst":13,"dodge":16,"dp":7,"slash":37},
|
||||
"snaps": "3c77b2f2 2d68717f e1b87890 e08ce3ac 8a5e7f1f 31ef2cc5 8b253efe 370529ae 3775dd9d 50244d35 5a945311 165da72c 11bc641a ffc8aafe 9cfca40e dd5a9212 99088f8a b69dee9f 2eea76c2 190540f3"
|
||||
"enemies": {"enemy_1158_divman":[51,0,51,11231,28615],"enemy_1160_hvyslr_2":[24,0,24,7332,8469],"enemy_1161_tidmag_2":[30,0,30,22097,7403]},
|
||||
"hooks": [1,153,6430,309,309,300,337,0,29,150,8,8,0,7963,19,10,105,105,1,29,0,0,0],
|
||||
"events": {"atk":318,"deploy":48,"die":45,"dmg":337,"engage":12,"fx":26,"leak":105,"skill":16,"spawn":135,"status":34},
|
||||
"fx": {"explode":6,"mark":2,"summon":18},
|
||||
"snaps": "ab1e3054 02cceb3c 0256638c 89158a8e 95da5496 f290c14c 746cf9e6 e2933b81 2cb47d37 3f4cb7fe 2c5d3c8e c660c47e 1799d85d 94b18aa6 9be675f2 66626e04 b5ea1973 cd50672c 702652fd 9c963dce 31e2cdc8 31746cb0"
|
||||
},
|
||||
"diy-113": {
|
||||
"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": "5_diy1_a=aglna2/S1 5_diy2_a=aglna2/S2 5_diy1_a=aglna2/S3 5_diy2_b=aglna2/S1 5_diy1_b=aglna2/S2 5_diy2_b=aglna2/S3 6_diy1_b=doroth/S1/002_doroth 6_diy2_b=doroth/S2/002_doroth 6_diy1_b=doroth/S3/002_doroth 6_diy2_b=doroth/S1/003_doroth 6_diy1_b=doroth/S2/003_doroth 6_diy2_b=doroth/S3/003_doroth",
|
||||
"fast": false,
|
||||
"kind": "normal",
|
||||
"stageId": "act1autochess_m03",
|
||||
"modeId": "mode_multi_funny",
|
||||
"round": 12,
|
||||
"round": 13,
|
||||
"seed": 1466195980,
|
||||
"waveId": "act1autochess_h05",
|
||||
"time": 211.27,
|
||||
"ticks": 6338,
|
||||
"waveId": "act1autochess_h06",
|
||||
"time": 193.63,
|
||||
"ticks": 5809,
|
||||
"reason": "cleared",
|
||||
"killed": 151,
|
||||
"total": 189,
|
||||
"killed": 124,
|
||||
"total": 144,
|
||||
"unspawned": 0,
|
||||
"bossHpLeft": null,
|
||||
"rngDraws": 770,
|
||||
"rngDraws": 12,
|
||||
"errors": {"count":0,"kinds":[]},
|
||||
"players": {"p1":{"killed":151,"total":189,"perfect":false,"leaks":38,"leaksUncounted":0,"coins":0,"dmg":422472,"bossDmg":0,"heal":50683,"deaths":3,"layerGains":{}}},
|
||||
"players": {"p1":{"killed":124,"total":144,"perfect":false,"leaks":20,"leaksUncounted":0,"coins":0,"dmg":984812,"bossDmg":0,"heal":0,"deaths":15,"layerGains":{}}},
|
||||
"units": [
|
||||
["p1",1,"op","chess_char_5_diy1_a",0,null,1865,1,204,5,28825,1865,0,96,2],
|
||||
["p1",2,"op","chess_char_5_diy2_b",0,"uniequip_002_sharp2",2374,1,200,63,91421,3702,0,121,2],
|
||||
["p1",3,"op","chess_char_5_diy1_a",2,null,1154,1,179,1,15866,19963,0,168,0],
|
||||
["p1",4,"op","chess_char_5_diy2_b",2,"uniequip_002_acspec",1448,1,11,4,39522,20556,0,195,0],
|
||||
["p1",5,"op","chess_char_5_diy1_a",2,null,1272,1,8,17,17523,0,0,96,2],
|
||||
["p1",6,"op","chess_char_5_diy2_b",2,"uniequip_002_acnipe",1587,1,12,15,48134,0,0,116,2],
|
||||
["p1",7,"op","chess_char_5_diy1_a",2,null,1372,1,14,12,30073,0,0,50,2],
|
||||
["p1",8,"op","chess_char_5_diy2_b",2,"uniequip_002_accast",1749,1,4,26,80564,0,0,71,2],
|
||||
["p1",9,"op","chess_char_5_diy1_a",2,null,1224,1,6,0,0,0,26547,60,2],
|
||||
["p1",10,"op","chess_char_5_diy2_b",2,"uniequip_002_acmedc",1414,1,9,0,0,9990,24136,55,2],
|
||||
["p1",11,"op","chess_char_5_diy1_a",2,null,1160,1,13,6,23978,0,0,139,2],
|
||||
["p1",12,"op","chess_char_5_diy2_b",2,"uniequip_002_acsupo",1430,1,15,2,46566,0,0,129,2],
|
||||
["p1",1,"op","chess_char_5_diy1_a",0,null,0,0,7,2,17798,1884,0,36,1],
|
||||
["p1",2,"op","chess_char_5_diy2_a",1,null,0,0,10,23,131567,1884,0,51,2],
|
||||
["p1",3,"op","chess_char_5_diy1_a",2,null,1884,1,185,21,96076,1884,0,49,1],
|
||||
["p1",4,"op","chess_char_5_diy2_b",0,"none",2194,1,181,3,19946,2238,0,23,2],
|
||||
["p1",5,"op","chess_char_5_diy1_b",1,"none",621,1,167,43,334891,3811,0,102,3],
|
||||
["p1",6,"op","chess_char_5_diy2_b",2,"none",0,0,137,10,233210,4432,0,51,2],
|
||||
["p1",7,"op","chess_char_6_diy1_b",0,"uniequip_002_doroth",0,0,11,0,17440,1550,0,42,2],
|
||||
["p1",8,"op","chess_char_6_diy2_b",1,"uniequip_002_doroth",0,0,121,5,24147,3100,0,59,2],
|
||||
["p1",9,"op","chess_char_6_diy1_b",2,"uniequip_002_doroth",1550,1,175,1,14025,3100,0,36,2],
|
||||
["p1",10,"op","chess_char_6_diy2_b",0,"uniequip_003_doroth",0,0,4,0,34599,1395,0,92,5],
|
||||
["p1",11,"op","chess_char_6_diy1_b",1,"uniequip_003_doroth",0,0,8,11,26576,1395,0,84,5],
|
||||
["p1",12,"op","chess_char_6_diy2_b",2,"uniequip_003_doroth",0,0,13,3,24342,1395,0,66,5],
|
||||
["-","~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]
|
||||
["-","~3","device","trap_1105_accrate",null,null,100,1,3,0,0,0,0,0,null],
|
||||
["p1","~1","token","token_10025_doroth_recttp",null,null,1000,0,5,0,2137,0,0,0,null],
|
||||
["p1","~2","token","token_10025_doroth_recttp",null,null,1000,0,6,1,50,0,0,0,null],
|
||||
["p1","~3","token","token_10025_doroth_recttp",null,null,1000,0,9,0,0,0,0,0,null],
|
||||
["p1","~4","token","token_10025_doroth_recttp",null,null,1000,0,12,0,2170,0,0,0,null],
|
||||
["p1","~5","token","token_10025_doroth_recttp",null,null,1000,0,14,0,0,0,0,0,null],
|
||||
["p1","~6","token","token_10025_doroth_recttp",null,null,1000,0,18,0,3236,0,0,0,null],
|
||||
["p1","~7","token","token_10025_doroth_recttp",null,null,1000,0,19,1,1122,0,0,0,null],
|
||||
["p1","~8","token","token_10025_doroth_recttp",null,null,1000,0,114,0,0,0,0,0,null],
|
||||
["p1","~9","token","token_10025_doroth_recttp",null,null,1000,0,122,0,1481,0,0,0,null],
|
||||
["p1","~10","token","token_10025_doroth_recttp",null,null,1000,0,123,0,0,0,0,0,null],
|
||||
["p1","~11","token","token_10025_doroth_recttp",null,null,1000,1,176,0,0,0,0,0,null],
|
||||
["p1","~12","token","token_10025_doroth_recttp",null,null,1000,1,177,0,0,0,0,0,null]
|
||||
],
|
||||
"enemies": {
|
||||
"enemy_1197_sfshu": [18,16,2,121,39812],
|
||||
"enemy_1197_sfshu_2": [27,22,5,11140,77179],
|
||||
"enemy_1198_msfshu": [48,40,8,0,123],
|
||||
"enemy_1198_msfshu_2": [66,56,10,0,234],
|
||||
"enemy_9010_acpupp": [30,17,13,44816,305124]
|
||||
},
|
||||
"hooks": [1,207,6338,1448,1448,1915,1565,173,154,192,20,21,0,36912,6057,35,189,38,1,177,0,0,0],
|
||||
"events": {"atk":1625,"deploy":15,"die":154,"dmg":1563,"engage":10,"fx":187,"heal":142,"leak":38,"skill":46,"spawn":204,"status":841},
|
||||
"fx": {"aoe":10,"dodge":10,"ember":23,"revive":2,"shieldBreak":78,"spGain":3,"summon":38,"telegraph":23},
|
||||
"snaps": "ef5e10e1 f8ef6202 0856fbf3 743f7e3c bdd7c9df fbb1f33e d7aef25c 62f3b029 6462dcba a814041c 5c101efb e2611c0f 4077ab11 206c4c48 2e64350a 0cb2085c 5cf33d8a 34d88b74 6d33ce13 1a4e3d75 902d09d3 34dd3e78"
|
||||
"enemies": {"enemy_2021_syfish":[99,96,3,726,370276],"enemy_2025_syufo":[45,28,17,27342,614536]},
|
||||
"hooks": [1,178,5809,958,958,1690,1829,0,139,169,32,30,63,16775,40,29,144,20,1,139,0,22,0],
|
||||
"events": {"atk":1213,"deploy":31,"die":149,"dmg":1829,"engage":12,"fx":68,"leak":20,"skill":62,"spawn":171,"status":391},
|
||||
"fx": {"burst":22,"dash":5,"explode":6,"mark":3,"phase":9,"summon":12,"takeoff":11},
|
||||
"snaps": "f0fcecd1 198bac1c 13c7411a f174992a 0c511c1a 37ce1e0e 968a9a14 d9bd5236 d22e1529 a1cb6654 090a13b3 a73734ac f6b56bdb e713c85f 61c59e4c d2f8b6a9 26dee3a7 a42ed4fc 879be5fe 52526ea2"
|
||||
},
|
||||
"diy-114": {
|
||||
"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": "6_diy1_a=aglna2/S1 6_diy2_a=aglna2/S2 6_diy1_a=aglna2/S3 6_diy2_b=aglna2/S1 6_diy1_b=aglna2/S2 6_diy2_b=aglna2/S3 5_diy1_a=ebnhlz/S1 5_diy2_a=ebnhlz/S2 5_diy1_a=ebnhlz/S3 5_diy2_b=ebnhlz/S1 5_diy1_b=ebnhlz/S2 5_diy2_b=ebnhlz/S3",
|
||||
"fast": false,
|
||||
"kind": "normal",
|
||||
"stageId": "act1autochess_m04",
|
||||
@@ -4836,77 +4864,316 @@
|
||||
"round": 13,
|
||||
"seed": 4120508441,
|
||||
"waveId": "act1autochess_h06",
|
||||
"time": 211.47,
|
||||
"ticks": 6344,
|
||||
"time": 205.67,
|
||||
"ticks": 6170,
|
||||
"reason": "cleared",
|
||||
"killed": 108,
|
||||
"total": 183,
|
||||
"killed": 124,
|
||||
"total": 189,
|
||||
"unspawned": 0,
|
||||
"bossHpLeft": null,
|
||||
"rngDraws": 552,
|
||||
"rngDraws": 8,
|
||||
"errors": {"count":0,"kinds":[]},
|
||||
"players": {"p1":{"killed":108,"total":183,"perfect":false,"leaks":75,"leaksUncounted":0,"coins":0,"dmg":569355,"bossDmg":0,"heal":49617,"deaths":16,"layerGains":{}}},
|
||||
"players": {"p1":{"killed":124,"total":189,"perfect":false,"leaks":65,"leaksUncounted":0,"coins":0,"dmg":549243,"bossDmg":0,"heal":0,"deaths":16,"layerGains":{}}},
|
||||
"units": [
|
||||
["p1",1,"op","chess_char_6_diy1_a",2,null,0,0,170,2,646,5208,0,11,1],
|
||||
["p1",2,"op","chess_char_6_diy2_b",2,"uniequip_002_acfend",3431,1,207,3,16580,3431,0,28,1],
|
||||
["p1",3,"op","chess_char_6_diy1_a",2,null,0,0,178,6,1769,3058,0,7,2],
|
||||
["p1",4,"op","chess_char_6_diy2_b",2,"uniequip_002_acpion",0,0,152,13,48051,7165,0,39,3],
|
||||
["p1",5,"op","chess_char_6_diy1_a",2,null,0,0,194,3,45541,20360,0,67,3],
|
||||
["p1",6,"op","chess_char_6_diy2_b",2,"uniequip_002_acguad",1,1,205,3,73708,14091,0,70,3],
|
||||
["p1",7,"op","chess_char_6_diy1_a",2,null,1272,1,4,4,15133,0,0,34,2],
|
||||
["p1",8,"op","chess_char_6_diy2_b",2,"uniequip_002_acnipe",1643,1,5,39,102309,0,0,185,3],
|
||||
["p1",9,"op","chess_char_6_diy1_a",2,null,1372,1,15,2,190213,0,0,75,2],
|
||||
["p1",10,"op","chess_char_6_diy2_b",2,"uniequip_002_accast",0,0,157,11,75404,3638,0,29,1],
|
||||
["p1",11,"op","chess_char_6_diy1_a",2,null,0,0,145,0,0,5382,14474,25,2],
|
||||
["p1",12,"op","chess_char_6_diy2_b",2,"uniequip_002_acmedc",0,0,141,0,0,24140,35143,45,2],
|
||||
["p1",1,"op","chess_char_6_diy1_a",0,null,1884,1,191,8,54401,1884,0,59,2],
|
||||
["p1",2,"op","chess_char_6_diy2_a",1,null,0,0,210,41,38926,3768,0,48,2],
|
||||
["p1",3,"op","chess_char_6_diy1_a",2,null,1884,1,218,11,57866,1884,0,43,1],
|
||||
["p1",4,"op","chess_char_6_diy2_b",0,"none",2216,1,196,14,85238,2216,0,68,2],
|
||||
["p1",5,"op","chess_char_6_diy1_b",1,"none",0,0,153,18,110415,4432,0,41,1],
|
||||
["p1",6,"op","chess_char_6_diy2_b",2,"none",0,0,182,13,101208,4432,0,48,1],
|
||||
["p1",7,"op","chess_char_5_diy1_a",0,null,1359,1,4,0,0,0,0,0,0],
|
||||
["p1",8,"op","chess_char_5_diy2_a",1,null,1359,1,5,2,31646,0,0,53,53],
|
||||
["p1",9,"op","chess_char_5_diy1_a",2,null,1359,1,154,0,39160,1359,0,42,3],
|
||||
["p1",10,"op","chess_char_5_diy2_b",0,"none",0,0,180,2,9770,3140,0,25,2],
|
||||
["p1",11,"op","chess_char_5_diy1_b",1,"none",0,0,175,0,6679,3140,0,21,4],
|
||||
["p1",12,"op","chess_char_5_diy2_b",2,"none",0,0,141,4,9738,3140,0,12,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]
|
||||
["-","~3","device","trap_1105_accrate",null,null,100,1,3,0,0,0,0,0,null],
|
||||
["p1","~1","token","token_10024_ebnhlz_rcube",null,null,1000,0,37,0,2623,0,0,0,null],
|
||||
["p1","~2","token","token_10024_ebnhlz_rcube",null,null,1000,0,53,0,1,0,0,0,null],
|
||||
["p1","~3","token","token_10024_ebnhlz_rcube",null,null,1000,0,71,0,1572,0,0,0,null],
|
||||
["p1","~4","token","token_10024_ebnhlz_rcube",null,null,1000,0,83,0,0,0,0,0,null]
|
||||
],
|
||||
"enemies": {
|
||||
"enemy_1197_sfshu": [15,10,5,3608,50780],
|
||||
"enemy_1197_sfshu_2": [39,20,19,19927,153485],
|
||||
"enemy_1198_msfshu": [30,21,9,0,67],
|
||||
"enemy_1198_msfshu_2": [60,47,13,0,195],
|
||||
"enemy_9010_acpupp": [39,10,29,49219,443858]
|
||||
"enemy_1197_sfshu": [15,11,4,2272,51823],
|
||||
"enemy_1197_sfshu_2": [39,21,18,6413,151033],
|
||||
"enemy_1198_msfshu": [33,26,7,0,81],
|
||||
"enemy_1198_msfshu_2": [63,54,9,0,225],
|
||||
"enemy_9010_acpupp": [39,12,27,16255,412992]
|
||||
},
|
||||
"hooks": [1,207,6344,800,800,3158,2921,145,124,199,25,23,0,25007,0,55,183,75,1,144,0,0,15],
|
||||
"events": {"atk":991,"deploy":21,"die":124,"dmg":2921,"engage":10,"fx":210,"heal":125,"leak":75,"skill":48,"spawn":198,"status":22},
|
||||
"fx": {"aoe":45,"dodge":15,"dp":24,"ember":11,"revive":1,"shieldBreak":35,"slash":36,"spGain":2,"summon":30,"telegraph":11},
|
||||
"snaps": "acd854e9 b9f7cc4f 3712bbfa 1c0f22b1 f383429e eef02120 58be1170 cac5fb4b fb5760b0 40f677c1 61597d23 3c76af95 16bbb8e1 63da3fda 1474707d 354bc689 ac3b2399 2d6718dd 4577d3fd cc919f09 6ccbba2f 92e55460"
|
||||
"hooks": [1,218,6170,550,550,2484,2286,0,140,209,72,69,61,11555,18,37,189,65,1,153,0,0,0],
|
||||
"events": {"atk":913,"deploy":26,"die":144,"dmg":2286,"engage":11,"fx":143,"leak":65,"skill":141,"spawn":208,"status":408},
|
||||
"fx": {"aoe":4,"dash":3,"displace":8,"ember":13,"pull":8,"shieldBreak":37,"summon":36,"takeoff":9,"telegraph":13,"volley":12},
|
||||
"snaps": "97d774f4 d56f2c40 38cfa54f 7e2be674 45424794 b549bc6d d02f3886 8eef35d8 186b734d ef22c4fe 6eed958f 1c82384a 2d257b7e e4c0bf84 b322c2f5 561c30ac c139ed4b 0f61007b e04f8bf8 c8e87b59 3c8fbdd4"
|
||||
},
|
||||
"diy-115": {
|
||||
"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_b=ebnhlz/S1/002_ebnhlz 5_diy2_b=ebnhlz/S2/002_ebnhlz 5_diy1_b=ebnhlz/S3/002_ebnhlz 5_diy2_b=ebnhlz/S1/003_ebnhlz 5_diy1_b=ebnhlz/S2/003_ebnhlz 5_diy2_b=ebnhlz/S3/003_ebnhlz 5_diy1_b=ebnhlz/S1/004_ebnhlz 5_diy2_b=ebnhlz/S2/004_ebnhlz 5_diy1_b=ebnhlz/S3/004_ebnhlz 6_diy1_a=ebnhlz/S1 6_diy2_a=ebnhlz/S2 6_diy1_a=ebnhlz/S3",
|
||||
"fast": false,
|
||||
"kind": "normal",
|
||||
"stageId": "act1autochess_m05",
|
||||
"modeId": "mode_multi_normal",
|
||||
"round": 13,
|
||||
"round": 12,
|
||||
"seed": 2479968306,
|
||||
"waveId": "act1autochess_h06",
|
||||
"time": 225.33,
|
||||
"ticks": 6760,
|
||||
"waveId": "act1autochess_h05",
|
||||
"time": 193.8,
|
||||
"ticks": 5814,
|
||||
"reason": "cleared",
|
||||
"killed": 12,
|
||||
"killed": 195,
|
||||
"total": 246,
|
||||
"unspawned": 0,
|
||||
"bossHpLeft": null,
|
||||
"rngDraws": 0,
|
||||
"errors": {"count":0,"kinds":[]},
|
||||
"players": {"p1":{"killed":195,"total":246,"perfect":false,"leaks":51,"leaksUncounted":0,"coins":0,"dmg":515319,"bossDmg":0,"heal":0,"deaths":9,"layerGains":{}}},
|
||||
"units": [
|
||||
["p1",1,"op","chess_char_5_diy1_b",0,"uniequip_002_ebnhlz",1570,1,10,7,61901,0,0,45,5],
|
||||
["p1",2,"op","chess_char_5_diy2_b",1,"uniequip_002_ebnhlz",1570,1,11,9,35088,0,0,28,25],
|
||||
["p1",3,"op","chess_char_5_diy1_b",2,"uniequip_002_ebnhlz",1570,1,1,9,12719,0,0,24,4],
|
||||
["p1",4,"op","chess_char_5_diy2_b",0,"uniequip_003_ebnhlz",1650,1,3,21,55599,0,0,72,7],
|
||||
["p1",5,"op","chess_char_5_diy1_b",1,"uniequip_003_ebnhlz",1650,1,5,7,56916,0,0,60,33],
|
||||
["p1",6,"op","chess_char_5_diy2_b",2,"uniequip_003_ebnhlz",1650,1,7,12,124221,0,0,54,4],
|
||||
["p1",7,"op","chess_char_5_diy1_b",0,"uniequip_004_ebnhlz",1570,1,9,0,0,0,0,0,3],
|
||||
["p1",8,"op","chess_char_5_diy2_b",1,"uniequip_004_ebnhlz",1570,1,12,6,63692,0,0,49,11],
|
||||
["p1",9,"op","chess_char_5_diy1_b",2,"uniequip_004_ebnhlz",0,0,194,2,8623,3140,0,8,2],
|
||||
["p1",10,"op","chess_char_6_diy1_a",0,null,0,0,172,10,12844,2718,0,33,2],
|
||||
["p1",11,"op","chess_char_6_diy2_a",1,null,1025.48,1,275,3,14668,3052,0,17,7],
|
||||
["p1",12,"op","chess_char_6_diy1_a",2,null,0,0,269,0,16023,4077,0,12,1],
|
||||
["p1","~1","token","token_10024_ebnhlz_rcube",null,null,1000,0,29,0,10534,0,0,0,null],
|
||||
["p1","~2","token","token_10024_ebnhlz_rcube",null,null,1000,0,32,0,0,0,0,0,null],
|
||||
["p1","~3","token","token_10024_ebnhlz_rcube",null,null,1000,0,56,0,7762,0,0,0,null],
|
||||
["p1","~4","token","token_10024_ebnhlz_rcube",null,null,1000,0,78,1,4611,0,0,0,null],
|
||||
["p1","~5","token","token_10024_ebnhlz_rcube",null,null,1000,0,87,0,0,0,0,0,null],
|
||||
["p1","~6","token","token_10024_ebnhlz_rcube",null,null,1000,0,106,0,7762,0,0,0,null],
|
||||
["p1","~7","token","token_10024_ebnhlz_rcube",null,null,1000,0,128,0,0,0,0,0,null],
|
||||
["p1","~8","token","token_10024_ebnhlz_rcube",null,null,1000,0,133,0,2772,0,0,0,null],
|
||||
["p1","~9","token","token_10024_ebnhlz_rcube",null,null,1000,0,150,0,2219,0,0,0,null],
|
||||
["p1","~10","token","token_10024_ebnhlz_rcube",null,null,1000,0,162,0,0,0,0,0,null],
|
||||
["p1","~11","token","token_10024_ebnhlz_rcube",null,null,1000,0,169,1,4611,0,0,0,null],
|
||||
["p1","~12","token","token_10024_ebnhlz_rcube",null,null,1000,0,197,0,2218,0,0,0,null],
|
||||
["p1","~13","token","token_10024_ebnhlz_rcube",null,null,1000,0,219,0,0,0,0,0,null],
|
||||
["p1","~14","token","token_10024_ebnhlz_rcube",null,null,1000,0,220,0,2772,0,0,0,null],
|
||||
["p1","~15","token","token_10024_ebnhlz_rcube",null,null,1000,0,240,0,2776,0,0,0,null],
|
||||
["p1","~16","token","token_10024_ebnhlz_rcube",null,null,1000,1,254,0,0,0,0,0,null],
|
||||
["p1","~17","token","token_10024_ebnhlz_rcube",null,null,1000,0,256,0,4990,0,0,0,null]
|
||||
],
|
||||
"enemies": {
|
||||
"enemy_1195_sfyin": [45,24,21,8753,152906],
|
||||
"enemy_1196_msfyin": [48,44,4,0,90],
|
||||
"enemy_1197_sfshu": [39,30,9,4234,206523],
|
||||
"enemy_1198_msfshu": [90,76,14,0,242],
|
||||
"enemy_1199_sfjin": [12,12,0,0,186325],
|
||||
"enemy_1200_msfjin": [12,9,3,0,348]
|
||||
},
|
||||
"hooks": [1,281,5814,450,450,1977,2088,0,204,271,104,102,0,27867,0,31,246,51,1,204,0,0,0],
|
||||
"events": {"atk":450,"deploy":35,"die":220,"dmg":2088,"engage":11,"fx":189,"leak":51,"skill":206,"spawn":275},
|
||||
"fx": {"aoe":11,"displace":13,"pull":13,"summon":83,"volley":69},
|
||||
"snaps": "b588f908 018cc7d1 02df24b0 d7fb7008 01901fca 88a112ed f0544f8d 91caefd2 24dd8e93 26798334 2b5c19c3 091cb2b8 45da698c 1d8e5f22 91d224aa a413c6ff af6b4e5f d69eff16 da950540 179fa098"
|
||||
},
|
||||
"diy-116": {
|
||||
"about": "6_diy1_b=ebnhlz/S1 6_diy2_b=ebnhlz/S2 6_diy1_b=ebnhlz/S3 6_diy2_b=ebnhlz/S1/002_ebnhlz 6_diy1_b=ebnhlz/S2/002_ebnhlz 6_diy2_b=ebnhlz/S3/002_ebnhlz 6_diy1_b=ebnhlz/S1/003_ebnhlz 6_diy2_b=ebnhlz/S2/003_ebnhlz 6_diy1_b=ebnhlz/S3/003_ebnhlz 6_diy2_b=ebnhlz/S1/004_ebnhlz 6_diy1_b=ebnhlz/S2/004_ebnhlz 6_diy2_b=ebnhlz/S3/004_ebnhlz",
|
||||
"fast": false,
|
||||
"kind": "normal",
|
||||
"stageId": "act1autochess_m06",
|
||||
"modeId": "mode_multi_hard",
|
||||
"round": 13,
|
||||
"seed": 839702567,
|
||||
"waveId": "act1autochess_h06",
|
||||
"time": 217.6,
|
||||
"ticks": 6528,
|
||||
"reason": "cleared",
|
||||
"killed": 1,
|
||||
"total": 123,
|
||||
"unspawned": 0,
|
||||
"bossHpLeft": null,
|
||||
"rngDraws": 169,
|
||||
"rngDraws": 5,
|
||||
"errors": {"count":0,"kinds":[]},
|
||||
"players": {"p1":{"killed":12,"total":123,"perfect":false,"leaks":111,"leaksUncounted":0,"coins":0,"dmg":249484,"bossDmg":0,"heal":0,"deaths":20,"layerGains":{}}},
|
||||
"players": {"p1":{"killed":1,"total":123,"perfect":false,"leaks":122,"leaksUncounted":0,"coins":0,"dmg":271272,"bossDmg":0,"heal":0,"deaths":19,"layerGains":{}}},
|
||||
"units": [
|
||||
["p1",1,"op","chess_char_6_diy1_a",0,null,0,0,146,4,32431,5595,0,37,1],
|
||||
["p1",2,"op","chess_char_6_diy2_b",0,"uniequip_002_sharp2",0,0,144,5,64091,7482,0,44,1],
|
||||
["p1",3,"op","chess_char_6_diy1_a",2,null,1154,1,147,0,14524,8078,0,83,0],
|
||||
["p1",4,"op","chess_char_6_diy2_b",2,"uniequip_002_acspec",1484,1,145,2,43730,10388,0,85,0],
|
||||
["p1",5,"op","chess_char_6_diy1_a",2,null,1160,1,5,0,31540,0,0,62,2],
|
||||
["p1",6,"op","chess_char_6_diy2_b",2,"uniequip_002_acsupo",1450,1,6,0,63168,0,0,91,2]
|
||||
["p1",1,"op","chess_char_6_diy1_b",0,"none",1570,1,147,0,23015,3140,0,31,2],
|
||||
["p1",2,"op","chess_char_6_diy2_b",1,"none",0,0,123,0,19192,3140,0,10,1],
|
||||
["p1",3,"op","chess_char_6_diy1_b",2,"none",1570,1,134,0,52931,1570,0,26,2],
|
||||
["p1",4,"op","chess_char_6_diy2_b",0,"uniequip_002_ebnhlz",0,0,146,0,15092,3140,0,15,1],
|
||||
["p1",5,"op","chess_char_6_diy1_b",1,"uniequip_002_ebnhlz",0,0,82,0,13594,3140,0,7,1],
|
||||
["p1",6,"op","chess_char_6_diy2_b",2,"uniequip_002_ebnhlz",0,0,78,0,9982,3140,0,6,0],
|
||||
["p1",7,"op","chess_char_6_diy1_b",0,"uniequip_003_ebnhlz",0,0,74,0,14427,3490,0,4,0],
|
||||
["p1",8,"op","chess_char_6_diy2_b",1,"uniequip_003_ebnhlz",0,0,7,0,14109,1745,0,5,1],
|
||||
["p1",9,"op","chess_char_6_diy1_b",2,"uniequip_003_ebnhlz",0,0,9,0,19195,1745,0,7,1],
|
||||
["p1",10,"op","chess_char_6_diy2_b",0,"uniequip_004_ebnhlz",0,0,79,0,8532,3140,0,4,0],
|
||||
["p1",11,"op","chess_char_6_diy1_b",1,"uniequip_004_ebnhlz",0,0,4,1,20024,1570,0,6,1],
|
||||
["p1",12,"op","chess_char_6_diy2_b",2,"uniequip_004_ebnhlz",0,0,6,0,34442,1570,0,6,1],
|
||||
["p1","~1","token","token_10024_ebnhlz_rcube",null,null,1000,0,27,0,15400,0,0,0,null],
|
||||
["p1","~2","token","token_10024_ebnhlz_rcube",null,null,1000,0,28,0,4454,0,0,0,null],
|
||||
["p1","~3","token","token_10024_ebnhlz_rcube",null,null,1000,0,29,0,6883,0,0,0,null]
|
||||
],
|
||||
"enemies": {"enemy_1006_shield_3":[21,0,21,8087,71414],"enemy_1043_zomsbr":[66,12,54,1190,188671],"enemy_1402_tgshd_2":[36,0,36,22266,105615]},
|
||||
"hooks": [1,147,6760,462,462,3535,3598,30697,32,143,6,20,0,11458,6246,32,123,111,1,32,0,0,0],
|
||||
"events": {"atk":509,"deploy":24,"die":32,"dmg":3505,"engage":6,"fx":340,"leak":111,"skill":44,"spawn":129,"status":789},
|
||||
"fx": {"displace":19,"expose":321},
|
||||
"snaps": "ddc538a1 cbceb698 326b4898 f6e27d08 15a0f45e af16dd25 93dea0ab 97d57fc4 a8846bcd 6e0d1701 06f10639 94321c5b bd3f8f0a a16c3881 f2bfdae7 ad792514 96873558 72ca0dbd 940adf20 150cbbe6 06e3dc3b 58c0231f 29f31a26"
|
||||
"enemies": {"enemy_1006_shield_3":[21,0,21,8166,127088],"enemy_1043_zomsbr":[66,1,65,14521,60428],"enemy_1402_tgshd_2":[36,0,36,7843,83756]},
|
||||
"hooks": [1,147,6528,189,189,333,355,10424,20,145,11,11,0,8727,0,21,123,122,1,20,0,1,0],
|
||||
"events": {"atk":189,"deploy":24,"die":23,"dmg":355,"engage":12,"fx":96,"leak":122,"skill":22,"spawn":138,"status":36},
|
||||
"fx": {"aoe":3,"burst":1,"displace":5,"expose":67,"pull":5,"summon":3,"volley":12},
|
||||
"snaps": "389ca6e3 c8f155a4 e2e7a3b2 2f4c8838 6a9c72f0 8c585b7e a26f5d0c 80f56fed a04d35ab 88374c55 043f03c3 acc9e8b4 6dc5a029 a28ee86b d72cad57 77ed9536 4cd333ad 94a7e729 29475fd8 b7079863 f08523df a6844f3a"
|
||||
},
|
||||
"diy-117": {
|
||||
"about": "5_diy1_a=cdfend 5_diy2_b=cdfend 5_diy1_a=cguard 5_diy2_b=cguard 5_diy1_a=csnipe 5_diy2_b=csnipe 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": true,
|
||||
"kind": "normal",
|
||||
"stageId": "act1autochess_m07",
|
||||
"modeId": "mode_single_normal",
|
||||
"round": 12,
|
||||
"seed": 3494003672,
|
||||
"waveId": "act1autochess_h05",
|
||||
"time": 208.03,
|
||||
"ticks": 6241,
|
||||
"reason": "cleared",
|
||||
"killed": 9,
|
||||
"total": 90,
|
||||
"unspawned": 0,
|
||||
"bossHpLeft": null,
|
||||
"rngDraws": 0,
|
||||
"errors": {"count":0,"kinds":[]},
|
||||
"players": {"p1":{"killed":9,"total":90,"perfect":false,"leaks":81,"leaksUncounted":0,"coins":0,"dmg":238041,"bossDmg":0,"heal":19797,"deaths":10,"layerGains":{}}},
|
||||
"units": [
|
||||
["p1",1,"op","chess_char_5_diy1_a",2,null,0,0,109,0,248,6384,0,18,1],
|
||||
["p1",2,"op","chess_char_5_diy2_b",2,"none",0,0,110,0,1996,16584,0,32,1],
|
||||
["p1",3,"op","chess_char_5_diy1_a",2,null,0,0,77,1,25968,11854,0,42,1],
|
||||
["p1",4,"op","chess_char_5_diy2_b",2,"none",0,0,81,5,36674,11879,0,46,1],
|
||||
["p1",5,"op","chess_char_5_diy1_a",2,null,1271,1,4,2,18567,0,0,111,2],
|
||||
["p1",6,"op","chess_char_5_diy2_b",2,"none",1510,1,7,1,33348,0,0,111,3],
|
||||
["p1",7,"op","chess_char_5_diy1_a",2,null,1133,1,10,0,22416,0,0,81,3],
|
||||
["p1",8,"op","chess_char_5_diy2_b",2,"none",1360,1,13,0,29317,0,0,89,3],
|
||||
["p1",9,"op","chess_char_5_diy1_a",2,null,1218,1,14,0,0,0,0,0,0],
|
||||
["p1",10,"op","chess_char_5_diy2_b",2,"none",1374,1,5,0,0,0,19797,34,3],
|
||||
["p1",11,"op","chess_char_5_diy1_a",2,null,932,1,8,0,30810,0,0,130,3],
|
||||
["p1",12,"op","chess_char_5_diy2_b",2,"none",1131,1,11,0,38698,0,0,139,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_1229_darmy":[27,6,21,6919,59891],"enemy_1229_darmy_2":[51,3,48,32825,159835],"enemy_9007_acelem":[12,0,12,6956,18315]},
|
||||
"hooks": [1,110,6241,935,935,993,1059,34,19,100,24,23,0,28623,269,28,90,81,1,19,0,6,0],
|
||||
"events": {"atk":935,"deploy":18,"die":19,"dmg":1059,"engage":10,"fx":9,"heal":34,"leak":81,"skill":47,"spawn":104,"status":450},
|
||||
"fx": {"beam":3,"burst":6},
|
||||
"snaps": "d6115a0f f64a22f0 da36003f c04f951a d2e6b4b9 f2d67641 021ab897 9f23a6d9 bf41f23a b8d9411e 65fe19ec 18e60605 ae0ce253 88406339 be5685a9 b32fa604 43885b89 1fbc15fd a8e87436 b8c12c1d e3c58fb5"
|
||||
},
|
||||
"diy-118": {
|
||||
"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=acnipe 5_diy2_b=acnipe 5_diy1_a=accast 5_diy2_b=accast 5_diy1_a=acmedc 5_diy2_b=acmedc",
|
||||
"fast": false,
|
||||
"kind": "normal",
|
||||
"stageId": "act2autochess_m01",
|
||||
"modeId": "mode_multi_abyss",
|
||||
"round": 12,
|
||||
"seed": 1853835342,
|
||||
"waveId": "act1autochess_h05",
|
||||
"time": 230,
|
||||
"ticks": 6900,
|
||||
"reason": "timeout",
|
||||
"killed": 1,
|
||||
"total": 129,
|
||||
"unspawned": 0,
|
||||
"bossHpLeft": null,
|
||||
"rngDraws": 848,
|
||||
"errors": {"count":0,"kinds":[]},
|
||||
"players": {"p1":{"killed":1,"total":129,"perfect":false,"leaks":128,"leaksUncounted":0,"coins":0,"dmg":1177825,"bossDmg":0,"heal":55179,"deaths":16,"layerGains":{}}},
|
||||
"units": [
|
||||
["p1",1,"op","chess_char_5_diy1_a",2,null,0,0,94,0,2330,5208,0,10,0],
|
||||
["p1",2,"op","chess_char_5_diy2_b",2,"uniequip_002_acfend",0,0,93,0,1940,6742,0,12,0],
|
||||
["p1",3,"op","chess_char_5_diy1_a",2,null,0,0,146,0,5578,4587,0,13,1],
|
||||
["p1",4,"op","chess_char_5_diy2_b",2,"uniequip_002_acpion",0,0,151,0,116734,5916,0,14,2],
|
||||
["p1",5,"op","chess_char_5_diy1_a",2,null,2638,1,153,0,19958,6350,0,27,1],
|
||||
["p1",6,"op","chess_char_5_diy2_b",2,"uniequip_002_acguad",3411,1,152,0,69928,9476,0,48,2],
|
||||
["p1",7,"op","chess_char_5_diy1_a",2,null,1272,1,2,0,102341,0,0,144,2],
|
||||
["p1",8,"op","chess_char_5_diy2_b",2,"uniequip_002_acnipe",1587,1,3,1,210580,0,0,209,3],
|
||||
["p1",9,"op","chess_char_5_diy1_a",2,null,1372,1,4,0,310285,0,0,76,2],
|
||||
["p1",10,"op","chess_char_5_diy2_b",2,"uniequip_002_accast",601.28,1,142,0,338151,18053,0,69,3],
|
||||
["p1",11,"op","chess_char_5_diy1_a",2,null,400.92,1,137,0,0,15824,20934,46,2],
|
||||
["p1",12,"op","chess_char_5_diy2_b",2,"uniequip_002_acmedc",272.18,1,136,0,0,21460,34246,50,2]
|
||||
],
|
||||
"enemies": {"enemy_1288_duskls":[36,0,35,26018,369746],"enemy_1288_duskls_2":[51,1,50,14309,439126],"enemy_1292_duskld":[42,0,40,53289,368953]},
|
||||
"hooks": [1,153,6900,969,969,2729,2729,177,17,142,20,19,0,27982,0,39,129,125,1,28,0,0,0],
|
||||
"events": {"atk":1241,"deploy":24,"die":17,"dmg":2729,"engage":10,"fx":78,"heal":149,"leak":125,"skill":39,"spawn":141,"status":15},
|
||||
"fx": {"aoe":41,"dp":3,"ember":7,"revive":2,"slash":24,"spGain":1},
|
||||
"snaps": "94746129 c4497abf 869d1ff0 c8a802a6 00313d1a b879dff8 d1296660 c150f5dd d0345c24 25fcc07d 82243fcb 562ecf32 3b75946a 3670dc3d 7dd8e146 f4b80737 b5f882f3 b32d44ac 89672509 befca016 ee3088ba db9acdb1 8b7c51ba"
|
||||
},
|
||||
"diy-119": {
|
||||
"about": "6_diy1_a=acfend 6_diy2_b=acfend 5_diy1_a=sharp2 5_diy2_b=sharp2 6_diy1_a=acpion 6_diy2_b=acpion 5_diy1_a=acspec 5_diy2_b=acspec 6_diy1_a=acguad 6_diy2_b=acguad 5_diy1_a=acsupo 5_diy2_b=acsupo",
|
||||
"fast": false,
|
||||
"kind": "normal",
|
||||
"stageId": "act2autochess_m02",
|
||||
"modeId": "mode_multi_funny",
|
||||
"round": 13,
|
||||
"seed": 691884976,
|
||||
"waveId": "act1autochess_h06",
|
||||
"time": 208.6,
|
||||
"ticks": 6258,
|
||||
"reason": "cleared",
|
||||
"killed": 63,
|
||||
"total": 150,
|
||||
"unspawned": 0,
|
||||
"bossHpLeft": null,
|
||||
"rngDraws": 358,
|
||||
"errors": {"count":0,"kinds":[]},
|
||||
"players": {"p1":{"killed":63,"total":150,"perfect":false,"leaks":87,"leaksUncounted":0,"coins":0,"dmg":404183,"bossDmg":0,"heal":0,"deaths":22,"layerGains":{}}},
|
||||
"units": [
|
||||
["p1",1,"op","chess_char_6_diy1_a",2,null,0,0,3,1,13787,2604,0,71,1],
|
||||
["p1",2,"op","chess_char_6_diy2_b",2,"uniequip_002_acfend",0,0,4,5,35731,3431,0,95,2],
|
||||
["p1",3,"op","chess_char_5_diy1_a",0,null,0,0,146,4,11953,3730,0,64,1],
|
||||
["p1",4,"op","chess_char_5_diy2_b",0,"uniequip_002_sharp2",0,0,149,6,62164,4748,0,84,2],
|
||||
["p1",5,"op","chess_char_6_diy1_a",2,null,0,0,166,3,14422,4587,0,29,1],
|
||||
["p1",6,"op","chess_char_6_diy2_b",2,"uniequip_002_acpion",1882.66,1,178,17,72869,3829,0,50,5],
|
||||
["p1",7,"op","chess_char_5_diy1_a",2,null,0,0,174,2,19446,8078,0,101,0],
|
||||
["p1",8,"op","chess_char_5_diy2_b",2,"uniequip_002_acspec",1448,1,179,5,20751,2896,0,91,0],
|
||||
["p1",9,"op","chess_char_6_diy1_a",2,null,0,0,122,4,22858,5276,0,67,2],
|
||||
["p1",10,"op","chess_char_6_diy2_b",2,"uniequip_002_acguad",819.68,1,10,8,21407,2711,0,41,3],
|
||||
["p1",11,"op","chess_char_5_diy1_a",2,null,1160,1,6,4,49762,0,0,118,2],
|
||||
["p1",12,"op","chess_char_5_diy2_b",2,"uniequip_002_acsupo",1430,1,7,4,59032,0,0,120,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]
|
||||
],
|
||||
"enemies": {"enemy_1249_lysdb_2":[60,30,30,10889,186403],"enemy_1251_lysyta":[51,20,31,805,65178],"enemy_1329_cbshld":[39,13,26,30196,152603]},
|
||||
"hooks": [1,179,6258,1416,1416,2055,2115,0,85,172,21,30,0,27987,5299,89,150,87,1,85,0,0,15],
|
||||
"events": {"atk":1493,"deploy":27,"die":85,"dmg":2093,"engage":12,"fx":231,"leak":87,"skill":61,"spawn":164,"status":604},
|
||||
"fx": {"aoe":79,"displace":10,"dodge":32,"dp":26,"shieldBreak":42,"slash":42},
|
||||
"snaps": "3ce28529 cc12e586 95201dc6 6c9aca1e 1e7226c2 a3d70186 81ecad92 1fed47c5 cbd5c0dc 3152ee2f 3055e90a 589e6d44 c7ebaa8a a972c019 5f6cbcd0 b8f3328f 053ceecf d3b9779c b17a13db 64226ab5 44455b7b"
|
||||
},
|
||||
"diy-120": {
|
||||
"about": "6_diy1_a=sharp2 6_diy2_b=sharp2 6_diy1_a=acspec 6_diy2_b=acspec 6_diy1_a=acnipe 6_diy2_b=acnipe 6_diy1_a=accast 6_diy2_b=accast 6_diy1_a=acmedc 6_diy2_b=acmedc 6_diy1_a=acsupo 6_diy2_b=acsupo",
|
||||
"fast": false,
|
||||
"kind": "normal",
|
||||
"stageId": "act2autochess_m03",
|
||||
"modeId": "mode_single_hard",
|
||||
"round": 13,
|
||||
"seed": 3346378653,
|
||||
"waveId": "act1autochess_h06",
|
||||
"time": 207.23,
|
||||
"ticks": 6217,
|
||||
"reason": "cleared",
|
||||
"killed": 76,
|
||||
"total": 111,
|
||||
"unspawned": 0,
|
||||
"bossHpLeft": null,
|
||||
"rngDraws": 1266,
|
||||
"errors": {"count":0,"kinds":[]},
|
||||
"players": {"p1":{"killed":76,"total":111,"perfect":false,"leaks":35,"leaksUncounted":0,"coins":0,"dmg":1092661,"bossDmg":0,"heal":53750,"deaths":8,"layerGains":{}}},
|
||||
"units": [
|
||||
["p1",1,"op","chess_char_6_diy1_a",0,null,1865,1,125,6,58880,3125,0,87,3],
|
||||
["p1",2,"op","chess_char_6_diy2_b",0,"uniequip_002_sharp2",1492.02,1,124,20,229213,8940,0,96,3],
|
||||
["p1",3,"op","chess_char_6_diy1_a",2,null,0,0,12,4,34876,23710,0,174,0],
|
||||
["p1",4,"op","chess_char_6_diy2_b",2,"uniequip_002_acspec",1119.02,1,102,8,87347,26340,0,194,0],
|
||||
["p1",5,"op","chess_char_6_diy1_a",2,null,1272,1,9,10,106608,0,0,205,2],
|
||||
["p1",6,"op","chess_char_6_diy2_b",2,"uniequip_002_acnipe",1643,1,11,15,182398,0,0,197,2],
|
||||
["p1",7,"op","chess_char_6_diy1_a",2,null,1372,1,13,1,39394,0,0,32,2],
|
||||
["p1",8,"op","chess_char_6_diy2_b",2,"uniequip_002_accast",1819,1,15,10,329307,0,0,83,3],
|
||||
["p1",9,"op","chess_char_6_diy1_a",2,null,1224,1,4,0,0,0,27594,61,2],
|
||||
["p1",10,"op","chess_char_6_diy2_b",2,"uniequip_002_acmedc",1464,1,10,0,0,0,26156,62,2],
|
||||
["p1",11,"op","chess_char_6_diy1_a",2,null,0,0,79,0,8304,2320,0,26,2],
|
||||
["p1",12,"op","chess_char_6_diy2_b",2,"uniequip_002_acsupo",1450,1,132,2,16334,2900,0,38,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_1010_demon":[54,41,13,60645,583391],"enemy_1320_wdrrl_2":[18,0,18,0,173024],"enemy_1422_lrsldr_2":[39,35,4,6690,336246]},
|
||||
"hooks": [1,132,6217,1474,1474,2387,2519,184,84,119,23,22,0,31679,1160,68,111,35,1,84,0,0,0],
|
||||
"events": {"atk":1796,"deploy":18,"die":84,"dmg":2511,"engage":10,"fx":16,"heal":146,"leak":35,"skill":49,"spawn":126,"status":204},
|
||||
"fx": {"aoe":8,"displace":3,"spGain":5},
|
||||
"snaps": "4f5252e4 7af484c8 985c1669 401f5692 e50a7480 36fa6869 528a1ad8 45b94806 2fe07627 421f7817 76310c6c 18ea76d0 387f4397 04e121f1 02f4774a 680f0f8e ae7859ea 695d9065 6e8b9449 70a6b885 bb680183"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
// test/sim/feedback5-groundbind.test.js — the 缚地 status (0.2.0, O20: 予愿安洁莉娜 S2, kits/ops/op-aglna2.js): gamedata_const
|
||||
// ba.groundbind "目标变为地面单位,无法移动;使部分近地悬浮敌人掉落;对重量大于3的单位持续时间减半" — server/sim/buffs.js STATUS
|
||||
// `groundbind` (flag `groundbind` + `noMove`), units.js Unit.isFlying (a 缚地 enemy is a ground unit unless a 浮空 lifts it),
|
||||
// battle/status.js applyStatus (浮空 lands on a 缚地 data flyer — PRTS 异常效果 "若单位数据上为飞行单位且不持有缚地异常…则Buff
|
||||
// 取消"; the weight halving), the 抵抗 list, and the two hovering enemies whose PRTS text names it (content/enemies:
|
||||
// 掠海漂移体 爬行模式, 吉兆飞鳞 晕眩模式).
|
||||
// Run: node --test test/sim/feedback5-groundbind.test.js
|
||||
|
||||
import { test } from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import { makeBattle, enemyRec, checkInvariants } from '../helpers/battleHarness.js';
|
||||
import { STATUS, RESIST_STATUSES, FLAG_KEYS } from '../../server/sim/buffs.js';
|
||||
|
||||
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 ENEMIES = {
|
||||
enemy_fly: enemyRec({ key: 'enemy_fly', hp: 1e9, speed: 0, mass: 0, motion: 'FLY' }),
|
||||
enemy_flywalk: enemyRec({ key: 'enemy_flywalk', hp: 1e9, speed: 0.6, mass: 0, motion: 'FLY' }),
|
||||
enemy_flyheavy: enemyRec({ key: 'enemy_flyheavy', hp: 1e9, speed: 0, mass: 4, motion: 'FLY' }),
|
||||
};
|
||||
|
||||
function arena(units = []) {
|
||||
const h = makeBattle({ defs: { enemies: ENEMIES }, timeLimit: 600, autoFinish: false, seed: 3, flags: { dpPerSec: 0 }, units });
|
||||
h.step();
|
||||
return h;
|
||||
}
|
||||
|
||||
test('缚地 is a catalogue status: flag groundbind + noMove, move ×0, one of 抵抗\'s statuses', () => {
|
||||
assert.deepEqual(STATUS.groundbind, { flags: { groundbind: true, noMove: true }, mods: { moveMul: 0 } });
|
||||
assert.ok(FLAG_KEYS.includes('groundbind'));
|
||||
assert.ok(RESIST_STATUSES.has('groundbind'));
|
||||
});
|
||||
|
||||
test('缚地: an air unit is a ground unit (melee operators hit it) and cannot move; half as long on weight > 3; 抵抗 shortens it; 浮空 lands on a 缚地 flyer; back in the air when it ends', () => {
|
||||
const h = arena([{ uid: 1, chessId: 'chess_char_1_02_a', row: 9, col: 4 }]);
|
||||
const yak = h.unit(1);
|
||||
const fl = h.spawn('enemy_flywalk', { routeIndex: 2 });
|
||||
h.run(0.5);
|
||||
assert.equal(fl.isFlying, true);
|
||||
assert.equal(h.b.applyStatus(fl, 'levitate', { duration: 3 }), false, 'a data flyer takes no 浮空');
|
||||
assert.ok(h.b.applyStatus(fl, 'groundbind', { duration: 5 }));
|
||||
assert.deepEqual([fl.isFlying, !!fl.s.flags.noMove, fl.s.moveSpeed], [false, true, 0], 'ground unit, rooted');
|
||||
const x0 = fl.x;
|
||||
h.run(1);
|
||||
approx(fl.x, x0, 'it does not move');
|
||||
assert.ok(h.b.applyStatus(fl, 'levitate', { duration: 2 }), '浮空 lands on a 缚地 flyer');
|
||||
assert.equal(fl.isFlying, true, 'levitated: an air unit again');
|
||||
// a melee operator (ground-only, range: his own tile) hits a 缚地 flyer on his tile — and blocks it, a ground unit now
|
||||
const near = h.spawn('enemy_fly', { pos: [9, 4] });
|
||||
h.run(1);
|
||||
assert.equal(yak.stats.dmg, 0, '角峰 cannot hit the flyer');
|
||||
h.b.applyStatus(near, 'groundbind', { duration: 10 });
|
||||
assert.ok(h.runUntil(() => yak.stats.dmg > 0, 5), '缚地: a ground unit he can hit');
|
||||
assert.equal(near.blockedBy, yak, 'and block');
|
||||
// halving and 抵抗
|
||||
const heavy = h.spawn('enemy_flyheavy', { pos: [10, 9] });
|
||||
h.b.applyStatus(heavy, 'groundbind', { duration: 10 });
|
||||
approx(heavy.findBuff('groundbind').timeLeft, 5, 'weight 4: half');
|
||||
const res = h.spawn('enemy_fly', { pos: [11, 9] });
|
||||
h.b.applyStatus(res, 'resist', { duration: 99, value: 0.5 });
|
||||
h.b.applyStatus(res, 'groundbind', { duration: 10 });
|
||||
approx(res.findBuff('groundbind').timeLeft, 5, '抵抗 halves it');
|
||||
h.run(6);
|
||||
assert.equal(res.isFlying, true, 'back in the air when it ends');
|
||||
checkInvariants(h.b);
|
||||
assert.equal(h.b.errors.length, 0);
|
||||
});
|
||||
|
||||
test('the hovering enemies (PRTS "受…缚地影响后"): 掠海漂移体 drops to its 爬行模式 for good; 吉兆飞鳞 is down while the 缚地 holds', () => {
|
||||
const h = arena();
|
||||
const sy = h.spawn('enemy_2025_syufo', { pos: [12, 8], routeIndex: 0, mods: { speedMul: 0 } });
|
||||
const pa = h.spawn('enemy_10045_parrot', { pos: [12, 6], routeIndex: 0, mods: { speedMul: 0 } });
|
||||
h.step();
|
||||
assert.ok(sy.isFlying && pa.isFlying, 'both hover');
|
||||
h.b.applyStatus(sy, 'groundbind', { duration: 4 });
|
||||
h.b.applyStatus(pa, 'groundbind', { duration: 20 });
|
||||
h.step();
|
||||
assert.equal(sy.form, 'crawl', '掠海漂移体: 爬行模式');
|
||||
assert.equal(pa.isFlying, false, '吉兆飞鳞: down');
|
||||
h.run(10);
|
||||
assert.equal(sy.isFlying, false, '掠海漂移体 stays down for good');
|
||||
assert.equal(pa.isFlying, false, '吉兆飞鳞 down while the 缚地 holds (its 8 s stun over)');
|
||||
h.run(12);
|
||||
assert.equal(pa.isFlying, true, '吉兆飞鳞 floats again once nothing holds it');
|
||||
checkInvariants(h.b);
|
||||
assert.equal(h.b.errors.length, 0);
|
||||
});
|
||||
Reference in new issue
Block a user