refactor(logic): 과도한 수치 호환 보정을 제거한다
Core 수치 상태는 JavaScript와 PostgreSQL의 자연 정밀도를 유지한다. 정수 상태 경계와 절삭, 수입 배분 및 사망자 분할 순서는 보존한다.
This commit is contained in:
@@ -278,8 +278,8 @@ describe('war aftermath', () => {
|
||||
messageTime: MESSAGE_TIME,
|
||||
});
|
||||
|
||||
expect(attackerNation.meta.tech).toBe(Math.fround(1000.6));
|
||||
expect(defenderNation.meta.tech).toBe(Math.fround(1000.9));
|
||||
expect(attackerNation.meta.tech).toBe(1000.6);
|
||||
expect(defenderNation.meta.tech).toBe(1000.9);
|
||||
expect(outcome.diplomacyDeltas).toHaveLength(2);
|
||||
expect(attackerCity.meta.dead).toBe(60);
|
||||
expect(defenderCity.meta.dead).toBe(90);
|
||||
|
||||
Reference in New Issue
Block a user