refactor(logic): 과도한 수치 호환 보정을 제거한다

Core 수치 상태는 JavaScript와 PostgreSQL의 자연 정밀도를 유지한다. 정수 상태 경계와 절삭, 수입 배분 및 사망자 분할 순서는 보존한다.
This commit is contained in:
2026-08-24 19:17:06 +00:00
parent fc9fa0c9a6
commit 60dcf815ea
32 changed files with 148 additions and 522 deletions
+2 -2
View File
@@ -293,7 +293,7 @@ describe('war triggers', () => {
expect(unit.getComputedAttack()).toBeCloseTo(608, 12);
});
it('normalizes accumulated dexterity to the PHP SQL float precision', () => {
it('keeps accumulated dexterity at full precision', () => {
const general = buildGeneral(80);
general.meta.dex4 = 14_677.199999999997;
const wizard = new WarCrewType({
@@ -316,7 +316,7 @@ describe('war triggers', () => {
unit.addDex(wizard, 2047);
expect(general.meta.dex4).toBe(16_519.5);
expect(general.meta.dex4).toBe(16_519.499999999996);
});
it('preserves the legacy fractional morale gain after a win', () => {