vagabond-rpg-foundryvtt/module/documents
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
..
_module.mjs Add Phase 2 core system logic: document classes, dice rolling, and fixes 2025-12-13 10:21:48 -06:00
actor.mjs Implement NPC morale check system 2025-12-14 00:03:07 -06:00
item.mjs Implement class feature automation system 2025-12-13 21:19:26 -06:00