commit
8ff05532f7
|
@ -16,6 +16,7 @@ export class AcksActor extends Actor {
|
||||||
this.computeEncumbrance();
|
this.computeEncumbrance();
|
||||||
this.computeTreasure();
|
this.computeTreasure();
|
||||||
this.computeBHR();
|
this.computeBHR();
|
||||||
|
this.computeAAB();
|
||||||
|
|
||||||
// Determine Initiative
|
// Determine Initiative
|
||||||
if (game.settings.get("acks", "initiative") != "group") {
|
if (game.settings.get("acks", "initiative") != "group") {
|
||||||
|
@ -817,4 +818,9 @@ export class AcksActor extends Actor {
|
||||||
data.hp.max
|
data.hp.max
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
computeAAB() {
|
||||||
|
const data = this.data.data;
|
||||||
|
|
||||||
|
data.thac0.bba = 10 - data.thac0.throw;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
"thac0": {
|
"thac0": {
|
||||||
"value": 19,
|
"value": 19,
|
||||||
"bba": 0,
|
"bba": 0,
|
||||||
|
"throw": 10,
|
||||||
"mod": {
|
"mod": {
|
||||||
"missile": 0,
|
"missile": 0,
|
||||||
"melee": 0
|
"melee": 0
|
||||||
|
|
|
@ -147,8 +147,8 @@
|
||||||
</h4>
|
</h4>
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<div class="attribute-value">
|
<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" />
|
data-dtype="Number" +/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
<h4 class="attribute-name box-title" title="{{localize 'ACKS.AB'}}"><a>{{ localize "ACKS.ABShort" }}</a>
|
<h4 class="attribute-name box-title" title="{{localize 'ACKS.AB'}}"><a>{{ localize "ACKS.ABShort" }}</a>
|
||||||
</h4>
|
</h4>
|
||||||
<div class="attribute-value">
|
<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" />
|
data-dtype="Number" />
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
Loading…
Reference in New Issue