From 2ce8b35da0206177187200672c4d2490d8bb41c5 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Wed, 2 Mar 2022 20:19:02 +0100 Subject: [PATCH] Fix potions permanente --- module/actor.js | 2 +- module/rdd-main.js | 4 ++-- system.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module/actor.js b/module/actor.js index 717152c0..71a82c8a 100644 --- a/module/actor.js +++ b/module/actor.js @@ -388,7 +388,7 @@ export class RdDActor extends Actor { async verifierPotionsEnchantees() { let potionsEnchantees = this.filterItemsData(it => it.type == 'potion' && it.data.categorie.toLowerCase().includes('enchant')); for (let potion of potionsEnchantees) { - if (!potion.prpermanent) { + if (!potion.data.prpermanent) { console.log(potion); let newPr = (potion.data.pr > 0) ? potion.data.pr - 1 : 0; let update = { _id: potion._id, 'data.pr': newPr }; diff --git a/module/rdd-main.js b/module/rdd-main.js index 69cba903..ba58e175 100644 --- a/module/rdd-main.js +++ b/module/rdd-main.js @@ -233,8 +233,8 @@ function registerUsageCount( registerKey ) { worldKey = randomID(32) game.settings.set(registerKey, "world-key", worldKey ) } - // Simple API counter - $.ajax(`https://jdr.lahiette.com/fvtt_appcount/count.php?name="${registerKey}"&worldKey="${worldKey}"&version="${game.release.generation}.${game.release.build}"&system="${game.system.id}"&systemversion="${game.system.data.version}"`) + let regURL = `https://www.uberwald.me/fvtt_appcount/count.php?name="${registerKey}"&worldKey="${worldKey}"&version="${game.release.generation}.${game.release.build}"&system="${game.system.id}"&systemversion="${game.system.data.version}"` + $.ajax(regURL) /* -------------------------------------------- */ } } diff --git a/system.json b/system.json index d1d18fe4..996af5c3 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "name": "foundryvtt-reve-de-dragon", "title": "Rêve de Dragon", "description": "Rêve de Dragon RPG for FoundryVTT", - "version": "1.5.62", + "version": "1.5.63", "manifestPlusVersion": "1.0.0", "minimumCoreVersion": "0.8.0", "compatibleCoreVersion": "9",