Enhance march

This commit is contained in:
2023-03-14 19:23:19 +01:00
parent b23d0836fe
commit 3489dc6254
10 changed files with 158 additions and 91 deletions

View File

@@ -46,7 +46,7 @@ export class Hero6Utility {
return __locationNames[key]
})
Handlebars.registerHelper('isSkillCustom', function (key) {
if (key == "custom" || key == "background" ) {
if (key == "custom" ) {
return true;
}
return false
@@ -304,7 +304,7 @@ export class Hero6Utility {
target = rollData.charac.roll
}
if (rollData.item) {
target = rollData.item.system.roll
target = rollData.item.roll || rollData.item.system.roll
}
// Performs roll
@@ -328,9 +328,7 @@ export class Hero6Utility {
if ( myRoll.terms[0].total == 18) { // Always a failure
rollData.isSuccess = false
}
if (rollData.isSuccess ) {
rollData.margin = target - rollData.result
}
rollData.margin = target - rollData.result
let msg = await this.createChatWithRollMode(rollData.alias, {
content: await renderTemplate(`systems/fvtt-hero-system-6/templates/chat/chat-generic-result.hbs`, rollData)