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

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

View File

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

View File

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

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

View File

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

View File

@ -9,6 +9,8 @@ export const TEDEUM_CONFIG = {
{ value: 7 }, { value: 9 }, { value: 11 }],
ACTIONS_PAR_TOUR: [{}, { value: 1 }, { value: 2 }, { value: 2 },
{ 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 }],
@ -48,6 +50,11 @@ export const TEDEUM_CONFIG = {
"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" },

View File

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

View File

@ -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 = {

View File

@ -1 +1 @@
MANIFEST-000076
MANIFEST-000093

View File

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

View File

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

Binary file not shown.

BIN
packs/armes/MANIFEST-000093 Normal file

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000076
MANIFEST-000093

View File

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

View File

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

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000072
MANIFEST-000090

View File

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

View File

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

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000082
MANIFEST-000098

View File

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

View File

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

View File

@ -1 +1 @@
MANIFEST-000076
MANIFEST-000092

View File

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

View File

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

View File

@ -1 +1 @@
MANIFEST-000076
MANIFEST-000092

View File

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

View File

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

View File

@ -1 +1 @@
MANIFEST-000014
MANIFEST-000030

View File

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

View File

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

View File

@ -1 +1 @@
MANIFEST-000076
MANIFEST-000092

View File

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

View File

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

View File

@ -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 {

View File

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

View File

@ -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": {

View File

@ -247,7 +247,7 @@
</span>
<span class="item-field-label-medium">{{upperFirst arme.system.typeArme}}</span>
<span class="item-field-label-medium">{{upperFirst arme.system.competence}}</span>
<span class="item-field-label-medium">{{arme.system.degats}}</span>
<span class="item-field-label-medium"><a class="roll-degats" data-arme-id="{{arme._id}}">{{arme.system.degats}}</a></span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed-full">
@ -375,8 +375,9 @@
<ul class="item-list alternate-list">
<li class="item flexrow">
<label class="item-name-label-medium">Genre</label>
<input type="text" class="" name="system.genre" value="{{system.genre}}"
data-dtype="String" />
<select type="text" class="" name="system.genre" value="{{system.genre}}" data-dtype="String" />
{{selectOptions @root.config.genre selected=system.genre}}
</select>
</li>
<li class="item flexrow">
<label class="item-name-label-medium">Lieu de naissance</label>

View File

@ -0,0 +1,23 @@
<div class="chat-message-header">
{{#if actorImg}}
<img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />
{{/if}}
<h4 class="chat-actor-name">{{alias}}</h4>
</div>
<hr>
{{#if img}}
<div >
<img class="chat-icon" src="{{arme.img}}" alt="{{name}}" />
</div>
{{/if}}
<div>
<ul>
<li>Dégats de {{arme.name}}: {{formula}} </li>
<li>Dégats infligés : {{degats}}</li>
</ul>
</div>
</div>

View File

@ -2,16 +2,27 @@
<h3>Création de personnage terminée !</h3>
<div class="form-group">
<div class="form-group creator-finished-section">
L'ensemble des choix a été appliqué sur la fiche de personnage nouvellement créée.
</div>
Le Trousseau issu de l'Age Viril a été copié dans zone d'équipement libre de la fiche de personnage, à vous de créer les objets de jeu nécessaires (armes, richesses, etc.).
<div class="form-group creator-finished-section">
Le Trousseau issu de l'Age Viril a été copié dans zone d'équipement libre de la fiche de personnage, à vous de créer
les objets de jeu nécessaires (armes, richesses, etc.).
</div>
Vous devez maintenant choisir un Grâce, en fonction des pré-requis de votre personnage, et l'appliquer sur la fiche de personnage.
<div class="form-group creator-finished-section">
Vous devez maintenant choisir un Grâce, en fonction des pré-requis de votre personnage, et l'appliquer sur la fiche
de personnage.
</div>
<div class="form-group creator-finished-section">
Vous pouvez également choisir un nom pour votre personnage, et le renseigner dans la fiche de personnage.
</div>
<div class="form-group creator-finished-section">
Enfin, vous pouvez choisir un portrait pour votre personnage.
</div>
</div>
</div>

View File

@ -33,7 +33,7 @@
<li class="flexrow">
<label class="item-name-label-long">Score</label>
<input type="text" class="padd-right numeric-input item-field-label-short"
name="system.score" value="{{system.score}}" data-dtype="Number" />
name="system.score" value="{{system.score}}" data-dtype="Number" {{#if system.isBase}}disabled{{/if}}/>
</li>
</ul>