Compare commits

..

6 Commits

81 changed files with 357 additions and 152 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

View File

@@ -1,30 +1,23 @@
{
"ACTOR": {
"TypePersonnage": "Personnage",
"TypePNJ": "PNJ"
},
"ITEM": {
"TypeArtefact": "Artefact",
"TypeArme": "Arme",
"TypeTalent": "Talent",
"TypeHistorique": "Historique",
"TypeProfil": "Profil",
"TypeCompetence": "Compétence",
"TypeProtection": "Protection",
"TypeMonnaie": "Monnaie",
"TypeEquipement": "Equipement",
"TypeRessource": "Ressource",
"TypeContact": "Contact"
},
"HAWKMOON": {
"ui": {
"editContact": "Modifier le contact",
"deleteContact": "Supprimer le contact",
"editTrait": "Modifier le trait",
"deleteTrait": "Supprimer le trait"
"TYPES": {
"Actor": {
"personnage": "Personnage",
"PNJ": "PNJ"
}
},
"Item": {
"accessoire": "Accessoire",
"arme": "Arme",
"atoutfeerique": "Atout féerique",
"avantage": "Avantage",
"capacitenaturelle": "Capacité naturelle",
"competence": "Compétence",
"contact": "Contact",
"desavantage": "Désavantage",
"equipement": "Equipement",
"fee": "Fée",
"pouvoir": "Pouvoir",
"profil": "Profil",
"protection": "Protection"
}
}

View File

@@ -73,7 +73,7 @@ export class HeritiersActor extends Actor {
getOtherMeleeWeapons(excludeArme) {
let armes = []
for (let arme of this.items) {
if ( HeritiersUtility.isArmeMelee(arme) && arme.id != excludeArme._id) {
if (HeritiersUtility.isArmeMelee(arme) && arme.id != excludeArme._id) {
armes.push(this.prepareArme(arme))
}
}
@@ -152,7 +152,7 @@ export class HeritiersActor extends Actor {
/* -------------------------------------------- */
prepareUtileSkill(item) {
let specList = []
if (item && item.system.categorie && item.system.categorie == "utile") {
if (item?.system?.categorie == "utile") {
for (let spec of item.system.specialites) {
specList.push(spec.name)
}
@@ -278,7 +278,7 @@ export class HeritiersActor extends Actor {
/* -------------------------------------------- */
async equipItem(itemId) {
let item = this.items.find(item => item.id == itemId)
if (item && item.system) {
if (item?.system) {
let update = { _id: item.id, "system.equipped": !item.system.equipped }
await this.updateEmbeddedDocuments('Item', [update]); // Updates one EmbeddedEntity
}
@@ -339,7 +339,7 @@ export class HeritiersActor extends Actor {
/* -------------------------------------------- */
async equipGear(equipmentId) {
let item = this.items.find(item => item.id == equipmentId);
if (item && item.system.data) {
if (item?.system) {
let update = { _id: item.id, "system.equipped": !item.system.equipped };
await this.updateEmbeddedDocuments('Item', [update]); // Updates one EmbeddedEntity
}
@@ -501,7 +501,7 @@ export class HeritiersActor extends Actor {
incDecTricherie(value) {
let tricherie = this.system.rang.tricherie
tricherie.value += value
if ( tricherie.value < 0 || tricherie.value > tricherie.max) {
if (tricherie.value < 0 || tricherie.value > tricherie.max) {
ui.notifications.warn("Pas assez de points de Tricherie !")
return false
}
@@ -512,9 +512,9 @@ export class HeritiersActor extends Actor {
}
/* -------------------------------------------- */
getPireCompetence(compName1, compName2) {
let comp1 = this.items.find( it => it.name == compName1)
let comp2 = this.items.find( it => it.name == compName2)
if ( comp1 && comp2 ) {
let comp1 = this.items.find(it => it.name == compName1)
let comp2 = this.items.find(it => it.name == compName2)
if (comp1 && comp2) {
if (comp1.system.niveau > comp2.system.niveau) {
return comp1
} else {
@@ -547,7 +547,7 @@ export class HeritiersActor extends Actor {
}
if (compName) {
rollData.competence = duplicate(this.items.find(item => item.name.toLowerCase() == compName.toLowerCase()) || {})
if (rollData.competence && rollData.competence.name) {
if (rollData.competence?.name) {
this.prepareUtileSkill(rollData.competence)
rollData.actionImg = rollData.competence?.img
} else {
@@ -595,7 +595,6 @@ export class HeritiersActor extends Actor {
async rollRootCompetence(compKey) {
let rollData = this.getCommonRollData()
rollData.mode = "competence"
console.log("Compkey", compKey)
rollData.competence = { name: this.system.competences[compKey].label, system: { niveau: this.system.competences[compKey].niveau } }
console.log("RollDatra", rollData)
let rollDialog = await HeritiersRollDialog.create(this, rollData)
@@ -619,7 +618,7 @@ export class HeritiersActor extends Actor {
arme.system.isMelee = HeritiersUtility.isArmeMelee(arme)
let competenceName = "Tir"
let key = "prec"
if ( arme.system.isMelee) {
if (arme.system.isMelee) {
competenceName = "Mêlée"
key = "agi"
}
@@ -629,7 +628,7 @@ export class HeritiersActor extends Actor {
rollData.arme = arme
rollData.mode = "arme"
rollData.armes = this.getOtherMeleeWeapons(arme)
if (rollData.defenderTokenId && arme.system.isMelee ) {
if (rollData.defenderTokenId && arme.system.isMelee) {
rollData.cacheDifficulte = true
}
console.log(">>>> ARME", rollData)
@@ -651,7 +650,7 @@ export class HeritiersActor extends Actor {
rollData.arme = duplicate(arme)
rollData.mode = "attaquebrutale"
rollData.armes = this.getOtherMeleeWeapons(arme)
rollData.rulesMalus.push({ name: "Attaque brutale", value: -2 } )
rollData.rulesMalus.push({ name: "Attaque brutale", value: -2 })
let rollDialog = await HeritiersRollDialog.create(this, rollData)
rollDialog.render(true)
}
@@ -673,7 +672,7 @@ export class HeritiersActor extends Actor {
rollDialog.render(true)
}
}
/* -------------------------------------------- */
async rollAssomerArme(armeId) {
let arme = this.items.get(armeId)

View File

@@ -79,31 +79,17 @@ function welcomeMessage() {
}
/* -------------------------------------------- */
// Register world usage statistics
function registerUsageCount(registerKey) {
if (game.user.isGM) {
game.settings.register(registerKey, "world-key", {
name: "Unique world key",
scope: "world",
config: false,
default: "",
type: String
});
let worldKey = game.settings.get(registerKey, "world-key")
if (worldKey == undefined || worldKey == "") {
worldKey = randomID(32)
game.settings.set(registerKey, "world-key", worldKey)
}
// Simple API counter
let regURL = `https://www.uberwald.me/fvtt_appcount/count.php?name="${registerKey}"&worldKey="${worldKey}"&version="${game.release.generation}.${game.release.build}"&system="${game.system.id}"&systemversion="${game.system.version}"`
//$.ajaxSetup({
//headers: { 'Access-Control-Allow-Origin': '*' }
//})
$.ajax(regURL)
async function importDefaultScene() {
let exists = game.scenes.find(j => j.name == "Accueil");
if (!exists) {
const scenes = await HeritiersUtility.loadCompendium("fvtt-les-heritiers.scenes")
let newDocuments = scenes.filter(i => i.name == "Accueil");
await game.scenes.documentClass.create(newDocuments);
game.scenes.find(i => i.name == "Accueil").activate();
}
}
/* -------------------------------------------- */
/* Foundry VTT Initialization */
/* -------------------------------------------- */
@@ -119,15 +105,16 @@ Hooks.once("ready", function () {
user: game.user._id
});
}
import("https://www.uberwald.me/fvtt_appcount/count-class-ready.js").then(moduleCounter=>{
console.log("ClassCounter loaded", moduleCounter)
moduleCounter.ClassCounter.registerUsageCount()
}).catch(err=>
console.log("No stats available, giving up.")
)
welcomeMessage();
importDefaultScene();
registerUsageCount(game.system.id)
welcomeMessage()
// CSS patch for v9
if (game.version) {
let sidebar = document.getElementById("sidebar");
sidebar.style.width = "min-content";
}
});
/* -------------------------------------------- */
@@ -137,7 +124,7 @@ Hooks.on("chatMessage", (html, content, msg) => {
if (content[0] == '/') {
let regExp = /(\S+)/g;
let commands = content.match(regExp);
if (game.system.mournblade.commands.processChatCommand(commands, content, msg)) {
if (game.system.lesheritiers.commands.processChatCommand(commands, content, msg)) {
return false;
}
}

View File

@@ -18,18 +18,25 @@ export class HeritiersRollDialog extends Dialog {
icon: '<i class="fas fa-check"></i>',
label: "Lancer 1d8",
callback: () => { this.roll("d8") }
},
rolld10: {
}
}
let enableD10D12 = true
if (rollData.competence?.system.niveau == 0) {
enableD10D12 = false
}
if (enableD10D12) {
buttons.rolld10 = {
icon: '<i class="fas fa-check"></i>',
label: "Lancer 1d10",
callback: () => { this.roll("d10") }
},
rolld12: {
}
buttons.rolld12 = {
icon: '<i class="fas fa-check"></i>',
label: "Lancer 1d12",
callback: () => { this.roll("d12") }
}
}
if (rollData.tricherie) {
buttons["rollTricherie"] = {
icon: '<i class="fas fa-check"></i>',
@@ -55,7 +62,7 @@ export class HeritiersRollDialog extends Dialog {
buttons: buttons,
close: close
}
// Overwrite in case of carac only -> 1d10
// Overwrite in case of carac only -> 1d8
if (rollData.mode == "carac") {
conf.buttons = {
rolld8: {

View File

@@ -485,7 +485,7 @@ export class HeritiersUtility {
rangValue = rollData.rang.value
}
if (rollData.competence) {
let compmod = (rollData.competence.system.niveau == 0) ? -3 : 0
let compmod = 0 // Bonus de compétence à 0 dans Les Heritiers
let specBonus = (rollData.useSpecialite) ? 1 : 0
rollData.diceFormula += `+${rollData.carac.value}+${rangValue}+${rollData.competence.system.niveau}+${specBonus}+${rollData.bonusMalusContext}+${compmod}`
} else if (rollData.pouvoirBase) {

Binary file not shown.

View File

View File

@@ -0,0 +1 @@
MANIFEST-000038

View File

View File

@@ -0,0 +1,8 @@
2024/03/06-18:44:25.568521 7f0ad34006c0 Recovering log #36
2024/03/06-18:44:25.578793 7f0ad34006c0 Delete type=3 #34
2024/03/06-18:44:25.578840 7f0ad34006c0 Delete type=0 #36
2024/03/06-18:46:24.175017 7f0ad20006c0 Level-0 table #41: started
2024/03/06-18:46:24.175038 7f0ad20006c0 Level-0 table #41: 0 bytes OK
2024/03/06-18:46:24.182284 7f0ad20006c0 Delete type=0 #39
2024/03/06-18:46:24.188691 7f0ad20006c0 Manual compaction at level-0 from '!items!1NhJH4IJpxsGmLB8' @ 72057594037927935 : 1 .. '!items!y1yOenfAJTsb3r6e' @ 0 : 0; will stop at (end)
2024/03/06-18:46:24.195894 7f0ad20006c0 Manual compaction at level-1 from '!items!1NhJH4IJpxsGmLB8' @ 72057594037927935 : 1 .. '!items!y1yOenfAJTsb3r6e' @ 0 : 0; will stop at (end)

View File

@@ -0,0 +1,8 @@
2024/03/06-18:38:24.774853 7f0ad34006c0 Recovering log #32
2024/03/06-18:38:24.785470 7f0ad34006c0 Delete type=3 #30
2024/03/06-18:38:24.785662 7f0ad34006c0 Delete type=0 #32
2024/03/06-18:42:43.343014 7f0ad20006c0 Level-0 table #37: started
2024/03/06-18:42:43.343041 7f0ad20006c0 Level-0 table #37: 0 bytes OK
2024/03/06-18:42:43.348988 7f0ad20006c0 Delete type=0 #35
2024/03/06-18:42:43.349144 7f0ad20006c0 Manual compaction at level-0 from '!items!1NhJH4IJpxsGmLB8' @ 72057594037927935 : 1 .. '!items!y1yOenfAJTsb3r6e' @ 0 : 0; will stop at (end)
2024/03/06-18:42:43.349169 7f0ad20006c0 Manual compaction at level-1 from '!items!1NhJH4IJpxsGmLB8' @ 72057594037927935 : 1 .. '!items!y1yOenfAJTsb3r6e' @ 0 : 0; will stop at (end)

Binary file not shown.

Binary file not shown.

View File

View File

@@ -0,0 +1 @@
MANIFEST-000038

View File

View File

@@ -0,0 +1,8 @@
2024/03/06-18:44:25.594975 7f0ad34006c0 Recovering log #36
2024/03/06-18:44:25.604899 7f0ad34006c0 Delete type=3 #34
2024/03/06-18:44:25.605412 7f0ad34006c0 Delete type=0 #36
2024/03/06-18:46:24.188713 7f0ad20006c0 Level-0 table #41: started
2024/03/06-18:46:24.188737 7f0ad20006c0 Level-0 table #41: 0 bytes OK
2024/03/06-18:46:24.195790 7f0ad20006c0 Delete type=0 #39
2024/03/06-18:46:24.202331 7f0ad20006c0 Manual compaction at level-0 from '!items!1ETVaPBtjDtzelK1' @ 72057594037927935 : 1 .. '!items!zbsVCsWxRzkzzG1N' @ 0 : 0; will stop at (end)
2024/03/06-18:46:24.209583 7f0ad20006c0 Manual compaction at level-1 from '!items!1ETVaPBtjDtzelK1' @ 72057594037927935 : 1 .. '!items!zbsVCsWxRzkzzG1N' @ 0 : 0; will stop at (end)

View File

@@ -0,0 +1,8 @@
2024/03/06-18:38:24.800967 7f0ad34006c0 Recovering log #32
2024/03/06-18:38:24.811663 7f0ad34006c0 Delete type=3 #30
2024/03/06-18:38:24.811726 7f0ad34006c0 Delete type=0 #32
2024/03/06-18:42:43.329313 7f0ad20006c0 Level-0 table #37: started
2024/03/06-18:42:43.329342 7f0ad20006c0 Level-0 table #37: 0 bytes OK
2024/03/06-18:42:43.335373 7f0ad20006c0 Delete type=0 #35
2024/03/06-18:42:43.349122 7f0ad20006c0 Manual compaction at level-0 from '!items!1ETVaPBtjDtzelK1' @ 72057594037927935 : 1 .. '!items!zbsVCsWxRzkzzG1N' @ 0 : 0; will stop at (end)
2024/03/06-18:42:43.349153 7f0ad20006c0 Manual compaction at level-1 from '!items!1ETVaPBtjDtzelK1' @ 72057594037927935 : 1 .. '!items!zbsVCsWxRzkzzG1N' @ 0 : 0; will stop at (end)

Binary file not shown.

Binary file not shown.

View File

View File

@@ -0,0 +1 @@
MANIFEST-000038

View File

View File

@@ -0,0 +1,8 @@
2024/03/06-18:44:25.556505 7f0ad94006c0 Recovering log #36
2024/03/06-18:44:25.565851 7f0ad94006c0 Delete type=3 #34
2024/03/06-18:44:25.565906 7f0ad94006c0 Delete type=0 #36
2024/03/06-18:46:24.168720 7f0ad20006c0 Level-0 table #41: started
2024/03/06-18:46:24.168740 7f0ad20006c0 Level-0 table #41: 0 bytes OK
2024/03/06-18:46:24.174891 7f0ad20006c0 Delete type=0 #39
2024/03/06-18:46:24.182563 7f0ad20006c0 Manual compaction at level-0 from '!items!0fPXtA5LkLgG8uDj' @ 72057594037927935 : 1 .. '!items!zvtBlG6KCIn0oCVk' @ 0 : 0; will stop at (end)
2024/03/06-18:46:24.188703 7f0ad20006c0 Manual compaction at level-1 from '!items!0fPXtA5LkLgG8uDj' @ 72057594037927935 : 1 .. '!items!zvtBlG6KCIn0oCVk' @ 0 : 0; will stop at (end)

View File

@@ -0,0 +1,8 @@
2024/03/06-18:38:24.762318 7f0ad3e006c0 Recovering log #32
2024/03/06-18:38:24.771804 7f0ad3e006c0 Delete type=3 #30
2024/03/06-18:38:24.772061 7f0ad3e006c0 Delete type=0 #32
2024/03/06-18:42:43.316209 7f0ad20006c0 Level-0 table #37: started
2024/03/06-18:42:43.316229 7f0ad20006c0 Level-0 table #37: 0 bytes OK
2024/03/06-18:42:43.322596 7f0ad20006c0 Delete type=0 #35
2024/03/06-18:42:43.322731 7f0ad20006c0 Manual compaction at level-0 from '!items!0fPXtA5LkLgG8uDj' @ 72057594037927935 : 1 .. '!items!zvtBlG6KCIn0oCVk' @ 0 : 0; will stop at (end)
2024/03/06-18:42:43.322763 7f0ad20006c0 Manual compaction at level-1 from '!items!0fPXtA5LkLgG8uDj' @ 72057594037927935 : 1 .. '!items!zvtBlG6KCIn0oCVk' @ 0 : 0; will stop at (end)

Binary file not shown.

BIN
packs/avantages/000005.ldb Normal file

Binary file not shown.

View File

1
packs/avantages/CURRENT Normal file
View File

@@ -0,0 +1 @@
MANIFEST-000038

0
packs/avantages/LOCK Normal file
View File

8
packs/avantages/LOG Normal file
View File

@@ -0,0 +1,8 @@
2024/03/06-18:44:25.520679 7f0ad34006c0 Recovering log #36
2024/03/06-18:44:25.530573 7f0ad34006c0 Delete type=3 #34
2024/03/06-18:44:25.530645 7f0ad34006c0 Delete type=0 #36
2024/03/06-18:46:24.149265 7f0ad20006c0 Level-0 table #41: started
2024/03/06-18:46:24.149287 7f0ad20006c0 Level-0 table #41: 0 bytes OK
2024/03/06-18:46:24.155653 7f0ad20006c0 Delete type=0 #39
2024/03/06-18:46:24.161941 7f0ad20006c0 Manual compaction at level-0 from '!items!0EAAt0qSzcD9VRBH' @ 72057594037927935 : 1 .. '!items!zfpjROW9LDAlXUkN' @ 0 : 0; will stop at (end)
2024/03/06-18:46:24.168702 7f0ad20006c0 Manual compaction at level-1 from '!items!0EAAt0qSzcD9VRBH' @ 72057594037927935 : 1 .. '!items!zfpjROW9LDAlXUkN' @ 0 : 0; will stop at (end)

8
packs/avantages/LOG.old Normal file
View File

@@ -0,0 +1,8 @@
2024/03/06-18:38:24.726349 7f0ad34006c0 Recovering log #32
2024/03/06-18:38:24.736299 7f0ad34006c0 Delete type=3 #30
2024/03/06-18:38:24.736397 7f0ad34006c0 Delete type=0 #32
2024/03/06-18:42:43.296768 7f0ad20006c0 Level-0 table #37: started
2024/03/06-18:42:43.296798 7f0ad20006c0 Level-0 table #37: 0 bytes OK
2024/03/06-18:42:43.302818 7f0ad20006c0 Delete type=0 #35
2024/03/06-18:42:43.316198 7f0ad20006c0 Manual compaction at level-0 from '!items!0EAAt0qSzcD9VRBH' @ 72057594037927935 : 1 .. '!items!zfpjROW9LDAlXUkN' @ 0 : 0; will stop at (end)
2024/03/06-18:42:43.322723 7f0ad20006c0 Manual compaction at level-1 from '!items!0EAAt0qSzcD9VRBH' @ 72057594037927935 : 1 .. '!items!zfpjROW9LDAlXUkN' @ 0 : 0; will stop at (end)

Binary file not shown.

BIN
packs/capacites/000005.ldb Normal file

Binary file not shown.

View File

1
packs/capacites/CURRENT Normal file
View File

@@ -0,0 +1 @@
MANIFEST-000038

0
packs/capacites/LOCK Normal file
View File

8
packs/capacites/LOG Normal file
View File

@@ -0,0 +1,8 @@
2024/03/06-18:44:25.544510 7f0ad34006c0 Recovering log #36
2024/03/06-18:44:25.554577 7f0ad34006c0 Delete type=3 #34
2024/03/06-18:44:25.554623 7f0ad34006c0 Delete type=0 #36
2024/03/06-18:46:24.161959 7f0ad20006c0 Level-0 table #41: started
2024/03/06-18:46:24.161984 7f0ad20006c0 Level-0 table #41: 0 bytes OK
2024/03/06-18:46:24.168612 7f0ad20006c0 Delete type=0 #39
2024/03/06-18:46:24.174998 7f0ad20006c0 Manual compaction at level-0 from '!items!0cNSRJVPk3GbvxfD' @ 72057594037927935 : 1 .. '!items!yWDg2KlXEz33TSmZ' @ 0 : 0; will stop at (end)
2024/03/06-18:46:24.182577 7f0ad20006c0 Manual compaction at level-1 from '!items!0cNSRJVPk3GbvxfD' @ 72057594037927935 : 1 .. '!items!yWDg2KlXEz33TSmZ' @ 0 : 0; will stop at (end)

8
packs/capacites/LOG.old Normal file
View File

@@ -0,0 +1,8 @@
2024/03/06-18:38:24.750612 7f0ad34006c0 Recovering log #32
2024/03/06-18:38:24.760735 7f0ad34006c0 Delete type=3 #30
2024/03/06-18:38:24.760785 7f0ad34006c0 Delete type=0 #32
2024/03/06-18:42:43.302940 7f0ad20006c0 Level-0 table #37: started
2024/03/06-18:42:43.302963 7f0ad20006c0 Level-0 table #37: 0 bytes OK
2024/03/06-18:42:43.309925 7f0ad20006c0 Delete type=0 #35
2024/03/06-18:42:43.322702 7f0ad20006c0 Manual compaction at level-0 from '!items!0cNSRJVPk3GbvxfD' @ 72057594037927935 : 1 .. '!items!yWDg2KlXEz33TSmZ' @ 0 : 0; will stop at (end)
2024/03/06-18:42:43.322749 7f0ad20006c0 Manual compaction at level-1 from '!items!0cNSRJVPk3GbvxfD' @ 72057594037927935 : 1 .. '!items!yWDg2KlXEz33TSmZ' @ 0 : 0; will stop at (end)

Binary file not shown.

Binary file not shown.

View File

View File

@@ -0,0 +1 @@
MANIFEST-000038

0
packs/competences/LOCK Normal file
View File

8
packs/competences/LOG Normal file
View File

@@ -0,0 +1,8 @@
2024/03/06-18:44:25.508577 7f0ad94006c0 Recovering log #36
2024/03/06-18:44:25.518629 7f0ad94006c0 Delete type=3 #34
2024/03/06-18:44:25.518679 7f0ad94006c0 Delete type=0 #36
2024/03/06-18:46:24.142406 7f0ad20006c0 Level-0 table #41: started
2024/03/06-18:46:24.142437 7f0ad20006c0 Level-0 table #41: 0 bytes OK
2024/03/06-18:46:24.149137 7f0ad20006c0 Delete type=0 #39
2024/03/06-18:46:24.155816 7f0ad20006c0 Manual compaction at level-0 from '!items!0V86n4TU8NegrR2B' @ 72057594037927935 : 1 .. '!items!zEl2NQsnCpELVWzh' @ 0 : 0; will stop at (end)
2024/03/06-18:46:24.161951 7f0ad20006c0 Manual compaction at level-1 from '!items!0V86n4TU8NegrR2B' @ 72057594037927935 : 1 .. '!items!zEl2NQsnCpELVWzh' @ 0 : 0; will stop at (end)

View File

@@ -0,0 +1,8 @@
2024/03/06-18:38:24.713502 7f0ad3e006c0 Recovering log #32
2024/03/06-18:38:24.724430 7f0ad3e006c0 Delete type=3 #30
2024/03/06-18:38:24.724484 7f0ad3e006c0 Delete type=0 #32
2024/03/06-18:42:43.280171 7f0ad20006c0 Level-0 table #37: started
2024/03/06-18:42:43.280236 7f0ad20006c0 Level-0 table #37: 0 bytes OK
2024/03/06-18:42:43.286427 7f0ad20006c0 Delete type=0 #35
2024/03/06-18:42:43.286549 7f0ad20006c0 Manual compaction at level-0 from '!items!0V86n4TU8NegrR2B' @ 72057594037927935 : 1 .. '!items!zEl2NQsnCpELVWzh' @ 0 : 0; will stop at (end)
2024/03/06-18:42:43.296750 7f0ad20006c0 Manual compaction at level-1 from '!items!0V86n4TU8NegrR2B' @ 72057594037927935 : 1 .. '!items!zEl2NQsnCpELVWzh' @ 0 : 0; will stop at (end)

Binary file not shown.

Binary file not shown.

View File

View File

@@ -0,0 +1 @@
MANIFEST-000038

0
packs/desavantages/LOCK Normal file
View File

8
packs/desavantages/LOG Normal file
View File

@@ -0,0 +1,8 @@
2024/03/06-18:44:25.532864 7f0ad94006c0 Recovering log #36
2024/03/06-18:44:25.542781 7f0ad94006c0 Delete type=3 #34
2024/03/06-18:44:25.542832 7f0ad94006c0 Delete type=0 #36
2024/03/06-18:46:24.155844 7f0ad20006c0 Level-0 table #41: started
2024/03/06-18:46:24.155874 7f0ad20006c0 Level-0 table #41: 0 bytes OK
2024/03/06-18:46:24.161851 7f0ad20006c0 Delete type=0 #39
2024/03/06-18:46:24.168712 7f0ad20006c0 Manual compaction at level-0 from '!items!2QqvtClSVnh5ejXu' @ 72057594037927935 : 1 .. '!items!xzRJ6JP1HqoqxLdj' @ 0 : 0; will stop at (end)
2024/03/06-18:46:24.175009 7f0ad20006c0 Manual compaction at level-1 from '!items!2QqvtClSVnh5ejXu' @ 72057594037927935 : 1 .. '!items!xzRJ6JP1HqoqxLdj' @ 0 : 0; will stop at (end)

View File

@@ -0,0 +1,8 @@
2024/03/06-18:38:24.738330 7f0ad3e006c0 Recovering log #32
2024/03/06-18:38:24.748511 7f0ad3e006c0 Delete type=3 #30
2024/03/06-18:38:24.748603 7f0ad3e006c0 Delete type=0 #32
2024/03/06-18:42:43.310037 7f0ad20006c0 Level-0 table #37: started
2024/03/06-18:42:43.310060 7f0ad20006c0 Level-0 table #37: 0 bytes OK
2024/03/06-18:42:43.316084 7f0ad20006c0 Delete type=0 #35
2024/03/06-18:42:43.322714 7f0ad20006c0 Manual compaction at level-0 from '!items!2QqvtClSVnh5ejXu' @ 72057594037927935 : 1 .. '!items!xzRJ6JP1HqoqxLdj' @ 0 : 0; will stop at (end)
2024/03/06-18:42:43.322757 7f0ad20006c0 Manual compaction at level-1 from '!items!2QqvtClSVnh5ejXu' @ 72057594037927935 : 1 .. '!items!xzRJ6JP1HqoqxLdj' @ 0 : 0; will stop at (end)

Binary file not shown.

BIN
packs/pouvoirs/000005.ldb Normal file

Binary file not shown.

View File

1
packs/pouvoirs/CURRENT Normal file
View File

@@ -0,0 +1 @@
MANIFEST-000038

0
packs/pouvoirs/LOCK Normal file
View File

8
packs/pouvoirs/LOG Normal file
View File

@@ -0,0 +1,8 @@
2024/03/06-18:44:25.581915 7f0ad94006c0 Recovering log #36
2024/03/06-18:44:25.592375 7f0ad94006c0 Delete type=3 #34
2024/03/06-18:44:25.592428 7f0ad94006c0 Delete type=0 #36
2024/03/06-18:46:24.182586 7f0ad20006c0 Level-0 table #41: started
2024/03/06-18:46:24.182611 7f0ad20006c0 Level-0 table #41: 0 bytes OK
2024/03/06-18:46:24.188586 7f0ad20006c0 Delete type=0 #39
2024/03/06-18:46:24.195882 7f0ad20006c0 Manual compaction at level-0 from '!items!19r9ijZUyvnlIqgm' @ 72057594037927935 : 1 .. '!items!zON0h5SjFyANjPnA' @ 0 : 0; will stop at (end)
2024/03/06-18:46:24.202340 7f0ad20006c0 Manual compaction at level-1 from '!items!19r9ijZUyvnlIqgm' @ 72057594037927935 : 1 .. '!items!zON0h5SjFyANjPnA' @ 0 : 0; will stop at (end)

8
packs/pouvoirs/LOG.old Normal file
View File

@@ -0,0 +1,8 @@
2024/03/06-18:38:24.787435 7f0ad3e006c0 Recovering log #32
2024/03/06-18:38:24.797940 7f0ad3e006c0 Delete type=3 #30
2024/03/06-18:38:24.798012 7f0ad3e006c0 Delete type=0 #32
2024/03/06-18:42:43.335473 7f0ad20006c0 Level-0 table #37: started
2024/03/06-18:42:43.335496 7f0ad20006c0 Level-0 table #37: 0 bytes OK
2024/03/06-18:42:43.342907 7f0ad20006c0 Delete type=0 #35
2024/03/06-18:42:43.349133 7f0ad20006c0 Manual compaction at level-0 from '!items!19r9ijZUyvnlIqgm' @ 72057594037927935 : 1 .. '!items!zON0h5SjFyANjPnA' @ 0 : 0; will stop at (end)
2024/03/06-18:42:43.349161 7f0ad20006c0 Manual compaction at level-1 from '!items!19r9ijZUyvnlIqgm' @ 72057594037927935 : 1 .. '!items!zON0h5SjFyANjPnA' @ 0 : 0; will stop at (end)

Binary file not shown.

0
packs/profils/000040.log Normal file
View File

1
packs/profils/CURRENT Normal file
View File

@@ -0,0 +1 @@
MANIFEST-000038

0
packs/profils/LOCK Normal file
View File

7
packs/profils/LOG Normal file
View File

@@ -0,0 +1,7 @@
2024/03/06-18:44:25.607498 7f0ad94006c0 Recovering log #36
2024/03/06-18:44:25.619089 7f0ad94006c0 Delete type=3 #34
2024/03/06-18:44:25.619169 7f0ad94006c0 Delete type=0 #36
2024/03/06-18:46:24.195903 7f0ad20006c0 Level-0 table #41: started
2024/03/06-18:46:24.195928 7f0ad20006c0 Level-0 table #41: 0 bytes OK
2024/03/06-18:46:24.202215 7f0ad20006c0 Delete type=0 #39
2024/03/06-18:46:24.209558 7f0ad20006c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end)

7
packs/profils/LOG.old Normal file
View File

@@ -0,0 +1,7 @@
2024/03/06-18:38:24.814232 7f0ad3e006c0 Recovering log #32
2024/03/06-18:38:24.824843 7f0ad3e006c0 Delete type=3 #30
2024/03/06-18:38:24.824931 7f0ad3e006c0 Delete type=0 #32
2024/03/06-18:42:43.322942 7f0ad20006c0 Level-0 table #37: started
2024/03/06-18:42:43.322968 7f0ad20006c0 Level-0 table #37: 0 bytes OK
2024/03/06-18:42:43.329218 7f0ad20006c0 Delete type=0 #35
2024/03/06-18:42:43.349108 7f0ad20006c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end)

Binary file not shown.

BIN
packs/scenes/000005.ldb Normal file

Binary file not shown.

0
packs/scenes/000008.log Normal file
View File

1
packs/scenes/CURRENT Normal file
View File

@@ -0,0 +1 @@
MANIFEST-000006

0
packs/scenes/LOCK Normal file
View File

8
packs/scenes/LOG Normal file
View File

@@ -0,0 +1,8 @@
2024/03/06-18:44:25.621882 7f0ad34006c0 Recovering log #4
2024/03/06-18:44:25.632172 7f0ad34006c0 Delete type=3 #2
2024/03/06-18:44:25.632258 7f0ad34006c0 Delete type=0 #4
2024/03/06-18:46:24.202350 7f0ad20006c0 Level-0 table #9: started
2024/03/06-18:46:24.202372 7f0ad20006c0 Level-0 table #9: 0 bytes OK
2024/03/06-18:46:24.209447 7f0ad20006c0 Delete type=0 #7
2024/03/06-18:46:24.216156 7f0ad20006c0 Manual compaction at level-0 from '!scenes!8DjkNeeujp2qff1N' @ 72057594037927935 : 1 .. '!scenes!ypDutqjqZcr7lx6I' @ 0 : 0; will stop at (end)
2024/03/06-18:46:24.216180 7f0ad20006c0 Manual compaction at level-1 from '!scenes!8DjkNeeujp2qff1N' @ 72057594037927935 : 1 .. '!scenes!ypDutqjqZcr7lx6I' @ 0 : 0; will stop at (end)

5
packs/scenes/LOG.old Normal file
View File

@@ -0,0 +1,5 @@
2024/03/06-18:38:24.841322 7f0ad8a006c0 Delete type=3 #1
2024/03/06-18:42:43.349231 7f0ad20006c0 Level-0 table #5: started
2024/03/06-18:42:43.352595 7f0ad20006c0 Level-0 table #5: 1578 bytes OK
2024/03/06-18:42:43.359762 7f0ad20006c0 Delete type=0 #3
2024/03/06-18:42:43.366135 7f0ad20006c0 Manual compaction at level-0 from '!scenes!8DjkNeeujp2qff1N' @ 72057594037927935 : 1 .. '!scenes!ypDutqjqZcr7lx6I' @ 0 : 0; will stop at (end)

Binary file not shown.

View File

@@ -573,6 +573,7 @@ ul, li {
.specialisation-label {
font-size: 0.8rem;
font-style: italic;
}
.carac-label,
@@ -1023,8 +1024,6 @@ ul, li {
}
#sidebar #sidebar-tabs i{
width: 25px;
height: 25px;
display: inline-block;
background-position:center;
background-size:cover;
@@ -1032,23 +1031,6 @@ ul, li {
}
/*#sidebar #sidebar-tabs i.fa-comments:before, #sidebar #sidebar-tabs i.fa-fist-raised:before, #sidebar #sidebar-tabs i.fa-users:before, #sidebar #sidebar-tabs i.fa-map:before, #sidebar #sidebar-tabs i.fa-suitcase:before, #sidebar #sidebar-tabs i.fa-book-open:before, #sidebar #sidebar-tabs i.fa-th-list:before, #sidebar #sidebar-tabs i.fa-music:before, #sidebar #sidebar-tabs i.fa-atlas:before, #sidebar #sidebar-tabs i.fa-cogs:before {content: "";}
#sidebar #sidebar-tabs i.fa-comments {background: url("img/ui/icon_sidebar_chat.svg") no-repeat;}
#sidebar #sidebar-tabs i.fa-fist-raised {background: url("img/ui/icon_sidebar_fight.svg") no-repeat;}
#sidebar #sidebar-tabs i.fa-users {background: url("img/ui/icon_sidebar_actor.svg") no-repeat;}
#sidebar #sidebar-tabs i.fa-map {background: url("img/ui/icon_sidebar_scene.svg") no-repeat;}
#sidebar #sidebar-tabs i.fa-suitcase {background: url("img/ui/icon_sidebar_item.svg") no-repeat;}
#sidebar #sidebar-tabs i.fa-book-open {background: url("img/ui/icon_sidebar_journal.svg") no-repeat;}
#sidebar #sidebar-tabs i.fa-th-list {background: url("img/ui/icon_sidebar_rolltable.svg") no-repeat;}
#sidebar #sidebar-tabs i.fa-music {background: url("img/ui/icon_sidebar_music.svg") no-repeat;}
#sidebar #sidebar-tabs i.fa-atlas {background: url("img/ui/icon_sidebar_compendium.svg") no-repeat;}
#sidebar #sidebar-tabs i.fa-cogs {background: url("img/ui/icon_sidebar_settings.svg") no-repeat;}
#combat #combat-controls {
box-shadow: inset 0 0 2rem rgba(0,0,0,0.5);
}
*/
/*--------------------------------------------------------------------------*/
/* Control, Tool, hotbar & navigation */
@@ -1218,17 +1200,16 @@ ul, li {
}
h4.entry-name.document-name {
color: black;
color: #f3eeee;
}
.compendium h4.entry-name.document-name {
color: black;
}
li.folder > .folder-header h3,
.fxmaster .directory-header,
.fxmaster .action-toggle,
.fxmaster .controls,
.fxmaster .description {
color: black;
.fxmaster {
background: #443e37E0;
background-color: #443e37E0;
}
.button-sheet-roll {
box-shadow: inset 0px 1px 0px 0px #a6827e;
background: linear-gradient(to bottom, #41545a 5%, #2e5561 100%);

View File

@@ -1,7 +1,7 @@
{
"id": "fvtt-les-heritiers",
"description": "Les Héritiers pour FoundryVTT",
"version": "11.0.2",
"version": "11.0.7",
"authors": [
{
"name": "Uberwald/LeRatierBretonnien",
@@ -19,7 +19,7 @@
"gridUnits": "m",
"license": "LICENSE.txt",
"manifest": "https://www.uberwald.me/gitea/public/fvtt-les-heritiers/raw/branch/master/system.json",
"download": "https://www.uberwald.me/gitea/public/fvtt-les-heritiers/archive/fvtt-les-heritiers-11.0.2.zip",
"download": "https://www.uberwald.me/gitea/public/fvtt-les-heritiers/archive/fvtt-les-heritiers-11.0.7.zip",
"languages": [
{
"lang": "fr",
@@ -28,87 +28,163 @@
"flags": {}
}
],
"packFolders": [
{
"name": "Les Héritiers",
"sorting": "m",
"color": "#00435c",
"folders": [
{
"name": "Création de Personnage",
"sorting": "a",
"color": "#00435c",
"packs": [
"competences",
"atouts-feeriques",
"avantages",
"capacites",
"competences",
"desavantages",
"pouvoirs",
"profils",
"archetypes-fees"
],
"folders": []
},
{
"name": "Equipement",
"sorting": "a",
"color": "#00435c",
"packs": [
"armes-et-protection"
],
"folders": []
}
],
"packs":
["scenes"]
}
],
"packs": [
{
"type": "Item",
"label": "Compétences",
"name": "competences",
"path": "packs/competences.db",
"path": "packs/competences",
"system": "fvtt-les-heritiers",
"private": false,
"flags": {}
"flags": {},
"ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
},
{
"type": "Item",
"label": "Avantages",
"name": "avantages",
"path": "packs/avantages.db",
"path": "packs/avantages",
"system": "fvtt-les-heritiers",
"private": false,
"flags": {}
"flags": {},
"ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
},
{
"type": "Item",
"label": "Désavantages",
"name": "desavantages",
"path": "packs/desavantages.db",
"path": "packs/desavantages",
"system": "fvtt-les-heritiers",
"private": false,
"flags": {}
"flags": {},
"ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
},
{
"type": "Item",
"label": "Capacités Naturelles",
"name": "capacites",
"path": "packs/capacites.db",
"path": "packs/capacites",
"system": "fvtt-les-heritiers",
"private": false,
"flags": {}
"flags": {},
"ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
},
{
"type": "Item",
"label": "Atouts Féériques",
"name": "atouts-feeriques",
"path": "packs/atouts-feeriques.db",
"path": "packs/atouts-feeriques",
"system": "fvtt-les-heritiers",
"private": false,
"flags": {}
"flags": {},
"ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
},
{
"type": "Item",
"label": "Fées",
"name": "archetypes-fees",
"path": "packs/archetypes-fees.db",
"path": "packs/archetypes-fees",
"system": "fvtt-les-heritiers",
"private": false,
"flags": {}
"flags": {},
"ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
},
{
"type": "Item",
"label": "Pouvoirs",
"name": "pouvoirs",
"path": "packs/pouvoirs.db",
"path": "packs/pouvoirs",
"system": "fvtt-les-heritiers",
"private": false,
"flags": {}
"flags": {},
"ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
},
{
"type": "Item",
"label": "Armes et Protections",
"name": "armes-et-protection",
"path": "packs/armes-et-protection.db",
"path": "packs/armes-et-protection",
"system": "fvtt-les-heritiers",
"private": false,
"flags": {}
"flags": {},
"ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
},
{
"type": "Item",
"label": "Profils",
"name": "profils",
"path": "packs/profils.db",
"path": "packs/profils",
"system": "fvtt-les-heritiers",
"private": false,
"flags": {}
"flags": {},
"ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
},
{
"type": "Scene",
"label": "Scènes",
"name": "scenes",
"path": "packs/scenes",
"system": "fvtt-les-heritiers",
"flags": {},
"ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
}
],
"primaryTokenAttribute": "sante.vigueur",
@@ -122,7 +198,6 @@
"background": "systems/fvtt-les-heritiers/assets/ui/wallpaper_foundry2.webp",
"compatibility": {
"minimum": "10",
"verified": "11",
"maximum": "11"
"verified": "11"
}
}

View File

@@ -254,19 +254,19 @@
}
},
"types": [
"fee",
"avantage",
"desavantage",
"capacitenaturelle",
"pouvoir",
"atoutfeerique",
"competence",
"arme",
"protection",
"equipement",
"accessoire",
"arme",
"atoutfeerique",
"avantage",
"capacitenaturelle",
"competence",
"contact",
"profil"
"desavantage",
"equipement",
"fee",
"pouvoir",
"profil",
"protection"
],
"profil": {
"profiltype": "majeur",

View File

@@ -122,7 +122,7 @@
<select class="item-field-label-short edit-item-data" type="text"
data-item-field="niveau" value="{{skill.system.niveau}}" data-dtype="Number">
{{#select skill.system.niveau}}
{{> systems/fvtt-les-heritiers/templates/partial-list-niveau.html}}
{{> systems/fvtt-les-heritiers/templates/partial-list-niveau.html}}
{{/select}}
</select>
@@ -618,7 +618,7 @@
</li>
<li class="flexrow item">
<label class="generic-label">Points d'héritage</label>
<input type="text" class="" value="{{heritage}}" disabled data-dtype="String" />
<input type="text" class="" name="system.rang.heritage.value" value="{{system.rang.heritage.value}}" data-dtype="String" />
</li>
</ul>

View File

@@ -30,7 +30,7 @@
name="system.profil" value="{{system.profil}}" data-dtype="string">
{{#select system.profil}}
{{#each config.competenceProfil as |profil pKey|}}
<option value="{{pKey}}">{{profil}}</option>
<option value="{{pKey}}">{{profil.name}}</option>
{{/each}}
{{/select}}
</select>

View File

@@ -40,9 +40,7 @@
</div>
</li>
{{#if (count skill.specList)}}
<li class="item flexrow" data-item-id="{{skill._id}}" data-item-type="competence">
<span class="specialisarion-margin item-field-label-long2">{{skill.specList}}</span>
</li>
<span class="specialisarion-margin specialisation-label item-field-label-long2">{{skill.specList}}</span>
{{/if}}
{{/each}}