feat(skills): export evaluateSkillCore113c and executeSkillCore113c for per-skill modules

This commit is contained in:
troytt 2026-09-22 03:31:22 +00:00
parent a727343eb3
commit c25194ffe5
1 changed files with 6 additions and 0 deletions

View File

@ -67,7 +67,10 @@ export function evaluateSkill113c(ctx: SkillEvalContext): SkillEvalResult {
if (customMod?.evaluate) {
return customMod.evaluate(ctx)
}
return evaluateSkillCore113c(ctx)
}
export function evaluateSkillCore113c(ctx: SkillEvalContext): SkillEvalResult {
const { registry, skill, slvl, blvl, statList } = ctx
const effLvl = Math.max(1, slvl)
const calcCtx = {
@ -255,7 +258,10 @@ export function executeSkill113c(ctx: SkillExecContext): SkillExecOutcome {
if (customMod?.executeDo) {
return customMod.executeDo(ctx)
}
return executeSkillCore113c(ctx)
}
export function executeSkillCore113c(ctx: SkillExecContext): SkillExecOutcome {
const { skill, evalResult, caster, targets, targetPositions, corpses, missileEngine, auraScanner, summonManager, currentTick, targetX, targetY } = ctx
const missilesSpawned: string[] = []
const statesApplied: string[] = []