diablo2-web/src/game/skills/impl/uni/skill-220-book-of-townporta...

45 lines
1.2 KiB
TypeScript

/**
* Diablo II: Lord of Destruction v1.13c — Skill #220: Book of Townportal (UNI)
*
* Authoritative 1.13c Ground Truth (`Patch_D2.mpq` -> `data\\global\\excel\\Skills.txt`):
* - Skill ID: 220 ("Book of Townportal")
* - Class: "uni"
* - Required Level: 1
* - Server Functions: srvstfunc=0, srvdofunc=113, srvprgfunc1=0, srvprgfunc2=0, srvprgfunc3=0
* - Associated Missile / State / Summon: missile="", state="", summon=""
* - 1.13c Synergy Formulas: EDmgSymPerCalc="", DmgSymPerCalc="", ELenSymPerCalc=""
*/
import type {
SkillEvalContext,
SkillEvalResult,
SkillExecContext,
SkillExecOutcome,
SkillModule,
} from '../../types.ts'
import { evaluateSkillCore113c, executeSkillCore113c } from '../../registry.ts'
export const skillModule: SkillModule = {
skillId: 220,
name: "Book of Townportal",
charClass: "uni",
srvStFunc: 0,
srvDoFunc: 113,
evaluate(ctx: SkillEvalContext): SkillEvalResult {
return evaluateSkillCore113c(ctx)
},
executeDo(ctx: SkillExecContext): SkillExecOutcome {
const outcome = executeSkillCore113c(ctx)
return {
...outcome,
notes: [
...outcome.notes,
'skill_module:skill-220-book-of-townportal',
],
}
},
}
export default skillModule