Fixing Wisdom Save issues and wording

Addresses Issues #41, #40, #39, #37.
master
The Happy Anarchist 2020-11-05 21:23:41 -10:00
parent a814316587
commit 6614913fda
2 changed files with 5 additions and 4 deletions

View File

@ -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",

View File

@ -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: '<i class="fas fa-dice-d20"></i>',
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);
},
},