fix: update tests for new SocialState shape and Devoted tier

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-03-07 19:21:58 +00:00
parent db808bca86
commit bf2a9817ab
3 changed files with 8 additions and 0 deletions
@@ -20,6 +20,7 @@ function createNPC(
world.addComponent<SocialState>(e, 'socialState', {
phase: 'none', partnerId: null, phaseTimer: 0, outcome: null,
globalCooldown: 0, pairCooldowns: new Map(), lastOutcome: null,
proposalCooldown: 0, pendingProposal: null, isProposalInteraction: false,
});
const baseStats: Stats = {
strength: 10, dexterity: 10, constitution: 10, intelligence: 10, perception: 10,
@@ -40,6 +40,9 @@ function createNPC(
globalCooldown: 0,
pairCooldowns: new Map(),
lastOutcome: null,
proposalCooldown: 0,
pendingProposal: null,
isProposalInteraction: false,
});
return e;
}
@@ -34,6 +34,10 @@ function addSocialState(world: World, entity: number, phase: SocialState['phase'
outcome: null,
globalCooldown: 0,
pairCooldowns: new Map(),
lastOutcome: null,
proposalCooldown: 0,
pendingProposal: null,
isProposalInteraction: false,
});
}