commit
8ff05532f7
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
"thac0": {
|
||||
"value": 19,
|
||||
"bba": 0,
|
||||
"throw": 10,
|
||||
"mod": {
|
||||
"missile": 0,
|
||||
"melee": 0
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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}}
|
||||
|
|
Loading…
Reference in New Issue