From 6614913fdaab68baa2fa61a2d94e9583d0c9a13c Mon Sep 17 00:00:00 2001 From: The Happy Anarchist Date: Thu, 5 Nov 2020 21:23:41 -1000 Subject: [PATCH] Fixing Wisdom Save issues and wording Addresses Issues #41, #40, #39, #37. --- src/lang/en.json | 4 ++-- src/module/dice.js | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lang/en.json b/src/lang/en.json index 7ee7ec4..886698f 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -203,8 +203,8 @@ "ACKS.Setting.Explode20Hint": "Heroic Fantasy Option: Attack throws explode on 20 - Critical if exceed target AC by 10", "ACKS.Setting.BHR": "HFH: Base Healing Rate", "ACKS.Setting.BHRHint": "Heroic Fantasy Option: Base Healing Rate per day varies by Max HP", - "ACKS.Setting.RemoveMagicBonus": "Houserule: Wisdom Bonus to All Saves", - "ACKS.Setting.RemoveMagicBonusHint": "A popular houserule, for use when PCs will add their wisdom modifier to all saving throws", + "ACKS.Setting.RemoveMagicBonus": "HFH: Wisdom Bonus to All Saves", + "ACKS.Setting.RemoveMagicBonusHint": "Heroic Fantasy Option: PCs will add their wisdom modifier to all saving throws, not just magic", "ACKS.items.Equip": "Equip", "ACKS.items.Unequip": "Unequip", diff --git a/src/module/dice.js b/src/module/dice.js index cd6ee80..bd56f8a 100644 --- a/src/module/dice.js +++ b/src/module/dice.js @@ -349,7 +349,7 @@ export class AcksDice { callback: (html) => { rolled = true; rollData.form = html[0].querySelector("form"); - rollData.data.roll.target = parseInt(rollData.data.roll.target) + parseInt(rollData.data.roll.magic); + rollData.data.roll.target = parseInt(rollData.data.roll.target) - parseInt(rollData.data.roll.magic); rollData.title += ` ${game.i18n.localize("ACKS.saves.magic.short")} (${rollData.data.roll.magic})`; roll = AcksDice.sendRoll(rollData); }, @@ -367,7 +367,8 @@ export class AcksDice { icon: '', callback: (html) => { rolled = true; - rollData.form = html[0].children[0]; + rollData.form = html[0].querySelector("form"); + rollData.data.roll.target = parseInt(rollData.data.roll.target) - parseInt(rollData.data.roll.magic); roll = AcksDice.sendRoll(rollData); }, },