v1.9.2 - Advancements ownership fix

This commit is contained in:
Vlyan
2022-09-09 09:49:40 +02:00
parent b04ac12636
commit 1dce3a5444
4 changed files with 9 additions and 4 deletions

View File

@@ -224,7 +224,9 @@ export class ItemL5r5e extends Item {
}
// Copy the parent permission to the sub item
item.ownership = this.ownership;
// In v10 actor's items inherit the ownership from the actor, but theirs ownership do not reflect that.
// So we must take actor's ownership for sub-item
item.ownership = this.actor?.ownership ?? this.ownership;
// Tag parent (flags won't work as we have no id in db)
item.system.parent_id = this.getParentsIds();

View File

@@ -7,8 +7,8 @@
"changelog": "https://gitlab.com/teaml5r/l5r5e/-/blob/master/CHANGELOG.md",
"license": "https://gitlab.com/teaml5r/l5r5e/-/blob/master/LICENSE.md",
"manifest": "https://gitlab.com/teaml5r/l5r5e/-/raw/master/system/system.json",
"download": "https://gitlab.com/teaml5r/l5r5e/-/jobs/artifacts/v1.9.1/raw/l5r5e.zip?job=build",
"version": "1.9.1",
"download": "https://gitlab.com/teaml5r/l5r5e/-/jobs/artifacts/v1.9.2/raw/l5r5e.zip?job=build",
"version": "1.9.2",
"compatibility": {
"minimum": 10,
"verified": "10.284"