Fix spells

This commit is contained in:
LeRatierBretonnien 2020-04-20 10:16:26 +02:00
parent e43be2c832
commit 9b938429f7
2 changed files with 5 additions and 5 deletions

View File

@ -27,9 +27,9 @@ class ActorWfrp4e_fr extends ActorWfrp4e {
} }
} }
if (formula.includes("yard") ) if (formula.includes("yard") )
formula = formula.replace(ch.concat('yard'), "mètre" ); formula = formula.replace('yard', "mètre" );
if (formula.includes("yds") ) if (formula.includes("yds") )
formula = formula.replace(ch.concat('yds'), "m." ); formula = formula.replace('yds', "m." );
// To evaluate multiplication, replace x with * // To evaluate multiplication, replace x with *
formula = formula.replace('x', '*'); formula = formula.replace('x', '*');
@ -117,9 +117,9 @@ class ActorWfrp4e_fr extends ActorWfrp4e {
formula = formula.replace("force mentale", actorData.data.characteristics["wp"].value); formula = formula.replace("force mentale", actorData.data.characteristics["wp"].value);
} }
if (formula.includes("yard") ) if (formula.includes("yard") )
formula = formula.replace(ch.concat('yard'), "mètre" ); formula = formula.replace('yard', "mètre" );
if (formula.includes("yds") ) if (formula.includes("yds") )
formula = formula.replace(ch.concat('yds'), "m." ); formula = formula.replace('yds', "m." );
// Iterate through remaining characteristics // Iterate through remaining characteristics
for(let ch in actorData.data.characteristics) for(let ch in actorData.data.characteristics)
{ {

View File

@ -2,7 +2,7 @@
"name": "WH4-fr-translation", "name": "WH4-fr-translation",
"title": "Traduction du module WH4 en Français.", "title": "Traduction du module WH4 en Français.",
"description": "La traduction du module WH4.", "description": "La traduction du module WH4.",
"version": "0.54", "version": "0.55",
"minimumCoreVersion" : "0.5.1", "minimumCoreVersion" : "0.5.1",
"compatibleCoreVersion": "0.5.5", "compatibleCoreVersion": "0.5.5",
"author": "LeRatierBretonnien", "author": "LeRatierBretonnien",