vagabond-rpg-foundryvtt/module/documents/_module.mjs
Cal Corum 517b7045c7 Add Phase 2 core system logic: document classes, dice rolling, and fixes
Implements Phase 2 foundational components:
- VagabondActor document class with item management, resource tracking,
  damage/healing, rest mechanics, and combat helpers
- VagabondItem document class with chat card generation and item usage
- Comprehensive dice rolling module (d20 checks, skill/attack/save rolls,
  damage with crit doubling, countdown dice, morale checks)
- Quench tests for all dice rolling functions

Fixes Foundry VTT v13 compatibility issues:
- Add documentTypes to system.json declaring valid Actor/Item types
- Fix StringField validation errors by using nullable/null pattern
  instead of blank string choices for optional fields
- Update actor tests to use embedded documents for slot calculations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-13 10:21:48 -06:00

10 lines
299 B
JavaScript

/**
* Vagabond RPG Document Classes
*
* Central export point for all custom document classes.
* These classes extend Foundry's base documents to add system-specific functionality.
*/
export { default as VagabondActor } from "./actor.mjs";
export { default as VagabondItem } from "./item.mjs";