Fix stress & achats

This commit is contained in:
LeRatierBretonnien 2022-12-31 11:45:54 +01:00
parent 09bf28eed1
commit c2a3b5e246
4 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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({

View File

@ -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",

View File

@ -9,7 +9,7 @@
<label class="flexrow derivee-label">{{system.compteurs.stress.label}}
<a class="stress-test" title="Transformer le stress"><i class="fa-regular fa-moon"></i></a>
</label>
<input class="derivee-value" type="text" name="{{system.compteurs.stress.value}}" value="{{system.compteurs.stress.value}}" data-dtype="number"/>
<input class="derivee-value" type="text" name="system.compteurs.stress.value" value="{{system.compteurs.stress.value}}" data-dtype="number"/>
</li>
<li class="caracteristique flexrow list-item">
<label class="derivee-label">{{system.compteurs.moral.label}}