feat: enhance AI nation behavior and diplomacy handling, improve test assertions for war readiness

This commit is contained in:
2026-01-24 15:12:09 +00:00
parent 51a3f74920
commit 293f3e3980
5 changed files with 57 additions and 14 deletions
@@ -127,7 +127,7 @@ export const buildFrontStatePatches = (options: {
.listNations()
.filter((nation) => options.nationIds?.includes(nation.id))
: options.worldView.listNations();
const nations = nationList.filter((nation) => nation.level > 0 && nation.capitalCityId);
const nations = nationList.filter((nation) => nation.level > 0);
const patches: Array<{ id: number; patch: Partial<City> }> = [];
for (const nation of nations) {
const frontStates = resolveNationFrontStates(nation.id, connectionMap, cityIdsByNation, diplomacy);