mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-06 04:44:16 +02:00
Adding so that newly creatd parties default to having the ownership default be owner
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
This commit is contained in:
parent
41829bc9d5
commit
f45b1210c7
1 changed files with 9 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ export default class DhpActor extends Actor {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure prototype token settings
|
// Configure prototype token settings
|
||||||
if (['character', 'companion', 'party'].includes(this.type))
|
if (['character', 'companion', 'party'].includes(this.type)) {
|
||||||
Object.assign(update, {
|
Object.assign(update, {
|
||||||
prototypeToken: {
|
prototypeToken: {
|
||||||
sight: { enabled: true },
|
sight: { enabled: true },
|
||||||
|
|
@ -107,6 +107,14 @@ export default class DhpActor extends Actor {
|
||||||
disposition: CONST.TOKEN_DISPOSITIONS.FRIENDLY
|
disposition: CONST.TOKEN_DISPOSITIONS.FRIENDLY
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.type === 'party') {
|
||||||
|
Object.assign(update, {
|
||||||
|
'ownership.default': CONST.DOCUMENT_OWNERSHIP_LEVELS.OWNER,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
this.updateSource(update);
|
this.updateSource(update);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue