Skip to content

Commit

Permalink
Merge pull request #399 from vttred/fix/monster-encounter-movement-mi…
Browse files Browse the repository at this point in the history
…ssing

fix: made monster movement derived values available
  • Loading branch information
anthonyronda authored Apr 16, 2023
2 parents fb06247 + 5a2a114 commit ed93e43
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/module/actor/data-model-monster.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// Encumbrance schemes
import OseDataModelCharacterEncumbranceDisabled from "./data-model-classes/data-model-character-encumbrance-disabled";
import OseDataModelCharacterSpells from "./data-model-classes/data-model-character-spells";
import OseDataModelCharacterMove from "./data-model-classes/data-model-character-move";

const getItemsOfActorOfType = (actor, filterType, filterFn = null) =>
actor.items
Expand All @@ -14,6 +15,11 @@ export default class OseDataModelMonster extends foundry.abstract.DataModel {
prepareDerivedData() {
this.encumbrance = new OseDataModelCharacterEncumbranceDisabled();
this.spells = new OseDataModelCharacterSpells(this.spells, this.#spellList);
this.movement = new OseDataModelCharacterMove(
this.encumbrance,
this.config.movementAuto = false,
this.movement.base
);
}

// @todo define schema options; stuff like min/max values and so on.
Expand Down

0 comments on commit ed93e43

Please sign in to comment.