Commit Graph

2 Commits

Author SHA1 Message Date
Cal Corum
bcbf8338ff Fix compendium IDs to be exactly 16 alphanumeric characters
Foundry VTT v13 requires all _id values to be exactly 16 characters.
Previous IDs ranged from 17-25+ characters and caused validation errors.

Changes:
- Use 7-char prefix per type (vgbdAnc, vgbdCls, vgbdPrk, etc.)
- Append 9-char name derived from filename with padding
- Handle collisions with numeric suffixes (e.g., vgbdPrkheighten1)

Files updated across all compendiums:
- Ancestries: 7 files
- Classes: 18 files
- Perks: 103 files (3 collision fixes)
- Spells: 58 files
- Weapons: 43 files
- Armor: 5 files
- Equipment: ~300 files (25 collision fixes)
- Bestiary: ~70 files (8 collision fixes)
- Statuses: ~15 files

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 11:04:10 -06:00
Cal Corum
bf2cd92e93 Add Status item system and separate attack/damage rolls
Status System:
- Add StatusData model with mechanical modifiers (damageDealt, healingReceived)
- Add status item sheet with modifier configuration
- Add status-bar.hbs for displaying status chips on actor sheets
- Status chips show tooltip on hover, can be removed via click
- Add 17 status items to compendium (Blinded, Burning, Charmed, etc.)
- Frightened applies -2 damage dealt, Sickened applies -2 healing received

Attack Roll Changes:
- Separate attack and damage into two discrete rolls
- Attack hit now shows "Roll Damage" button instead of auto-rolling
- Button click rolls damage and updates the chat message in-place
- Store weapon/attack data in message flags for later damage rolling
- Fix favor/hinder and modifier preset buttons in attack dialog
- Show individual damage dice results in chat card breakdown

Mechanical Integration:
- Add _applyStatusModifiers() to VagabondActor for aggregating status effects
- Update getRollData() to include statusModifiers for roll formulas
- Update damageRoll() to automatically apply damageDealt modifier
- Update applyHealing() to respect healingReceived modifier

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 14:36:57 -06:00