vagabond-rpg-foundryvtt/module/data
Cal Corum f6948dc7d6 Implement NPC morale check system
Add morale roll system for NPCs with group support and automatic triggers:
- rollMorale() method for individual NPC morale checks (2d6 vs morale score)
- rollGroupMorale() static method uses lowest morale in selected tokens
- promptMoraleCheck() posts GM-whispered chat with clickable roll button
- Auto-prompt when NPC HP drops to half or below
- Chat button click handler for morale prompts
- Morale Check macro for quick group rolls
- Comprehensive test suite for morale functionality

Morale fails when 2d6 > morale score, setting moraleStatus.broken = true.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-14 00:03:07 -06:00
..
actor Implement NPC morale check system 2025-12-14 00:03:07 -06:00
item Implement class feature automation system 2025-12-13 21:19:26 -06:00
_module.mjs Implement Phase 1: Complete data model system for actors and items 2025-12-12 15:22:09 -06:00