This commit is contained in:
Erwan Lemaire
2025-05-02 13:19:49 +02:00
parent 5889a8111d
commit c35e93975b
14 changed files with 111 additions and 94 deletions
+3
View File
@@ -43,6 +43,8 @@ export const preloadHandlebarsTemplates = async function () {
"systems/vermine2047/templates/item/partials/traits.html",
"systems/vermine2047/templates/item/partials/header.hbs",
"systems/vermine2047/templates/item/partials/physicalItems.hbs",
"systems/vermine2047/templates/item/chatCards/parts/base.html",
]);
};
@@ -125,6 +127,7 @@ export const registerHandlebarsHelpers = function () {
});
//return damge data
Handlebars.registerHelper('getDamagesData', function (damageObject, prop) {
let propObject = damageObject[prop]
let propValue = propObject[damageObject.value - 1]
return propValue