fix: Correct critical bugs and complete Creature/Group DataModel implementation

- Fix TypeError: controls.find is not a function in hooks.mjs
- Fix undefined 'npc' variable in applications.mjs
- Fix CONFIG.VERMINE.model undefined by checking game.system.template existence
- Fix TypeError: html.find(...).forEach is not a function in roll.mjs
- Fix Cannot set properties of undefined (setting 'initial') in actor.mjs
- Fix Cannot read properties of undefined (reading 'difficulty') in actor.mjs
- Fix ActiveEffect application phase 'initial' already completed by adding combatStatus to base template
- Fix Missing helper: 'select' in roll-dialog.hbs (removed invalid Handlebars select block)
- Add SIZE_LEVELS labels to creatureSizeLevels config
- Add SIZE_LEVELS translations to fr.json
- Add combatStatus to base actor template
- Convert all .html templates to .hbs for Foundry v14 compatibility
- Update item-sheet.mjs to use .hbs extension
- Update handlebars-manager.mjs to use .hbs for all partials

Complete Vermine2047 Creature and Group sheet implementation:
- Creature: Pattern, Size, Role, Pack with computed values
- Group: Totem, Reserve, Morale, Objectives, Members management
- All templates functional with proper styling

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-06-04 20:58:22 +02:00
parent f9f07cbc7e
commit 30d6f71fc7
43 changed files with 19225 additions and 609 deletions
+100 -4
View File
@@ -22,7 +22,10 @@
},
"legendary": {
"name": "Légendaire"
}
},
"survival": "Survie",
"nightmare": "Cauchemar",
"apocalypse": "Apocalypse"
},
"ROLLS": {
"tool": "Lanceur de dés",
@@ -71,6 +74,7 @@
"old": "Vieux"
},
"IDENTITY": {
"biography": "Biographie",
"name": "Nom",
"height": "Taille",
"weight": "Poids",
@@ -98,17 +102,21 @@
"vigor": "Vigueur",
"wounds": "Blessures",
"action": "Action",
"specialties": "Spécialité",
"specialties": "Spécialités",
"rerolls": "Relances",
"contact": "Contact",
"reaction": "Réaction",
"pools": "Réserves",
"gear": "Matériel",
"gear_hindrance": "Handicap Matériel",
"protection": "Protection",
"skills": "Compétences",
"skills_placeholder": "ex: Armes à feu, Soins, Discrétion",
"pattern": "Gabarit",
"size": "Taille",
"pack": "Groupe"
"pack": "Groupe",
"threat_details": "Détails de Menace",
"role_details": "Détails de Rôle"
},
"VERMINE": {
"name": "Vermine",
@@ -118,8 +126,33 @@
"reputation": "Réputation",
"pool": "Réserve",
"pools": "Réserves",
"reserves": "Réserves",
"self_control": "Sang-Froid",
"effort": "Effort",
"preferred_category": "Catégorie préférée",
"wounds": {
"name": "Blessures",
"light": "Légères",
"heavy": "Graves",
"deadly": "Mortelles"
},
"ability_category": {
"physical": "Physiques",
"manual": "Manuelles",
"mental": "Mentales",
"social": "Sociales"
},
"skill_category": {
"man": "Homme",
"animal": "Animal",
"tool": "Outil",
"weapon": "Arme",
"survival": "Survie",
"world": "Monde"
},
"rarity_0": "Commun",
"rarity_1": "Peu commun",
"rarity_2": "Rare",
"test_of": "test de",
"rerolls_possible": "relances possibles",
"grant_reroll": "accorder des relances",
@@ -227,7 +260,33 @@
"encounters": "Rencontres",
"road": "La Route",
"totem_picker": "Sélecteur de totem",
"actor_picker": "Sélecteur de personnage"
"actor_picker": "Sélecteur de personnage",
"morale": "Moral",
"reserve": "Réserve de groupe",
"objectives": "Objectifs",
"major_objectives": "Objectifs majeurs",
"minor_objectives": "Objectifs mineurs",
"instincts": "Instincts",
"prohibits": "Interdictions",
"group_abilities": "Capacités de groupe",
"vote_reserve": "Vote pour utiliser la réserve",
"morale_high": "Haut",
"morale_normal": "Normal",
"morale_low": "Bas",
"morale_crisis": "Crise",
"objective_placeholder": "Objectif...",
"instincts_placeholder": "Ex: Triompher, relever un défi...",
"prohibits_placeholder": "Ex: Fuir, abandonner...",
"error_unknown_actor": "Acteur inconnu",
"creature": "Créature",
"pattern": "Gabarit",
"size": "Taille",
"pack": "Meute",
"computed_values": "Valeurs calculées",
"base_values": "Valeurs de base",
"total_attack": "Attaque totale",
"total_damage": "Dégâts totaux",
"wound_thresholds": "Seuils de blessures"
},
"UI": {
"add": "Ajouter",
@@ -323,6 +382,11 @@
"important": "Important",
"major": "Majeur"
},
"SIZE_LEVELS": {
"small": "Petit",
"medium": "Moyen",
"large": "Grand"
},
"PATTERN_LEVELS": {
"insect": "Insecte",
"rat": "Rat",
@@ -551,5 +615,37 @@
"SEXES": {
"male": "Masculin",
"female": "Féminin"
},
"SKILLS": {
"arts": "Arts",
"civilization": "Civilisation",
"psychology": "Psychologie",
"rumors": "Rumeurs",
"healing": "Soins",
"animalism": "Animalisme",
"dissection": "Dissection",
"fauna": "Faune",
"repulsion": "Répulsion",
"tracks": "Pistage",
"crafting": "Artisanat",
"diy": "Bricolage",
"mecanical": "Mécanique",
"piloting": "Pilotage",
"technology": "Technologie",
"firearms": "Armes à feu",
"archery": "Tir à l'arc",
"armory": "Armurerie",
"throwing": "Lancer",
"melee": "Mêlée",
"alertness": "Vigilance",
"athletics": "Athlétisme",
"food": "Alimentation",
"stealth": "Discrétion",
"close": "Corps-à-corps",
"environment": "Environnement",
"flora": "Flore",
"road": "Route",
"toxics": "Toxiques",
"ruins": "Vestiges"
}
}