refactor: add team effect
This commit is contained in:
parent
e5da41c1cb
commit
7472095822
|
|
@ -7,7 +7,7 @@
|
||||||
# brokenIntent: 防御被打空后改变的意图id,多个意图则从中随机
|
# brokenIntent: 防御被打空后改变的意图id,多个意图则从中随机
|
||||||
# effects:技能效果,目标+buff/debuff/攻击/防御+数值/层数
|
# effects:技能效果,目标+buff/debuff/攻击/防御+数值/层数
|
||||||
enemy,id,nextIntents,brokenIntent,effects
|
enemy,id,nextIntents,brokenIntent,effects
|
||||||
@enemyDesert,string,@enemyIntentDesert[],@enemyIntentDesert[],['self' | 'player';@effectDesert;number][]
|
@enemyDesert,string,@enemyIntentDesert[],@enemyIntentDesert[],['self' | 'player' | 'team';@effectDesert;number][]
|
||||||
|
|
||||||
仙人掌怪,boost,boost;defend;defend,,[self;spike;1];[self;defend;4]
|
仙人掌怪,boost,boost;defend;defend,,[self;spike;1];[self;defend;4]
|
||||||
仙人掌怪,defend,attack,,[self;defend;8]
|
仙人掌怪,defend,attack,,[self;defend;8]
|
||||||
|
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ type EnemyIntentDesertTable = readonly {
|
||||||
readonly id: string;
|
readonly id: string;
|
||||||
readonly nextIntents: readonly EnemyIntentDesert[];
|
readonly nextIntents: readonly EnemyIntentDesert[];
|
||||||
readonly brokenIntent: readonly EnemyIntentDesert[];
|
readonly brokenIntent: readonly EnemyIntentDesert[];
|
||||||
readonly effects: readonly ["self" | "player", EffectDesert, number];
|
readonly effects: readonly ["self" | "player" | "team", EffectDesert, number];
|
||||||
}[];
|
}[];
|
||||||
|
|
||||||
export type EnemyIntentDesert = EnemyIntentDesertTable[number];
|
export type EnemyIntentDesert = EnemyIntentDesertTable[number];
|
||||||
|
|
|
||||||
|
|
@ -231,7 +231,7 @@ describe('enemyIntentDesert.csv import', () => {
|
||||||
it('should have effects with target, effect ref, and value', () => {
|
it('should have effects with target, effect ref, and value', () => {
|
||||||
for (const intent of enemyIntentDesertData) {
|
for (const intent of enemyIntentDesertData) {
|
||||||
for (const [target, effect, value] of intent.effects) {
|
for (const [target, effect, value] of intent.effects) {
|
||||||
expect(target === 'self' || target === 'player').toBe(true);
|
expect(target === 'self' || target === 'player' || target === 'team').toBe(true);
|
||||||
expect(typeof effect === 'string' || typeof effect === 'object').toBe(true);
|
expect(typeof effect === 'string' || typeof effect === 'object').toBe(true);
|
||||||
expect(typeof value).toBe('number');
|
expect(typeof value).toBe('number');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue