fix: migrate combat system from d6 to d10 to match official rules

- Change all dice rolls in fight.mjs from d6 to d10
- Implement success counting system (dice >= difficulty) as per Vermine2047 rules
- Add d10 success class to dice that meet or exceed difficulty
- Display success count in confrontation UI
- Update chat message handler to count successes instead of summing dice
- Add comprehensive JSDoc documentation to performTest method
- Add missing French translations for fight tool terms

This corrects a critical inconsistency where fight.mjs was using d6
while the official Vermine2047 rules and the rest of the system (roll.mjs)
use d10 with success counting.

Compatibility: FoundryVTT v11-v14

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-06-04 16:48:57 +02:00
parent 386d80639c
commit f9f07cbc7e
2 changed files with 78 additions and 18 deletions
+8
View File
@@ -130,6 +130,14 @@
"error_no_rerolls_left": "Plus de relances possibles",
"error_select_ability": "Veuillez sélectionner une caractéristique",
"error_not_enough_self_control": "Pas assez de points de sang-froid",
"FightTool": "Outil de combat",
"Roll4Fight": "Lancer pour le combat",
"Selected": "Sélectionné",
"Achievement": "Accomplissement",
"Conservation": "Conservation",
"ConfrontationHint": "Résolvez la confrontation en sélectionnant des dés",
"PurposeTrait": "Trait de but",
"SpleenTrait": "Trait de rate",
"group": "Groupe",
"abilities": "Caractéristiques",
"ability": "Caractéristique",