feat: restore Ref recruitment command details

This commit is contained in:
2026-08-13 16:20:43 +00:00
parent 94b5b7813c
commit 317a055434
12 changed files with 1375 additions and 58 deletions
@@ -235,6 +235,25 @@ export class CommandResolver<TriggerState extends GeneralTriggerState = GeneralT
return finalizeLegacyStat(this.pipeline.onCalcStat(context, 'leadership', base));
}
resolveFullLeadership(context: RecruitCalcContext<TriggerState>): number {
return finalizeLegacyStat(this.pipeline.onCalcStat(context, 'leadership', context.general.stats.leadership));
}
getDisplayUnitCost(
context: RecruitCalcContext<TriggerState>,
crewType: { armType: number; cost: number; rice: number }
): { gold: number; rice: number } {
const techCost = getTechCost(readNationTech(context.nation ?? null));
return {
gold: this.pipeline.onCalcDomestic(context, ACTION_NAME, 'cost', crewType.cost * techCost, {
armType: crewType.armType,
}),
rice: this.pipeline.onCalcDomestic(context, ACTION_NAME, 'rice', crewType.rice * techCost, {
armType: crewType.armType,
}),
};
}
resolveCrewPlan(
context: RecruitCalcContext<TriggerState>,
crewTypeId: number,