Cacher le cout de l'équipement des PJs

This commit is contained in:
Vincent Vandemeulebrouck
2021-05-06 19:42:29 +02:00
parent 67631a46df
commit b531e97fd1
12 changed files with 24 additions and 19 deletions

View File

@ -5,6 +5,8 @@ import { RdDAlchimie } from "./rdd-alchimie.js";
import { RdDItemCompetence } from "./item-competence.js";
import { RdDHerbes } from "./rdd-herbes.js";
import { Misc } from "./misc.js";
import { HtmlUtility } from "./html-utility.js";
import { ReglesOptionelles } from "./regles-optionelles.js";
/**
* Extend the basic ItemSheet with some very simple modifications
@ -102,6 +104,8 @@ export class RdDItemSheet extends ItemSheet {
activateListeners(html) {
super.activateListeners(html);
HtmlUtility._showControlWhen($(".item-cout"), ReglesOptionelles.isUsing('afficher-prix-joueurs') || game.user.isGM || !this.object.isOwned);
// Everything below here is only needed if the sheet is editable
if (!this.options.editable) return;