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:
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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user