Fix translations and spell damages

This commit is contained in:
LeRatierBretonnien 2020-06-05 09:15:43 +02:00
parent 615f19bcf8
commit 5e26398a7a
3 changed files with 17 additions and 10 deletions

View File

@ -67,9 +67,10 @@ class ActorWfrp4e_fr extends ActorWfrp4e {
if (formula.includes("force mentale")) if (formula.includes("force mentale"))
{ {
// Determine if it's looking for the bonus or the value // Determine if it's looking for the bonus or the value
if (formula.includes('bonus')) if (formula.includes('bonus')) {
formula = formula.replace( "bonus de force mentale", ); formula = formula.replace( "bonus de force mentale", actorData.data.characteristics["wp"].bonus);
else formula = formula.replace( "force mentale bonus", actorData.data.characteristics["wp"].bonus);
} else
formula = formula.replace("force mentale", actorData.data.characteristics["wp"].value); formula = formula.replace("force mentale", actorData.data.characteristics["wp"].value);
} }
@ -80,8 +81,10 @@ class ActorWfrp4e_fr extends ActorWfrp4e {
while (formula.includes(actorData.data.characteristics[ch].label.toLowerCase())) while (formula.includes(actorData.data.characteristics[ch].label.toLowerCase()))
{ {
// Determine if it's looking for the bonus or the value // Determine if it's looking for the bonus or the value
if (formula.includes('bonus')) if (formula.includes('bonus')) {
formula = formula.replace("bonus de " + WFRP4E.characteristics[ch].toLowerCase(), actorData.data.characteristics[ch].bonus); formula = formula.replace("bonus de " + WFRP4E.characteristics[ch].toLowerCase(), actorData.data.characteristics[ch].bonus);
formula = formula.replace(WFRP4E.characteristics[ch].toLowerCase() + " bonus", actorData.data.characteristics[ch].bonus);
}
else else
formula = formula.replace(WFRP4E.characteristics[ch].toLowerCase(), actorData.data.characteristics[ch].value); formula = formula.replace(WFRP4E.characteristics[ch].toLowerCase(), actorData.data.characteristics[ch].value);
} }
@ -113,8 +116,10 @@ class ActorWfrp4e_fr extends ActorWfrp4e {
if (formula.includes("force mentale")) if (formula.includes("force mentale"))
{ {
// Determine if it's looking for the bonus or the value // Determine if it's looking for the bonus or the value
if (formula.includes('bonus')) if (formula.includes('bonus')) {
formula = formula.replace( "bonus de force mentale", actorData.data.characteristics["wp"].bonus); formula = formula.replace( "bonus de force mentale", actorData.data.characteristics["wp"].bonus);
formula = formula.replace( "force mentale bonus", actorData.data.characteristics["wp"].bonus);
}
else else
formula = formula.replace("force mentale", actorData.data.characteristics["wp"].value); formula = formula.replace("force mentale", actorData.data.characteristics["wp"].value);
} }
@ -130,8 +135,10 @@ class ActorWfrp4e_fr extends ActorWfrp4e {
if (formula.includes(WFRP4E.characteristics[ch].toLowerCase())) if (formula.includes(WFRP4E.characteristics[ch].toLowerCase()))
{ {
// Determine if it's looking for the bonus or the value // Determine if it's looking for the bonus or the value
if (formula.includes('bonus')) if (formula.includes('bonus')) {
formula = formula.replace("bonus de " + WFRP4E.characteristics[ch].toLowerCase(), actorData.data.characteristics[ch].bonus); formula = formula.replace("bonus de " + WFRP4E.characteristics[ch].toLowerCase(), actorData.data.characteristics[ch].bonus);
formula = formula.replace(WFRP4E.characteristics[ch].toLowerCase() + " bonus", actorData.data.characteristics[ch].bonus);
}
else else
formula = formula.replace(WFRP4E.characteristics[ch].toLowerCase(), actorData.data.characteristics[ch].value); formula = formula.replace(WFRP4E.characteristics[ch].toLowerCase(), actorData.data.characteristics[ch].value);
} }

View File

@ -541,9 +541,9 @@
"MARKET.CreditRequest" : "Envoi d'argent", "MARKET.CreditRequest" : "Envoi d'argent",
"MARKET.CreditCommandNotAllowed" : "Les joueurs ne sont pas autorisés à utiliser cette commande, seulement le MJ.", "MARKET.CreditCommandNotAllowed" : "Les joueurs ne sont pas autorisés à utiliser cette commande, seulement le MJ.",
"MARKET.ReceivedBy" : "Reçu par:", "MARKET.ReceivedBy" : "Reçu par:",
"MARKET.MoneyTransactionWrongCommand" : "Syntaxe erronée. Merci de format^er votre commande comme l'un des exemples ci-dessous:", "MARKET.MoneyTransactionWrongCommand" : "Syntaxe erronée. Merci de formater votre commande comme l'un des exemples ci-dessous:",
"MARKET.CreditCommandExample" : "/credit 3co2pa<br>/credit 450sc each<br>/credit 2pa12sc4co split", "MARKET.CreditCommandExample" : "/credit 3co2pa<br>/credit 450sc each<br>/credit 2pa12sc4co split",
"MARKET.Credit": "<b>Envoi d'argent effectué:</b> {number1} GC {number2} SS {number3} BP", "MARKET.Credit": "<b>Envoi d'argent effectué:</b> {number1} Co {number2} Pa {number3} Sc",
"MARKET.RequestMessageForSplitCredit": "La somme d'argent {initialAmount} sera partagée entre le(s) {activePlayerNumber} joueur(s) actif(s), chaque joueur recevant:", "MARKET.RequestMessageForSplitCredit": "La somme d'argent {initialAmount} sera partagée entre le(s) {activePlayerNumber} joueur(s) actif(s), chaque joueur recevant:",
"MARKET.RequestMessageForEachCredit": "La somme d'argent {initialAmount} sera donnée au(x) {activePlayerNumber} joueur(s) actif(s), chaque joueur recevant:", "MARKET.RequestMessageForEachCredit": "La somme d'argent {initialAmount} sera donnée au(x) {activePlayerNumber} joueur(s) actif(s), chaque joueur recevant:",
"MARKET.NoPlayers": "Aucun joueur actif dans cette session.", "MARKET.NoPlayers": "Aucun joueur actif dans cette session.",

View File

@ -3,9 +3,9 @@
"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.80", "version": "0.81",
"minimumCoreVersion" : "0.6.0", "minimumCoreVersion" : "0.6.0",
"compatibleCoreVersion": "0.6.0", "compatibleCoreVersion": "0.6.1",
"author": "LeRatierBretonnien", "author": "LeRatierBretonnien",
"esmodules": [ "esmodules": [
"babele-register.js", "babele-register.js",