diff --git a/modules/actors/tedeum-actor-sheet.js b/modules/actors/tedeum-actor-sheet.js index 8b3852a..fa1b9a7 100644 --- a/modules/actors/tedeum-actor-sheet.js +++ b/modules/actors/tedeum-actor-sheet.js @@ -49,6 +49,8 @@ export class TeDeumActorPJSheet extends ActorSheet { poisons: this.actor.getPoisons(), combat: this.actor.prepareCombat(), bonusDegats: this.actor.getBonusDegats(), + nbActions: this.actor.getNbActions(), + initiative: this.actor.getInitiative(), pointsArmuresLourdes: this.actor.getNbArmures(), nbArmuresLourdes: this.actor.getNbArmuresLourdesActuel(), santeModifier: this.actor.getSanteModifier(), @@ -125,6 +127,11 @@ export class TeDeumActorPJSheet extends ActorSheet { const armeId = $(event.currentTarget).data("arme-id") this.actor.rollArme(armeId) }); + html.find('.roll-degats').click((event) => { + const armeId = $(event.currentTarget).data("arme-id") + this.actor.rollDegatsArme(armeId) + }); + html.find('.lock-unlock-sheet').click((event) => { this.options.editScore = !this.options.editScore; diff --git a/modules/actors/tedeum-actor.js b/modules/actors/tedeum-actor.js index f969077..69c6a00 100644 --- a/modules/actors/tedeum-actor.js +++ b/modules/actors/tedeum-actor.js @@ -50,6 +50,60 @@ export class TeDeumActor extends Actor { /* -------------------------------------------- */ async prepareData() { super.prepareData() + + let updates = [] + let memoriser = this.items.find(item => item.type == "competence" && item.name.toLowerCase() == "mémoriser") + let newScore = this.getCommonBaseValue(this.system.caracteristiques.adresse.value) + if (memoriser && memoriser?.system.score != newScore) { + updates.push({ _id: memoriser.id, "system.score": Number(newScore) }) + } + + let perception = this.items.find(item => item.type == "competence" && item.name.toLowerCase() == "perception") + newScore = this.getCommonBaseValue(this.system.caracteristiques.sensibilite.value) + if (perception && perception.system.score != newScore) { + updates.push({ _id: perception.id, "system.score": Number(newScore) }) + } + + let charme = this.items.find(item => item.type == "competence" && item.name.toLowerCase() == "charme") + newScore = this.getCommonBaseValue(this.system.caracteristiques.entregent.value) + if (charme && charme?.system.score != newScore) { + updates.push({ _id: charme.id, "system.score": Number(newScore) }) + } + + let endurance = this.items.find(item => item.type == "competence" && item.name.toLowerCase() == "endurance") + newScore = this.getCommonBaseValue(this.system.caracteristiques.complexion.value) + if (endurance && endurance?.system.score != newScore) { + updates.push({ _id: endurance.id, "system.score": Number(newScore) }) + } + + let course = this.items.find(item => item.type == "competence" && item.name.toLowerCase() == "course") + newScore = this.getCommonBaseValue(this.system.caracteristiques.adresse.value) + if (course && course?.system.score != newScore) { + updates.push({ _id: course.id, "system.score": Number(newScore) }) + } + + let initiative = this.items.find(item => item.type == "competence" && item.name.toLowerCase() == "initiative") + newScore = this.getCommonBaseValue(this.system.caracteristiques.adresse.value) + if (initiative && initiative?.system.score != newScore) { + updates.push({ _id: initiative.id, "system.score": Number(newScore) }) + } + + let actionsTour = this.items.find(item => item.type == "competence" && item.name.toLowerCase() == "actions/tour") + newScore = this.getCommonBaseValue(this.system.caracteristiques.adresse.value) + if (actionsTour && actionsTour?.system.score != newScore) { + updates.push({ _id: actionsTour.id, "system.score": Number(newScore) }) + } + + let effort = this.items.find(item => item.type == "competence" && item.name.toLowerCase() == "effort") + newScore = this.getCommonBaseValue(this.system.caracteristiques.puissance.value) + if (effort && effort?.system.score != newScore) { + updates.push({ _id: effort.id, "system.score": Number(newScore) }) + } + + if (updates.length > 0) { + await this.updateEmbeddedDocuments('Item', updates) + } + } /* -------------------------------------------- */ @@ -75,6 +129,13 @@ export class TeDeumActor extends Actor { this.updateSource({ prototypeToken }); } + /* -------------------------------------------- */ + getCommonBaseValue(value) { + return game.system.tedeum.config.COMMON_VALUE[value]?.value || 0 + } + getInitiative() { + return game.system.tedeum.config.COMMON_VALUE[this.system.caracteristiques.adresse.value]?.value || 0 + } /* -------------------------------------------- */ getBonusDegats() { return game.system.tedeum.config.BONUS_DEGATS[this.system.caracteristiques.puissance.value] @@ -86,6 +147,9 @@ export class TeDeumActor extends Actor { getNbActions() { return game.system.tedeum.config.ACTIONS_PAR_TOUR[this.system.caracteristiques.adresse.value] } + getInitiative() { + return game.system.tedeum.config.ACTIONS_PAR_TOUR[this.system.caracteristiques.adresse.value] + } getNbArmuresLourdesActuel() { let armures = this.getArmures() let nb = 0 @@ -503,6 +567,28 @@ export class TeDeumActor extends Actor { this.startRoll(rollData).catch("Error on startRoll") } + /* -------------------------------------------- */ + async rollDegatsArme(armeId) { + let weapon = this.items.get(armeId) + if (weapon) { + let bDegats = this.getBonusDegats() + let formula = weapon.system.degats + "+" + bDegats.value + let degatsRoll = await new Roll(formula).roll() + await TeDeumUtility.showDiceSoNice(degatsRoll, game.settings.get("core", "rollMode") ) + let rollData = this.getCommonRollData() + rollData.mode = "degats" + rollData.formula = formula + rollData.arme = foundry.utils.duplicate(weapon) + rollData.degatsRoll = foundry.utils.duplicate(degatsRoll) + rollData.degats = degatsRoll.total + + let msg = await TeDeumUtility.createChatWithRollMode(rollData.alias, { + content: await renderTemplate(`systems/fvtt-te-deum/templates/chat/chat-degats-result.hbs`, rollData) + }) + await msg.setFlag("world", "te-deum-rolldata", rollData) + console.log("Rolldata result", rollData) + } + } /* -------------------------------------------- */ rollArme(armeId, compName = undefined) { diff --git a/modules/app/tedeum-character-creator.js b/modules/app/tedeum-character-creator.js index b125987..27e5829 100644 --- a/modules/app/tedeum-character-creator.js +++ b/modules/app/tedeum-character-creator.js @@ -306,7 +306,7 @@ export class TeDeumCharacterCreator { let context = { title: "Création de personnage", subtitle: "Origine Sociale", - sexeChoice: { "homme": "Homme", "femme": "Femme" }, + sexeChoice: { "Homme": "Homme", "Femme": "Femme" }, religionChoice: { "catholique": "Catholique", "protestante": "Protestante" }, origineChoice: game.system.tedeum.config.origineSociale } @@ -406,7 +406,7 @@ export class TeDeumCharacterCreator { } this.grimauds = foundry.utils.duplicate(stage.items.find(item => item.id === choiceResult.selectedItem)) - context.title = `LesPetits Grimauds - ${this.grimauds.name}"` + context.title = `LesPetits Grimauds - ${this.grimauds.name}` TeDeumUtility.prepareEducationContent(this.grimauds); context.label = "Valider l'augmentation de caracteristique" @@ -530,7 +530,7 @@ export class TeDeumCharacterCreator { updates[`system.caracteristiques.${key}.value`] = Number(this.caracBonus[key].value)+1 } updates['system.genre'] = this.sexe - updates['system.religion'] = this.religion + updates['system.religion'] = TeDeumUtility.upperFirst(this.religion) updates['system.statutocial'] = this.origineSociale.label updates['system.equipmentfree'] = this.ageViril.system.trousseau actor.update( updates); diff --git a/modules/app/tedeum-combat.js b/modules/app/tedeum-combat.js index 238c366..345b337 100644 --- a/modules/app/tedeum-combat.js +++ b/modules/app/tedeum-combat.js @@ -5,6 +5,7 @@ export class TeDeumCombat extends Combat { /* -------------------------------------------- */ async rollInitiative(ids, formula = undefined, messageOptions = {} ) { + console.log("Roll INIT !") ids = typeof ids === "string" ? [ids] : ids; for (let cId of ids) { const c = this.combatants.get(cId); diff --git a/modules/common/tedeum-config.js b/modules/common/tedeum-config.js index 796f05f..ffebcde 100644 --- a/modules/common/tedeum-config.js +++ b/modules/common/tedeum-config.js @@ -4,33 +4,35 @@ export const SYSTEM_ID = "fvtt-te-deum"; export const TEDEUM_CONFIG = { BONUS_DEGATS: [{}, { label: "1d4", value: -2 }, { label: "1d6", value: -1 }, { label: "1d8", value: 0 }, - { label: "1d10", value: 1 }, { label: "1d12", value: 2 }, { label: "1d20", value: 3 }], + { label: "1d10", value: 1 }, { label: "1d12", value: 2 }, { label: "1d20", value: 3 }], MAX_ARMURES_LOURDES: [{}, { value: 1 }, { value: 3 }, { value: 5 }, - { value: 7 }, { value: 9 }, { value: 11 }], + { value: 7 }, { value: 9 }, { value: 11 }], ACTIONS_PAR_TOUR: [{}, { value: 1 }, { value: 2 }, { value: 2 }, - { value: 3 }, { value: 3 }, { value: 4 }], + { value: 3 }, { value: 3 }, { value: 4 }], + COMMON_VALUE: [{}, { value: 1 }, { value: 2 }, { value: 3 }, + { value: 4 }, { value: 5 }, { value: 6 }], COUT_XP: [{}, { value: 10 }, { value: 10 }, { value: 10 }, - { value: 10 }, { value: 30 }, { value: 50 }], + { value: 10 }, { value: 30 }, { value: 50 }], LOCALISATION: { - "pieddroit": { label: "Pied Droit", value: 1, locMod:0, id: "pieddroit", nbArmure: 1, score: {min: 1, max:1}, coord: { top: 500, left: 0 } }, - "jambedroite": { label: "Jambe Droite", value: 1, locMod:-1,id: "jambedroite", nbArmure: 1, score: {min: 3, max:4},coord: { top: 400, left: 100 } }, - "jambegauche": { label: "Jambe Gauche", value: 1, locMod:-1,id: "jambegauche", nbArmure: 1, score: {min: 5, max:6},coord: { top: 400, left: 300 } }, - "piedgauche": { label: "Pied Gauche", value: 1, locMod:0,id: "piedgauche", nbArmure: 1, score: {min: 2, max:2},coord: { top: 500, left: 400 } }, - "maindroite": { label: "Main Droite", value: 1, locMod:0,id: "maindroite", nbArmure: 1, score: {min: 7, max:7},coord: { top: 0, left: 0 } }, - "maingauche": { label: "Main Gauche", value: 1, locMod:0,id: "maingauche", nbArmure: 1, score: {min: 8, max:8},coord: { top: 0, left: 400 } }, - "brasdroit": { label: "Bras Droit", value: 1, locMod:-1,id: "brasdroit", nbArmure: 2, score: {min: 9, max:10},coord: { top: 200, left: 0 } }, - "brasgauche": { label: "Bras Gauche", value: 1, locMod:-1,id: "brasgauche", nbArmure: 2, score: {min: 11, max:12},coord: { top: 200, left: 400 } }, - "corps": { label: "Corps", value: 1, id: "corps", locMod:-2,nbArmure: 2, score: {min: 13, max:17},coord: { top: 200, left: 200 } }, - "tete": { label: "Tête", value: 1, id: "tete", locMod:-2,nbArmure: 2 , score: {min: 18, max:20},coord: { top: 0, left: 200 }}, + "pieddroit": { label: "Pied Droit", value: 1, locMod: 0, id: "pieddroit", nbArmure: 1, score: { min: 1, max: 1 }, coord: { top: 500, left: 0 } }, + "jambedroite": { label: "Jambe Droite", value: 1, locMod: -1, id: "jambedroite", nbArmure: 1, score: { min: 3, max: 4 }, coord: { top: 400, left: 100 } }, + "jambegauche": { label: "Jambe Gauche", value: 1, locMod: -1, id: "jambegauche", nbArmure: 1, score: { min: 5, max: 6 }, coord: { top: 400, left: 300 } }, + "piedgauche": { label: "Pied Gauche", value: 1, locMod: 0, id: "piedgauche", nbArmure: 1, score: { min: 2, max: 2 }, coord: { top: 500, left: 400 } }, + "maindroite": { label: "Main Droite", value: 1, locMod: 0, id: "maindroite", nbArmure: 1, score: { min: 7, max: 7 }, coord: { top: 0, left: 0 } }, + "maingauche": { label: "Main Gauche", value: 1, locMod: 0, id: "maingauche", nbArmure: 1, score: { min: 8, max: 8 }, coord: { top: 0, left: 400 } }, + "brasdroit": { label: "Bras Droit", value: 1, locMod: -1, id: "brasdroit", nbArmure: 2, score: { min: 9, max: 10 }, coord: { top: 200, left: 0 } }, + "brasgauche": { label: "Bras Gauche", value: 1, locMod: -1, id: "brasgauche", nbArmure: 2, score: { min: 11, max: 12 }, coord: { top: 200, left: 400 } }, + "corps": { label: "Corps", value: 1, id: "corps", locMod: -2, nbArmure: 2, score: { min: 13, max: 17 }, coord: { top: 200, left: 200 } }, + "tete": { label: "Tête", value: 1, id: "tete", locMod: -2, nbArmure: 2, score: { min: 18, max: 20 }, coord: { top: 0, left: 200 } }, }, ARME_SPECIFICITE: { - "encombrante": { label: "Encombrante", id: "encombrante", melee: true, tir: true}, + "encombrante": { label: "Encombrante", id: "encombrante", melee: true, tir: true }, "maintiendistance": { label: "Maintien à distance", id: "maintiendistance", melee: true, tir: false }, - "coupassomant": { label: "Coup assomant", id: "coupassomant", melee: true, tir: false}, - "peutlancer": { label: "Peut être lancée", id: "peutlancer", melee: true, tir: false}, - "pasboutportant": { label: "Inutilisable à bout portant", id: "pasboutportant", melee: false, tir: true}, + "coupassomant": { label: "Coup assomant", id: "coupassomant", melee: true, tir: false }, + "peutlancer": { label: "Peut être lancée", id: "peutlancer", melee: true, tir: false }, + "pasboutportant": { label: "Inutilisable à bout portant", id: "pasboutportant", melee: false, tir: true }, "mitraille": { label: "Mitraille", id: "mitraille", melee: false, tir: true }, "degatscharge": { label: "Dégâts accrus à la charge", id: "degatscharge", melee: true, tir: false }, "crochecavalier": { label: "Croche-cavalier", id: "crochecavalier", melee: true, tir: false }, @@ -41,18 +43,23 @@ export const TEDEUM_CONFIG = { }, ARME_PORTEES: { - "brulepourpoint": { label: "Brûle-pourpoint", difficulty: "facile", id: "brulepourpoint"}, - "courte": { label: "Courte", difficulty: "pardefaut", id: "courte"}, - "moyenne": { label: "Moyenne", difficulty: "difficile", id: "moyenne"}, - "longue": { label: "Longue", difficulty: "perilleux", id: "longue"}, - "extreme": { label: "Extrême", difficulty: "desespere", id: "extreme"}, + "brulepourpoint": { label: "Brûle-pourpoint", difficulty: "facile", id: "brulepourpoint" }, + "courte": { label: "Courte", difficulty: "pardefaut", id: "courte" }, + "moyenne": { label: "Moyenne", difficulty: "difficile", id: "moyenne" }, + "longue": { label: "Longue", difficulty: "perilleux", id: "longue" }, + "extreme": { label: "Extrême", difficulty: "desespere", id: "extreme" }, + }, + + genre: { + Homme: { label: "Homme", value: "Homme" }, + Femme: { label: "Femme", value: "Femme" } }, descriptionValeurOdd: { 1: { valeur: 1, qualite: "Mauvais", dice: "d4", negativeDice: "d20", savoir: "Sot", sensibilite: "Obtus", entregent: "Rustaud", puissance: "Menu", complexion: "Anémique", adresse: "Empesé" }, 2: { valeur: 2, qualite: "Médiocre", dice: "d6", negativeDice: "d12", savoir: "Limité", sensibilite: "Etriqué", entregent: "Frustre", puissance: "Délicat", complexion: "Languide", adresse: "Gauche" }, 3: { valeur: 3, qualite: "Correct", dice: "d8", negativeDice: "d10", savoir: "Mêlé", sensibilite: "Ouvert", entregent: "Badin", puissance: "Membru", complexion: "Dispos", adresse: "Ingambe" }, - 4: { valeur: 4, qualite: "Bon", dice: "d10", negativeDice: "d8", savoir: "Lettré", sensibilite: "Fin", entregent: "Disert", puissance: "Vigoureux", complexion: "Gaillard", adresse: "Leste" }, + 4: { valeur: 4, qualite: "Bon", dice: "d10", negativeDice: "d8", savoir: "Lettré", sensibilite: "Fin", entregent: "Disert", puissance: "Vigoureux", complexion: "Gaillard", adresse: "Leste" }, 5: { valeur: 5, qualite: "Bon", dice: "d10", negativeDice: "d8", savoir: "Lettré", sensibilite: "Fin", entregent: "Disert", puissance: "Vigoureux", complexion: "Gaillard", adresse: "Leste" }, 6: { valeur: 6, qualite: "Bon", dice: "d10", negativeDice: "d8", savoir: "Lettré", sensibilite: "Fin", entregent: "Disert", puissance: "Vigoureux", complexion: "Gaillard", adresse: "Leste" }, 7: { valeur: 7, qualite: "Excellent", dice: "d12", negativeDice: "d6", savoir: "Docte", sensibilite: "Subtil", entregent: "Galant", puissance: "Musculeux", complexion: "Sanguin", adresse: "Preste" }, @@ -70,12 +77,12 @@ export const TEDEUM_CONFIG = { 5: { valeur: 5, qualite: "Excellent", dice: "d12", negativeDice: "d6", savoir: "Docte", sensibilite: "Subtil", entregent: "Galant", puissance: "Musculeux", complexion: "Sanguin", adresse: "Preste" }, 6: { valeur: 6, qualite: "Admirable", dice: "d20", negativeDice: "d4", savoir: "Humaniste", sensibilite: "Spirituel", entregent: "Sémillant", puissance: "Hercule", complexion: "Aguerri", adresse: "Alerte" }, }, - diceValeur: [ "d4", "d6", "d8", "d10", "d12", "d20" ], - degatsArmure : { - sansarmure : { label: "Sans armure"}, - cuir : { label: "Cuir"}, - plates : { label: "Plates"}, - mailles : { label: "Mailles"}, + diceValeur: ["d4", "d6", "d8", "d10", "d12", "d20"], + degatsArmure: { + sansarmure: { label: "Sans armure" }, + cuir: { label: "Cuir" }, + plates: { label: "Plates" }, + mailles: { label: "Mailles" }, }, caracteristiques: { @@ -87,10 +94,10 @@ export const TEDEUM_CONFIG = { adresse: { id: "adresse", value: "adresse", label: "Adresse" }, }, allonges: { - courte: { courte: {malus: 0}, moyenne: {malus:-1}, longue: {malus:-2}, treslongue:{malus:0, esquive: 2 } }, - moyenne: { courte: {malus: 0}, moyenne: {malus:0}, longue: {malus:-1}, treslongue:{malus:0, esquive: 2 } }, - longue: { courte: {malus: -2}, moyenne: {malus:-1}, longue: {malus:0}, treslongue:{malus:-1, esquive: 1 } }, - treslongue: { courte: {malus:0, esquive: 2 }, moyenne:{malus:0, esquive: 2 }, longue: {malus:0, esquive: 1 }, treslongue:{malus:0 } }, + courte: { courte: { malus: 0 }, moyenne: { malus: -1 }, longue: { malus: -2 }, treslongue: { malus: 0, esquive: 2 } }, + moyenne: { courte: { malus: 0 }, moyenne: { malus: 0 }, longue: { malus: -1 }, treslongue: { malus: 0, esquive: 2 } }, + longue: { courte: { malus: -2 }, moyenne: { malus: -1 }, longue: { malus: 0 }, treslongue: { malus: -1, esquive: 1 } }, + treslongue: { courte: { malus: 0, esquive: 2 }, moyenne: { malus: 0, esquive: 2 }, longue: { malus: 0, esquive: 1 }, treslongue: { malus: 0 } }, }, providence: [ { labelM: "Brebis égarée", labelF: "Brebis égarée", value: 0, diceValue: "0" }, @@ -114,7 +121,7 @@ export const TEDEUM_CONFIG = { courte: { label: "Courte", value: "courte" }, moyenne: { label: "Moyenne", value: "moyenne" }, longue: { label: "Longue", value: "longue" }, - treslongue: { label: "Très longue", value: "treslongue"} + treslongue: { label: "Très longue", value: "treslongue" } }, armeCompetences: { bagarre: { label: "Bagarre", value: "bagarre" }, @@ -131,9 +138,9 @@ export const TEDEUM_CONFIG = { arquebusade: { label: "Arquebusade", value: "arquebusade" } }, difficulte: { - aucune: { label: "Aucune", key: "aucune", value: 0 }, - routine: { label: "Routine", key: "routine", value: 3 }, - facile: { label: "Facile", key: "facile",value: 5 }, + aucune: { label: "Aucune", key: "aucune", value: 0 }, + routine: { label: "Routine", key: "routine", value: 3 }, + facile: { label: "Facile", key: "facile", value: 5 }, pardefaut: { label: "Par Défaut", key: "pardefaut", value: 7 }, malaise: { label: "Malaisé", key: "malaise", value: 9 }, difficile: { label: "Difficile", key: "difficile", value: 11 }, @@ -147,29 +154,29 @@ export const TEDEUM_CONFIG = { }, etapesEducation: { pouponniere: { label: "La Pouponnière", value: "pouponniere", agemin: 0, agemax: 6, nbCompetences: 2, nbCaracteristiques: 3, hasQuestionnaire: true, hasDebouches: false, hasMultiplier: false, canCompetencesOpt: false }, - petitsgrimauds: { label: "La classe des Petits Grimauds", value: "petitsgrimauds", agemin: 7, agemax: 12,nbCompetences: 10, nbCaracteristiques: 3, hasDebouches: false, hasQuestionnaire: true, hasMultiplier: false, canCompetencesOpt: false }, + petitsgrimauds: { label: "La classe des Petits Grimauds", value: "petitsgrimauds", agemin: 7, agemax: 12, nbCompetences: 10, nbCaracteristiques: 3, hasDebouches: false, hasQuestionnaire: true, hasMultiplier: false, canCompetencesOpt: false }, rosevie: { label: "Les Roses de la Vie", value: "rosevie", agemin: 13, agemax: 16, nbCompetences: 2, nbCaracteristiques: 3, hasQuestionnaire: true, hasDebouches: true, hasMultiplier: false, canCompetencesOpt: false }, ageviril: { label: "L'Age Viril", value: "ageviril", agemin: 17, agemax: 17, nbCompetences: 9, nbCaracteristiques: 2, hasQuestionnaire: false, hasDebouches: false, hasMultiplier: true, canCompetencesOpt: true }, }, origineSociale: { - noblesseepee: { label: "Noblesse d'épée", id: "noblesseepee", caracteristiques: {entregent: 1, puissance: 1}, cagnotte: 10, cagnotteUnit: "livres", value: 1 }, - noblessecloche: { label: "Noblesse de cloche", id: "noblessecloche", caracteristiques: {entregent: 1, savoir: 1}, cagnotte: 50, cagnotteUnit: "livres", value: 2 }, - hautenoblesse: { label: "Haute noblesse (Illégitime)", id: "hautenoblesse", caracteristiques: {complexion: 1, puissance: 1}, cagnotte: 20, cagnotteUnit: "livres", value: 3 }, - hautebourgeoisie: { label: "Haute bourgeoisie", id: "hautebourgeoisie", caracteristiques: {savoir: 1, sensibilite: 1}, cagnotte: 60, cagnotteUnit: "livres",value: 4 }, - petitebourgeoisie: { label: "Petite bourgeoisie (Marchands)", caracteristiques: {entregent: 1, sensibilite: 1}, cagnotte: 20, cagnotteUnit: "livres",id: "petitebourgeoisie", value: 5 }, - artisan: { label: "Artisans", id: "artisan", caracteristiques: {adresse: 1, sensibilite: 1}, cagnotte: 10, cagnotteUnit: "livres",value: 6 }, - laboureur: { label: "Laboureurs", id: "laboureur", caracteristiques: {entregent: 1, complexion: 1}, cagnotte: 10, cagnotteUnit: "livres",value: 7 }, - domesticite: { label: "Domesticité", id: "domesticite", caracteristiques: {entregent: 1, adresse: 1}, cagnotte: 2, cagnotteUnit: "sous",value: 8 }, - paysannerie: { label: "Paysannerie", id: "paysannerie", caracteristiques: {puissance: 1, complexion: 1}, cagnotte: 1, cagnotteUnit: "sous", value: 9 }, - gueux: { label: "Gueux", id: "gueux", caracteristiques: {adresse: 1, complexion: 1}, cagnotte: 4, cagnotteUnit: "deniers", value: 10 }, + noblesseepee: { label: "Noblesse d'épée", id: "noblesseepee", caracteristiques: { entregent: 1, puissance: 1 }, cagnotte: 10, cagnotteUnit: "livres", value: 1 }, + noblessecloche: { label: "Noblesse de cloche", id: "noblessecloche", caracteristiques: { entregent: 1, savoir: 1 }, cagnotte: 50, cagnotteUnit: "livres", value: 2 }, + hautenoblesse: { label: "Haute noblesse (Illégitime)", id: "hautenoblesse", caracteristiques: { complexion: 1, puissance: 1 }, cagnotte: 20, cagnotteUnit: "livres", value: 3 }, + hautebourgeoisie: { label: "Haute bourgeoisie", id: "hautebourgeoisie", caracteristiques: { savoir: 1, sensibilite: 1 }, cagnotte: 60, cagnotteUnit: "livres", value: 4 }, + petitebourgeoisie: { label: "Petite bourgeoisie (Marchands)", caracteristiques: { entregent: 1, sensibilite: 1 }, cagnotte: 20, cagnotteUnit: "livres", id: "petitebourgeoisie", value: 5 }, + artisan: { label: "Artisans", id: "artisan", caracteristiques: { adresse: 1, sensibilite: 1 }, cagnotte: 10, cagnotteUnit: "livres", value: 6 }, + laboureur: { label: "Laboureurs", id: "laboureur", caracteristiques: { entregent: 1, complexion: 1 }, cagnotte: 10, cagnotteUnit: "livres", value: 7 }, + domesticite: { label: "Domesticité", id: "domesticite", caracteristiques: { entregent: 1, adresse: 1 }, cagnotte: 2, cagnotteUnit: "sous", value: 8 }, + paysannerie: { label: "Paysannerie", id: "paysannerie", caracteristiques: { puissance: 1, complexion: 1 }, cagnotte: 1, cagnotteUnit: "sous", value: 9 }, + gueux: { label: "Gueux", id: "gueux", caracteristiques: { adresse: 1, complexion: 1 }, cagnotte: 4, cagnotteUnit: "deniers", value: 10 }, }, bonusMalus: [ - { value: "-2", label: "-2 niveaux" }, - { value: "-1", label: "-1 niveau" }, - { value: "0", label: "Aucun" }, - { value: "1", label: "+1 niveau" }, - { value: "2", label: "+2 niveaux" } - ], + { value: "-2", label: "-2 niveaux" }, + { value: "-1", label: "-1 niveau" }, + { value: "0", label: "Aucun" }, + { value: "1", label: "+1 niveau" }, + { value: "2", label: "+2 niveaux" } + ], blessures: { indemne: { value: 0, label: "Indemne", key: "indemne", degatsMax: -1, count: 0, modifier: 0 }, estafilade: { value: 1, label: "Estafilade", key: "estafilade", degatsMin: 0, degatsMax: 2, count: 1, modifier: 0 }, @@ -181,7 +188,7 @@ export const TEDEUM_CONFIG = { virulence: { aucune: { label: "Aucune", value: "aucune", modifier: 0 }, fatigue: { label: "Fatigue", value: "fatigue", modifier: 0 }, - epuisement: { label: "Epuisement", value: "epuisement",modifier: -1 }, + epuisement: { label: "Epuisement", value: "epuisement", modifier: -1 }, souffrance: { label: "Souffrance", value: "souffrance", modifier: -2 }, agonie: { label: "Agonie", value: "agonie", modifier: -3 } }, @@ -193,9 +200,9 @@ export const TEDEUM_CONFIG = { }, virulencePoison: { aucune: { label: "Aucune", value: "aucune", modifier: 0 }, - nausee: { label: "Nausées & Vertiges", value: "nausee", modifier:0 }, - inflammation: { label: "Inflammations & Vomissements", value: "inflammation", modifier: -1 }, - elancement: { label: "Elancements & Hémorragies", value: "elancement" , modifier: -2 }, + nausee: { label: "Nausées & Vertiges", value: "nausee", modifier: 0 }, + inflammation: { label: "Inflammations & Vomissements", value: "inflammation", modifier: -1 }, + elancement: { label: "Elancements & Hémorragies", value: "elancement", modifier: -2 }, convulsion: { label: "Convulsions & Délire hallucinatoire", value: "convulsion", modifier: -3 }, mort: { label: "Inconscience & Mort", value: "mort", modifier: -12 } } diff --git a/modules/data/tedeum-schema-pj.js b/modules/data/tedeum-schema-pj.js index 10e2fd0..e712db1 100644 --- a/modules/data/tedeum-schema-pj.js +++ b/modules/data/tedeum-schema-pj.js @@ -44,7 +44,7 @@ export class TeDeumPJSchema extends foundry.abstract.TypeDataModel { schema.vetements = new fields.HTMLField({required: true, blank: true}); schema.equipmentfree = new fields.HTMLField({required: true, blank: true}); - schema.genre = new fields.StringField({required: true, choices: ["Homme", "Femme"], initial: "Femme"}); + schema.genre = new fields.StringField({required: true, choices: game.system.tedeum.config.genre, initial: "Femme"}); schema.age = new fields.StringField({ required: false, blank: true, initial: undefined }); schema.statutocial = new fields.StringField({ required: false, blank: true, initial: undefined }); schema.chargestitre = new fields.StringField({ required: false, blank: true, initial: undefined }); diff --git a/modules/tedeum-main.js b/modules/tedeum-main.js index a90bdef..db5b0c5 100644 --- a/modules/tedeum-main.js +++ b/modules/tedeum-main.js @@ -61,7 +61,7 @@ Hooks.once("init", async function () { TeDeumUtility.onSocketMesssage(data) }); - //CONFIG.Combat.documentClass = TeDeumCombat + CONFIG.Combat.documentClass = TeDeumCombat CONFIG.Actor.documentClass = TeDeumActor; CONFIG.Item.documentClass = TeDeumItem CONFIG.Actor.dataModels = { diff --git a/packs/armes/000078.log b/packs/armes/000095.log similarity index 100% rename from packs/armes/000078.log rename to packs/armes/000095.log diff --git a/packs/armes/CURRENT b/packs/armes/CURRENT index f24fe8e..f60e23b 100644 --- a/packs/armes/CURRENT +++ b/packs/armes/CURRENT @@ -1 +1 @@ -MANIFEST-000076 +MANIFEST-000093 diff --git a/packs/armes/LOG b/packs/armes/LOG index 9a75d72..4ba8687 100644 --- a/packs/armes/LOG +++ b/packs/armes/LOG @@ -1,14 +1,7 @@ -2025/02/04-09:19:54.434475 7ff0d9ffb6c0 Recovering log #74 -2025/02/04-09:19:54.506466 7ff0d9ffb6c0 Delete type=3 #72 -2025/02/04-09:19:54.506527 7ff0d9ffb6c0 Delete type=0 #74 -2025/02/04-09:26:38.706734 7ff0d7ff76c0 Level-0 table #79: started -2025/02/04-09:26:38.709998 7ff0d7ff76c0 Level-0 table #79: 503 bytes OK -2025/02/04-09:26:38.716107 7ff0d7ff76c0 Delete type=0 #77 -2025/02/04-09:26:38.736363 7ff0d7ff76c0 Manual compaction at level-0 from '!folders!InCQeTRdT5jXMX82' @ 72057594037927935 : 1 .. '!items!wxIHkrq98eQ3cOvp' @ 0 : 0; will stop at '!folders!K314mT3VJDeFkOvc' @ 39 : 1 -2025/02/04-09:26:38.736373 7ff0d7ff76c0 Compacting 1@0 + 1@1 files -2025/02/04-09:26:38.740078 7ff0d7ff76c0 Generated table #80@0: 38 keys, 30816 bytes -2025/02/04-09:26:38.740094 7ff0d7ff76c0 Compacted 1@0 + 1@1 files => 30816 bytes -2025/02/04-09:26:38.746692 7ff0d7ff76c0 compacted to: files[ 0 1 0 0 0 0 0 ] -2025/02/04-09:26:38.746823 7ff0d7ff76c0 Delete type=2 #9 -2025/02/04-09:26:38.746954 7ff0d7ff76c0 Delete type=2 #79 -2025/02/04-09:26:38.747062 7ff0d7ff76c0 Manual compaction at level-0 from '!folders!K314mT3VJDeFkOvc' @ 39 : 1 .. '!items!wxIHkrq98eQ3cOvp' @ 0 : 0; will stop at (end) +2025/02/04-21:02:31.762956 7ffae7fff6c0 Recovering log #91 +2025/02/04-21:02:31.818029 7ffae7fff6c0 Delete type=3 #89 +2025/02/04-21:02:31.818138 7ffae7fff6c0 Delete type=0 #91 +2025/02/04-21:19:59.587312 7ffae6bff6c0 Level-0 table #96: started +2025/02/04-21:19:59.587344 7ffae6bff6c0 Level-0 table #96: 0 bytes OK +2025/02/04-21:19:59.594402 7ffae6bff6c0 Delete type=0 #94 +2025/02/04-21:19:59.600680 7ffae6bff6c0 Manual compaction at level-0 from '!folders!InCQeTRdT5jXMX82' @ 72057594037927935 : 1 .. '!items!wxIHkrq98eQ3cOvp' @ 0 : 0; will stop at (end) diff --git a/packs/armes/LOG.old b/packs/armes/LOG.old index 899db6e..4b13ab4 100644 --- a/packs/armes/LOG.old +++ b/packs/armes/LOG.old @@ -1,7 +1,7 @@ -2025/02/04-08:00:17.903907 7ff0d9ffb6c0 Recovering log #70 -2025/02/04-08:00:17.922132 7ff0d9ffb6c0 Delete type=3 #68 -2025/02/04-08:00:17.922272 7ff0d9ffb6c0 Delete type=0 #70 -2025/02/04-08:13:20.820823 7ff0d7ff76c0 Level-0 table #75: started -2025/02/04-08:13:20.820928 7ff0d7ff76c0 Level-0 table #75: 0 bytes OK -2025/02/04-08:13:20.827281 7ff0d7ff76c0 Delete type=0 #73 -2025/02/04-08:13:20.848781 7ff0d7ff76c0 Manual compaction at level-0 from '!folders!InCQeTRdT5jXMX82' @ 72057594037927935 : 1 .. '!items!wxIHkrq98eQ3cOvp' @ 0 : 0; will stop at (end) +2025/02/04-20:38:48.117192 7ffaecbf96c0 Recovering log #87 +2025/02/04-20:38:48.132558 7ffaecbf96c0 Delete type=3 #85 +2025/02/04-20:38:48.132625 7ffaecbf96c0 Delete type=0 #87 +2025/02/04-21:02:18.061942 7ffae6bff6c0 Level-0 table #92: started +2025/02/04-21:02:18.061980 7ffae6bff6c0 Level-0 table #92: 0 bytes OK +2025/02/04-21:02:18.096060 7ffae6bff6c0 Delete type=0 #90 +2025/02/04-21:02:18.239725 7ffae6bff6c0 Manual compaction at level-0 from '!folders!InCQeTRdT5jXMX82' @ 72057594037927935 : 1 .. '!items!wxIHkrq98eQ3cOvp' @ 0 : 0; will stop at (end) diff --git a/packs/armes/MANIFEST-000076 b/packs/armes/MANIFEST-000076 deleted file mode 100644 index c5743b6..0000000 Binary files a/packs/armes/MANIFEST-000076 and /dev/null differ diff --git a/packs/armes/MANIFEST-000093 b/packs/armes/MANIFEST-000093 new file mode 100644 index 0000000..c5894b9 Binary files /dev/null and b/packs/armes/MANIFEST-000093 differ diff --git a/packs/armures/000078.log b/packs/armures/000095.log similarity index 100% rename from packs/armures/000078.log rename to packs/armures/000095.log diff --git a/packs/armures/CURRENT b/packs/armures/CURRENT index f24fe8e..f60e23b 100644 --- a/packs/armures/CURRENT +++ b/packs/armures/CURRENT @@ -1 +1 @@ -MANIFEST-000076 +MANIFEST-000093 diff --git a/packs/armures/LOG b/packs/armures/LOG index 9a805ed..86c2fe6 100644 --- a/packs/armures/LOG +++ b/packs/armures/LOG @@ -1,14 +1,7 @@ -2025/02/04-09:19:54.509779 7ff0d8ff96c0 Recovering log #74 -2025/02/04-09:19:54.552287 7ff0d8ff96c0 Delete type=3 #72 -2025/02/04-09:19:54.552375 7ff0d8ff96c0 Delete type=0 #74 -2025/02/04-09:26:38.667727 7ff0d7ff76c0 Level-0 table #79: started -2025/02/04-09:26:38.671062 7ff0d7ff76c0 Level-0 table #79: 516 bytes OK -2025/02/04-09:26:38.677967 7ff0d7ff76c0 Delete type=0 #77 -2025/02/04-09:26:38.697044 7ff0d7ff76c0 Manual compaction at level-0 from '!folders!2wTJBj3dicRKzNOE' @ 72057594037927935 : 1 .. '!items!ufvhWG5V8pX0qrtR' @ 0 : 0; will stop at '!folders!q2WrapdNFvwEyGP6' @ 30 : 1 -2025/02/04-09:26:38.697055 7ff0d7ff76c0 Compacting 1@0 + 1@1 files -2025/02/04-09:26:38.700419 7ff0d7ff76c0 Generated table #80@0: 29 keys, 11991 bytes -2025/02/04-09:26:38.700444 7ff0d7ff76c0 Compacted 1@0 + 1@1 files => 11991 bytes -2025/02/04-09:26:38.706249 7ff0d7ff76c0 compacted to: files[ 0 1 0 0 0 0 0 ] -2025/02/04-09:26:38.706348 7ff0d7ff76c0 Delete type=2 #9 -2025/02/04-09:26:38.706497 7ff0d7ff76c0 Delete type=2 #79 -2025/02/04-09:26:38.706643 7ff0d7ff76c0 Manual compaction at level-0 from '!folders!q2WrapdNFvwEyGP6' @ 30 : 1 .. '!items!ufvhWG5V8pX0qrtR' @ 0 : 0; will stop at (end) +2025/02/04-21:02:31.823403 7ffaed3fa6c0 Recovering log #91 +2025/02/04-21:02:31.879026 7ffaed3fa6c0 Delete type=3 #89 +2025/02/04-21:02:31.879103 7ffaed3fa6c0 Delete type=0 #91 +2025/02/04-21:19:59.594567 7ffae6bff6c0 Level-0 table #96: started +2025/02/04-21:19:59.594605 7ffae6bff6c0 Level-0 table #96: 0 bytes OK +2025/02/04-21:19:59.600531 7ffae6bff6c0 Delete type=0 #94 +2025/02/04-21:19:59.600692 7ffae6bff6c0 Manual compaction at level-0 from '!folders!2wTJBj3dicRKzNOE' @ 72057594037927935 : 1 .. '!items!ufvhWG5V8pX0qrtR' @ 0 : 0; will stop at (end) diff --git a/packs/armures/LOG.old b/packs/armures/LOG.old index bcfce82..7f9509c 100644 --- a/packs/armures/LOG.old +++ b/packs/armures/LOG.old @@ -1,7 +1,7 @@ -2025/02/04-08:00:17.927699 7ff0d87f86c0 Recovering log #70 -2025/02/04-08:00:17.946011 7ff0d87f86c0 Delete type=3 #68 -2025/02/04-08:00:17.946134 7ff0d87f86c0 Delete type=0 #70 -2025/02/04-08:13:20.827534 7ff0d7ff76c0 Level-0 table #75: started -2025/02/04-08:13:20.827585 7ff0d7ff76c0 Level-0 table #75: 0 bytes OK -2025/02/04-08:13:20.833823 7ff0d7ff76c0 Delete type=0 #73 -2025/02/04-08:13:20.848813 7ff0d7ff76c0 Manual compaction at level-0 from '!folders!2wTJBj3dicRKzNOE' @ 72057594037927935 : 1 .. '!items!ufvhWG5V8pX0qrtR' @ 0 : 0; will stop at (end) +2025/02/04-20:38:48.136363 7ffae7fff6c0 Recovering log #87 +2025/02/04-20:38:48.155326 7ffae7fff6c0 Delete type=3 #85 +2025/02/04-20:38:48.155397 7ffae7fff6c0 Delete type=0 #87 +2025/02/04-21:02:18.203925 7ffae6bff6c0 Level-0 table #92: started +2025/02/04-21:02:18.203951 7ffae6bff6c0 Level-0 table #92: 0 bytes OK +2025/02/04-21:02:18.239602 7ffae6bff6c0 Delete type=0 #90 +2025/02/04-21:02:18.293406 7ffae6bff6c0 Manual compaction at level-0 from '!folders!2wTJBj3dicRKzNOE' @ 72057594037927935 : 1 .. '!items!ufvhWG5V8pX0qrtR' @ 0 : 0; will stop at (end) diff --git a/packs/armures/MANIFEST-000076 b/packs/armures/MANIFEST-000076 deleted file mode 100644 index d29f8bd..0000000 Binary files a/packs/armures/MANIFEST-000076 and /dev/null differ diff --git a/packs/armures/MANIFEST-000093 b/packs/armures/MANIFEST-000093 new file mode 100644 index 0000000..9c1afb0 Binary files /dev/null and b/packs/armures/MANIFEST-000093 differ diff --git a/packs/competences/000009.ldb b/packs/competences/000089.ldb similarity index 67% rename from packs/competences/000009.ldb rename to packs/competences/000089.ldb index 2662377..c5f26e0 100644 Binary files a/packs/competences/000009.ldb and b/packs/competences/000089.ldb differ diff --git a/packs/competences/000074.log b/packs/competences/000092.log similarity index 100% rename from packs/competences/000074.log rename to packs/competences/000092.log diff --git a/packs/competences/CURRENT b/packs/competences/CURRENT index f74be16..2f2c868 100644 --- a/packs/competences/CURRENT +++ b/packs/competences/CURRENT @@ -1 +1 @@ -MANIFEST-000072 +MANIFEST-000090 diff --git a/packs/competences/LOG b/packs/competences/LOG index be7c130..d1349d1 100644 --- a/packs/competences/LOG +++ b/packs/competences/LOG @@ -1,7 +1,7 @@ -2025/02/04-09:19:54.356127 7ff0d87f86c0 Recovering log #70 -2025/02/04-09:19:54.430796 7ff0d87f86c0 Delete type=3 #68 -2025/02/04-09:19:54.430851 7ff0d87f86c0 Delete type=0 #70 -2025/02/04-09:26:38.684389 7ff0d7ff76c0 Level-0 table #75: started -2025/02/04-09:26:38.684411 7ff0d7ff76c0 Level-0 table #75: 0 bytes OK -2025/02/04-09:26:38.690393 7ff0d7ff76c0 Delete type=0 #73 -2025/02/04-09:26:38.706610 7ff0d7ff76c0 Manual compaction at level-0 from '!folders!4OPhigzcPv46qbWW' @ 72057594037927935 : 1 .. '!items!yx4k7lQHGcom99mk' @ 0 : 0; will stop at (end) +2025/02/04-21:02:31.705177 7ffaecbf96c0 Recovering log #87 +2025/02/04-21:02:31.757867 7ffaecbf96c0 Delete type=3 #85 +2025/02/04-21:02:31.757943 7ffaecbf96c0 Delete type=0 #87 +2025/02/04-21:19:59.571612 7ffae6bff6c0 Level-0 table #93: started +2025/02/04-21:19:59.571661 7ffae6bff6c0 Level-0 table #93: 0 bytes OK +2025/02/04-21:19:59.579281 7ffae6bff6c0 Delete type=0 #91 +2025/02/04-21:19:59.600650 7ffae6bff6c0 Manual compaction at level-0 from '!folders!4OPhigzcPv46qbWW' @ 72057594037927935 : 1 .. '!items!yx4k7lQHGcom99mk' @ 0 : 0; will stop at (end) diff --git a/packs/competences/LOG.old b/packs/competences/LOG.old index ce65875..85ca97b 100644 --- a/packs/competences/LOG.old +++ b/packs/competences/LOG.old @@ -1,7 +1,14 @@ -2025/02/04-08:00:17.879698 7ff0d8ff96c0 Recovering log #66 -2025/02/04-08:00:17.897284 7ff0d8ff96c0 Delete type=3 #64 -2025/02/04-08:00:17.897462 7ff0d8ff96c0 Delete type=0 #66 -2025/02/04-08:13:20.841781 7ff0d7ff76c0 Level-0 table #71: started -2025/02/04-08:13:20.841859 7ff0d7ff76c0 Level-0 table #71: 0 bytes OK -2025/02/04-08:13:20.848509 7ff0d7ff76c0 Delete type=0 #69 -2025/02/04-08:13:20.848864 7ff0d7ff76c0 Manual compaction at level-0 from '!folders!4OPhigzcPv46qbWW' @ 72057594037927935 : 1 .. '!items!yx4k7lQHGcom99mk' @ 0 : 0; will stop at (end) +2025/02/04-20:38:48.097537 7ffaed3fa6c0 Recovering log #82 +2025/02/04-20:38:48.113309 7ffaed3fa6c0 Delete type=3 #80 +2025/02/04-20:38:48.113379 7ffaed3fa6c0 Delete type=0 #82 +2025/02/04-21:02:18.135381 7ffae6bff6c0 Level-0 table #88: started +2025/02/04-21:02:18.162858 7ffae6bff6c0 Level-0 table #88: 938 bytes OK +2025/02/04-21:02:18.203788 7ffae6bff6c0 Delete type=0 #86 +2025/02/04-21:02:18.239757 7ffae6bff6c0 Manual compaction at level-0 from '!folders!4OPhigzcPv46qbWW' @ 72057594037927935 : 1 .. '!items!yx4k7lQHGcom99mk' @ 0 : 0; will stop at '!items!npVNacEzrQqLbyaS' @ 128 : 1 +2025/02/04-21:02:18.239766 7ffae6bff6c0 Compacting 1@0 + 1@1 files +2025/02/04-21:02:18.250978 7ffae6bff6c0 Generated table #89@0: 116 keys, 38122 bytes +2025/02/04-21:02:18.251008 7ffae6bff6c0 Compacted 1@0 + 1@1 files => 38122 bytes +2025/02/04-21:02:18.293094 7ffae6bff6c0 compacted to: files[ 0 1 0 0 0 0 0 ] +2025/02/04-21:02:18.293225 7ffae6bff6c0 Delete type=2 #84 +2025/02/04-21:02:18.293350 7ffae6bff6c0 Delete type=2 #88 +2025/02/04-21:02:18.359444 7ffae6bff6c0 Manual compaction at level-0 from '!items!npVNacEzrQqLbyaS' @ 128 : 1 .. '!items!yx4k7lQHGcom99mk' @ 0 : 0; will stop at (end) diff --git a/packs/competences/MANIFEST-000072 b/packs/competences/MANIFEST-000072 deleted file mode 100644 index b01a7a2..0000000 Binary files a/packs/competences/MANIFEST-000072 and /dev/null differ diff --git a/packs/competences/MANIFEST-000090 b/packs/competences/MANIFEST-000090 new file mode 100644 index 0000000..8bd6cfa Binary files /dev/null and b/packs/competences/MANIFEST-000090 differ diff --git a/packs/education/000084.log b/packs/education/000100.log similarity index 100% rename from packs/education/000084.log rename to packs/education/000100.log diff --git a/packs/education/CURRENT b/packs/education/CURRENT index d4b9a0f..95395b2 100644 --- a/packs/education/CURRENT +++ b/packs/education/CURRENT @@ -1 +1 @@ -MANIFEST-000082 +MANIFEST-000098 diff --git a/packs/education/LOG b/packs/education/LOG index c547aae..08f547e 100644 --- a/packs/education/LOG +++ b/packs/education/LOG @@ -1,7 +1,7 @@ -2025/02/04-09:19:54.555357 7ff0d97fa6c0 Recovering log #80 -2025/02/04-09:19:54.607937 7ff0d97fa6c0 Delete type=3 #78 -2025/02/04-09:19:54.607998 7ff0d97fa6c0 Delete type=0 #80 -2025/02/04-09:26:38.730077 7ff0d7ff76c0 Level-0 table #85: started -2025/02/04-09:26:38.730110 7ff0d7ff76c0 Level-0 table #85: 0 bytes OK -2025/02/04-09:26:38.736245 7ff0d7ff76c0 Delete type=0 #83 -2025/02/04-09:26:38.747052 7ff0d7ff76c0 Manual compaction at level-0 from '!folders!9PQi3Lv54rpcxavo' @ 72057594037927935 : 1 .. '!items!zGlRtP7zSnkjuuue' @ 0 : 0; will stop at (end) +2025/02/04-21:02:31.882959 7ffae77fe6c0 Recovering log #96 +2025/02/04-21:02:31.941550 7ffae77fe6c0 Delete type=3 #94 +2025/02/04-21:02:31.941618 7ffae77fe6c0 Delete type=0 #96 +2025/02/04-21:19:59.579549 7ffae6bff6c0 Level-0 table #101: started +2025/02/04-21:19:59.579601 7ffae6bff6c0 Level-0 table #101: 0 bytes OK +2025/02/04-21:19:59.587149 7ffae6bff6c0 Delete type=0 #99 +2025/02/04-21:19:59.600666 7ffae6bff6c0 Manual compaction at level-0 from '!folders!9PQi3Lv54rpcxavo' @ 72057594037927935 : 1 .. '!items!zGlRtP7zSnkjuuue' @ 0 : 0; will stop at (end) diff --git a/packs/education/LOG.old b/packs/education/LOG.old index b0d1b41..2e8ed26 100644 --- a/packs/education/LOG.old +++ b/packs/education/LOG.old @@ -1,7 +1,7 @@ -2025/02/04-08:00:17.954134 7ff0d8ff96c0 Recovering log #76 -2025/02/04-08:00:17.969980 7ff0d8ff96c0 Delete type=3 #74 -2025/02/04-08:00:17.970164 7ff0d8ff96c0 Delete type=0 #76 -2025/02/04-08:13:20.849036 7ff0d7ff76c0 Level-0 table #81: started -2025/02/04-08:13:20.849150 7ff0d7ff76c0 Level-0 table #81: 0 bytes OK -2025/02/04-08:13:20.855466 7ff0d7ff76c0 Delete type=0 #79 -2025/02/04-08:13:20.876058 7ff0d7ff76c0 Manual compaction at level-0 from '!folders!9PQi3Lv54rpcxavo' @ 72057594037927935 : 1 .. '!items!zGlRtP7zSnkjuuue' @ 0 : 0; will stop at (end) +2025/02/04-20:38:48.158706 7ffae77fe6c0 Recovering log #92 +2025/02/04-20:38:48.173793 7ffae77fe6c0 Delete type=3 #90 +2025/02/04-20:38:48.173878 7ffae77fe6c0 Delete type=0 #92 +2025/02/04-21:02:18.096164 7ffae6bff6c0 Level-0 table #97: started +2025/02/04-21:02:18.096190 7ffae6bff6c0 Level-0 table #97: 0 bytes OK +2025/02/04-21:02:18.135267 7ffae6bff6c0 Delete type=0 #95 +2025/02/04-21:02:18.239741 7ffae6bff6c0 Manual compaction at level-0 from '!folders!9PQi3Lv54rpcxavo' @ 72057594037927935 : 1 .. '!items!zGlRtP7zSnkjuuue' @ 0 : 0; will stop at (end) diff --git a/packs/education/MANIFEST-000082 b/packs/education/MANIFEST-000098 similarity index 73% rename from packs/education/MANIFEST-000082 rename to packs/education/MANIFEST-000098 index 40422ff..eff8a2d 100644 Binary files a/packs/education/MANIFEST-000082 and b/packs/education/MANIFEST-000098 differ diff --git a/packs/graces/000078.log b/packs/graces/000094.log similarity index 100% rename from packs/graces/000078.log rename to packs/graces/000094.log diff --git a/packs/graces/CURRENT b/packs/graces/CURRENT index f24fe8e..5b83d76 100644 --- a/packs/graces/CURRENT +++ b/packs/graces/CURRENT @@ -1 +1 @@ -MANIFEST-000076 +MANIFEST-000092 diff --git a/packs/graces/LOG b/packs/graces/LOG index 3097d27..3040b83 100644 --- a/packs/graces/LOG +++ b/packs/graces/LOG @@ -1,7 +1,7 @@ -2025/02/04-09:19:54.611542 7ff0d87f86c0 Recovering log #74 -2025/02/04-09:19:54.654193 7ff0d87f86c0 Delete type=3 #72 -2025/02/04-09:19:54.654311 7ff0d87f86c0 Delete type=0 #74 -2025/02/04-09:26:38.678121 7ff0d7ff76c0 Level-0 table #79: started -2025/02/04-09:26:38.678170 7ff0d7ff76c0 Level-0 table #79: 0 bytes OK -2025/02/04-09:26:38.684288 7ff0d7ff76c0 Delete type=0 #77 -2025/02/04-09:26:38.706592 7ff0d7ff76c0 Manual compaction at level-0 from '!items!17mjvwS8R3B6LloG' @ 72057594037927935 : 1 .. '!items!zUYIVOuFpRur9aAR' @ 0 : 0; will stop at (end) +2025/02/04-21:02:31.946534 7ffaecbf96c0 Recovering log #90 +2025/02/04-21:02:32.006272 7ffaecbf96c0 Delete type=3 #88 +2025/02/04-21:02:32.006340 7ffaecbf96c0 Delete type=0 #90 +2025/02/04-21:19:59.607214 7ffae6bff6c0 Level-0 table #95: started +2025/02/04-21:19:59.607270 7ffae6bff6c0 Level-0 table #95: 0 bytes OK +2025/02/04-21:19:59.614924 7ffae6bff6c0 Delete type=0 #93 +2025/02/04-21:19:59.628053 7ffae6bff6c0 Manual compaction at level-0 from '!items!17mjvwS8R3B6LloG' @ 72057594037927935 : 1 .. '!items!zUYIVOuFpRur9aAR' @ 0 : 0; will stop at (end) diff --git a/packs/graces/LOG.old b/packs/graces/LOG.old index cec5642..31e26a1 100644 --- a/packs/graces/LOG.old +++ b/packs/graces/LOG.old @@ -1,7 +1,7 @@ -2025/02/04-08:00:17.979633 7ff0d97fa6c0 Recovering log #70 -2025/02/04-08:00:17.997627 7ff0d97fa6c0 Delete type=3 #68 -2025/02/04-08:00:17.997723 7ff0d97fa6c0 Delete type=0 #70 -2025/02/04-08:13:20.834087 7ff0d7ff76c0 Level-0 table #75: started -2025/02/04-08:13:20.834167 7ff0d7ff76c0 Level-0 table #75: 0 bytes OK -2025/02/04-08:13:20.841491 7ff0d7ff76c0 Delete type=0 #73 -2025/02/04-08:13:20.848838 7ff0d7ff76c0 Manual compaction at level-0 from '!items!17mjvwS8R3B6LloG' @ 72057594037927935 : 1 .. '!items!zUYIVOuFpRur9aAR' @ 0 : 0; will stop at (end) +2025/02/04-20:38:48.178017 7ffaed3fa6c0 Recovering log #86 +2025/02/04-20:38:48.195489 7ffaed3fa6c0 Delete type=3 #84 +2025/02/04-20:38:48.195570 7ffaed3fa6c0 Delete type=0 #86 +2025/02/04-21:02:18.323881 7ffae6bff6c0 Level-0 table #91: started +2025/02/04-21:02:18.323917 7ffae6bff6c0 Level-0 table #91: 0 bytes OK +2025/02/04-21:02:18.359316 7ffae6bff6c0 Delete type=0 #89 +2025/02/04-21:02:18.400688 7ffae6bff6c0 Manual compaction at level-0 from '!items!17mjvwS8R3B6LloG' @ 72057594037927935 : 1 .. '!items!zUYIVOuFpRur9aAR' @ 0 : 0; will stop at (end) diff --git a/packs/graces/MANIFEST-000076 b/packs/graces/MANIFEST-000092 similarity index 75% rename from packs/graces/MANIFEST-000076 rename to packs/graces/MANIFEST-000092 index 86e07a3..88af993 100644 Binary files a/packs/graces/MANIFEST-000076 and b/packs/graces/MANIFEST-000092 differ diff --git a/packs/maladies/000078.log b/packs/maladies/000094.log similarity index 100% rename from packs/maladies/000078.log rename to packs/maladies/000094.log diff --git a/packs/maladies/CURRENT b/packs/maladies/CURRENT index f24fe8e..5b83d76 100644 --- a/packs/maladies/CURRENT +++ b/packs/maladies/CURRENT @@ -1 +1 @@ -MANIFEST-000076 +MANIFEST-000092 diff --git a/packs/maladies/LOG b/packs/maladies/LOG index b15830f..24abc52 100644 --- a/packs/maladies/LOG +++ b/packs/maladies/LOG @@ -1,7 +1,7 @@ -2025/02/04-09:19:54.657231 7ff0d9ffb6c0 Recovering log #74 -2025/02/04-09:19:54.709822 7ff0d9ffb6c0 Delete type=3 #72 -2025/02/04-09:19:54.709925 7ff0d9ffb6c0 Delete type=0 #74 -2025/02/04-09:26:38.690563 7ff0d7ff76c0 Level-0 table #79: started -2025/02/04-09:26:38.690616 7ff0d7ff76c0 Level-0 table #79: 0 bytes OK -2025/02/04-09:26:38.696918 7ff0d7ff76c0 Delete type=0 #77 -2025/02/04-09:26:38.706627 7ff0d7ff76c0 Manual compaction at level-0 from '!items!1icaxIywAwDXQcMz' @ 72057594037927935 : 1 .. '!items!ysGehYm1VkMWrI22' @ 0 : 0; will stop at (end) +2025/02/04-21:02:32.008917 7ffae7fff6c0 Recovering log #90 +2025/02/04-21:02:32.066076 7ffae7fff6c0 Delete type=3 #88 +2025/02/04-21:02:32.066142 7ffae7fff6c0 Delete type=0 #90 +2025/02/04-21:19:59.600777 7ffae6bff6c0 Level-0 table #95: started +2025/02/04-21:19:59.600804 7ffae6bff6c0 Level-0 table #95: 0 bytes OK +2025/02/04-21:19:59.607063 7ffae6bff6c0 Delete type=0 #93 +2025/02/04-21:19:59.628035 7ffae6bff6c0 Manual compaction at level-0 from '!items!1icaxIywAwDXQcMz' @ 72057594037927935 : 1 .. '!items!ysGehYm1VkMWrI22' @ 0 : 0; will stop at (end) diff --git a/packs/maladies/LOG.old b/packs/maladies/LOG.old index 236ec3b..45b2002 100644 --- a/packs/maladies/LOG.old +++ b/packs/maladies/LOG.old @@ -1,7 +1,7 @@ -2025/02/04-08:00:18.002150 7ff0d9ffb6c0 Recovering log #70 -2025/02/04-08:00:18.018218 7ff0d9ffb6c0 Delete type=3 #68 -2025/02/04-08:00:18.018368 7ff0d9ffb6c0 Delete type=0 #70 -2025/02/04-08:13:20.855703 7ff0d7ff76c0 Level-0 table #75: started -2025/02/04-08:13:20.855761 7ff0d7ff76c0 Level-0 table #75: 0 bytes OK -2025/02/04-08:13:20.862045 7ff0d7ff76c0 Delete type=0 #73 -2025/02/04-08:13:20.876086 7ff0d7ff76c0 Manual compaction at level-0 from '!items!1icaxIywAwDXQcMz' @ 72057594037927935 : 1 .. '!items!ysGehYm1VkMWrI22' @ 0 : 0; will stop at (end) +2025/02/04-20:38:48.198544 7ffaecbf96c0 Recovering log #86 +2025/02/04-20:38:48.214754 7ffaecbf96c0 Delete type=3 #84 +2025/02/04-20:38:48.214825 7ffaecbf96c0 Delete type=0 #86 +2025/02/04-21:02:18.293419 7ffae6bff6c0 Level-0 table #91: started +2025/02/04-21:02:18.293451 7ffae6bff6c0 Level-0 table #91: 0 bytes OK +2025/02/04-21:02:18.323734 7ffae6bff6c0 Delete type=0 #89 +2025/02/04-21:02:18.400668 7ffae6bff6c0 Manual compaction at level-0 from '!items!1icaxIywAwDXQcMz' @ 72057594037927935 : 1 .. '!items!ysGehYm1VkMWrI22' @ 0 : 0; will stop at (end) diff --git a/packs/maladies/MANIFEST-000076 b/packs/maladies/MANIFEST-000092 similarity index 76% rename from packs/maladies/MANIFEST-000076 rename to packs/maladies/MANIFEST-000092 index 462e2b7..3c69bcb 100644 Binary files a/packs/maladies/MANIFEST-000076 and b/packs/maladies/MANIFEST-000092 differ diff --git a/packs/scenes/000016.log b/packs/scenes/000032.log similarity index 100% rename from packs/scenes/000016.log rename to packs/scenes/000032.log diff --git a/packs/scenes/CURRENT b/packs/scenes/CURRENT index 23b73d9..caa721a 100644 --- a/packs/scenes/CURRENT +++ b/packs/scenes/CURRENT @@ -1 +1 @@ -MANIFEST-000014 +MANIFEST-000030 diff --git a/packs/scenes/LOG b/packs/scenes/LOG index 5960132..0ddc821 100644 --- a/packs/scenes/LOG +++ b/packs/scenes/LOG @@ -1,7 +1,7 @@ -2025/02/04-09:19:54.763626 7ff0d97fa6c0 Recovering log #12 -2025/02/04-09:19:54.816435 7ff0d97fa6c0 Delete type=3 #10 -2025/02/04-09:19:54.816506 7ff0d97fa6c0 Delete type=0 #12 -2025/02/04-09:26:38.723408 7ff0d7ff76c0 Level-0 table #17: started -2025/02/04-09:26:38.723459 7ff0d7ff76c0 Level-0 table #17: 0 bytes OK -2025/02/04-09:26:38.729963 7ff0d7ff76c0 Delete type=0 #15 -2025/02/04-09:26:38.747040 7ff0d7ff76c0 Manual compaction at level-0 from '!scenes!FJXugdbkBpEJEdR6' @ 72057594037927935 : 1 .. '!scenes!FJXugdbkBpEJEdR6' @ 0 : 0; will stop at (end) +2025/02/04-21:02:32.128293 7ffae77fe6c0 Recovering log #28 +2025/02/04-21:02:32.186729 7ffae77fe6c0 Delete type=3 #26 +2025/02/04-21:02:32.186791 7ffae77fe6c0 Delete type=0 #28 +2025/02/04-21:19:59.621374 7ffae6bff6c0 Level-0 table #33: started +2025/02/04-21:19:59.621404 7ffae6bff6c0 Level-0 table #33: 0 bytes OK +2025/02/04-21:19:59.627903 7ffae6bff6c0 Delete type=0 #31 +2025/02/04-21:19:59.628082 7ffae6bff6c0 Manual compaction at level-0 from '!scenes!FJXugdbkBpEJEdR6' @ 72057594037927935 : 1 .. '!scenes!FJXugdbkBpEJEdR6' @ 0 : 0; will stop at (end) diff --git a/packs/scenes/LOG.old b/packs/scenes/LOG.old index 67221d4..89776e6 100644 --- a/packs/scenes/LOG.old +++ b/packs/scenes/LOG.old @@ -1,7 +1,7 @@ -2025/02/04-08:00:18.047866 7ff0d8ff96c0 Recovering log #8 -2025/02/04-08:00:18.069047 7ff0d8ff96c0 Delete type=3 #6 -2025/02/04-08:00:18.069271 7ff0d8ff96c0 Delete type=0 #8 -2025/02/04-08:13:20.862238 7ff0d7ff76c0 Level-0 table #13: started -2025/02/04-08:13:20.862284 7ff0d7ff76c0 Level-0 table #13: 0 bytes OK -2025/02/04-08:13:20.869551 7ff0d7ff76c0 Delete type=0 #11 -2025/02/04-08:13:20.876104 7ff0d7ff76c0 Manual compaction at level-0 from '!scenes!FJXugdbkBpEJEdR6' @ 72057594037927935 : 1 .. '!scenes!FJXugdbkBpEJEdR6' @ 0 : 0; will stop at (end) +2025/02/04-20:38:48.235842 7ffae77fe6c0 Recovering log #24 +2025/02/04-20:38:48.252695 7ffae77fe6c0 Delete type=3 #22 +2025/02/04-20:38:48.252769 7ffae77fe6c0 Delete type=0 #24 +2025/02/04-21:02:18.400699 7ffae6bff6c0 Level-0 table #29: started +2025/02/04-21:02:18.400727 7ffae6bff6c0 Level-0 table #29: 0 bytes OK +2025/02/04-21:02:18.426905 7ffae6bff6c0 Delete type=0 #27 +2025/02/04-21:02:18.527523 7ffae6bff6c0 Manual compaction at level-0 from '!scenes!FJXugdbkBpEJEdR6' @ 72057594037927935 : 1 .. '!scenes!FJXugdbkBpEJEdR6' @ 0 : 0; will stop at (end) diff --git a/packs/scenes/MANIFEST-000014 b/packs/scenes/MANIFEST-000030 similarity index 84% rename from packs/scenes/MANIFEST-000014 rename to packs/scenes/MANIFEST-000030 index 2ca5163..cf2fff6 100644 Binary files a/packs/scenes/MANIFEST-000014 and b/packs/scenes/MANIFEST-000030 differ diff --git a/packs/simples/000078.log b/packs/simples/000094.log similarity index 100% rename from packs/simples/000078.log rename to packs/simples/000094.log diff --git a/packs/simples/CURRENT b/packs/simples/CURRENT index f24fe8e..5b83d76 100644 --- a/packs/simples/CURRENT +++ b/packs/simples/CURRENT @@ -1 +1 @@ -MANIFEST-000076 +MANIFEST-000092 diff --git a/packs/simples/LOG b/packs/simples/LOG index 821aa67..2853d09 100644 --- a/packs/simples/LOG +++ b/packs/simples/LOG @@ -1,7 +1,7 @@ -2025/02/04-09:19:54.713036 7ff0d8ff96c0 Recovering log #74 -2025/02/04-09:19:54.760457 7ff0d8ff96c0 Delete type=3 #72 -2025/02/04-09:19:54.760553 7ff0d8ff96c0 Delete type=0 #74 -2025/02/04-09:26:38.716224 7ff0d7ff76c0 Level-0 table #79: started -2025/02/04-09:26:38.716249 7ff0d7ff76c0 Level-0 table #79: 0 bytes OK -2025/02/04-09:26:38.723229 7ff0d7ff76c0 Delete type=0 #77 -2025/02/04-09:26:38.747021 7ff0d7ff76c0 Manual compaction at level-0 from '!items!1bAL2MQVpVBd0c5Z' @ 72057594037927935 : 1 .. '!items!zs67k4sxCid6oTK3' @ 0 : 0; will stop at (end) +2025/02/04-21:02:32.068229 7ffaed3fa6c0 Recovering log #90 +2025/02/04-21:02:32.124706 7ffaed3fa6c0 Delete type=3 #88 +2025/02/04-21:02:32.124766 7ffaed3fa6c0 Delete type=0 #90 +2025/02/04-21:19:59.615064 7ffae6bff6c0 Level-0 table #95: started +2025/02/04-21:19:59.615100 7ffae6bff6c0 Level-0 table #95: 0 bytes OK +2025/02/04-21:19:59.621260 7ffae6bff6c0 Delete type=0 #93 +2025/02/04-21:19:59.628066 7ffae6bff6c0 Manual compaction at level-0 from '!items!1bAL2MQVpVBd0c5Z' @ 72057594037927935 : 1 .. '!items!zs67k4sxCid6oTK3' @ 0 : 0; will stop at (end) diff --git a/packs/simples/LOG.old b/packs/simples/LOG.old index ae630af..a0b0bec 100644 --- a/packs/simples/LOG.old +++ b/packs/simples/LOG.old @@ -1,7 +1,7 @@ -2025/02/04-08:00:18.024798 7ff0d87f86c0 Recovering log #70 -2025/02/04-08:00:18.041483 7ff0d87f86c0 Delete type=3 #68 -2025/02/04-08:00:18.041605 7ff0d87f86c0 Delete type=0 #70 -2025/02/04-08:13:20.869725 7ff0d7ff76c0 Level-0 table #75: started -2025/02/04-08:13:20.869764 7ff0d7ff76c0 Level-0 table #75: 0 bytes OK -2025/02/04-08:13:20.875871 7ff0d7ff76c0 Delete type=0 #73 -2025/02/04-08:13:20.876118 7ff0d7ff76c0 Manual compaction at level-0 from '!items!1bAL2MQVpVBd0c5Z' @ 72057594037927935 : 1 .. '!items!zs67k4sxCid6oTK3' @ 0 : 0; will stop at (end) +2025/02/04-20:38:48.217235 7ffae7fff6c0 Recovering log #86 +2025/02/04-20:38:48.232340 7ffae7fff6c0 Delete type=3 #84 +2025/02/04-20:38:48.232418 7ffae7fff6c0 Delete type=0 #86 +2025/02/04-21:02:18.359457 7ffae6bff6c0 Level-0 table #91: started +2025/02/04-21:02:18.359479 7ffae6bff6c0 Level-0 table #91: 0 bytes OK +2025/02/04-21:02:18.400500 7ffae6bff6c0 Delete type=0 #89 +2025/02/04-21:02:18.427028 7ffae6bff6c0 Manual compaction at level-0 from '!items!1bAL2MQVpVBd0c5Z' @ 72057594037927935 : 1 .. '!items!zs67k4sxCid6oTK3' @ 0 : 0; will stop at (end) diff --git a/packs/simples/MANIFEST-000076 b/packs/simples/MANIFEST-000092 similarity index 75% rename from packs/simples/MANIFEST-000076 rename to packs/simples/MANIFEST-000092 index 749fc49..ff76ad6 100644 Binary files a/packs/simples/MANIFEST-000076 and b/packs/simples/MANIFEST-000092 differ diff --git a/postcss/tedeum.css b/postcss/tedeum.css index 1fdb189..782fd1f 100644 --- a/postcss/tedeum.css +++ b/postcss/tedeum.css @@ -1263,6 +1263,12 @@ ul, li { display: block; max-width: 34rem; } + .creator-finished-section { + display: block; + max-width: 34rem; + text-align: center; + margin-bottom: 1rem; + } } .item-name-label { diff --git a/styles/tedeum.css b/styles/tedeum.css index 2d73fc1..499dc32 100644 --- a/styles/tedeum.css +++ b/styles/tedeum.css @@ -1204,6 +1204,13 @@ ul, li { max-width: 34rem; } +.fvtt-te-deum-character-creator .creator-finished-section { + display: block; + max-width: 34rem; + text-align: center; + margin-bottom: 1rem; + } + .item-name-label { min-width: 12rem; } \ No newline at end of file diff --git a/system.json b/system.json index 95b0ca8..2264e6c 100644 --- a/system.json +++ b/system.json @@ -136,8 +136,8 @@ }, "title": "Te Deum pour Un Massacre, le Jeu de Rôles (Officiel)", "url": "https://www.uberwald.me/gitea/public/fvtt-te-deum", - "version": "12.0.12", - "download": "https://www.uberwald.me/gitea/public/fvtt-te-deum/archive/fvtt-te-deum-v12.0.12.zip", + "version": "12.0.13", + "download": "https://www.uberwald.me/gitea/public/fvtt-te-deum/archive/fvtt-te-deum-v12.0.13.zip", "background": "systems/fvtt-te-deum/images/ui/tdeum_welcome_page_01.webp", "flags": { "hotReload": { diff --git a/templates/actors/actor-sheet.hbs b/templates/actors/actor-sheet.hbs index 887eb13..26fb59e 100644 --- a/templates/actors/actor-sheet.hbs +++ b/templates/actors/actor-sheet.hbs @@ -247,7 +247,7 @@ {{upperFirst arme.system.typeArme}} {{upperFirst arme.system.competence}} - {{arme.system.degats}} + {{arme.system.degats}}