Ready for 2.2

This commit is contained in:
sladecraven 2020-08-30 20:46:11 +02:00
parent f42055c2e2
commit 8310029b81
3 changed files with 39 additions and 27 deletions

View File

@ -1,3 +1,5 @@
import WFRP4E from "/systems/wfrp4e/modules/system/config-wfrp4e.js"
import WFRP_Tables from "/systems/wfrp4e/modules/system/tables-wfrp4e.js";
/************************************************************************************/
const _patch_eis = () => {

View File

@ -1,6 +1,8 @@
import ActorSheetWfrp4e from "/systems/wfrp4e/modules/actor/sheet/actor-sheet.js"
/************************************************************************************/
/* Override some methods of the WFRP4 actor class, mainly to compute spells/weapons */
class ActorWfrp4e_fr extends ActorWfrp4e {
class ActorWfrp4e_fr extends ActorSheetWfrp4e {
/**
* Calculates a weapon's range or damage formula.
@ -161,7 +163,9 @@ var compmod = "wfrp4e";
Hooks.once('init', () => {
// Replace to manage specific bonuses/char. computations
CONFIG.Actor.entityClass = ActorWfrp4e_fr;
//CONFIG.Actor.entityClass = ActorWfrp4e_fr;
//Actors.unregisterSheet("core", ActorSheetWfrp4eCharacter);
Actors.registerSheet("wfrp4e", ActorWfrp4e_fr, { types: ["character"], makeDefault: true });
// Check various settings in the installation
game.modules.forEach((module, name) => {

File diff suppressed because one or more lines are too long