fix war command differential parity

This commit is contained in:
Hide_D committed 2026-07-26 22:26:09 +00:00
1 parent 1011822463
commit 789b9c8c8f
9 files changed
+69 -52

No files matched your search

+3
View File
@@ -300,6 +300,8 @@ describe('war triggers', () => {
);
cityUnit.setOppose(firstAttacker);
expect(cityUnit.addConflict()).toBe(false);
expect(city.conflict).toEqual({ 1: 1.05 });
expect(city.meta.conflict).toBeUndefined();
const secondNation = { ...buildNation(), id: 2 };
const secondGeneral = { ...buildGeneral(80), id: 2, nationId: 2 };
@@ -316,6 +318,7 @@ describe('war triggers', () => {
);
cityUnit.setOppose(secondAttacker);
expect(cityUnit.addConflict()).toBe(true);
expect(city.conflict).toEqual({ 1: 1.05, 2: 1 });
});
});