Sync et support royaumes ogres

This commit is contained in:
2021-05-27 12:20:50 +02:00
parent 3a8535bc7e
commit d8095a10c0
3 changed files with 73 additions and 35 deletions

View File

@ -162,6 +162,13 @@ const __check_fix_wrong_modules = ( chatFlag, patchFinished ) => {
if (game.user.isGM && chatFlag)
ChatMessage.create( { title: "Module RNHD patché", content: "<strong>Le module RHND a été detecté et automatiquement patché.</strong>", whisper: ChatMessage.getWhisperRecipients("GM") } );
}
if ( name == 'ogre-kingdom-wfrp4e' && module.active) {
WH4FRPatchConfig.perform_ogrekingdom_patch();
if (game.user.isGM && chatFlag)
ChatMessage.create( { title: "Module Ogre-Kingdom patché", content: "<strong>Le module Ogre-Kingdom a été detecté et automatiquement patché.</strong>", whisper: ChatMessage.getWhisperRecipients("GM") } );
}
if ( name == "wfrp4e-ew" && module.active && game.user.isGM && chatFlag) {
ChatMessage.create( { title: "Module non compatible detecté !", content: "<strong>Vous avez le module EW (wfrp4e-ew ?) 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>",