initial import

This commit is contained in:
Nicolas Delaforge
2021-07-08 10:12:12 +02:00
parent 689b01c11e
commit 9f907c9417
74 changed files with 2908 additions and 0 deletions

37
module/actor/actor.js Normal file
View File

@ -0,0 +1,37 @@
/**
* Extend the base Actor entity by defining a custom roll data structure which is ideal for the Simple system.
* @extends {Actor}
*/
export class BoLActor extends Actor {
/** @override */
prepareData() {
super.prepareData();
console.debug("prepareData");
const actorData = this.data;
// console.log(actorData);
// const data = actorData.data;
// const flags = actorData.flags;
// Make separate methods for each Actor type (character, npc, etc.) to keep
// things organized.
// if (actorData.type === 'character') this._prepareCharacterData(actorData);
}
// /**
// * Prepare Character type specific data
// */
// _prepareCharacterData(actorData) {
// const data = actorData.data;
//
// // Make modifications to data here. For example:
//
// // Loop through ability scores, and add their modifiers to our sheet output.
// for (let [key, ability] of Object.entries(data.abilities)) {
// // Calculate the modifier using d20 rules.
// ability.mod = Math.floor((ability.value - 10) / 2);
// }
// }
}