// server/sim/content/kits/ops/chess_char_2_02-silent.js — 赫默 (char_108_silent) kit, tier 2. // Conventions of the tier-2 kits: ../shared/tier2.js; kit contract and rules: ../README.md. import { releaseSkillSummon } from '../../tokens.js'; import { num, talentBb, traitBb, installAura } from '../shared/tier1.js'; export default { // --------------------------------------------------------------------------------------------------------------- // 2_02 赫默 医疗无人机 (AUTO, heal trigger): "获得一个医疗无人机 / 最多可库存1个无人机;无人机投入战场后治疗周围友军, // 10秒后自动销毁" — the 医疗探机 is a hand piece the player places (user playtest #6; PRTS 卫戍协议/帮助): each cast gives // one (stock ≤ cnt) and the placed piece takes the field on its own tile (tokens.js releaseSkillSummon: not at the // battle start — user playtest #4; not placed ⇒ no drone); it heals around itself and self-destructs after 10 s (token // kit). 强化注射: every 【医疗】 operator on the field ASPD +attack_speed. Elite module (PHY-Y): heals on ground units // ×heal_scale (module 'none': no bonus). // S1 治疗强化·γ型 (alt): ATK +atk for its duration (no drone). chess_char_2_02_a: (bb, chess) => { const tokId = chess?.skill?.overrideTokenKey ?? (chess?.tokens ?? [])[0] ?? 'token_10000_silent_healrb'; const cnt = Math.max(1, Math.floor(num(bb.cnt, 1))); const t = talentBb(chess, 0); const tb = traitBb(chess); return { skill: { kind: 'instant', heal: true, onStart({ battle, unit }) { releaseSkillSummon(battle, unit, tokId, { cap: cnt }); }, }, skills: { 'skcom_heal_up[3]': { kind: 'duration', heal: true, mods: { atkPct: num(bb.atk) } } }, talents: [{ install(battle, unit) { const v = num(t.attack_speed); if (v) installAura(battle, unit, { key: 'talent:silent', value: v, select: (a) => a.kind === 'op' && a.def.profession === 'MEDIC', mods: { aspd: v } }); if (num(tb.heal_scale, 1) !== 1) { battle.on('heal', (ctx) => { if (ctx.source === unit && ctx.target.ground) ctx.amount *= num(tb.heal_scale, 1); }, { owner: unit }); } } }], }; }, };