Foundry v13 migration

This commit is contained in:
LeRatierBretonnien 2025-05-01 08:48:02 +02:00
parent 342f9c2342
commit d647fcc35e
40 changed files with 249 additions and 212 deletions

View File

@ -6,7 +6,7 @@
import { MaleficesUtility } from "./malefices-utility.js";
/* -------------------------------------------- */
export class MaleficesActorSheet extends ActorSheet {
export class MaleficesActorSheet extends foundry.appv1.sheets.ActorSheet {
/** @override */
static get defaultOptions() {
@ -44,9 +44,9 @@ export class MaleficesActorSheet extends ActorSheet {
phyMalus: this.actor.getPhysiqueMalus(),
elementsbio: this.actor.getElementsBio(),
sorts: this.actor.getSorts(),
description: await TextEditor.enrichHTML(this.object.system.biodata.description, { async: true }),
notes: await TextEditor.enrichHTML(this.object.system.biodata.notes, { async: true }),
equipementlibre: await TextEditor.enrichHTML(this.object.system.equipementlibre, { async: true }),
description: await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.object.system.biodata.description, { async: true }),
notes: await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.object.system.biodata.notes, { async: true }),
equipementlibre: await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.object.system.equipementlibre, { async: true }),
options: this.options,
owner: this.document.isOwner,
editScore: this.options.editScore,

View File

@ -80,7 +80,7 @@ export class MaleficesCommands {
console.log("===> Processing command")
let command = commandsTable[name];
path = path + name + " ";
if (command && command.subTable) {
if (command?.subTable) {
if (params[0]) {
return this._processCommand(command.subTable, params[0], params.slice(1), content, msg, path)
}
@ -89,7 +89,7 @@ export class MaleficesCommands {
return true;
}
}
if (command && command.func) {
if (command?.func) {
const result = command.func(content, msg, params);
if (result == false) {
CrucibleCommands._chatAnswer(msg, command.descr);
@ -140,7 +140,7 @@ export class MaleficesCommands {
selectedCard.system.isgm = false
selectedCard.value = (selectedCard.system.ispositif)? selectedCard.system.numericvalueup : selectedCard.system.numericvaluedown
MaleficesUtility.createChatMessage(game.user.name, "", {
content: await renderTemplate(`systems/fvtt-malefices/templates/chat/display-tarot-card.hbs`, selectedCard)
content: await foundry.applications.handlebars.renderTemplates(`systems/fvtt-malefices/templates/chat/display-tarot-card.hbs`, selectedCard)
})
}

View File

@ -4,7 +4,7 @@ import { MaleficesUtility } from "./malefices-utility.js";
* Extend the basic ItemSheet with some very simple modifications
* @extends {ItemSheet}
*/
export class MaleficesItemSheet extends ItemSheet {
export class MaleficesItemSheet extends foundry.appv1.sheets.ItemSheet {
/** @override */
static get defaultOptions() {
@ -48,8 +48,8 @@ export class MaleficesItemSheet extends ItemSheet {
limited: this.object.limited,
options: this.options,
owner: this.document.isOwner,
description: await TextEditor.enrichHTML(this.object.system.description, { async: true }),
notes: await TextEditor.enrichHTML(this.object.system.notes, { async: true }),
description: await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.object.system.description, { async: true }),
notes: await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.object.system.notes, { async: true }),
isGM: game.user.isGM
}

View File

@ -58,12 +58,12 @@ Hooks.once("init", async function () {
/* -------------------------------------------- */
// Register sheet application classes
Actors.unregisterSheet("core", ActorSheet);
Actors.registerSheet("fvtt-malefices", MaleficesActorSheet, { types: ["personnage"], makeDefault: true });
Actors.registerSheet("fvtt-malefices", MaleficesNPCSheet, { types: ["pnj"], makeDefault: false });
foundry.documents.collections.Actors.unregisterSheet("core", foundry.appv1.sheets.ActorSheet);
foundry.documents.collections.Actors.registerSheet("fvtt-malefices", MaleficesActorSheet, { types: ["personnage"], makeDefault: true });
foundry.documents.collections.Actors.registerSheet("fvtt-malefices", MaleficesNPCSheet, { types: ["pnj"], makeDefault: false });
Items.unregisterSheet("core", ItemSheet);
Items.registerSheet("fvtt-malefices", MaleficesItemSheet, { makeDefault: true });
foundry.documents.collections.Items.unregisterSheet("core", foundry.appv1.sheets.ItemSheet);
foundry.documents.collections.Items.registerSheet("fvtt-malefices", MaleficesItemSheet, { makeDefault: true });
MaleficesUtility.init()
@ -119,4 +119,3 @@ Hooks.on("chatMessage", (html, content, msg) => {
}
return true;
});

View File

@ -6,7 +6,7 @@
import { MaleficesUtility } from "./malefices-utility.js";
/* -------------------------------------------- */
export class MaleficesNPCSheet extends ActorSheet {
export class MaleficesNPCSheet extends foundry.appv1.sheets.ActorSheet {
/** @override */
static get defaultOptions() {

View File

@ -7,10 +7,10 @@ export class MaleficesRollDialog extends Dialog {
let options = { classes: ["MaleficesDialog"], width: 540, height: 'fit-content', 'z-index': 99999 }
let html
if (rollData.attr && rollData.attr.iscard) {
html = await renderTemplate('systems/fvtt-malefices/templates/dialogs/confrontation-dialog.hbs', rollData);
if (rollData?.attr?.iscard) {
html = await foundry.applications.handlebars.renderTemplate('systems/fvtt-malefices/templates/dialogs/confrontation-dialog.hbs', rollData);
} else {
html = await renderTemplate('systems/fvtt-malefices/templates/dialogs/roll-dialog-generic.hbs', rollData);
html = await foundry.applications.handlebars.renderTemplate('systems/fvtt-malefices/templates/dialogs/roll-dialog-generic.hbs', rollData);
}
return new MaleficesRollDialog(actor, rollData, html, options);
@ -18,7 +18,7 @@ export class MaleficesRollDialog extends Dialog {
/* -------------------------------------------- */
constructor(actor, rollData, html, options, close = undefined) {
let isCard = rollData.attr && rollData.attr.iscard
let isCard = rollData?.attr?.iscard
let conf = {
title: (isCard) ? "Jet" : "Tirage",
content: html,
@ -45,7 +45,7 @@ export class MaleficesRollDialog extends Dialog {
/* -------------------------------------------- */
roll() {
let isCard = this.rollData.attr && this.rollData.attr.iscard
let isCard = this.rollData?.attr?.iscard
if (isCard) {
MaleficesUtility.tirageConfrontationMalefices(this.rollData)
} else {
@ -64,7 +64,6 @@ export class MaleficesRollDialog extends Dialog {
activateListeners(html) {
super.activateListeners(html);
var dialog = this;
function onLoad() {
}
$(function () { onLoad(); });

View File

@ -6,7 +6,7 @@ export class MaleficesTirageTarotDialog extends Dialog {
static async create(actor, tirageData) {
let options = { classes: ["MaleficesDialog"], width: 720, height: 740, 'z-index': 99999 };
let html = await renderTemplate('systems/fvtt-malefices/templates/dialogs/tirage-tarot-dialog.hbs', tirageData);
let html = await foundry.applications.handlebars.renderTemplate('systems/fvtt-malefices/templates/dialogs/tirage-tarot-dialog.hbs', tirageData);
return new MaleficesTirageTarotDialog(actor, tirageData, html, options);
}
@ -87,7 +87,7 @@ export class MaleficesTirageTarotDialog extends Dialog {
let selectedCard = this.drawCard()
selectedCard.system.isgm = true
await MaleficesUtility.createChatMessage(this.tirageData.user.name, "blindroll", {
content: await renderTemplate(`systems/fvtt-malefices/templates/chat/display-tarot-card.hbs`, selectedCard)
content: await foundry.applications.handlebars.renderTemplate(`systems/fvtt-malefices/templates/chat/display-tarot-card.hbs`, selectedCard)
})
if (this.tirageData.secretCards[0].name == "???") {
this.tirageData.secretCards.shift()
@ -124,7 +124,7 @@ export class MaleficesTirageTarotDialog extends Dialog {
}
/* -------------------------------------------- */
async refreshDialog() {
const content = await renderTemplate("systems/fvtt-malefices/templates/dialogs/tirage-tarot-dialog.hbs", this.tirageData)
const content = await foundry.applications.handlebars.renderTemplate("systems/fvtt-malefices/templates/dialogs/tirage-tarot-dialog.hbs", this.tirageData)
this.data.content = content
this.render(true)
}
@ -133,7 +133,7 @@ export class MaleficesTirageTarotDialog extends Dialog {
activateListeners(html) {
super.activateListeners(html);
var dialog = this;
let dialog = this;
function onLoad() {
}
$(function () { onLoad(); });

View File

@ -43,6 +43,14 @@ export class MaleficesUtility {
Handlebars.registerHelper('add', function (a, b) {
return parseInt(a) + parseInt(b);
})
// Handle v12 removal of this helper
Handlebars.registerHelper('select', function (selected, options) {
const escapedValue = RegExp.escape(Handlebars.escapeExpression(selected));
const rgx = new RegExp(' value=[\"\']' + escapedValue + '[\"\']');
const html = options.fn(this);
return html.replace(rgx, "$& selected");
});
game.settings.register("world", "character-summary-data", {
name: "character-summary-data",
@ -106,7 +114,7 @@ export class MaleficesUtility {
/* -------------------------------------------- */
static async chatListeners(html) {
html.on("click", '.roll-destin', event => {
$(html).on("click", '.roll-destin', event => {
let messageId = MaleficesUtility.findChatMessageId(event.currentTarget)
let message = game.messages.get(messageId)
let rollData = message.getFlag("world", "rolldata")
@ -115,7 +123,7 @@ export class MaleficesUtility {
rollData.isReroll = true
this.rollMalefices(rollData)
})
html.on("click", '.draw-tarot-card', event => {
$(html).on("click", '.draw-tarot-card', event => {
let messageId = MaleficesUtility.findChatMessageId(event.currentTarget)
this.drawDeckCard(messageId)
})
@ -130,7 +138,7 @@ export class MaleficesUtility {
'systems/fvtt-malefices/templates/items/partial-item-nav.hbs',
'systems/fvtt-malefices/templates/items/partial-item-description.hbs'
]
return loadTemplates(templatePaths);
return foundry.applications.handlebars.loadTemplates(templatePaths);
}
/* -------------------------------------------- */
@ -274,7 +282,8 @@ export class MaleficesUtility {
let actorCard = actor.items.find(c => c.type == "tarot" && c.name.toLowerCase().includes("archange"))
if (actorCard) {
MaleficesUtility.createChatMessage(actor.name, "gmroll", {
content: `Conséquence supplémentaire ! <br>L'Archange : ${actor.name} gagne 1 point de Spiritualité.` })
content: `Conséquence supplémentaire ! <br>L'Archange : ${actor.name} gagne 1 point de Spiritualité.`
})
actor.incDecAttr("spiritualite", 1)
}
}
@ -282,7 +291,8 @@ export class MaleficesUtility {
let actorCard = actor.items.find(c => c.type == "tarot" && c.name.toLowerCase().includes("vicaire"))
if (actorCard) {
MaleficesUtility.createChatMessage(actor.name, "blindroll", {
content: `Conséquence supplémentaire ! <br>Le Vicaire : ${actor.name} vient de gagner 1 point en Pratique de la Magie Blanche (MPMB, secret).` })
content: `Conséquence supplémentaire ! <br>Le Vicaire : ${actor.name} vient de gagner 1 point en Pratique de la Magie Blanche (MPMB, secret).`
})
actor.incDecMPMB(1)
}
}
@ -290,7 +300,8 @@ export class MaleficesUtility {
let actorCard = actor.items.find(c => c.type == "tarot" && c.name.toLowerCase().includes("chance"))
if (actorCard) {
MaleficesUtility.createChatMessage(actor.name, "gmroll", {
content: `Conséquence supplémentaire ! <br>La Chance : ${actor.name} a gagné 1 point de Destin.` })
content: `Conséquence supplémentaire ! <br>La Chance : ${actor.name} a gagné 1 point de Destin.`
})
actor.incDecDestin(1)
}
}
@ -298,7 +309,8 @@ export class MaleficesUtility {
let actorCard = actor.items.find(c => c.type == "tarot" && c.name.toLowerCase().includes("mort"))
if (actorCard) {
MaleficesUtility.createChatMessage(actor.name, "gmroll", {
content: `Conséquence supplémentaire ! <br>La Mort : ${actor.name} est pétrifié par la peur.` })
content: `Conséquence supplémentaire ! <br>La Mort : ${actor.name} est pétrifié par la peur.`
})
actor.incDecDestin(1)
}
}
@ -306,7 +318,8 @@ export class MaleficesUtility {
let actorCard = actor.items.find(c => c.type == "tarot" && c.name.toLowerCase().includes("diable"))
if (actorCard) {
MaleficesUtility.createChatMessage(actor.name, "gmroll", {
content: `Conséquence supplémentaire ! <br>Le Diable : ${actor.name} gagne 1 point de Rationnalité.` })
content: `Conséquence supplémentaire ! <br>Le Diable : ${actor.name} gagne 1 point de Rationnalité.`
})
actor.incDecAttr("rationnalite", 1)
}
}
@ -314,7 +327,8 @@ export class MaleficesUtility {
let actorCard = actor.items.find(c => c.type == "tarot" && c.name.toLowerCase().includes("lune noire"))
if (actorCard) {
MaleficesUtility.createChatMessage(actor.name, "blindroll", {
content: `Conséquence supplémentaire ! <br>La Lune Noire : ${actor.name} vient de gagner 1 point de Fluide (secret).` })
content: `Conséquence supplémentaire ! <br>La Lune Noire : ${actor.name} vient de gagner 1 point de Fluide (secret).`
})
actor.incDecFluide(1)
}
}
@ -322,7 +336,8 @@ export class MaleficesUtility {
let actorCard = actor.items.find(c => c.type == "tarot" && c.name.toLowerCase().includes("grand livre"))
if (actorCard) {
MaleficesUtility.createChatMessage(actor.name, "blindroll", {
content: `Conséquence supplémentaire ! <br>La Lune Noire : ${actor.name} vient de gagner 1 point de Fluide (secret).` })
content: `Conséquence supplémentaire ! <br>La Lune Noire : ${actor.name} vient de gagner 1 point de Fluide (secret).`
})
actor.incDecFluide(1)
}
}
@ -330,7 +345,8 @@ export class MaleficesUtility {
let actorCard = actor.items.find(c => c.type == "tarot" && c.name.toLowerCase().includes("sorcier"))
if (actorCard) {
MaleficesUtility.createChatMessage(actor.name, "blindroll", {
content: `Conséquence supplémentaire ! <br>Le Vicaire : ${actor.name} vient de gagner 1 point en Pratique de la Magie Noire (MPMN, secret).` })
content: `Conséquence supplémentaire ! <br>Le Vicaire : ${actor.name} vient de gagner 1 point en Pratique de la Magie Noire (MPMN, secret).`
})
actor.incDecMPMN(1)
}
}
@ -410,7 +426,7 @@ export class MaleficesUtility {
this.computeResults(rollData)
let msg = await this.createChatWithRollMode(rollData.alias, {
content: await renderTemplate(`systems/fvtt-malefices/templates/chat/chat-generic-result.hbs`, rollData)
content: await foundry.applications.handlebars.renderTemplate(`systems/fvtt-malefices/templates/chat/chat-generic-result.hbs`, rollData)
})
msg.setFlag("world", "rolldata", rollData)
if (rollData.mode == "initiative") {

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000029
MANIFEST-000034

View File

@ -1,14 +1,3 @@
2024/11/29-17:51:13.272607 7f11d37fe6c0 Recovering log #28
2024/11/29-17:51:13.282971 7f11d37fe6c0 Delete type=0 #28
2024/11/29-17:51:13.283067 7f11d37fe6c0 Delete type=3 #27
2024/11/29-17:51:44.217520 7f11d27fc6c0 Level-0 table #32: started
2024/11/29-17:51:44.221106 7f11d27fc6c0 Level-0 table #32: 50651 bytes OK
2024/11/29-17:51:44.227128 7f11d27fc6c0 Delete type=0 #30
2024/11/29-17:51:44.256008 7f11d27fc6c0 Manual compaction at level-0 from '!items!2HWSdXDSFei9KC6y' @ 72057594037927935 : 1 .. '!items!xtYE2kVIfNtrXSoU' @ 0 : 0; will stop at '!items!xtYE2kVIfNtrXSoU' @ 46 : 1
2024/11/29-17:51:44.256025 7f11d27fc6c0 Compacting 2@0 + 0@1 files
2024/11/29-17:51:44.260729 7f11d27fc6c0 Generated table #33@0: 23 keys, 50651 bytes
2024/11/29-17:51:44.260747 7f11d27fc6c0 Compacted 2@0 + 0@1 files => 50651 bytes
2024/11/29-17:51:44.266718 7f11d27fc6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/11/29-17:51:44.266853 7f11d27fc6c0 Delete type=2 #22
2024/11/29-17:51:44.267043 7f11d27fc6c0 Delete type=2 #32
2024/11/29-17:51:44.297135 7f11d27fc6c0 Manual compaction at level-0 from '!items!xtYE2kVIfNtrXSoU' @ 46 : 1 .. '!items!xtYE2kVIfNtrXSoU' @ 0 : 0; will stop at (end)
2025/05/01-00:13:13.266834 7efc4dffb6c0 Recovering log #31
2025/05/01-00:13:13.321299 7efc4dffb6c0 Delete type=3 #29
2025/05/01-00:13:13.321436 7efc4dffb6c0 Delete type=0 #31

View File

@ -1 +1,14 @@
2024/05/03-23:45:44.034560 7f863f4006c0 Delete type=3 #1
2024/11/29-17:51:13.272607 7f11d37fe6c0 Recovering log #28
2024/11/29-17:51:13.282971 7f11d37fe6c0 Delete type=0 #28
2024/11/29-17:51:13.283067 7f11d37fe6c0 Delete type=3 #27
2024/11/29-17:51:44.217520 7f11d27fc6c0 Level-0 table #32: started
2024/11/29-17:51:44.221106 7f11d27fc6c0 Level-0 table #32: 50651 bytes OK
2024/11/29-17:51:44.227128 7f11d27fc6c0 Delete type=0 #30
2024/11/29-17:51:44.256008 7f11d27fc6c0 Manual compaction at level-0 from '!items!2HWSdXDSFei9KC6y' @ 72057594037927935 : 1 .. '!items!xtYE2kVIfNtrXSoU' @ 0 : 0; will stop at '!items!xtYE2kVIfNtrXSoU' @ 46 : 1
2024/11/29-17:51:44.256025 7f11d27fc6c0 Compacting 2@0 + 0@1 files
2024/11/29-17:51:44.260729 7f11d27fc6c0 Generated table #33@0: 23 keys, 50651 bytes
2024/11/29-17:51:44.260747 7f11d27fc6c0 Compacted 2@0 + 0@1 files => 50651 bytes
2024/11/29-17:51:44.266718 7f11d27fc6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/11/29-17:51:44.266853 7f11d27fc6c0 Delete type=2 #22
2024/11/29-17:51:44.267043 7f11d27fc6c0 Delete type=2 #32
2024/11/29-17:51:44.297135 7f11d27fc6c0 Manual compaction at level-0 from '!items!xtYE2kVIfNtrXSoU' @ 46 : 1 .. '!items!xtYE2kVIfNtrXSoU' @ 0 : 0; will stop at (end)

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000029
MANIFEST-000034

View File

@ -1,14 +1,3 @@
2024/11/29-17:51:13.259713 7f11d2ffd6c0 Recovering log #28
2024/11/29-17:51:13.269307 7f11d2ffd6c0 Delete type=0 #28
2024/11/29-17:51:13.269361 7f11d2ffd6c0 Delete type=3 #27
2024/11/29-17:51:44.227241 7f11d27fc6c0 Level-0 table #32: started
2024/11/29-17:51:44.230288 7f11d27fc6c0 Level-0 table #32: 2091 bytes OK
2024/11/29-17:51:44.237280 7f11d27fc6c0 Delete type=0 #30
2024/11/29-17:51:44.267165 7f11d27fc6c0 Manual compaction at level-0 from '!items!5J6qIaWdnhEGMAXJ' @ 72057594037927935 : 1 .. '!items!nkRQU81L1gWOfaeo' @ 0 : 0; will stop at '!items!nkRQU81L1gWOfaeo' @ 18 : 1
2024/11/29-17:51:44.267179 7f11d27fc6c0 Compacting 2@0 + 0@1 files
2024/11/29-17:51:44.270390 7f11d27fc6c0 Generated table #33@0: 9 keys, 2091 bytes
2024/11/29-17:51:44.270401 7f11d27fc6c0 Compacted 2@0 + 0@1 files => 2091 bytes
2024/11/29-17:51:44.276181 7f11d27fc6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/11/29-17:51:44.276330 7f11d27fc6c0 Delete type=2 #22
2024/11/29-17:51:44.276569 7f11d27fc6c0 Delete type=2 #32
2024/11/29-17:51:44.297146 7f11d27fc6c0 Manual compaction at level-0 from '!items!nkRQU81L1gWOfaeo' @ 18 : 1 .. '!items!nkRQU81L1gWOfaeo' @ 0 : 0; will stop at (end)
2025/05/01-00:13:13.203817 7efc4effd6c0 Recovering log #31
2025/05/01-00:13:13.258580 7efc4effd6c0 Delete type=3 #29
2025/05/01-00:13:13.258656 7efc4effd6c0 Delete type=0 #31

View File

@ -1 +1,14 @@
2024/05/03-23:45:44.013998 7f863fe006c0 Delete type=3 #1
2024/11/29-17:51:13.259713 7f11d2ffd6c0 Recovering log #28
2024/11/29-17:51:13.269307 7f11d2ffd6c0 Delete type=0 #28
2024/11/29-17:51:13.269361 7f11d2ffd6c0 Delete type=3 #27
2024/11/29-17:51:44.227241 7f11d27fc6c0 Level-0 table #32: started
2024/11/29-17:51:44.230288 7f11d27fc6c0 Level-0 table #32: 2091 bytes OK
2024/11/29-17:51:44.237280 7f11d27fc6c0 Delete type=0 #30
2024/11/29-17:51:44.267165 7f11d27fc6c0 Manual compaction at level-0 from '!items!5J6qIaWdnhEGMAXJ' @ 72057594037927935 : 1 .. '!items!nkRQU81L1gWOfaeo' @ 0 : 0; will stop at '!items!nkRQU81L1gWOfaeo' @ 18 : 1
2024/11/29-17:51:44.267179 7f11d27fc6c0 Compacting 2@0 + 0@1 files
2024/11/29-17:51:44.270390 7f11d27fc6c0 Generated table #33@0: 9 keys, 2091 bytes
2024/11/29-17:51:44.270401 7f11d27fc6c0 Compacted 2@0 + 0@1 files => 2091 bytes
2024/11/29-17:51:44.276181 7f11d27fc6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/11/29-17:51:44.276330 7f11d27fc6c0 Delete type=2 #22
2024/11/29-17:51:44.276569 7f11d27fc6c0 Delete type=2 #32
2024/11/29-17:51:44.297146 7f11d27fc6c0 Manual compaction at level-0 from '!items!nkRQU81L1gWOfaeo' @ 18 : 1 .. '!items!nkRQU81L1gWOfaeo' @ 0 : 0; will stop at (end)

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000029
MANIFEST-000034

View File

@ -1,14 +1,3 @@
2024/11/29-17:51:13.287438 7f11d3fff6c0 Recovering log #28
2024/11/29-17:51:13.297962 7f11d3fff6c0 Delete type=0 #28
2024/11/29-17:51:13.298081 7f11d3fff6c0 Delete type=3 #27
2024/11/29-17:51:44.237485 7f11d27fc6c0 Level-0 table #32: started
2024/11/29-17:51:44.240689 7f11d27fc6c0 Level-0 table #32: 851 bytes OK
2024/11/29-17:51:44.246485 7f11d27fc6c0 Delete type=0 #30
2024/11/29-17:51:44.276713 7f11d27fc6c0 Manual compaction at level-0 from '!macros!ESV4er8Hy6liMOC3' @ 72057594037927935 : 1 .. '!macros!zDPgmHiwNxBWhoYz' @ 0 : 0; will stop at '!macros!zDPgmHiwNxBWhoYz' @ 6 : 1
2024/11/29-17:51:44.276731 7f11d27fc6c0 Compacting 2@0 + 0@1 files
2024/11/29-17:51:44.280157 7f11d27fc6c0 Generated table #33@0: 3 keys, 851 bytes
2024/11/29-17:51:44.280180 7f11d27fc6c0 Compacted 2@0 + 0@1 files => 851 bytes
2024/11/29-17:51:44.287399 7f11d27fc6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/11/29-17:51:44.287547 7f11d27fc6c0 Delete type=2 #22
2024/11/29-17:51:44.287718 7f11d27fc6c0 Delete type=2 #32
2024/11/29-17:51:44.297154 7f11d27fc6c0 Manual compaction at level-0 from '!macros!zDPgmHiwNxBWhoYz' @ 6 : 1 .. '!macros!zDPgmHiwNxBWhoYz' @ 0 : 0; will stop at (end)
2025/05/01-00:13:13.328666 7efc4f7fe6c0 Recovering log #31
2025/05/01-00:13:13.380625 7efc4f7fe6c0 Delete type=3 #29
2025/05/01-00:13:13.380738 7efc4f7fe6c0 Delete type=0 #31

View File

@ -1 +1,14 @@
2024/05/03-23:45:44.055066 7f863fe006c0 Delete type=3 #1
2024/11/29-17:51:13.287438 7f11d3fff6c0 Recovering log #28
2024/11/29-17:51:13.297962 7f11d3fff6c0 Delete type=0 #28
2024/11/29-17:51:13.298081 7f11d3fff6c0 Delete type=3 #27
2024/11/29-17:51:44.237485 7f11d27fc6c0 Level-0 table #32: started
2024/11/29-17:51:44.240689 7f11d27fc6c0 Level-0 table #32: 851 bytes OK
2024/11/29-17:51:44.246485 7f11d27fc6c0 Delete type=0 #30
2024/11/29-17:51:44.276713 7f11d27fc6c0 Manual compaction at level-0 from '!macros!ESV4er8Hy6liMOC3' @ 72057594037927935 : 1 .. '!macros!zDPgmHiwNxBWhoYz' @ 0 : 0; will stop at '!macros!zDPgmHiwNxBWhoYz' @ 6 : 1
2024/11/29-17:51:44.276731 7f11d27fc6c0 Compacting 2@0 + 0@1 files
2024/11/29-17:51:44.280157 7f11d27fc6c0 Generated table #33@0: 3 keys, 851 bytes
2024/11/29-17:51:44.280180 7f11d27fc6c0 Compacted 2@0 + 0@1 files => 851 bytes
2024/11/29-17:51:44.287399 7f11d27fc6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/11/29-17:51:44.287547 7f11d27fc6c0 Delete type=2 #22
2024/11/29-17:51:44.287718 7f11d27fc6c0 Delete type=2 #32
2024/11/29-17:51:44.297154 7f11d27fc6c0 Manual compaction at level-0 from '!macros!zDPgmHiwNxBWhoYz' @ 6 : 1 .. '!macros!zDPgmHiwNxBWhoYz' @ 0 : 0; will stop at (end)

Binary file not shown.

Binary file not shown.

View File

@ -1 +1 @@
MANIFEST-000029
MANIFEST-000034

View File

@ -1,14 +1,3 @@
2024/11/29-17:51:13.246162 7f11d8ffa6c0 Recovering log #28
2024/11/29-17:51:13.256519 7f11d8ffa6c0 Delete type=0 #28
2024/11/29-17:51:13.256622 7f11d8ffa6c0 Delete type=3 #27
2024/11/29-17:51:44.246559 7f11d27fc6c0 Level-0 table #32: started
2024/11/29-17:51:44.249606 7f11d27fc6c0 Level-0 table #32: 4001 bytes OK
2024/11/29-17:51:44.255805 7f11d27fc6c0 Delete type=0 #30
2024/11/29-17:51:44.287848 7f11d27fc6c0 Manual compaction at level-0 from '!items!1DRKmbzGzbCRCswc' @ 72057594037927935 : 1 .. '!items!zbGGMEQFdwVdlKAf' @ 0 : 0; will stop at '!items!zbGGMEQFdwVdlKAf' @ 44 : 1
2024/11/29-17:51:44.287866 7f11d27fc6c0 Compacting 2@0 + 0@1 files
2024/11/29-17:51:44.291002 7f11d27fc6c0 Generated table #33@0: 22 keys, 4001 bytes
2024/11/29-17:51:44.291025 7f11d27fc6c0 Compacted 2@0 + 0@1 files => 4001 bytes
2024/11/29-17:51:44.296891 7f11d27fc6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/11/29-17:51:44.296997 7f11d27fc6c0 Delete type=2 #22
2024/11/29-17:51:44.297082 7f11d27fc6c0 Delete type=2 #32
2024/11/29-17:51:44.297163 7f11d27fc6c0 Manual compaction at level-0 from '!items!zbGGMEQFdwVdlKAf' @ 44 : 1 .. '!items!zbGGMEQFdwVdlKAf' @ 0 : 0; will stop at (end)
2025/05/01-00:13:13.144691 7efc4e7fc6c0 Recovering log #31
2025/05/01-00:13:13.196169 7efc4e7fc6c0 Delete type=3 #29
2025/05/01-00:13:13.196332 7efc4e7fc6c0 Delete type=0 #31

View File

@ -1 +1,14 @@
2024/05/03-23:45:43.983438 7f863f4006c0 Delete type=3 #1
2024/11/29-17:51:13.246162 7f11d8ffa6c0 Recovering log #28
2024/11/29-17:51:13.256519 7f11d8ffa6c0 Delete type=0 #28
2024/11/29-17:51:13.256622 7f11d8ffa6c0 Delete type=3 #27
2024/11/29-17:51:44.246559 7f11d27fc6c0 Level-0 table #32: started
2024/11/29-17:51:44.249606 7f11d27fc6c0 Level-0 table #32: 4001 bytes OK
2024/11/29-17:51:44.255805 7f11d27fc6c0 Delete type=0 #30
2024/11/29-17:51:44.287848 7f11d27fc6c0 Manual compaction at level-0 from '!items!1DRKmbzGzbCRCswc' @ 72057594037927935 : 1 .. '!items!zbGGMEQFdwVdlKAf' @ 0 : 0; will stop at '!items!zbGGMEQFdwVdlKAf' @ 44 : 1
2024/11/29-17:51:44.287866 7f11d27fc6c0 Compacting 2@0 + 0@1 files
2024/11/29-17:51:44.291002 7f11d27fc6c0 Generated table #33@0: 22 keys, 4001 bytes
2024/11/29-17:51:44.291025 7f11d27fc6c0 Compacted 2@0 + 0@1 files => 4001 bytes
2024/11/29-17:51:44.296891 7f11d27fc6c0 compacted to: files[ 0 1 0 0 0 0 0 ]
2024/11/29-17:51:44.296997 7f11d27fc6c0 Delete type=2 #22
2024/11/29-17:51:44.297082 7f11d27fc6c0 Delete type=2 #32
2024/11/29-17:51:44.297163 7f11d27fc6c0 Manual compaction at level-0 from '!items!zbGGMEQFdwVdlKAf' @ 44 : 1 .. '!items!zbGGMEQFdwVdlKAf' @ 0 : 0; will stop at (end)

Binary file not shown.

View File

@ -465,7 +465,7 @@ section.sheet-body{padding: 0.25rem 0.5rem;}
padding: 0;
}
.malefices-actor-sheet nav.sheet-tabs {
nav.sheet-tabs {
font-size: 1.2rem;
font-weight: bold;
height: 3rem;
@ -495,6 +495,9 @@ section.sheet-body{padding: 0.25rem 0.5rem;}
nav.sheet-tabs .item {
position: relative;
padding: 0 0.25rem;
color:beige;
margin-top: 4px;
margin-bottom: 4px;
}
nav.sheet-tabs .item:after {

View File

@ -26,44 +26,56 @@
"type": "Item",
"label": "Tarots",
"name": "malefices-tarots",
"path": "packs/malefices-tarots.db",
"path": "packs/malefices-tarots",
"system": "fvtt-malefices",
"private": false,
"flags": {}
"flags": {},
"ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
},
{
"type": "Item",
"label": "Armes",
"name": "malefices-armes",
"path": "packs/malefices-armes.db",
"path": "packs/malefices-armes",
"system": "fvtt-malefices",
"private": false,
"flags": {}
"flags": {},
"ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
},
{
"type": "Item",
"label": "Archetypes",
"name": "malefices-archetypes",
"path": "packs/malefices-archetypes.db",
"path": "packs/malefices-archetypes",
"system": "fvtt-malefices",
"private": false,
"flags": {}
"flags": {},
"ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
},
{
"type": "Macro",
"label": "Macros",
"name": "malefices-macros",
"path": "packs/malefices-macros.db",
"path": "packs/malefices-macros",
"system": "fvtt-malefices",
"private": false,
"flags": {}
"flags": {},
"ownership": {
"PLAYER": "OBSERVER",
"ASSISTANT": "OWNER"
}
}
],
"license": "LICENSE.txt",
"manifest": "https://www.uberwald.me/gitea/public/fvtt-malefices/raw/branch/master/system.json",
"compatibility": {
"minimum": "12",
"verified": "12"
"minimum": "13",
"verified": "13"
},
"id": "fvtt-malefices",
"primaryTokenAttribute": "secondary.health",
@ -74,7 +86,7 @@
],
"title": "Maléfices, le Jeu de Rôle",
"url": "https://www.uberwald.me/gitea/public/fvtt-malefices",
"version": "12.0.1",
"download": "https://www.uberwald.me/gitea/public/fvtt-malefices/archive/fvtt-malefices-v12.0.1.zip",
"version": "13.0.0",
"download": "https://www.uberwald.me/gitea/public/fvtt-malefices/archive/fvtt-malefices-v13.0.0.zip",
"background": "systems/fvtt-malefices/images/ui/malefice_welcome_page.webp"
}

View File

@ -171,7 +171,7 @@
<label class="item-field-label-medium">Critique</label>
</span>
<div class="item-controls item-controls-fixed">
<a class="item-control item-add" data-type="weapon" title="Create Item"><i class="fas fa-plus"></i></a>
<a class="item-control item-add" data-type="arme" title="Créer une arme"><i class="fas fa-plus"></i></a>
</div>
</li>
{{#each armes as |arme key|}}
@ -201,7 +201,7 @@
</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control item-add" data-type="equipment" title="Create Item"><i class="fas fa-plus"></i></a>
<a class="item-control item-add" data-type="equipement" title="Créer un équipement"><i class="fas fa-plus"></i></a>
</div>
</li>
@ -229,7 +229,7 @@
</span>
<div class="item-filler">&nbsp;</div>
<div class="item-controls item-controls-fixed">
<a class="item-control item-add" data-type="equipment" title="Create Item"><i class="fas fa-plus"></i></a>
<a class="item-control item-add" data-type="sortilege" title="Créer un Sortilège"><i class="fas fa-plus"></i></a>
</div>
</li>
@ -339,7 +339,7 @@
<label class="item-field-label-medium">Sens</label>
</span>
<div class="item-controls item-controls-fixed">
<a class="item-control item-add" data-type="tarot" title="Create Item"><i class="fas fa-plus"></i></a>
<a class="item-control item-add" data-type="tarot" title="Créer une lame de tarot"><i class="fas fa-plus"></i></a>
</div>
</li>
{{#each tarots as |tarot key|}}
@ -368,7 +368,7 @@
<label class="item-field-label-medium">Sens</label>
</span>
<div class="item-controls item-controls-fixed">
<a class="item-control item-add" data-type="tarot" title="Create Item"><i class="fas fa-plus"></i></a>
<a class="item-control item-add" data-type="tarot" title="Créer une lame de Tarot (secret)"><i class="fas fa-plus"></i></a>
</div>
</li>
{{#each tarotsCache as |tarot key|}}

View File

@ -36,14 +36,14 @@
<div class="flexrow">
<span class="roll-dialog-label">Bonus/Malus biographique : </span>
<select id="bonusMalusPerso" name="bonusMalusPerso">
{{selectOptions config.bonusMalusPersoOptions selected=bonusMalusPerso nameAttr="value" labelAttr="label"}}
{{selectOptions config.bonusMalusPersoOptions selected=bonusMalusPerso valueAttr="value" labelAttr="label"}}
</select>
</div>
<div class="flexrow">
<span class="roll-dialog-label">Bonus/Malus de situation : </span>
<select id="bonusMalusSituation" name="bonusMalusSituation">
{{selectOptions config.bonusMalusPersoOptions selected=bonusMalusSituation nameAttr="value" labelAttr="label"}}
{{selectOptions config.bonusMalusPersoOptions selected=bonusMalusSituation valueAttr="value" labelAttr="label"}}
</select>
</div>
@ -51,14 +51,14 @@
<div class="flexrow">
<span class="roll-dialog-label">Défense : </span>
<select id="bonusMalusDef" name="bonusMalusDef">
{{selectOptions config.bonusMalusDefOptions selected=bonusMalusDef nameAttr="value" labelAttr="label"}}
{{selectOptions config.bonusMalusDefOptions selected=bonusMalusDef valueAttr="value" labelAttr="label"}}
</select>
</div>
<div class="flexrow">
<span class="roll-dialog-label">Portée : </span>
<select id="bonusMalusPortee" name="bonusMalusPortee">
{{selectOptions config.bonusMalusPorteeOptions selected=bonusMalusPortee nameAttr="value" labelAttr="label"}}
{{selectOptions config.bonusMalusPorteeOptions selected=bonusMalusPortee valueAttr="value" labelAttr="label"}}
</select>
</div>
{{/if}}