feat(skills): export evaluateSkillCore113c and executeSkillCore113c for per-skill modules
This commit is contained in:
parent
a727343eb3
commit
c25194ffe5
|
|
@ -67,7 +67,10 @@ export function evaluateSkill113c(ctx: SkillEvalContext): SkillEvalResult {
|
||||||
if (customMod?.evaluate) {
|
if (customMod?.evaluate) {
|
||||||
return customMod.evaluate(ctx)
|
return customMod.evaluate(ctx)
|
||||||
}
|
}
|
||||||
|
return evaluateSkillCore113c(ctx)
|
||||||
|
}
|
||||||
|
|
||||||
|
export function evaluateSkillCore113c(ctx: SkillEvalContext): SkillEvalResult {
|
||||||
const { registry, skill, slvl, blvl, statList } = ctx
|
const { registry, skill, slvl, blvl, statList } = ctx
|
||||||
const effLvl = Math.max(1, slvl)
|
const effLvl = Math.max(1, slvl)
|
||||||
const calcCtx = {
|
const calcCtx = {
|
||||||
|
|
@ -255,7 +258,10 @@ export function executeSkill113c(ctx: SkillExecContext): SkillExecOutcome {
|
||||||
if (customMod?.executeDo) {
|
if (customMod?.executeDo) {
|
||||||
return customMod.executeDo(ctx)
|
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 { skill, evalResult, caster, targets, targetPositions, corpses, missileEngine, auraScanner, summonManager, currentTick, targetX, targetY } = ctx
|
||||||
const missilesSpawned: string[] = []
|
const missilesSpawned: string[] = []
|
||||||
const statesApplied: string[] = []
|
const statesApplied: string[] = []
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue