diff --git a/module/dialog-item-vente.js b/module/dialog-item-vente.js index 4441456f..f0e7055c 100644 --- a/module/dialog-item-vente.js +++ b/module/dialog-item-vente.js @@ -18,7 +18,7 @@ export class DialogItemVente extends Dialog { quantiteNbLots: quantite, quantiteMaxLots: quantite, quantiteMax: quantite, - quantiteIllimite: service? service.system.illimite : !isOwned, + quantiteIllimite: (service && service.system && service.system.illimite) ? service.system.illimite : !isOwned, isOwned: isOwned, }; const html = await renderTemplate(`systems/foundryvtt-reve-de-dragon/templates/dialog-item-vente.html`, venteData); diff --git a/module/item-sheet.js b/module/item-sheet.js index 11b742cb..2eb610a0 100644 --- a/module/item-sheet.js +++ b/module/item-sheet.js @@ -60,7 +60,7 @@ export class RdDItemSheet extends ItemSheet { buttons.unshift({ class: "vendre", icon: "fas fa-comments-dollar", - onclick: ev => this.item.proposerVente() + onclick: ev => this.item.proposerVente({service: this, quantiteMax: 1}) }); } buttons.unshift({ diff --git a/system.json b/system.json index 8b576b21..f97cffcf 100644 --- a/system.json +++ b/system.json @@ -1,8 +1,8 @@ { "id": "foundryvtt-reve-de-dragon", "title": "RĂªve de Dragon", - "version": "10.4.4", - "download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-10.4.4.zip", + "version": "10.4.5", + "download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-10.4.5.zip", "manifest": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/raw/v10/system.json", "compatibility": { "minimum": "10", diff --git a/templates/actor/carac-derivee.html b/templates/actor/carac-derivee.html index fcfeb17c..c50c7b75 100644 --- a/templates/actor/carac-derivee.html +++ b/templates/actor/carac-derivee.html @@ -9,7 +9,7 @@ - +