refactor: decouple card effects from card data in desert sample

Moves card effects from `card.csv` to a dedicated `cardEffect.csv` file.
This allows for more granular control over card triggers (onPlay,
onDraw, onDiscard) and targets, improving the data model for the
slay-the-spire-like sample. Also updates triggers and tests to
reflect this new structure.
This commit is contained in:
2026-04-20 00:00:41 +08:00
parent 3840c3d739
commit 2f2e4e56b5
9 changed files with 1588 additions and 1274 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -1,8 +1,8 @@
import { describe, it, expect } from 'vitest';
import data from '@/samples/slay-the-spire-like/data';
import { describe, it, expect } from "vitest";
import data from "@/samples/slay-the-spire-like/data";
describe('data import', () => {
it('should import properly', () => {
expect(data.desert.effects).toBeDefined();
});
describe("data import", () => {
it("should import properly", () => {
expect(data.desert.getEffects).toBeDefined();
});
});