MCPcopy Create free account
hub / github.com/Noumena-Network/code / fallbackCompanionSoul

Function fallbackCompanionSoul

src/buddy/observer.ts:536–542  ·  view source on GitHub ↗
(bones: CompanionBones)

Source from the content-addressed store, hash-verified

534}
535
536function fallbackCompanionSoul(bones: CompanionBones): CompanionSoul {
537 const seed = bones.species.charCodeAt(0) + bones.eye.charCodeAt(0)
538 return {
539 name: FALLBACK_NAMES[seed % FALLBACK_NAMES.length]!,
540 personality: `A ${bones.rarity} ${bones.species} of few words.`,
541 }
542}
543
544export async function generateCompanionSoul(
545 bones: CompanionBones,

Callers 1

generateCompanionSoulFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected