vagabond-rpg-foundryvtt/module/tests
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.test.mjs Add resource management method tests 2025-12-13 20:44:00 -06:00
class.test.mjs Implement class feature automation system 2025-12-13 21:19:26 -06:00
crit-threshold.test.mjs Add crit threshold modifier tests and fix effect application 2025-12-13 20:34:36 -06:00
dice.test.mjs Implement attack and save roll systems with difficulty fix 2025-12-13 19:52:28 -06:00
morale.test.mjs Implement NPC morale check system 2025-12-14 00:03:07 -06:00
quench-init.mjs Implement NPC morale check system 2025-12-14 00:03:07 -06:00
spell.test.mjs Implement spell casting system with rulebook-accurate mana costs 2025-12-13 20:22:20 -06:00