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

This commit is contained in:
WBHarry 2026-04-23 23:01:12 +02:00
parent 41829bc9d5
commit f45b1210c7

View file

@ -99,7 +99,7 @@ export default class DhpActor extends Actor {
}
// Configure prototype token settings
if (['character', 'companion', 'party'].includes(this.type))
if (['character', 'companion', 'party'].includes(this.type)) {
Object.assign(update, {
prototypeToken: {
sight: { enabled: true },
@ -107,6 +107,14 @@ export default class DhpActor extends Actor {
disposition: CONST.TOKEN_DISPOSITIONS.FRIENDLY
}
});
}
if (this.type === 'party') {
Object.assign(update, {
'ownership.default': CONST.DOCUMENT_OWNERSHIP_LEVELS.OWNER,
});
}
this.updateSource(update);
}