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> |
||
|---|---|---|
| .. | ||
| _module.mjs | ||
| actor.mjs | ||
| item.mjs | ||