Detect RHND and display message
This commit is contained in:
parent
9bcf14d2ee
commit
ebbf46a5d0
@ -86,6 +86,14 @@ Hooks.once('ready', () => {
|
|||||||
_patch_eis();
|
_patch_eis();
|
||||||
setup_wfrp4e_tables();
|
setup_wfrp4e_tables();
|
||||||
|
|
||||||
|
// Sanity check + message
|
||||||
|
game.modules.forEach((module, name) => {
|
||||||
|
if ( name == "wfrp4e-rnhd" && module.active ) {
|
||||||
|
ChatMessage.create( { "title": "Module non compatible detecté !", "content": "<strong>Vous avez le module Rough Nights & Hard Days installé. Malheureusement, ce module n'est pas compatible avec" +
|
||||||
|
" les traductions et vient casser le fonctionnement de la traduction. Veuillez recopier les compendiums dans votre monde, désactiver le module et re-démarrer le monde</strong>", } );
|
||||||
|
}
|
||||||
|
} );
|
||||||
|
|
||||||
const lang = game.settings.get('core', 'language');
|
const lang = game.settings.get('core', 'language');
|
||||||
if ( lang == "fr" ) {
|
if ( lang == "fr" ) {
|
||||||
let pack_array = [];
|
let pack_array = [];
|
||||||
|
@ -3,7 +3,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.84",
|
"version": "0.85",
|
||||||
"minimumCoreVersion" : "0.6.0",
|
"minimumCoreVersion" : "0.6.0",
|
||||||
"compatibleCoreVersion": "0.6.1",
|
"compatibleCoreVersion": "0.6.1",
|
||||||
"author": "LeRatierBretonnien",
|
"author": "LeRatierBretonnien",
|
||||||
|
Loading…
Reference in New Issue
Block a user