v10.4.9 #603

Merged
uberwald merged 3 commits from VincentVk/foundryvtt-reve-de-dragon:v10 into v10 2023-01-05 16:11:18 +01:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 46df3d9f11 - Show all commits

View File

@ -310,7 +310,7 @@ export class RdDBaseActor extends Actor {
async decrementerQuantiteItem(item, quantite, options = { supprimerSiZero: true }) {
if (itemVendu.isService()) {
if (item.isService()) {
return;
}
let resteQuantite = (item.system.quantite ?? 1) - quantite;

View File

@ -39,11 +39,11 @@ export class RdDCommerce extends RdDBaseActor {
// ne pas consommer pour un commerce
}
async decrementerQuantiteItem(itemVendu, quantite) {
async decrementerQuantiteItem(item, quantite) {
if (this.system.illimite) {
return;
}
await super.decrementerQuantiteItem(itemVendu, quantite, { supprimerSiZero: false });
await super.decrementerQuantiteItem(item, quantite, { supprimerSiZero: false });
}
calculerPrix(item) {