/** * A new account's profile: Gaijin's own new-account template from the player's game files * (config/default_user.blk), plus the offline starting content (starting-content.ts) and the * starting balances defined separately in tuning/new-profile.jsonc. */ import type { BlkBlock } from '@wto/blk'; import { setGjnCents, setGoldenEagles, setSilverLions } from './profile-currency.ts'; import { applyStartingContent, type StartingContent } from './starting-content.ts'; export function newProfile(template: BlkBlock, content: StartingContent): BlkBlock { const profile = structuredClone(template); applyStartingContent(profile, content); setSilverLions(profile, content.startingBalance.silverLions); setGoldenEagles(profile, content.startingBalance.goldenEagles); setGjnCents(profile, content.startingBalance.gjnCents); return profile; }