mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
Added effects for Weapon and Armor traits
This commit is contained in:
parent
b7ea925276
commit
b8482da848
13 changed files with 573 additions and 51 deletions
|
|
@ -1,4 +1,12 @@
|
|||
export default class DhActiveEffect extends ActiveEffect {
|
||||
get isSuppressed() {
|
||||
if (['weapon', 'armor'].includes(this.parent.type)) {
|
||||
return !this.parent.system.equipped;
|
||||
}
|
||||
|
||||
return super.isSuppressed;
|
||||
}
|
||||
|
||||
async _preCreate(data, options, user) {
|
||||
const update = {};
|
||||
if (!data.img) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue