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.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",
|
||||||
|
|
|
@ -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") {
|
||||||
|
|
|
@ -53,6 +53,9 @@
|
||||||
"value": 0
|
"value": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"save": {
|
||||||
|
"mod": 0
|
||||||
|
},
|
||||||
"movement": {
|
"movement": {
|
||||||
"base": 120
|
"base": 120
|
||||||
},
|
},
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue