From 9b938429f7d5d7e352e63d6b7f7f2a3279db0a48 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Mon, 20 Apr 2020 10:16:26 +0200 Subject: [PATCH] Fix spells --- babele-register.js | 8 ++++---- module.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/babele-register.js b/babele-register.js index a11fe44..4fe48e9 100644 --- a/babele-register.js +++ b/babele-register.js @@ -27,9 +27,9 @@ class ActorWfrp4e_fr extends ActorWfrp4e { } } if (formula.includes("yard") ) - formula = formula.replace(ch.concat('yard'), "mètre" ); + formula = formula.replace('yard', "mètre" ); if (formula.includes("yds") ) - formula = formula.replace(ch.concat('yds'), "m." ); + formula = formula.replace('yds', "m." ); // To evaluate multiplication, replace x with * formula = formula.replace('x', '*'); @@ -117,9 +117,9 @@ class ActorWfrp4e_fr extends ActorWfrp4e { formula = formula.replace("force mentale", actorData.data.characteristics["wp"].value); } if (formula.includes("yard") ) - formula = formula.replace(ch.concat('yard'), "mètre" ); + formula = formula.replace('yard', "mètre" ); if (formula.includes("yds") ) - formula = formula.replace(ch.concat('yds'), "m." ); + formula = formula.replace('yds', "m." ); // Iterate through remaining characteristics for(let ch in actorData.data.characteristics) { diff --git a/module.json b/module.json index b62868a..fe4576f 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "name": "WH4-fr-translation", "title": "Traduction du module WH4 en Français.", "description": "La traduction du module WH4.", - "version": "0.54", + "version": "0.55", "minimumCoreVersion" : "0.5.1", "compatibleCoreVersion": "0.5.5", "author": "LeRatierBretonnien",