fix(logic): 징병과 모병에 추가 통솔 상한을 반영한다
병력 여유 제약이 실제 통솔 계산기를 사용하도록 연결하고, 명마 보정이 적용되는 징병·모병 회귀 테스트를 추가한다.
This commit is contained in:
@@ -597,7 +597,20 @@ export class ActionDefinition<
|
||||
reqCityTrust(20),
|
||||
reqGeneralGold(getCost, requirements),
|
||||
reqGeneralRice(getRice, requirements),
|
||||
reqGeneralCrewMargin((context) => resolveCrewTypeId(context.args), requirements),
|
||||
reqGeneralCrewMargin(
|
||||
(context) => resolveCrewTypeId(context.args),
|
||||
requirements,
|
||||
(context, view) => {
|
||||
const calcContext = buildCalcContext<TriggerState>(context, view);
|
||||
if (!calcContext) {
|
||||
return null;
|
||||
}
|
||||
// Ref ReqGeneralCrewMargin reconstructs General and calls
|
||||
// getLeadership(), so the precondition must use the same
|
||||
// injured, trait, and item-adjusted capacity as getCost().
|
||||
return this.command.resolveLeadership(calcContext) * 100;
|
||||
}
|
||||
),
|
||||
];
|
||||
|
||||
if (ctx.mode === 'full') {
|
||||
|
||||
Reference in New Issue
Block a user