From 3aa8c0f0affc19dfa7fd9ce725950fcf5df3b2f4 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Sun, 1 Sep 2024 20:39:25 +0200 Subject: [PATCH] Fix weapon in the HUD --- module/rdd-empoignade.js | 2 +- module/rdd-possession.js | 2 +- module/rdd-utility.js | 2 +- styles/simple.css | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module/rdd-empoignade.js b/module/rdd-empoignade.js index e8a9f1ce..49778fd2 100644 --- a/module/rdd-empoignade.js +++ b/module/rdd-empoignade.js @@ -427,7 +427,7 @@ export class RdDEmpoignade { name: "Empoignade en cours de " + attacker.name + ' sur ' + defender.name, type: 'empoignade', img: "systems/foundryvtt-reve-de-dragon/icons/entites/possession2.webp", - system: { description: "", empoignadeid: randomID(16), compteempoigne: 0, empoigneurid: attacker.id, empoigneid: defender.id, ptsemp: 0, empoigneurname: attacker.name, empoignename: defender.name } + system: { description: "", empoignadeid: foundry.utils.randomID(16), compteempoigne: 0, empoigneurid: attacker.id, empoigneid: defender.id, ptsemp: 0, empoigneurname: attacker.name, empoignename: defender.name } }, { temporary: true diff --git a/module/rdd-possession.js b/module/rdd-possession.js index eb67f7d1..93409689 100644 --- a/module/rdd-possession.js +++ b/module/rdd-possession.js @@ -230,7 +230,7 @@ export class RdDPossession { system: { description: "", typepossession: attacker.name, possede: false, - possessionid: randomID(16), + possessionid: foundry.utils.randomID(16), entite: { actorid: attacker.id }, victime: { actorid: defender.id }, compteur: 0 diff --git a/module/rdd-utility.js b/module/rdd-utility.js index 3b9d8855..661d9cf8 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -769,7 +769,7 @@ export class RdDUtility { /* -------------------------------------------- */ static createMonnaie(name, cout, img = "", enc = 0.01) { let piece = { - name: name, type: 'monnaie', img: img, _id: randomID(16), + name: name, type: 'monnaie', img: img, _id: foundry.utils.randomID(16), dasystemta: { quantite: 0, cout: cout, diff --git a/styles/simple.css b/styles/simple.css index 0a14100c..da09b65a 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -1374,7 +1374,7 @@ table.table-nombres-astraux tr:hover { flex-direction: column; position: absolute; top: 4.6rem; - right: 3.5rem; + left: -19rem; } .token-hud-ext.soins { flex-direction: column;