fix: update socialSystem tests to match new tuning values

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-03-08 21:19:16 +00:00
parent d58e623c14
commit 35d1bb0bee
@@ -368,8 +368,8 @@ describe('socialSystem', () => {
sb.phase = 'emoting'; sb.partnerId = a; sb.phaseTimer = 1;
socialSystem(world);
const saAfter = world.getComponent<SocialState>(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<Stats>(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<Stats>(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);
});
});
});