Boilerplate system for FoundryVTT to use as a starting point for your own system's development. Follow along with the [accompanying tutorial](https://foundryvtt.wiki/en/development/guides/SD-tutorial) on the wiki.
Removed derived properties from schema fields in data models.
Updated sheet classes to use the document's system prop rather than
the flattened version (which only included the _source)
Removed {{log}} calls that were missed
Added new toPlainObject() method to both the base DataModel and the actor/item document classes. This method uses the {...spread} operator rather than toObject() to allow it to utilize derived data (which toObject() does not support on data models).
Reorganized the data directory used for data models.
There's now an overall BoilerplateDataModel class that adds the toPlainObject() method, and the the actor and item base models then extend it.
Renamed the files. Base models now start with base-. Actor models start with actor-. Item models start with item-.
In GitLab by @Asacolips on Apr 4, 2024, 21:01
_source
){{log}}
calls that were missedtoPlainObject()
method to both the base DataModel and the actor/item document classes. This method uses the{...spread}
operator rather thantoObject()
to allow it to utilize derived data (whichtoObject()
does not support on data models).data
directory used for data models.BoilerplateDataModel
class that adds thetoPlainObject()
method, and the the actor and item base models then extend it.base-
. Actor models start withactor-
. Item models start withitem-
.