Fix potions permanente

This commit is contained in:
sladecraven 2022-03-02 20:19:02 +01:00
parent a3e1c2e1fc
commit 2ce8b35da0
3 changed files with 4 additions and 4 deletions

View File

@ -388,7 +388,7 @@ export class RdDActor extends Actor {
async verifierPotionsEnchantees() { async verifierPotionsEnchantees() {
let potionsEnchantees = this.filterItemsData(it => it.type == 'potion' && it.data.categorie.toLowerCase().includes('enchant')); let potionsEnchantees = this.filterItemsData(it => it.type == 'potion' && it.data.categorie.toLowerCase().includes('enchant'));
for (let potion of potionsEnchantees) { for (let potion of potionsEnchantees) {
if (!potion.prpermanent) { if (!potion.data.prpermanent) {
console.log(potion); console.log(potion);
let newPr = (potion.data.pr > 0) ? potion.data.pr - 1 : 0; let newPr = (potion.data.pr > 0) ? potion.data.pr - 1 : 0;
let update = { _id: potion._id, 'data.pr': newPr }; let update = { _id: potion._id, 'data.pr': newPr };

View File

@ -233,8 +233,8 @@ function registerUsageCount( registerKey ) {
worldKey = randomID(32) worldKey = randomID(32)
game.settings.set(registerKey, "world-key", worldKey ) game.settings.set(registerKey, "world-key", worldKey )
} }
// Simple API counter 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(`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}"`) $.ajax(regURL)
/* -------------------------------------------- */ /* -------------------------------------------- */
} }
} }

View File

@ -2,7 +2,7 @@
"name": "foundryvtt-reve-de-dragon", "name": "foundryvtt-reve-de-dragon",
"title": "Rêve de Dragon", "title": "Rêve de Dragon",
"description": "Rêve de Dragon RPG for FoundryVTT", "description": "Rêve de Dragon RPG for FoundryVTT",
"version": "1.5.62", "version": "1.5.63",
"manifestPlusVersion": "1.0.0", "manifestPlusVersion": "1.0.0",
"minimumCoreVersion": "0.8.0", "minimumCoreVersion": "0.8.0",
"compatibleCoreVersion": "9", "compatibleCoreVersion": "9",