1
This commit is contained in:
34
server-node/src/testFixtures/runtimeCharacter.ts
Normal file
34
server-node/src/testFixtures/runtimeCharacter.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
export function createTestPlayerCharacter<TCharacter>() {
|
||||
return {
|
||||
id: 'test-hero',
|
||||
name: '测试主角',
|
||||
title: '断桥行者',
|
||||
description: '用于后端运行时测试的稳定角色夹具。',
|
||||
backstory: '在断桥旧哨附近长期行动,熟悉近身交锋和临场判断。',
|
||||
avatar: '/test-hero.png',
|
||||
portrait: '/test-hero-portrait.png',
|
||||
assetFolder: 'test-hero',
|
||||
assetVariant: 'default',
|
||||
gender: 'female',
|
||||
attributes: {
|
||||
strength: 12,
|
||||
agility: 11,
|
||||
intelligence: 8,
|
||||
spirit: 10,
|
||||
},
|
||||
personality: '沉稳果断',
|
||||
skills: [
|
||||
{
|
||||
id: 'slash',
|
||||
name: '试锋斩',
|
||||
animation: 'attack',
|
||||
damage: 18,
|
||||
manaCost: 4,
|
||||
cooldownTurns: 1,
|
||||
range: 1,
|
||||
style: 'steady',
|
||||
},
|
||||
],
|
||||
adventureOpenings: {},
|
||||
} as TCharacter;
|
||||
}
|
||||
Reference in New Issue
Block a user