fix: 커맨드 차등 생명주기와 로그 그래프를 보강
장수 55종과 수뇌 35종의 상태, 로그, 메시지, 예약 턴 비교를 닫습니다. 실제 시나리오 프로필과 대표 PostgreSQL 수명주기, 즉시 외교와 출병 회귀를 추가하고 발견된 Ref 로그 및 생성 장수 저장 차이를 교정합니다.
This commit is contained in:
@@ -90,6 +90,8 @@ describe('도시 점령 시 국가 멸망 처리', () => {
|
||||
strongFrontCity.supplyState = 1;
|
||||
const conflictCity = cities.find((city) => city.id === 3)!;
|
||||
conflictCity.conflict = { 2: 100, 1: 50 };
|
||||
const emptiedConflictCity = cities.find((city) => city.id === 4)!;
|
||||
emptiedConflictCity.conflict = { 2: 25 };
|
||||
|
||||
const unitSet: UnitSetDefinition = {
|
||||
id: 'test_unit_set',
|
||||
@@ -291,6 +293,7 @@ describe('도시 점령 시 국가 멸망 처리', () => {
|
||||
expect(world.listEvents('destroy_nation')).toEqual([]);
|
||||
expect(world.getState().meta.block_change_scout).toBeUndefined();
|
||||
expect(world.getCityById(conflictCity.id)?.conflict).toEqual({ 1: 50 });
|
||||
expect(world.getCityById(emptiedConflictCity.id)?.conflict).toEqual([]);
|
||||
|
||||
const updatedWeakGeneral = world.getGeneralById(weakGeneral.id);
|
||||
expect(updatedWeakGeneral?.nationId).toBe(0);
|
||||
|
||||
Reference in New Issue
Block a user