fix: 긴급천도 후보를 지도 연결 거리로 선택한다

This commit is contained in:
2026-08-24 04:50:06 +00:00
parent 3bda79ccf8
commit 531fa55c5f
5 changed files with 143 additions and 35 deletions
@@ -164,15 +164,15 @@ integration('core ↔ legacy command-boundary differential', () => {
}
if (fixturePath.endsWith('live-sortie-emergency-capital.json')) {
const defenderNation = reference.after.nations.find((nation) => nation.id === 2);
expect(defenderNation?.capitalCityId).toBe(71);
expect(defenderNation?.capitalCityId).toBe(35);
expect(defenderNation?.gold).toBe(50_000);
expect(defenderNation?.rice).toBe(40_000);
expect(reference.after.generals.find((general) => general.id === 2)).toMatchObject({
nationId: 2,
cityId: 71,
cityId: 35,
atmos: 80,
});
expect(reference.after.cities.find((city) => city.id === 71)?.supplyState).toBe(1);
expect(reference.after.cities.find((city) => city.id === 35)?.supplyState).toBe(1);
}
if (fixturePath.endsWith('live-sortie-collapse-conflict.json')) {
expect(reference.before.cities.find((city) => city.id === 71)?.conflict).toEqual({ 2: 1234 });