Suppression de vente depuis un "service"

This commit is contained in:
2023-01-01 22:16:26 +01:00
parent d7e5a09540
commit 274009d3fa
8 changed files with 23 additions and 32 deletions

View File

@ -47,7 +47,7 @@ export class RdDItemService extends RdDItem {
async vendre(subItem) {
const item = await RdDItem.getCorrespondingItem(subItem);
const quantiteMax = this.system.illimite ? undefined : subItem.system.quantite;
await item.proposerVente({ service: this, quantiteMax });
await item.proposerVente(quantiteMax);
}
async acheter(acheteur, subItem) {