Add new features
This commit is contained in:
@ -14,6 +14,7 @@ export class BoLActorSheet extends ActorSheet {
|
||||
template: "systems/bol/templates/actor/actor-sheet.hbs",
|
||||
width: 600,
|
||||
height: 600,
|
||||
dragDrop: [{ dragSelector: ".items-list .item", dropSelector: null }],
|
||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "stats" }]
|
||||
});
|
||||
}
|
||||
|
@ -304,23 +304,17 @@ export class BoLActor extends Actor {
|
||||
/*-------------------------------------------- */
|
||||
getArmorAgiMalus() {
|
||||
let malusAgi = 0
|
||||
for (let armor of this.armors) {
|
||||
for (let armor of this.protections) {
|
||||
if (armor.data.worn) {
|
||||
malusAgi += Number(armor.data.properties.modifiers.agility) || 0
|
||||
}
|
||||
}
|
||||
for (let shield of this.shields) {
|
||||
if (shield.data.worn) {
|
||||
malusAgi += Number(shield.data.properties.modifiers.agility) || 0
|
||||
}
|
||||
}
|
||||
return malusAgi
|
||||
}
|
||||
/*-------------------------------------------- */
|
||||
getArmorInitMalus() {
|
||||
let armors = this.armors
|
||||
let malusInit = 0
|
||||
for (let armor of armors) {
|
||||
for (let armor of this.protections) {
|
||||
if (armor.data.worn) {
|
||||
malusInit += Number(armor.data.properties.modifiers.init) || 0
|
||||
}
|
||||
|
Reference in New Issue
Block a user