vagabond-rpg-foundryvtt/module
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
..
applications Implement spell casting system with rulebook-accurate mana costs 2025-12-13 20:22:20 -06:00
data Implement NPC morale check system 2025-12-14 00:03:07 -06:00
dice Implement attack and save roll systems with difficulty fix 2025-12-13 19:52:28 -06:00
documents Implement NPC morale check system 2025-12-14 00:03:07 -06:00
helpers Add important data model enhancements from rulebook audit 2025-12-12 15:55:25 -06:00
tests Implement NPC morale check system 2025-12-14 00:03:07 -06:00
vagabond.mjs Implement NPC morale check system 2025-12-14 00:03:07 -06:00