chore: add data import test

This commit is contained in:
hyper
2026-04-12 21:04:38 +08:00
parent 238254c4e5
commit 4bfc6db60f
4 changed files with 90 additions and 2 deletions
@@ -22,12 +22,12 @@ armor,披风,oers,energy,1,none,【防御2】,下回合【防御2】
armor,护腕,o,energy,0,none,【防御1】,抓1张牌
armor,大盾,oesswn,energy,1,none,【防御5】
armor,锁子甲,oers,energy,1,none,本回合受到伤害-3
consumable,绷带,o,uses,3,none,随机移除1伤口
consumable,绷带,o,uses,3,none,从牌堆或弃牌堆随机移除1伤口
consumable,淬毒药剂,o,uses,3,none,周围物品的【攻击】+2
consumable,强固药剂,o,uses,3,none,周围物品的【防御】+2
consumable,活力药剂,o,uses,3,none,获得1点能量
consumable,集中药剂,o,uses,3,none,抓2张牌
consumable,治疗药剂,o,uses,3,none,移除3个随机伤口
consumable,治疗药剂,o,uses,3,none,从牌堆或弃牌堆移除3张伤口
tool,水袋,os,energy,1,none,下回合开始时,获得1能量,抓2张牌
tool,绳索,ose,energy,1,none,周围物品的牌【防御】+2直到打出
tool,腰带,owre,energy,0,none,从牌堆周围物品的牌当中选择一张加入手牌
1 # type can be one of: weapon, armor, consumable, tool
22 armor,大盾,oesswn,energy,1,none,【防御5】
23 armor,锁子甲,oers,energy,1,none,本回合受到伤害-3
24 consumable,绷带,o,uses,3,none,随机移除1格伤口 consumable,绷带,o,uses,3,none,从牌堆或弃牌堆随机移除1张伤口
25 consumable,淬毒药剂,o,uses,3,none,周围物品的【攻击】+2
26 consumable,强固药剂,o,uses,3,none,周围物品的【防御】+2
27 consumable,活力药剂,o,uses,3,none,获得1点能量
28 consumable,集中药剂,o,uses,3,none,抓2张牌
29 consumable,治疗药剂,o,uses,3,none,移除3个随机伤口 consumable,治疗药剂,o,uses,3,none,从牌堆或弃牌堆移除3张伤口
30 tool,水袋,os,energy,1,none,下回合开始时,获得1能量,抓2张牌
31 tool,绳索,ose,energy,1,none,周围物品的牌【防御】+2直到打出
32 tool,腰带,owre,energy,0,none,从牌堆周围物品的牌当中选择一张加入手牌
33 tool,火把,on,energy,1,none,下次打出周围物品的牌时,将其消耗并获得1能量
@@ -0,0 +1,12 @@
type HeroItemFighter1Table = readonly {
readonly type: string;
readonly name: string;
readonly shape: string;
readonly costType: string;
readonly costCount: number;
readonly targetType: string;
readonly desc: string;
}[];
declare const data: HeroItemFighter1Table;
export default data;
@@ -0,0 +1,3 @@
import heroItemFighter1Csv from './heroItemFighter1.csv';
export const heroItemFighter1Data = heroItemFighter1Csv;