boardgame-core/tests/samples/slay-the-spire-like/combat
hypercross 5e172c61bb refactor(slay-the-spire-like): use IRunContext in combat system
Update the combat system to use `IRunContext` instead of passing
raw inventory objects. This provides a cleaner abstraction for
accessing item data and managing consumed uses.

- Update `canPlayCard` and `payCardCost` to use `IRunContext`
- Pass `IRunContext` through the trigger registration chain
- Fix logic in `canPlayCard` for "uses" cost validation
- Update combat effect tests to use a mock `IRunContext`
2026-04-20 11:25:52 +08:00
..
effects.test.ts refactor(slay-the-spire-like): use IRunContext in combat system 2026-04-20 11:25:52 +08:00
triggers.test.ts refactor(slay-the-spire-like): use IRunContext in combat system 2026-04-20 11:25:52 +08:00