mirror of
https://github.com/RoY7x/worldbuilding.git
synced 2025-07-14 02:11:56 -04:00
V10 compatibility with 0.7.0-alpha1 release
This commit is contained in:
parent
107aec3244
commit
e23893b6ca
12 changed files with 125 additions and 126 deletions
|
@ -9,9 +9,9 @@ export class SimpleItem extends Item {
|
|||
/** @inheritdoc */
|
||||
prepareDerivedData() {
|
||||
super.prepareDerivedData();
|
||||
this.data.data.groups = this.data.data.groups || {};
|
||||
this.data.data.attributes = this.data.data.attributes || {};
|
||||
EntitySheetHelper.clampResourceValues(this.data.data.attributes);
|
||||
this.system.groups = this.system.groups || {};
|
||||
this.system.attributes = this.system.attributes || {};
|
||||
EntitySheetHelper.clampResourceValues(this.system.attributes);
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue