diff --git a/changelog.md b/changelog.md index 56643797..e5227399 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,10 @@ # 13.0 +## 13.0.15 - Les pièces d'Illysis + +- On peut de nouveau acheter dans les commerces +- Corrections V13 + - Les textes sur fond "parchemin" ne sont plus affichés en blanc + ## 13.0.14 - Le familier d'Illysis - Les réussites particulières en demi-surprise sont de simples réussites diff --git a/module/item/item-actions.js b/module/item/item-actions.js index 52aac7b3..1ccf2cad 100644 --- a/module/item/item-actions.js +++ b/module/item/item-actions.js @@ -12,12 +12,13 @@ const _SPACEHOLDER = { placeholder: true } const _VENDRE = { code: 'item-vendre', label: 'Vendre ou donner', icon: it => 'fa-solid fa-comments-dollar', - filter: it => Misc.toInt(it.system.quantite) > 0, + filter: it => Misc.toInt(it.system.quantite) > 0 || it.parent?.type == ACTOR_TYPES.commerce, action: (item, actor) => item.proposerVente() } const _ACHETER = { code: 'item-acheter', label: 'Acheter', icon: it => 'fa-regular fa-coins', - filter: it => Misc.toInt(it.system.quantite) > 0 && it.parent?.type == ACTOR_TYPES.commerce, + filter: it => it.parent?.type == ACTOR_TYPES.commerce, + allowLimited: true, action: (item, actor) => actor.vente(item) } const _MONTRER = { diff --git a/module/settings/status-effects.js b/module/settings/status-effects.js index 06e349e4..878b5141 100644 --- a/module/settings/status-effects.js +++ b/module/settings/status-effects.js @@ -138,7 +138,7 @@ export class StatusEffects extends FormApplication { } static prepareActiveEffect(effectId) { - let status = rddStatusEffects.find(it => it.statuses.has(effectId)) + let status = rddStatusEffects.find(it => it.statuses? it.statuses.has(effectId) : it.id == effectId) if (status) { status = foundry.utils.duplicate(status) status.statuses = new Set([effectId]) diff --git a/templates/actor/commerce-actor-sheet.hbs b/templates/actor/commerce-actor-sheet.hbs index 62b46537..621eb0c1 100644 --- a/templates/actor/commerce-actor-sheet.hbs +++ b/templates/actor/commerce-actor-sheet.hbs @@ -40,6 +40,7 @@
{{> "systems/foundryvtt-reve-de-dragon/templates/actor/commerce-inventaire.hbs"}} + {{log @root.options}} {{#unless system.illimite}} {{#if @root.options.isObserver}}