diff --git a/src/samples/slay-the-spire-like/data/enemyIntentDesert.csv b/src/samples/slay-the-spire-like/data/enemyIntentDesert.csv index 0c489e7..9555cff 100644 --- a/src/samples/slay-the-spire-like/data/enemyIntentDesert.csv +++ b/src/samples/slay-the-spire-like/data/enemyIntentDesert.csv @@ -6,8 +6,8 @@ # nextIntents: 下一个意图id, 多个意图则从中随机 # brokenIntent: 防御被打空后改变的意图id,多个意图则从中随机 # effects:技能效果,目标+buff/debuff/攻击/防御+数值/层数 -enemy,intent,nextIntents,brokenIntent,effects -@enemyDesert,string,string[],string[],['self' | 'opponent';@effectDesert;number][] +enemy,id,nextIntents,brokenIntent,effects +@enemyDesert,string,@enemyIntentDesert[],@enemyIntentDesert[],['self' | 'opponent';@effectDesert;number][] 仙人掌怪,boost,boost;defend;defend,,[self;spike;1];[self;defend;4] 仙人掌怪,defend,attack,,[self;defend;8] diff --git a/src/samples/slay-the-spire-like/data/enemyIntentDesert.csv.d.ts b/src/samples/slay-the-spire-like/data/enemyIntentDesert.csv.d.ts index ef6a795..dd08de4 100644 --- a/src/samples/slay-the-spire-like/data/enemyIntentDesert.csv.d.ts +++ b/src/samples/slay-the-spire-like/data/enemyIntentDesert.csv.d.ts @@ -3,9 +3,9 @@ import type { EffectDesert } from './effectDesert.csv'; type EnemyIntentDesertTable = readonly { readonly enemy: EnemyDesert; - readonly intent: string; - readonly nextIntents: readonly string[]; - readonly brokenIntent: readonly string[]; + readonly id: string; + readonly nextIntents: readonly EnemyIntentDesert[]; + readonly brokenIntent: readonly EnemyIntentDesert[]; readonly effects: readonly ["self" | "opponent", EffectDesert, number]; }[]; diff --git a/tests/samples/slay-the-spire-like/data/index.test.ts b/tests/samples/slay-the-spire-like/data/index.test.ts index 1d26a7b..a61ac5f 100644 --- a/tests/samples/slay-the-spire-like/data/index.test.ts +++ b/tests/samples/slay-the-spire-like/data/index.test.ts @@ -209,7 +209,7 @@ describe('enemyIntentDesert.csv import', () => { it('should have correct fields for each intent', () => { for (const intent of enemyIntentDesertData) { expect(intent).toHaveProperty('enemy'); - expect(intent).toHaveProperty('intent'); + expect(intent).toHaveProperty('id'); expect(intent).toHaveProperty('nextIntents'); expect(intent).toHaveProperty('brokenIntent'); expect(intent).toHaveProperty('effects');