diff --git a/src/module/actor/entity.js b/src/module/actor/entity.js index d817cbd..fed10ab 100644 --- a/src/module/actor/entity.js +++ b/src/module/actor/entity.js @@ -16,6 +16,7 @@ export class AcksActor extends Actor { this.computeEncumbrance(); this.computeTreasure(); this.computeBHR(); + this.computeAAB(); // Determine Initiative if (game.settings.get("acks", "initiative") != "group") { @@ -817,4 +818,9 @@ export class AcksActor extends Actor { data.hp.max ); }; + computeAAB() { + const data = this.data.data; + + data.thac0.bba = 10 - data.thac0.throw; + } } diff --git a/src/template.json b/src/template.json index dbcfd78..7a68b19 100644 --- a/src/template.json +++ b/src/template.json @@ -30,6 +30,7 @@ "thac0": { "value": 19, "bba": 0, + "throw": 10, "mod": { "missile": 0, "melee": 0 diff --git a/src/templates/actors/partials/character-attributes-tab.html b/src/templates/actors/partials/character-attributes-tab.html index 3dd8cb6..e6d8174 100644 --- a/src/templates/actors/partials/character-attributes-tab.html +++ b/src/templates/actors/partials/character-attributes-tab.html @@ -147,8 +147,8 @@