Anpassungen Zauber und Kampftabs
This commit is contained in:
@@ -81,6 +81,15 @@ Hooks.once("init", async () => {
|
||||
return false;
|
||||
});
|
||||
|
||||
Handlebars.registerHelper("skillEwInList", (skillName: string, list: any) => {
|
||||
for (let key in list) {
|
||||
if (list[key]?.label?.toLowerCase() === skillName?.toLowerCase()) {
|
||||
return list[key].calc.ew;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
Handlebars.registerHelper("stripHtml", function (param) {
|
||||
var regex = /(<([^>]+)>)/gi;
|
||||
return param.replace(regex, "");
|
||||
|
||||
@@ -572,6 +572,14 @@ export class M5Character extends Actor {
|
||||
label: item.name,
|
||||
process: "midgard5.spell-process-" + item.system.process,
|
||||
calc: item.system.calc,
|
||||
type: item.system.type,
|
||||
castDuration: item.system.castDuration || 0,
|
||||
ap: item.system.ap || 0,
|
||||
range: item.system.range|| 0,
|
||||
effectTarget: item.system.effectTarget,
|
||||
effectArea: item.system.effectArea,
|
||||
effectDuration: item.system.effectDuration || 0,
|
||||
equipped: item.system?.equipped || false,
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
@@ -264,7 +264,8 @@
|
||||
"umgebung": "midgard5.spell-target-umgebung",
|
||||
"geist": "midgard5.spell-target-geist",
|
||||
"koerper": "midgard5.spell-target-koerper"
|
||||
}
|
||||
},
|
||||
"spellSpecialization": "none"
|
||||
},
|
||||
"kampfkunstSelection": {
|
||||
"kampfkunstTypeSelection": {
|
||||
|
||||
Reference in New Issue
Block a user