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.spell.long": "Spells",
"ACKS.saves.magic.long": "Bonus vs Magic", "ACKS.saves.magic.long": "Bonus vs Magic",
"ACKS.saves.magic.short": "vs Magic", "ACKS.saves.magic.short": "vs Magic",
"ACKS.SaveBonus": "Saving Throw Bonus",
"ACKS.Health": "Hit Points", "ACKS.Health": "Hit Points",
"ACKS.HealthMax": "Maximum Hit Points", "ACKS.HealthMax": "Maximum Hit Points",

View File

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

View File

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

View File

@ -76,6 +76,13 @@
{{/if}} {{/if}}
</div> </div>
</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"> <div class="form-group">
<label>{{localize "ACKS.Encumbrance"}}</label> <label>{{localize "ACKS.Encumbrance"}}</label>
<div class="form-fields"> <div class="form-fields">