From 35d1bb0beea98d4ee6aa6a6e2865690b44b6a1e9 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 8 Mar 2026 21:19:16 +0000 Subject: [PATCH] fix: update socialSystem tests to match new tuning values Co-Authored-By: Claude Opus 4.6 --- server/src/systems/__tests__/socialSystem.test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/server/src/systems/__tests__/socialSystem.test.ts b/server/src/systems/__tests__/socialSystem.test.ts index e3d73ec..10fac21 100644 --- a/server/src/systems/__tests__/socialSystem.test.ts +++ b/server/src/systems/__tests__/socialSystem.test.ts @@ -368,8 +368,8 @@ describe('socialSystem', () => { sb.phase = 'emoting'; sb.partnerId = a; sb.phaseTimer = 1; socialSystem(world); const saAfter = world.getComponent(a, 'socialState')!; - // 50 * 0.8 = 40 - expect(saAfter.globalCooldown).toBe(40); + // 75 * 0.8 = 60 + expect(saAfter.globalCooldown).toBe(60); }); it('drifts sociability and empathy on positive social outcome', () => { @@ -384,8 +384,8 @@ describe('socialSystem', () => { sb.phase = 'emoting'; sb.partnerId = a; sb.phaseTimer = 1; sb.outcome = 'positive'; socialSystem(world); const stats = world.getComponent(a, 'stats')!; - expect(stats.sociability).toBeCloseTo(10.05); - expect(stats.empathy).toBeCloseTo(10.05); + expect(stats.sociability).toBeCloseTo(10.025); + expect(stats.empathy).toBeCloseTo(10.025); }); it('drifts temperament on negative social outcome', () => { @@ -400,7 +400,7 @@ describe('socialSystem', () => { sb.phase = 'emoting'; sb.partnerId = a; sb.phaseTimer = 1; sb.outcome = 'negative'; socialSystem(world); const stats = world.getComponent(a, 'stats')!; - expect(stats.temperament).toBeCloseTo(10.02); + expect(stats.temperament).toBeCloseTo(10.01); }); it('adds positive sociability modifier on positive outcome', () => { @@ -613,8 +613,8 @@ describe('socialSystem', () => { socialSystem(world); - // Base 500, courage 18: 500 * (1 - (18-10)*0.04) = 500 * 0.68 = 340 - expect(socialA.proposalCooldown).toBe(340); + // Base 750, courage 18: 750 * (1 - (18-10)*0.04) = 750 * 0.68 = 510 + expect(socialA.proposalCooldown).toBe(510); }); }); });