(bones: CompanionBones)
| 534 | } |
| 535 | |
| 536 | function 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 | |
| 544 | export async function generateCompanionSoul( |
| 545 | bones: CompanionBones, |
no outgoing calls
no test coverage detected