mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-22 15:33:37 +02:00
Single armor rework start
This commit is contained in:
parent
6e75b81806
commit
caea55ade4
7 changed files with 53 additions and 32 deletions
|
|
@ -89,6 +89,13 @@ export default class BaseEffect extends foundry.data.ActiveEffectTypeDataModel {
|
|||
return true;
|
||||
}
|
||||
|
||||
get armorData() {
|
||||
const armorChange = this.changes.find(x => x.type === CONFIG.DH.GENERAL.activeEffectModes.armor.id);
|
||||
if (!armorChange) return null;
|
||||
|
||||
return armorChange.armorData;
|
||||
}
|
||||
|
||||
static getDefaultObject() {
|
||||
return {
|
||||
name: 'New Effect',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue