Add saves modifier to tweaks

Adds the ability for a universal bonus or penalty to saving throws. Addresses issue #30 from @Bobloblah.
master
The Happy Anarchist 2020-10-24 18:29:06 -10:00
parent ffd6b6157e
commit 944e8a08f4
4 changed files with 13 additions and 0 deletions

View File

@ -97,6 +97,7 @@
"ACKS.saves.spell.long": "Spells",
"ACKS.saves.magic.long": "Bonus vs Magic",
"ACKS.saves.magic.short": "vs Magic",
"ACKS.SaveBonus": "Saving Throw Bonus",
"ACKS.Health": "Hit Points",
"ACKS.HealthMax": "Maximum Hit Points",

View File

@ -121,6 +121,8 @@ export class AcksActor extends Actor {
rollSave(save, options = {}) {
const label = game.i18n.localize(`ACKS.saves.${save}.long`);
const rollParts = ["1d20"];
rollParts.push(this.data.data.save.mod);
let data = {};
if (this.data.type == "character") {

View File

@ -53,6 +53,9 @@
"value": 0
}
},
"save": {
"mod": 0
},
"movement": {
"base": 120
},

View File

@ -76,6 +76,13 @@
{{/if}}
</div>
</div>
<div class="form-group">
<label>{{localize "ACKS.SaveBonus"}}</label>
<div class="form-fields">
<input type="text" name="data.save.mod" id="save" value="{{data.save.mod}}"
data-dtype="Number" />
</div>
</div>
<div class="form-group">
<label>{{localize "ACKS.Encumbrance"}}</label>
<div class="form-fields">