Add missing spells

This commit is contained in:
2020-11-06 09:17:37 +01:00
parent 9244bd6d2a
commit f916d4df40
9 changed files with 185 additions and 177 deletions

View File

@ -115,7 +115,7 @@ class ActorWfrp4e_fr extends ActorWfrp4e {
formula = formula.toLowerCase();
// Do not process these special values
if (formula != game.i18n.localize("Vous").toLowerCase() && formula != game.i18n.localize("Special").toLowerCase() && formula != game.i18n.localize("Instantané").toLowerCase())
if (formula != game.i18n.localize("You").toLowerCase() && formula != game.i18n.localize("Special").toLowerCase() && formula != game.i18n.localize("Instant").toLowerCase())
{
// Specific case, to avoid wrong matching with "Force"
if (formula.includes("force mentale"))
@ -162,13 +162,17 @@ class ActorWfrp4e_fr extends ActorWfrp4e {
/************************************************************************************/
var compmod = "wfrp4e";
Hooks.once('ready', () => {
//WFRP_Tables = game.wfrp4e.tables;
//WFRP4E = game.wfrp4e.config;
//CONFIG.Actor.entityClass = ActorWfrp4e_fr;
} );
/************************************************************************************/
Hooks.once('init', () => {
// Replace to manage specific bonuses/char. computations
WFRP_Tables = game.wfrp.tables;
CONFIG.Actor.entityClass = ActorWfrp4e_fr;
// Check various settings in the installation
game.modules.forEach((module, name) => {
if ( name == "wfrp4e-core" && module.active) {