From bd113b6ef352126a2c093b94aa834e5791c7b3f6 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Sun, 12 Nov 2023 00:22:44 +0100 Subject: [PATCH] Fix spell damages --- babele-register.js | 8 +++++++- module.json | 2 +- packs/aides-de-jeu-fr/{000320.log => 000340.log} | 0 packs/aides-de-jeu-fr/MANIFEST-000318 | Bin 143 -> 0 bytes .../{000321.log => 000341.log} | 0 packs/antidotes-and-remedes/MANIFEST-000319 | Bin 178 -> 0 bytes packs/apothicarium/{000320.log => 000340.log} | 0 packs/apothicarium/MANIFEST-000318 | Bin 143 -> 0 bytes packs/dons-de-rhya/{000320.log => 000340.log} | 0 packs/dons-de-rhya/MANIFEST-000318 | Bin 143 -> 0 bytes packs/plats-dauberges/{000320.log => 000340.log} | 0 packs/plats-dauberges/MANIFEST-000318 | Bin 168 -> 0 bytes .../{000320.log => 000340.log} | 0 packs/tables-des-traductions/MANIFEST-000318 | Bin 143 -> 0 bytes 14 files changed, 8 insertions(+), 2 deletions(-) rename packs/aides-de-jeu-fr/{000320.log => 000340.log} (100%) delete mode 100644 packs/aides-de-jeu-fr/MANIFEST-000318 rename packs/antidotes-and-remedes/{000321.log => 000341.log} (100%) delete mode 100644 packs/antidotes-and-remedes/MANIFEST-000319 rename packs/apothicarium/{000320.log => 000340.log} (100%) delete mode 100644 packs/apothicarium/MANIFEST-000318 rename packs/dons-de-rhya/{000320.log => 000340.log} (100%) delete mode 100644 packs/dons-de-rhya/MANIFEST-000318 rename packs/plats-dauberges/{000320.log => 000340.log} (100%) delete mode 100644 packs/plats-dauberges/MANIFEST-000318 rename packs/tables-des-traductions/{000320.log => 000340.log} (100%) delete mode 100644 packs/tables-des-traductions/MANIFEST-000318 diff --git a/babele-register.js b/babele-register.js index e31f4b4..1d6c4f1 100644 --- a/babele-register.js +++ b/babele-register.js @@ -544,6 +544,7 @@ Hooks.once('init', () => { var translw = value; var re = /(.*) Bonus (\w*)/i; var res = re.exec(value); + console.log("RES1:", res); var unit = ""; if (res) { // Test " Bonus " pattern if (res[1]) { // We have char name, then convert it @@ -570,7 +571,12 @@ Hooks.once('init', () => { if (unit == "days") unit = "jours"; if (unit == "yard") unit = "mètre"; if (unit == "yards") unit = "mètres"; - translw += " " + unit; + if (unit == "Bonus") { // Another weird management + translw = "Bonus de " + translw; + } else { + translw += " " + unit; + } + console.log("Spell duration/range/damage/target :", value, translw); return translw; } }); diff --git a/module.json b/module.json index a23a2b4..5eeff10 100644 --- a/module.json +++ b/module.json @@ -116,7 +116,7 @@ } ], "manifest": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/raw/v10/module.json", - "download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-7.0.19.zip", + "download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-7.0.20.zip", "id": "wh4-fr-translation", "compatibility": { "minimum": "11", diff --git a/packs/aides-de-jeu-fr/000320.log b/packs/aides-de-jeu-fr/000340.log similarity index 100% rename from packs/aides-de-jeu-fr/000320.log rename to packs/aides-de-jeu-fr/000340.log diff --git a/packs/aides-de-jeu-fr/MANIFEST-000318 b/packs/aides-de-jeu-fr/MANIFEST-000318 deleted file mode 100644 index 22d164f452c3791cc0a1a7fae4331a62c426ef1c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 143 zcmezKDV{Nnfss)vC$%g!CnZVGsj?)sJhM2}IX|}`u_&=5zlfcQbyp*^qGDElX;EHc zj-s(=dTwSxQI(IAnNN9YUNR#i0~jDw6qlAp`dOGe<`_mrg_i^dGO|Kc?3nkgkc)wl aX+IMu1M>kU7S`UGs=XkA10aDzKmh>Dbtq>5 diff --git a/packs/antidotes-and-remedes/000321.log b/packs/antidotes-and-remedes/000341.log similarity index 100% rename from packs/antidotes-and-remedes/000321.log rename to packs/antidotes-and-remedes/000341.log diff --git a/packs/antidotes-and-remedes/MANIFEST-000319 b/packs/antidotes-and-remedes/MANIFEST-000319 deleted file mode 100644 index 778d6f5abf180427ffab6b7ce56225b727dbe6de..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 178 zcmZ3hQW@9Iz{n_-lUkOVlai$8R9TW*o>`pgoS$2eSd>_jU&P8Nub5eqnp><`nd6p` zZJz5M<)7#16%rc4sLKEb>`W7wo_u6gR7}gyNl7g#Rx~axERFOqH!dl0PRaK$@MM&M qD8y+{Iz*mtyAwAz10&M`CQb(CgG?;v7`HDyei$Tj5F~OKBmw}VmobR| diff --git a/packs/apothicarium/000320.log b/packs/apothicarium/000340.log similarity index 100% rename from packs/apothicarium/000320.log rename to packs/apothicarium/000340.log diff --git a/packs/apothicarium/MANIFEST-000318 b/packs/apothicarium/MANIFEST-000318 deleted file mode 100644 index 863313624aef85fc6350fb84929c5a2b919aa346..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 143 zcmb=OIA>}a10$nUPHI_dPD+xVQ)NkNd1i5{bAE0?Vo_pAei1tp>+6Y(ii%nJrA2v( zIf}_qC4T9Nm7e8Bfo>VjmZgl03}8T5#ai|I&0GwOO#7KQ8JG_+u`ovPD5Qe~4uAv> G0R;fK?k6Vz diff --git a/packs/dons-de-rhya/000320.log b/packs/dons-de-rhya/000340.log similarity index 100% rename from packs/dons-de-rhya/000320.log rename to packs/dons-de-rhya/000340.log diff --git a/packs/dons-de-rhya/MANIFEST-000318 b/packs/dons-de-rhya/MANIFEST-000318 deleted file mode 100644 index c9e585ef818208cd50178d5a62958c4ff6d9b218..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 143 zcmZq7pV^bfz{n_-lUkOVlai$8R9TW*o>`pgoS$2eSd>_jU&PMDx@`%wqGDElX;EHc zj-shSsYRG$R!VMuS!IzyMg=1y0~jDwR92N+dKwfNXE=MC2YBUGF^WS}Fxy;p;$mQA a+Rwzvzh-C;$L;=_U^V diff --git a/packs/plats-dauberges/000320.log b/packs/plats-dauberges/000340.log similarity index 100% rename from packs/plats-dauberges/000320.log rename to packs/plats-dauberges/000340.log diff --git a/packs/plats-dauberges/MANIFEST-000318 b/packs/plats-dauberges/MANIFEST-000318 deleted file mode 100644 index d797af22837973580c63369ec9a8cdb3a4608bdb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 168 zcmY#)>W-^rU}TiaNi9pwNlDUksw_z@&n!-L&d)7KEJ`fNFJfn6{W+acL9rw;DJQj9 z(Im&rz^9_jBDtWrveL*ool%Mb3@o7v^oml8OLIz!6-&|*BfVXs3QNti)1%6Q-1REU zlFGeHi;5F7D>95yk}4S=Lv*q|sa?a(z{s?piIai(029kAMlH>}^&pW0Ady2L5dg3Q BGQt1= diff --git a/packs/tables-des-traductions/000320.log b/packs/tables-des-traductions/000340.log similarity index 100% rename from packs/tables-des-traductions/000320.log rename to packs/tables-des-traductions/000340.log diff --git a/packs/tables-des-traductions/MANIFEST-000318 b/packs/tables-des-traductions/MANIFEST-000318 deleted file mode 100644 index 59666f579268c758606006ef185afc65dc6504a8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 143 zcmZSk8?q;jfss)vC$%g!CnZVGsj?)sJhM2}IX|}`u_&=5zlfcQwe2gjqGDElX;EHc zj-r97nWvARUy)B{K%udFrZFQU0~jDwRHj8$v*-x|tOjGx9)G#Ol^bb1^V7 a?Pua-U_QXa!n49_?|+cM0g%8Upa1|tr6#BV