Init, competences de base, fix creation de perso, etc

This commit is contained in:
2025-02-04 21:20:54 +01:00
parent 6f278ab8eb
commit c32be6b24d
58 changed files with 354 additions and 212 deletions

View File

@ -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);