Add Melee and Missile Damage bonus to tweaks
Melee and Missile Damage bonuses added to tweaks. Also fixed a bug in OSE code where AAC bonus was not working.master
parent
771cc0636c
commit
a611838d6c
|
@ -123,10 +123,12 @@
|
|||
"ACKS.AB": "Throw",
|
||||
"ACKS.MeleeShort": "MEL",
|
||||
"ACKS.Melee": "Melee",
|
||||
"ACKS.MeleeBonus": "Melee Bonus",
|
||||
"ACKS.MeleeBonus": "Melee Throw Bonus",
|
||||
"ACKS.MeleeDamageBonus": "Melee Damage Bonus",
|
||||
"ACKS.MissileShort": "MIS",
|
||||
"ACKS.Missile": "Missile",
|
||||
"ACKS.MissileBonus": "Missile Bonus",
|
||||
"ACKS.MissileBonus": "Missile Throw Bonus",
|
||||
"ACKS.MissileDamageBonus": "Missile Damage Bonus",
|
||||
"ACKS.Initiative": "Initiative",
|
||||
"ACKS.InitiativeBonus": "Initiative Bonus",
|
||||
"ACKS.InitiativeShort": "INIT",
|
||||
|
|
|
@ -383,6 +383,11 @@ export class AcksActor extends Actor {
|
|||
dmgParts.push(data.scores.str.mod);
|
||||
}
|
||||
|
||||
// Add Melee mod to damage
|
||||
if (attData.roll.type == "melee") {
|
||||
dmgParts.push(data.damage.mod.melee);
|
||||
}
|
||||
|
||||
// Damage roll
|
||||
AcksDice.Roll({
|
||||
event: options.event,
|
||||
|
@ -447,6 +452,10 @@ export class AcksActor extends Actor {
|
|||
if (options.type == "melee") {
|
||||
dmgParts.push(data.scores.str.mod);
|
||||
}
|
||||
// Add Melee mod to damage
|
||||
if (options.type == "melee") {
|
||||
dmgParts.push(data.damage.mod.melee);
|
||||
}
|
||||
const rollData = {
|
||||
actor: this.data,
|
||||
item: attData.item,
|
||||
|
|
|
@ -21,6 +21,12 @@
|
|||
"value": 0,
|
||||
"mod": 0
|
||||
},
|
||||
"damage": {
|
||||
"mod": {
|
||||
"missile": 0
|
||||
"melee": 0
|
||||
}
|
||||
},
|
||||
"thac0": {
|
||||
"value": 19,
|
||||
"bba": 0,
|
||||
|
|
|
@ -45,6 +45,12 @@
|
|||
<input type="text" name="data.thac0.mod.melee" id="melee" value="{{data.thac0.mod.melee}}" data-dtype="Number" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{localize "ACKS.MeleeDamageBonus"}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="data.damage.mod.melee" id="meleedmg" value="{{data.damage.mod.melee}}" data-dtype="Number" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{localize "ACKS.MissileBonus"}}</label>
|
||||
<div class="form-fields">
|
||||
|
@ -52,11 +58,17 @@
|
|||
data-dtype="Number" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{localize "ACKS.MissileDamageBonus"}}</label>
|
||||
<div class="form-fields">
|
||||
<input type="text" name="data.damage.mod.missile" id="missiledmg" value="{{data.damage.mod.missile}}" data-dtype="Number" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>{{localize "ACKS.ArmorClassBonus"}}</label>
|
||||
<div class="form-fields">
|
||||
{{#if config.ascending}}
|
||||
<input type="text" name="data.aac.mod" id="ac" value="{{data.aac.mod}}"
|
||||
{{#if config.ascendingAC}}
|
||||
<input type="text" name="data.aac.mod" id="aac" value="{{data.aac.mod}}"
|
||||
data-dtype="Number" />
|
||||
{{else}}
|
||||
<input type="text" name="data.ac.mod" id="ac" value="{{data.ac.mod}}"
|
||||
|
|
Loading…
Reference in New Issue