Compare commits

...

7 Commits

86 changed files with 515 additions and 162 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

View File

@@ -1,30 +1,23 @@
{
"ACTOR": {
"TypePersonnage": "Personnage",
"TypePNJ": "PNJ"
"TYPES": {
"Actor": {
"personnage": "Personnage",
"PNJ": "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"
}
"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

@@ -77,19 +77,42 @@ export class HeritiersActorSheet extends ActorSheet {
}
/* -------------------------------------------- */
getCelluleTalents( ) {
let talents = []
for(let cellule of game.actors) {
if (cellule.type == "cellule") {
let found = cellule.system.members.find( it => it.id == this.actor.id)
if (found) {
talents = talents.concat( cellule.getTalents() )
dialogRecupUsage() {
new Dialog({
title: "Récupération des Points d'Usage",
content: "<p>Combien de Points d'Usage souhaitez-vous récupérer ?</p>",
buttons: {
one: {
icon: '<i class="fas fa-check"></i>',
label: "1 Point",
callback: () => {
this.actor.recupUsage(1)
}
},
two: {
icon: '<i class="fas fa-check"></i>',
label: "2 Points",
callback: () => {
this.actor.recupUsage(2)
}
},
four: {
icon: '<i class="fas fa-check"></i>',
label: "4 Points",
callback: () => {
this.actor.recupUsage(4)
}
},
all: {
icon: '<i class="fas fa-check"></i>',
label: "Tous les Points",
callback: () => {
this.actor.recupUsage(100)
}
}
}
return talents
}).render(true)
}
/* -------------------------------------------- */
/** @override */
activateListeners(html) {
@@ -180,6 +203,9 @@ export class HeritiersActorSheet extends ActorSheet {
let pouvoirId = li.data("item-id")
this.actor.rollPouvoir(pouvoirId)
})
html.find('.dialog-recup-usage').click((event) => {
this.dialogRecupUsage()
})
html.find('.item-add').click((event) => {
const itemType = $(event.currentTarget).data("type")

View File

@@ -135,8 +135,18 @@ export class HeritiersActor extends Actor {
return this.getItemSorted(["profil"])
}
getPouvoirs() {
return this.getItemSorted(["pouvoir"])
let pouvoirs = []
for (let item of this.items) {
if (item.type == "pouvoir") {
let itemObj = duplicate(item)
itemObj.maxUsage = this.getPouvoirUsageMax(item)
pouvoirs.push(itemObj)
}
}
HeritiersUtility.sortArrayObjectsByName(pouvoirs)
return pouvoirs
}
/* -------------------------------------------- */
getSkills() {
let comp = []
@@ -152,7 +162,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 +288,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 +349,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
}
@@ -538,6 +548,7 @@ export class HeritiersActor extends Actor {
rollData.useTricherie = false
rollData.useSpecialite = false
rollData.useHeritage = false
rollData.pouvoirPointsUsage = 1
rollData.rulesMalus.push(this.getPvMalus())
if (compId) {
@@ -547,7 +558,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 +606,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)
@@ -704,6 +714,7 @@ export class HeritiersActor extends Actor {
rollData.carac = duplicate(this.system.caracteristiques[pouvoir.system.carac])
rollData.caracKey = pouvoir.system.carac
}
rollData.pouvoirMaxUsage = this.getPouvoirUsageMax(pouvoir)
rollData.pouvoir = duplicate(pouvoir)
rollData.mode = "pouvoir"
let rollDialog = await HeritiersRollDialog.create(this, rollData)
@@ -711,4 +722,41 @@ export class HeritiersActor extends Actor {
}
}
/* -------------------------------------------- */
incDecPointsUsage(pouvoirId, value) {
let pouvoir = this.items.get(pouvoirId)
let newValue = pouvoir.system.pointsusagecourant + value
newValue = Math.max(newValue, 0)
newValue = Math.min(newValue, this.getPouvoirUsageMax(pouvoir))
this.updateEmbeddedDocuments('Item', [{ _id: pouvoirId, 'system.pointsusagecourant': newValue }])
}
/* -------------------------------------------- */
getPouvoirUsage(pouvoirId) {
let pouvoir = this.items.get(pouvoirId)
return pouvoir.system.pointsusagecourant
}
/* -------------------------------------------- */
getPouvoirUsageMax(pouvoir) {
if (pouvoir.system.masquetype == "masque") {
return this.system.rang.masque.value
}
return this.system.rang.feerie.value
}
/* -------------------------------------------- */
recupUsage(value) {
let updates = []
for (let pouvoir of this.items) {
if (pouvoir.type == "pouvoir") {
let newValue = pouvoir.system.pointsusagecourant + value
newValue = Math.max(newValue, 0)
newValue = Math.min(newValue, this.getPouvoirUsageMax(pouvoir))
updates.push({ _id: pouvoir.id, 'system.pointsusagecourant': newValue })
}
}
if (updates.length > 0) {
this.updateEmbeddedDocuments('Item', updates)
}
}
}

View File

@@ -65,7 +65,16 @@ export class HeritiersItemSheet extends ItemSheet {
isArmeMelee: HeritiersUtility.isArmeMelee(this.object),
description: await TextEditor.enrichHTML(this.object.system.description, {async: true}),
mr: (this.object.type == 'specialisation'),
isGM: game.user.isGM
isGM: game.user.isGM,
usageMax: -1
}
// Items specific data
if (this.object.type == 'pouvoir' && this.document.isOwner && this.actor) {
formData.usageMax = this.actor.getPouvoirUsageMax(this.object)
if (this.object.system.pointsusagecourant == -1) {
this.object.system.pointsusagecourant = formData.usageMax
}
}
//this.options.editable = !(this.object.origin == "embeddedItem");

View File

@@ -79,30 +79,16 @@ 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
});
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();
}
}
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)
}
}
/* -------------------------------------------- */
/* Foundry VTT Initialization */
@@ -120,14 +106,15 @@ Hooks.once("ready", function () {
});
}
registerUsageCount(game.system.id)
welcomeMessage()
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();
// 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,31 @@ export class HeritiersRollDialog extends Dialog {
icon: '<i class="fas fa-check"></i>',
label: "Lancer 1d8",
callback: () => { this.roll("d8") }
},
rolld10: {
}
}
let enableD10 = false
let enableD12 = false
if (rollData.competence?.system.niveau > 0) {
enableD10 = true
}
if (rollData.competence?.system.niveau > 1) {
enableD12 = true
}
if (enableD10) {
buttons.rolld10 = {
icon: '<i class="fas fa-check"></i>',
label: "Lancer 1d10",
callback: () => { this.roll("d10") }
},
rolld12: {
}
}
if (enableD12) {
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 +68,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: {
@@ -116,6 +129,9 @@ export class HeritiersRollDialog extends Dialog {
html.find('#useSpecialite').change((event) => {
this.rollData.useSpecialite = event.currentTarget.checked
})
html.find('#pouvoirPointsUsage').change((event) => {
this.rollData.pouvoirPointsUsage = Number(event.currentTarget.value)
})
html.find('#attaqueDos').change((event) => {
this.rollData.attaqueDos = event.currentTarget.checked
})

View File

@@ -434,6 +434,10 @@ export class HeritiersUtility {
rollData.isSuccess = (rollData.finalResult >= seuil)
rollData.isCriticalSuccess = ((rollData.finalResult - seuil) >= 7)
rollData.isCriticalFailure = ((rollData.finalResult - seuil) <= -7)
// Si compétence > 0 et d8 -> echec critique impossible
if (rollData?.competence?.system.niveau > 0 && rollData?.mainDice == "d8") {
rollData.isCriticalFailure = false
}
}
}
@@ -467,6 +471,11 @@ export class HeritiersUtility {
let actor = this.getActorFromRollData(rollData)
if ( rollData.mode == "pouvoir" && actor.getPouvoirUsage(rollData.pouvoir._id) < rollData.pouvoirPointsUsage) {
ui.notifications.warn("Pas assez de points d'usage pour ce pouvoir.")
return
}
//rollData.actionImg = "systems/fvtt-les-heritiers/assets/icons/" + actor.system.attributs[rollData.attrKey].labelnorm + ".webp"
rollData.carac = duplicate(actor.system.caracteristiques[rollData.caracKey])
@@ -485,7 +494,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) {
@@ -538,6 +547,11 @@ export class HeritiersUtility {
actor.setFlag("world", "last-initiative", rollData.finalResult)
}
// Gestion pouvoir et points d'usage
if (rollData.mode == "pouvoir") {
actor.incDecPointsUsage(rollData.pouvoir._id, -rollData.pouvoirPointsUsage)
}
this.createChatWithRollMode(rollData.alias, {
content: await renderTemplate(`systems/fvtt-les-heritiers/templates/chat-generic-result.html`, rollData)
}, rollData)
@@ -589,7 +603,7 @@ export class HeritiersUtility {
/* -------------------------------------------- */
static isArmeMelee(arme) {
return (arme.type == "arme" && (arme.system.categorie == "lourde" || arme.system.categorie == "blanche" || arme.system.categorie == "improvise")) ? true : false
return (arme.type == "arme" && (arme.system.categorie == "lourde" || arme.system.categorie == "blanche" || arme.system.categorie == "improvise"))
}
/* -------------------------------------------- */
static getWhisperRecipients(rollMode, name) {

Binary file not shown.

View File

View File

@@ -0,0 +1 @@
MANIFEST-000050

View File

View File

@@ -0,0 +1,8 @@
2024/03/23-10:48:02.571733 7fed73e006c0 Recovering log #48
2024/03/23-10:48:02.582541 7fed73e006c0 Delete type=3 #46
2024/03/23-10:48:02.582617 7fed73e006c0 Delete type=0 #48
2024/03/23-11:37:00.840004 7fed720006c0 Level-0 table #53: started
2024/03/23-11:37:00.840024 7fed720006c0 Level-0 table #53: 0 bytes OK
2024/03/23-11:37:00.846784 7fed720006c0 Delete type=0 #51
2024/03/23-11:37:00.846952 7fed720006c0 Manual compaction at level-0 from '!items!1NhJH4IJpxsGmLB8' @ 72057594037927935 : 1 .. '!items!y1yOenfAJTsb3r6e' @ 0 : 0; will stop at (end)
2024/03/23-11:37:00.846980 7fed720006c0 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/23-10:36:32.618548 7fed73e006c0 Recovering log #44
2024/03/23-10:36:32.628885 7fed73e006c0 Delete type=3 #42
2024/03/23-10:36:32.628941 7fed73e006c0 Delete type=0 #44
2024/03/23-10:47:49.111695 7fed720006c0 Level-0 table #49: started
2024/03/23-10:47:49.111718 7fed720006c0 Level-0 table #49: 0 bytes OK
2024/03/23-10:47:49.117669 7fed720006c0 Delete type=0 #47
2024/03/23-10:47:49.124617 7fed720006c0 Manual compaction at level-0 from '!items!1NhJH4IJpxsGmLB8' @ 72057594037927935 : 1 .. '!items!y1yOenfAJTsb3r6e' @ 0 : 0; will stop at (end)
2024/03/23-10:47:49.124645 7fed720006c0 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-000050

View File

View File

@@ -0,0 +1,8 @@
2024/03/23-10:48:02.597243 7fed73e006c0 Recovering log #48
2024/03/23-10:48:02.607708 7fed73e006c0 Delete type=3 #46
2024/03/23-10:48:02.607775 7fed73e006c0 Delete type=0 #48
2024/03/23-11:37:00.827007 7fed720006c0 Level-0 table #53: started
2024/03/23-11:37:00.827057 7fed720006c0 Level-0 table #53: 0 bytes OK
2024/03/23-11:37:00.833771 7fed720006c0 Delete type=0 #51
2024/03/23-11:37:00.846910 7fed720006c0 Manual compaction at level-0 from '!items!1ETVaPBtjDtzelK1' @ 72057594037927935 : 1 .. '!items!zbsVCsWxRzkzzG1N' @ 0 : 0; will stop at (end)
2024/03/23-11:37:00.846959 7fed720006c0 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/23-10:36:32.649726 7fed73e006c0 Recovering log #44
2024/03/23-10:36:32.660737 7fed73e006c0 Delete type=3 #42
2024/03/23-10:36:32.660854 7fed73e006c0 Delete type=0 #44
2024/03/23-10:47:49.138231 7fed720006c0 Level-0 table #49: started
2024/03/23-10:47:49.138277 7fed720006c0 Level-0 table #49: 0 bytes OK
2024/03/23-10:47:49.144999 7fed720006c0 Delete type=0 #47
2024/03/23-10:47:49.151672 7fed720006c0 Manual compaction at level-0 from '!items!1ETVaPBtjDtzelK1' @ 72057594037927935 : 1 .. '!items!zbsVCsWxRzkzzG1N' @ 0 : 0; will stop at (end)
2024/03/23-10:47:49.151719 7fed720006c0 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-000050

View File

View File

@@ -0,0 +1,8 @@
2024/03/23-10:48:02.559259 7fed734006c0 Recovering log #48
2024/03/23-10:48:02.569488 7fed734006c0 Delete type=3 #46
2024/03/23-10:48:02.569553 7fed734006c0 Delete type=0 #48
2024/03/23-11:37:00.820791 7fed720006c0 Level-0 table #53: started
2024/03/23-11:37:00.820819 7fed720006c0 Level-0 table #53: 0 bytes OK
2024/03/23-11:37:00.826839 7fed720006c0 Delete type=0 #51
2024/03/23-11:37:00.846901 7fed720006c0 Manual compaction at level-0 from '!items!0fPXtA5LkLgG8uDj' @ 72057594037927935 : 1 .. '!items!zvtBlG6KCIn0oCVk' @ 0 : 0; will stop at (end)
2024/03/23-11:37:00.846946 7fed720006c0 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/23-10:36:32.605189 7fed78a006c0 Recovering log #44
2024/03/23-10:36:32.615490 7fed78a006c0 Delete type=3 #42
2024/03/23-10:36:32.615554 7fed78a006c0 Delete type=0 #44
2024/03/23-10:47:49.098509 7fed720006c0 Level-0 table #49: started
2024/03/23-10:47:49.098542 7fed720006c0 Level-0 table #49: 0 bytes OK
2024/03/23-10:47:49.104751 7fed720006c0 Delete type=0 #47
2024/03/23-10:47:49.124594 7fed720006c0 Manual compaction at level-0 from '!items!0fPXtA5LkLgG8uDj' @ 72057594037927935 : 1 .. '!items!zvtBlG6KCIn0oCVk' @ 0 : 0; will stop at (end)
2024/03/23-10:47:49.124632 7fed720006c0 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-000050

0
packs/avantages/LOCK Normal file
View File

8
packs/avantages/LOG Normal file
View File

@@ -0,0 +1,8 @@
2024/03/23-10:48:02.521231 7fed73e006c0 Recovering log #48
2024/03/23-10:48:02.532005 7fed73e006c0 Delete type=3 #46
2024/03/23-10:48:02.532101 7fed73e006c0 Delete type=0 #48
2024/03/23-11:37:00.801358 7fed720006c0 Level-0 table #53: started
2024/03/23-11:37:00.801380 7fed720006c0 Level-0 table #53: 0 bytes OK
2024/03/23-11:37:00.807396 7fed720006c0 Delete type=0 #51
2024/03/23-11:37:00.820567 7fed720006c0 Manual compaction at level-0 from '!items!0EAAt0qSzcD9VRBH' @ 72057594037927935 : 1 .. '!items!zfpjROW9LDAlXUkN' @ 0 : 0; will stop at (end)
2024/03/23-11:37:00.820617 7fed720006c0 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/23-10:36:32.565243 7fed73e006c0 Recovering log #44
2024/03/23-10:36:32.575390 7fed73e006c0 Delete type=3 #42
2024/03/23-10:36:32.575442 7fed73e006c0 Delete type=0 #44
2024/03/23-10:47:49.091958 7fed720006c0 Level-0 table #49: started
2024/03/23-10:47:49.092014 7fed720006c0 Level-0 table #49: 0 bytes OK
2024/03/23-10:47:49.098272 7fed720006c0 Delete type=0 #47
2024/03/23-10:47:49.098402 7fed720006c0 Manual compaction at level-0 from '!items!0EAAt0qSzcD9VRBH' @ 72057594037927935 : 1 .. '!items!zfpjROW9LDAlXUkN' @ 0 : 0; will stop at (end)
2024/03/23-10:47:49.098427 7fed720006c0 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-000050

0
packs/capacites/LOCK Normal file
View File

8
packs/capacites/LOG Normal file
View File

@@ -0,0 +1,8 @@
2024/03/23-10:48:02.547542 7fed73e006c0 Recovering log #48
2024/03/23-10:48:02.557329 7fed73e006c0 Delete type=3 #46
2024/03/23-10:48:02.557386 7fed73e006c0 Delete type=0 #48
2024/03/23-11:37:00.807508 7fed720006c0 Level-0 table #53: started
2024/03/23-11:37:00.807530 7fed720006c0 Level-0 table #53: 0 bytes OK
2024/03/23-11:37:00.813725 7fed720006c0 Delete type=0 #51
2024/03/23-11:37:00.820593 7fed720006c0 Manual compaction at level-0 from '!items!0cNSRJVPk3GbvxfD' @ 72057594037927935 : 1 .. '!items!yWDg2KlXEz33TSmZ' @ 0 : 0; will stop at (end)
2024/03/23-11:37:00.820630 7fed720006c0 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/23-10:36:32.591905 7fed73e006c0 Recovering log #44
2024/03/23-10:36:32.601706 7fed73e006c0 Delete type=3 #42
2024/03/23-10:36:32.601822 7fed73e006c0 Delete type=0 #44
2024/03/23-10:47:49.104862 7fed720006c0 Level-0 table #49: started
2024/03/23-10:47:49.104884 7fed720006c0 Level-0 table #49: 0 bytes OK
2024/03/23-10:47:49.111582 7fed720006c0 Delete type=0 #47
2024/03/23-10:47:49.124607 7fed720006c0 Manual compaction at level-0 from '!items!0cNSRJVPk3GbvxfD' @ 72057594037927935 : 1 .. '!items!yWDg2KlXEz33TSmZ' @ 0 : 0; will stop at (end)
2024/03/23-10:47:49.124638 7fed720006c0 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-000050

0
packs/competences/LOCK Normal file
View File

8
packs/competences/LOG Normal file
View File

@@ -0,0 +1,8 @@
2024/03/23-10:48:02.509092 7fed734006c0 Recovering log #48
2024/03/23-10:48:02.519097 7fed734006c0 Delete type=3 #46
2024/03/23-10:48:02.519155 7fed734006c0 Delete type=0 #48
2024/03/23-11:37:00.794140 7fed720006c0 Level-0 table #53: started
2024/03/23-11:37:00.794164 7fed720006c0 Level-0 table #53: 0 bytes OK
2024/03/23-11:37:00.801230 7fed720006c0 Delete type=0 #51
2024/03/23-11:37:00.807497 7fed720006c0 Manual compaction at level-0 from '!items!0V86n4TU8NegrR2B' @ 72057594037927935 : 1 .. '!items!zEl2NQsnCpELVWzh' @ 0 : 0; will stop at (end)
2024/03/23-11:37:00.820584 7fed720006c0 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/23-10:36:32.552707 7fed78a006c0 Recovering log #44
2024/03/23-10:36:32.562757 7fed78a006c0 Delete type=3 #42
2024/03/23-10:36:32.562811 7fed78a006c0 Delete type=0 #44
2024/03/23-10:47:49.078056 7fed720006c0 Level-0 table #49: started
2024/03/23-10:47:49.078086 7fed720006c0 Level-0 table #49: 0 bytes OK
2024/03/23-10:47:49.084141 7fed720006c0 Delete type=0 #47
2024/03/23-10:47:49.098382 7fed720006c0 Manual compaction at level-0 from '!items!0V86n4TU8NegrR2B' @ 72057594037927935 : 1 .. '!items!zEl2NQsnCpELVWzh' @ 0 : 0; will stop at (end)
2024/03/23-10:47:49.098433 7fed720006c0 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-000050

0
packs/desavantages/LOCK Normal file
View File

8
packs/desavantages/LOG Normal file
View File

@@ -0,0 +1,8 @@
2024/03/23-10:48:02.534354 7fed734006c0 Recovering log #48
2024/03/23-10:48:02.545488 7fed734006c0 Delete type=3 #46
2024/03/23-10:48:02.545545 7fed734006c0 Delete type=0 #48
2024/03/23-11:37:00.813815 7fed720006c0 Level-0 table #53: started
2024/03/23-11:37:00.813835 7fed720006c0 Level-0 table #53: 0 bytes OK
2024/03/23-11:37:00.820461 7fed720006c0 Delete type=0 #51
2024/03/23-11:37:00.820601 7fed720006c0 Manual compaction at level-0 from '!items!2QqvtClSVnh5ejXu' @ 72057594037927935 : 1 .. '!items!xzRJ6JP1HqoqxLdj' @ 0 : 0; will stop at (end)
2024/03/23-11:37:00.820624 7fed720006c0 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/23-10:36:32.577869 7fed78a006c0 Recovering log #44
2024/03/23-10:36:32.588845 7fed78a006c0 Delete type=3 #42
2024/03/23-10:36:32.588930 7fed78a006c0 Delete type=0 #44
2024/03/23-10:47:49.084257 7fed720006c0 Level-0 table #49: started
2024/03/23-10:47:49.084286 7fed720006c0 Level-0 table #49: 0 bytes OK
2024/03/23-10:47:49.091721 7fed720006c0 Delete type=0 #47
2024/03/23-10:47:49.098393 7fed720006c0 Manual compaction at level-0 from '!items!2QqvtClSVnh5ejXu' @ 72057594037927935 : 1 .. '!items!xzRJ6JP1HqoqxLdj' @ 0 : 0; will stop at (end)
2024/03/23-10:47:49.098420 7fed720006c0 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-000050

0
packs/pouvoirs/LOCK Normal file
View File

8
packs/pouvoirs/LOG Normal file
View File

@@ -0,0 +1,8 @@
2024/03/23-10:48:02.584567 7fed734006c0 Recovering log #48
2024/03/23-10:48:02.594353 7fed734006c0 Delete type=3 #46
2024/03/23-10:48:02.594417 7fed734006c0 Delete type=0 #48
2024/03/23-11:37:00.833866 7fed720006c0 Level-0 table #53: started
2024/03/23-11:37:00.833890 7fed720006c0 Level-0 table #53: 0 bytes OK
2024/03/23-11:37:00.839913 7fed720006c0 Delete type=0 #51
2024/03/23-11:37:00.846918 7fed720006c0 Manual compaction at level-0 from '!items!19r9ijZUyvnlIqgm' @ 72057594037927935 : 1 .. '!items!zON0h5SjFyANjPnA' @ 0 : 0; will stop at (end)
2024/03/23-11:37:00.846966 7fed720006c0 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/23-10:36:32.634942 7fed78a006c0 Recovering log #44
2024/03/23-10:36:32.645370 7fed78a006c0 Delete type=3 #42
2024/03/23-10:36:32.645438 7fed78a006c0 Delete type=0 #44
2024/03/23-10:47:49.117785 7fed720006c0 Level-0 table #49: started
2024/03/23-10:47:49.117808 7fed720006c0 Level-0 table #49: 0 bytes OK
2024/03/23-10:47:49.124476 7fed720006c0 Delete type=0 #47
2024/03/23-10:47:49.124625 7fed720006c0 Manual compaction at level-0 from '!items!19r9ijZUyvnlIqgm' @ 72057594037927935 : 1 .. '!items!zON0h5SjFyANjPnA' @ 0 : 0; will stop at (end)
2024/03/23-10:47:49.124651 7fed720006c0 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/000052.log Normal file
View File

1
packs/profils/CURRENT Normal file
View File

@@ -0,0 +1 @@
MANIFEST-000050

0
packs/profils/LOCK Normal file
View File

7
packs/profils/LOG Normal file
View File

@@ -0,0 +1,7 @@
2024/03/23-10:48:02.609984 7fed734006c0 Recovering log #48
2024/03/23-10:48:02.619777 7fed734006c0 Delete type=3 #46
2024/03/23-10:48:02.619840 7fed734006c0 Delete type=0 #48
2024/03/23-11:37:00.847087 7fed720006c0 Level-0 table #53: started
2024/03/23-11:37:00.847153 7fed720006c0 Level-0 table #53: 0 bytes OK
2024/03/23-11:37:00.853979 7fed720006c0 Delete type=0 #51
2024/03/23-11:37:00.867118 7fed720006c0 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/23-10:36:32.663217 7fed78a006c0 Recovering log #44
2024/03/23-10:36:32.673264 7fed78a006c0 Delete type=3 #42
2024/03/23-10:36:32.673319 7fed78a006c0 Delete type=0 #44
2024/03/23-10:47:49.131076 7fed720006c0 Level-0 table #49: started
2024/03/23-10:47:49.131099 7fed720006c0 Level-0 table #49: 0 bytes OK
2024/03/23-10:47:49.137951 7fed720006c0 Delete type=0 #47
2024/03/23-10:47:49.151656 7fed720006c0 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/000020.log Normal file
View File

1
packs/scenes/CURRENT Normal file
View File

@@ -0,0 +1 @@
MANIFEST-000018

0
packs/scenes/LOCK Normal file
View File

8
packs/scenes/LOG Normal file
View File

@@ -0,0 +1,8 @@
2024/03/23-10:48:02.622403 7fed73e006c0 Recovering log #16
2024/03/23-10:48:02.632700 7fed73e006c0 Delete type=3 #14
2024/03/23-10:48:02.632756 7fed73e006c0 Delete type=0 #16
2024/03/23-11:37:00.854073 7fed720006c0 Level-0 table #21: started
2024/03/23-11:37:00.854095 7fed720006c0 Level-0 table #21: 0 bytes OK
2024/03/23-11:37:00.860110 7fed720006c0 Delete type=0 #19
2024/03/23-11:37:00.867128 7fed720006c0 Manual compaction at level-0 from '!scenes!8DjkNeeujp2qff1N' @ 72057594037927935 : 1 .. '!scenes!ypDutqjqZcr7lx6I' @ 0 : 0; will stop at (end)
2024/03/23-11:37:00.867164 7fed720006c0 Manual compaction at level-1 from '!scenes!8DjkNeeujp2qff1N' @ 72057594037927935 : 1 .. '!scenes!ypDutqjqZcr7lx6I' @ 0 : 0; will stop at (end)

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

@@ -0,0 +1,8 @@
2024/03/23-10:36:32.675856 7fed73e006c0 Recovering log #12
2024/03/23-10:36:32.687073 7fed73e006c0 Delete type=3 #10
2024/03/23-10:36:32.687168 7fed73e006c0 Delete type=0 #12
2024/03/23-10:47:49.124780 7fed720006c0 Level-0 table #17: started
2024/03/23-10:47:49.124802 7fed720006c0 Level-0 table #17: 0 bytes OK
2024/03/23-10:47:49.130952 7fed720006c0 Delete type=0 #15
2024/03/23-10:47:49.151626 7fed720006c0 Manual compaction at level-0 from '!scenes!8DjkNeeujp2qff1N' @ 72057594037927935 : 1 .. '!scenes!ypDutqjqZcr7lx6I' @ 0 : 0; will stop at (end)
2024/03/23-10:47:49.151703 7fed720006c0 Manual compaction at level-1 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,6 +1200,9 @@ ul, li {
}
h4.entry-name.document-name {
color: #f3eeee;
}
.compendium h4.entry-name.document-name {
color: black;
}

View File

@@ -1,7 +1,7 @@
{
"id": "fvtt-les-heritiers",
"description": "Les Héritiers pour FoundryVTT",
"version": "11.0.3",
"version": "11.0.9",
"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.3.zip",
"download": "https://www.uberwald.me/gitea/public/fvtt-les-heritiers/archive/fvtt-les-heritiers-11.0.9.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",
@@ -322,6 +322,7 @@
"portee": "",
"resistance": "",
"resistanceautre":"",
"pointsusagecourant": -1,
"isvirulence": false,
"virulence":"",
"description": ""

View File

@@ -292,10 +292,12 @@
<label class="item-field-label-medium roll-style"><a class="roll-rang item-field-label-short" data-rang-key="feerie">Féerie</a></label>
<input type="text" class="item-field-label-short" name="system.rang.feerie.value" value="{{system.rang.feerie.value}}" data-dtype="Number" />
<input type="text" class="item-field-label-short" name="system.rang.feerie.max" value="{{system.rang.feerie.max}}" data-dtype="Number" />
<span class="item-field-label-long"></span>
<span class="item-field-label-medium"></span>
<label class="item-field-label-medium roll-style"><a class="roll-rang item-field-label-short" data-rang-key="masque">Masque</a></label>
<input type="text" class="item-field-label-short" name="system.rang.masque.value" value="{{system.rang.masque.value}}" data-dtype="Number" />
<input type="text" class="item-field-label-short" name="system.rang.masque.max" value="{{system.rang.masque.max}}" data-dtype="Number" />
<span class="item-field-label-medium"></span>
<label class="item-field-label-long roll-style"><a class="dialog-recup-usage item-field-label-long">Récup. P. d'Usage</a></label>
</li>
</ul>
</div>
@@ -389,6 +391,9 @@
<span class="item-field-label-medium">
<label class="short-label">Niveau</label>
</span>
<span class="item-field-label-medium">
<label class="short-label">Usage</label>
</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
</div>
@@ -404,6 +409,7 @@
<span class="item-field-label-medium">{{upperFirst pouvoir.system.masquetype}}</span>
<span class="item-field-label-medium">{{upperFirst pouvoir.system.pouvoirtype}}</span>
<span class="item-field-label-medium">{{upperFirst pouvoir.system.niveau}}</span>
<span class="item-field-label-medium">{{pouvoir.system.pointsusagecourant}}/{{pouvoir.maxUsage}}</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
@@ -618,7 +624,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

@@ -41,6 +41,7 @@
{{#if pouvoir}}
<li>Pouvoir : {{pouvoir.name}}</li>
<li>Effet : {{pouvoir.system.effet}}</li>
<li>Points d'usage consommés : {{pouvoirPointsUsage}}</li>
{{/if}}
{{#if forcedValue}}

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

@@ -94,6 +94,21 @@
{{/if}}
<li class="flexrow item">
<label class="generic-label item-field-label-long2">Points d'usage max/jour </label>
{{#if (eq usageMax -1)}}
<label class="generic-label item-field-label-short">Inconnu</label>
{{else}}
<label class="generic-label item-field-label-short">{{usageMax}}</label>
{{/if}}
</li>
<li class="flexrow item">
<label class="generic-label item-field-label-long2">Points d'usage restants </label>
<input type="text" class="padd-right status-small-label color-class-common item-field-label-short"
name="system.pointsusagecourant" value="{{system.pointsusagecourant}}" data-dtype="Number" />
</li>
<li class="flexrow item">
<label class="generic-label item-field-label-long2">Cibles </label>
<input type="text" class="padd-right status-small-label color-class-common item-field-label-long3"

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

View File

@@ -64,6 +64,17 @@
<span class="small-label roll-dialog-label">{{pouvoirBase.value}}</span>
</div>
{{/if}}
<div class="flexrow">
<span class="roll-dialog-label">Points d'usage consommés : </span>
<select class="status-small-label color-class-common" id="pouvoirPointsUsage" type="Number" name="pouvoirPointsUsage" value="pouvoirPointsUsage" data-dtype="Number" >
{{#select pouvoirPointsUsage}}
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
{{/select}}
</select>
</div>
{{/if}}
{{#each rulesMalus as |malus key|}}