orffen / basicfantasyrpg

The Basic Fantasy RPG system for FoundryVTT!
Other
11 stars 9 forks source link

Add toggleable rollUnder for Special Abilities #60

Closed orffen closed 1 year ago

orffen commented 1 year ago

This will be passed to successChatMessage as data-roll-under for determining success/failure.

Need migration to add a rollUnder: true to existing Item.type === 'feature'

orffen commented 1 year ago

Think this can be easily handled in item.mjs under prepareData(), something like:

const itemData = this;

if (this.type === 'feature') {
  this.system.rollUnder.value = this.system.rollUnder.value ?? true;
}

But before I do that I want to confirm what happens when template.json is updated; because FoundryVTT does have an internal migration process of some kind.

orffen commented 1 year ago

Good hack before we move to a system data model.

orffen commented 1 year ago

Added under 001cc47ba38963e3f8c80ecbace1e29932fa65f7