Commit Graph

18 Commits

Author SHA1 Message Date
uberwald 02aabbea36 fix(hooks): delay editMode flag setting to avoid phase error on createActor
The createActor hook was calling actor.setFlag() immediately, which triggered
updateActor -> prepareData -> prepareEmbeddedDocuments() -> applyActiveEffects().

Since the actor had already gone through data preparation during creation,
the effects had already been applied, causing the 'phase already completed' error.

Solution: Use setTimeout(..., 0) to defer the flag setting until after the
current preparation cycle is complete.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-04 23:20:40 +02:00
uberwald 3db03f5159 fix(templates): complete revision of actor templates to remove duplicates and fix inconsistencies
- Fixed grid-2 to grid-2col CSS class usage
- Replaced improper <p><a> tags with <div><a> in item lists (actor-weapons, actor-defenses, group-items, group-vehicles)
- Fixed typos: smarttlk -> smarttl, compétence -> Compétence
- Fixed duplicate class attributes
- Standardized HTML comments to Handlebars comments ({{!-- --}})
- Added missing localizations for Character and Skills headers
- Removed orphan {{/if}} tag in character-id.hbs
- Created npc-skill-category.hbs partial to eliminate 150+ lines of duplicated skill category code in actor-npc-sheet.hbs
- Created item-list.hbs partial for reusable item list display
- Fixed html.find(...).forEach error in roll.mjs by ensuring jQuery object
- Added .history/ to .gitignore

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-04 22:58:46 +02:00
uberwald 30d6f71fc7 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>
2026-06-04 22:22:52 +02:00
rwanoux dc621f2223 début des messages d'items 2024-11-26 12:48:27 +01:00
rwanoux 299fbcd50d essai de fix du bug des hooks sur messages, suppression des tours 2024-11-22 18:17:10 +01:00
rwanoux f4a56aa6b0 fixes v12 2024-06-24 08:41:59 +02:00
rwanoux 83c3f1df0b tellement de trucs 2024-05-13 18:27:54 +02:00
rwanoux 9cee590267 fixe des dés 3d 2024-04-28 23:50:39 +02:00
rwanoux 067771d8b9 filtrage des chat events selon gm ou user 2024-04-28 23:30:02 +02:00
rwanoux 0fada335f4 reroll OK 2024-04-28 16:35:48 +02:00
François-Xavier Guillois 25b4179cd3 actor default images + template sort 2023-09-06 08:55:46 +02:00
François-Xavier Guillois 641d2a892a v.0.0.16 2023-08-25 10:36:25 +02:00
François-Xavier Guillois e5396b6991 vehicules pour la feuille de groupe - v0.0.14 2023-06-06 16:02:39 +02:00
François-Xavier Guillois 2b5e639e9e from totem to vermine - v0.0.12 2023-06-06 11:06:04 +02:00
François-Xavier Guillois 8e2e3d1ebf rolling 2023-05-17 17:39:50 +02:00
François-Xavier Guillois 42fe4c0bd5 import sandbox 2023-05-13 22:16:23 +02:00
François-Xavier Guillois 5761587649 first page 2023-04-20 18:27:54 +02:00
François-Xavier Guillois 5ddd9db9b3 first data modeling 2023-04-20 15:12:05 +02:00