Add saves modifier to tweaks
Adds the ability for a universal bonus or penalty to saving throws. Addresses issue #30 from @Bobloblah.master
parent
ffd6b6157e
commit
944e8a08f4
|
@ -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",
|
||||
|
|
|
@ -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") {
|
||||
|
|
|
@ -53,6 +53,9 @@
|
|||
"value": 0
|
||||
}
|
||||
},
|
||||
"save": {
|
||||
"mod": 0
|
||||
},
|
||||
"movement": {
|
||||
"base": 120
|
||||
},
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue