mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-14 20:51:07 +01:00
getRollData recursion fix
This commit is contained in:
parent
2ba580da58
commit
610323fde9
1 changed files with 4 additions and 4 deletions
|
|
@ -1,11 +1,11 @@
|
||||||
/**
|
/**
|
||||||
* Describes metadata about the actor data model type
|
* Describes metadata about the actor data model type
|
||||||
* @typedef {Object} ItemDataModelMetadata
|
* @typedef {Object} ActorDataModelMetadata
|
||||||
* @property {string} label - A localizable label used on application.
|
* @property {string} label - A localizable label used on application.
|
||||||
* @property {string} type - The system type that this data model represents.
|
* @property {string} type - The system type that this data model represents.
|
||||||
*/
|
*/
|
||||||
export default class BaseDataActor extends foundry.abstract.TypeDataModel {
|
export default class BaseDataActor extends foundry.abstract.TypeDataModel {
|
||||||
/** @returns {ItemDataModelMetadata}*/
|
/** @returns {ActorDataModelMetadata}*/
|
||||||
static get metadata() {
|
static get metadata() {
|
||||||
return {
|
return {
|
||||||
label: 'Base Actor',
|
label: 'Base Actor',
|
||||||
|
|
@ -27,8 +27,8 @@ export default class BaseDataActor extends foundry.abstract.TypeDataModel {
|
||||||
* @param {object} [options] - Options which modify the getRollData method.
|
* @param {object} [options] - Options which modify the getRollData method.
|
||||||
* @returns {object}
|
* @returns {object}
|
||||||
*/
|
*/
|
||||||
getRollData(options = {}) {
|
getRollData() {
|
||||||
const data = this.getRollData();
|
const data = { ...this };
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue