Merge pull request #5 from thehappyanarchist/THA-Home

Implement Throw on sheet instead of AB
master
thehappyanarchist 2020-09-22 00:57:44 -10:00 committed by GitHub
commit 8ff05532f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 3 deletions

View File

@ -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;
}
}

View File

@ -30,6 +30,7 @@
"thac0": {
"value": 19,
"bba": 0,
"throw": 10,
"mod": {
"missile": 0,
"melee": 0

View File

@ -147,8 +147,8 @@
</h4>
<div class="flexrow">
<div class="attribute-value">
<input name="data.thac0.bba" type="text" value="{{data.thac0.bba}}" placeholder="0"
data-dtype="Number" />
<input name="data.thac0.throw" type="text" value="{{data.thac0.throw}}" placeholder=""
data-dtype="Number" +/>
</div>
</div>
</li>

View File

@ -41,7 +41,7 @@
<h4 class="attribute-name box-title" title="{{localize 'ACKS.AB'}}"><a>{{ localize "ACKS.ABShort" }}</a>
</h4>
<div class="attribute-value">
<input name="data.thac0.bba" type="text" value="{{data.thac0.bba}}" placeholder="0"
<input name="data.thac0.throw" type="text" value="{{data.thac0.throw}}" placeholder=""
data-dtype="Number" />
</div>
{{else}}