feat: NPC 세금 처리 로직 및 관련 핸들러 추가, 대형 테스트 맵 수정

This commit is contained in:
2026-01-24 10:06:55 +00:00
parent cb04c930b8
commit 753abdaf47
7 changed files with 185 additions and 40 deletions
+4 -2
View File
@@ -387,9 +387,11 @@ export class GeneralAI {
}
if (this.general.npcState >= 2 && this.general.officerLevel === 12 && !this.nation?.capitalCityId) {
const worldMeta = asRecord(this.world.meta);
const initYear = readNumber(worldMeta.initYear, this.scenarioMeta?.startYear ?? this.startYear);
const initMonth = readNumber(worldMeta.initMonth, 1);
const relYearMonth =
joinYearMonth(this.world.currentYear, this.world.currentMonth) -
joinYearMonth(this.scenarioMeta?.startYear ?? this.startYear, 1);
joinYearMonth(this.world.currentYear, this.world.currentMonth) - joinYearMonth(initYear, initMonth);
if (relYearMonth > 1) {
const establish = generalActionHandlers['건국']?.(this);
if (establish) {