chore: add identifier to fields

This commit is contained in:
hypercross 2026-04-15 14:30:56 +08:00
parent 33095d5226
commit 7e98e5e546
4 changed files with 6 additions and 4 deletions

View File

@ -5,7 +5,7 @@
# camp (2): consumable restock and heal # camp (2): consumable restock and heal
# curio (8): random pickup of treasure or resources # curio (8): random pickup of treasure or resources
type,name,description,enemies,dialogue type,name,description,enemies,dialogue
'minion'|'elite'|'event'|'shop'|'camp'|'curio',string,string,[@enemyDesert;number][],string 'minion'|'elite'|'event'|'shop'|'camp'|'curio',string,string,[enemy: @enemyDesert;bonusHp: number][],string
minion,仙人掌怪,概念:防+强化。【尖刺X】对攻击者造成X点伤害。,[仙人掌怪;0];[仙人掌怪;0], minion,仙人掌怪,概念:防+强化。【尖刺X】对攻击者造成X点伤害。,[仙人掌怪;0];[仙人掌怪;0],
minion,蛇,概念:攻+强化。给玩家塞入蛇毒牌消耗。一回合弃掉超过1张蛇毒时受到6伤害。,[蛇;0];[蛇;0], minion,蛇,概念:攻+强化。给玩家塞入蛇毒牌消耗。一回合弃掉超过1张蛇毒时受到6伤害。,[蛇;0];[蛇;0],
minion,木乃伊,概念:攻+防。【诅咒】:受攻击时物品【攻击】-1直到弃掉一张该物品的牌。,[木乃伊;0];[仙人掌怪;0], minion,木乃伊,概念:攻+防。【诅咒】:受攻击时物品【攻击】-1直到弃掉一张该物品的牌。,[木乃伊;0];[仙人掌怪;0],

1 # minion (10): minor enemies
5 # camp (2): consumable restock and heal
6 # curio (8): random pickup of treasure or resources
7 type,name,description,enemies,dialogue
8 'minion'|'elite'|'event'|'shop'|'camp'|'curio',string,string,[@enemyDesert;number][],string 'minion'|'elite'|'event'|'shop'|'camp'|'curio',string,string,[enemy: @enemyDesert;bonusHp: number][],string
9 minion,仙人掌怪,概念:防+强化。【尖刺X】:对攻击者造成X点伤害。,[仙人掌怪;0];[仙人掌怪;0],
10 minion,蛇,概念:攻+强化。给玩家塞入蛇毒牌(消耗。一回合弃掉超过1张蛇毒时,受到6伤害)。,[蛇;0];[蛇;0],
11 minion,木乃伊,概念:攻+防。【诅咒】:受攻击时物品【攻击】-1,直到弃掉一张该物品的牌。,[木乃伊;0];[仙人掌怪;0],

View File

@ -4,7 +4,7 @@ type EncounterDesertTable = readonly {
readonly type: "minion" | "elite" | "event" | "shop" | "camp" | "curio"; readonly type: "minion" | "elite" | "event" | "shop" | "camp" | "curio";
readonly name: string; readonly name: string;
readonly description: string; readonly description: string;
readonly enemies: readonly [EnemyDesert, number]; readonly enemies: readonly [readonly enemy: EnemyDesert, readonly bonusHp: number];
readonly dialogue: string; readonly dialogue: string;
}[]; }[];

View File

@ -1,5 +1,5 @@
id,initHp,initBuffs,initialIntent id,initHp,initBuffs,initialIntent
string, int, [string;int][], string string, int, [effect: @effectDesert; stacks: int][], string
仙人掌怪,20,[spike;1],boost 仙人掌怪,20,[spike;1],boost
蛇,14,,poison 蛇,14,,poison
木乃伊,18,,attack 木乃伊,18,,attack

1 id initHp initBuffs initialIntent
2 string int [string;int][] [effect: @effectDesert; stacks: int][] string
3 仙人掌怪 20 [spike;1] boost
4 14 poison
5 木乃伊 18 attack

View File

@ -1,7 +1,9 @@
import type { EffectDesert } from './effectDesert.csv';
type EnemyDesertTable = readonly { type EnemyDesertTable = readonly {
readonly id: string; readonly id: string;
readonly initHp: number; readonly initHp: number;
readonly initBuffs: readonly [string, number]; readonly initBuffs: readonly [readonly effect: EffectDesert, readonly stacks: number];
readonly initialIntent: string; readonly initialIntent: string;
}[]; }[];