Split custom world generation into staged lightweight batches
Some checks failed
CI / verify (push) Has been cancelled
Some checks failed
CI / verify (push) Has been cancelled
This commit is contained in:
@@ -11,15 +11,12 @@ import type {
|
||||
WorldType,
|
||||
} from '../types';
|
||||
import {WORLD_ATTRIBUTE_SLOT_IDS} from '../types';
|
||||
import { resolveRelationStanceFromAffinity } from './affinityLevels';
|
||||
import {normalizeAttributeVector, roundNumber} from './attributeValidation';
|
||||
import {getWorldAttributeSchema} from './worldAttributeSchemas';
|
||||
|
||||
export function resolveRelationStance(affinity: number): RoleRelationState['stance'] {
|
||||
if (affinity <= -30) return 'hostile';
|
||||
if (affinity <= 14) return 'guarded';
|
||||
if (affinity <= 34) return 'neutral';
|
||||
if (affinity <= 59) return 'cooperative';
|
||||
return 'bonded';
|
||||
return resolveRelationStanceFromAffinity(affinity);
|
||||
}
|
||||
|
||||
export function buildRelationState(affinity: number): RoleRelationState {
|
||||
|
||||
Reference in New Issue
Block a user