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:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user