From b1b56c13bf319807ddaf22a144419fe219e2d433 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Mon, 20 Nov 2023 17:19:52 +0100 Subject: [PATCH] =?UTF-8?q?Montrer=20les=20armes=20cass=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Vu qu'elles ne peuvent pas être utilisées, permet de savoir pourquoi --- module/actor/base-actor-reve.js | 9 ++++++--- module/rdd-combat.js | 4 ++-- module/rdd-utility.js | 1 + styles/img/ui/broken.svg | 1 + styles/img/ui/icone_parchement_vierge.webp | Bin 0 -> 9750 bytes styles/simple.css | 7 +++++++ templates/actor/combat.html | 1 + templates/actor/inventaire-item.html | 13 +++++++++---- templates/item-arme-sheet.html | 3 ++- templates/item/icon-arme-broken.hbs | 3 +++ 10 files changed, 32 insertions(+), 10 deletions(-) create mode 100644 styles/img/ui/broken.svg create mode 100644 styles/img/ui/icone_parchement_vierge.webp create mode 100644 templates/item/icon-arme-broken.hbs diff --git a/module/actor/base-actor-reve.js b/module/actor/base-actor-reve.js index 5395161d..d6f5988f 100644 --- a/module/actor/base-actor-reve.js +++ b/module/actor/base-actor-reve.js @@ -362,6 +362,10 @@ export class RdDBaseActorReve extends RdDBaseActor { */ rollArme(arme, categorieArme = "competence") { let compToUse = this.$getCompetenceArme(arme, categorieArme) + if (!RdDItemArme.isArmeUtilisable(arme)) { + ui.notifications.warn(`Arme inutilisable: ${arme.name} a une résistance de 0 ou moins`) + return + } if (!Targets.hasTargets()) { RdDConfirm.confirmer({ settingConfirmer: "confirmer-combat-sans-cible", @@ -374,17 +378,16 @@ export class RdDBaseActorReve extends RdDBaseActor { this.rollCompetence(compToUse, { tryTarget: false }) } }); - return; + return } Targets.selectOneToken(target => { if (Targets.isTargetEntite(target)) { ui.notifications.warn(`Vous ne pouvez pas attaquer une entité non incarnée avec votre ${arme.name}!!!!`); - return; + return } const competence = this.getCompetence(compToUse) - //console.log("RollArme", competence, arme) if (competence.isCompetencePossession()) { return RdDPossession.onAttaquePossession(target, this, competence); } diff --git a/module/rdd-combat.js b/module/rdd-combat.js index b8dbb066..1458a16c 100644 --- a/module/rdd-combat.js +++ b/module/rdd-combat.js @@ -754,11 +754,11 @@ export class RdDCombat { /* -------------------------------------------- */ async attaque(competence, arme) { if (!await this.attacker.accorder(this.defender, 'avant-attaque')) { - return; + return } if (arme.system.cac == 'empoignade') { RdDEmpoignade.onAttaqueEmpoignade(this.attacker, this.defender) - return; + return } RdDEmpoignade.checkEmpoignadeEnCours(this.attacker) diff --git a/module/rdd-utility.js b/module/rdd-utility.js index 362744b9..d2a71c6b 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -174,6 +174,7 @@ export class RdDUtility { 'systems/foundryvtt-reve-de-dragon/templates/scripts/autocomplete-script.hbs', 'systems/foundryvtt-reve-de-dragon/templates/scripts/autocomplete.hbs', 'systems/foundryvtt-reve-de-dragon/templates/item/boutons-comestible.html', + 'systems/foundryvtt-reve-de-dragon/templates/item/icon-arme-broken.hbs', 'systems/foundryvtt-reve-de-dragon/templates/item/temporel.hbs', 'systems/foundryvtt-reve-de-dragon/templates/item/partial-inventaire.html', 'systems/foundryvtt-reve-de-dragon/templates/item/partial-environnement.html', diff --git a/styles/img/ui/broken.svg b/styles/img/ui/broken.svg new file mode 100644 index 00000000..ae4ffc5c --- /dev/null +++ b/styles/img/ui/broken.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/styles/img/ui/icone_parchement_vierge.webp b/styles/img/ui/icone_parchement_vierge.webp new file mode 100644 index 0000000000000000000000000000000000000000..63d17b66d8c29442a61184750894ec142731b311 GIT binary patch literal 9750 zcmV+xCh6HyNk&EvCIA3eMM6+kP&il$0000G000300RaC206|PpNbD8>009|BZ6rBT zmG;-opYWy&1S0xB0SVBu&d@Vm9DWb`npeH@Z&B(|LOL}-!%@(-jdV%)v%VieL`=W{ z&?-Qgt($Dxsd0G52cBNw^gjXHMN|j{0&-;As+GOZ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jmYZWULt$JkhmUiV1(#HH&)N~N=!d0D{(fw)IUP6(63MtGlJ$7t2DV?VE=@S0u(@C>p5CYamT>*F@K-=oG-zAfZtEGGLID>vd!q8 zxrDHB!2`{82(oPgjBu_~^N)VYO}4!h;#eC>R|5ViBLGk(rbkRAl7dW1Rx%770_6G|0*UJ8l4NYOxE6#iXh7$-B kF4iMG&D3T87&xwDtFXqfJ>@z3W8pai;A6knj*7650J2-A)&Kwi literal 0 HcmV?d00001 diff --git a/styles/simple.css b/styles/simple.css index a5f8122d..608e94c5 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -211,6 +211,13 @@ i:is(.fas, .far) { margin-right: 5px; object-position: 50% 0; } +.system-foundryvtt-reve-de-dragon img.equipement-inutilisable { + vertical-align: bottom ; + max-width: 1.4rem; + max-height: 1.4rem; + border: 1px; + background: center / contain no-repeat url('img/ui/icone_parchement_vierge.webp'); +} .system-foundryvtt-reve-de-dragon .sheet-header .header-compteurs { width: calc(60% - 110px - 1rem); diff --git a/templates/actor/combat.html b/templates/actor/combat.html index 90fd7b2f..f41ee329 100644 --- a/templates/actor/combat.html +++ b/templates/actor/combat.html @@ -19,6 +19,7 @@ {{arme.name}} ({{arme.system.competence}}) + {{>"systems/foundryvtt-reve-de-dragon/templates/item/icon-arme-broken.hbs" arme}} {{plusMoins arme.system.niveau}} {{plusMoins arme.system.dommagesReels}} diff --git a/templates/actor/inventaire-item.html b/templates/actor/inventaire-item.html index 79ba1eaf..7e0e75da 100644 --- a/templates/actor/inventaire-item.html +++ b/templates/actor/inventaire-item.html @@ -8,11 +8,16 @@ {{else if ouvert}}far fa-minus-square {{else}}far fa-plus-square {{/if~}}"> - {{/if}} - - {{item.name}} - {{#if (eq item.type 'conteneur')}} + + {{item.name}} + {{else}} + + {{item.name}} + {{#if (eq item.type 'arme')}} + {{>"systems/foundryvtt-reve-de-dragon/templates/item/icon-arme-broken.hbs" item}} + {{/if}} + {{/if}} diff --git a/templates/item-arme-sheet.html b/templates/item-arme-sheet.html index fa911035..74e0c45c 100644 --- a/templates/item-arme-sheet.html +++ b/templates/item-arme-sheet.html @@ -46,7 +46,8 @@
- + + {{>"systems/foundryvtt-reve-de-dragon/templates/item/icon-arme-broken.hbs"}}
diff --git a/templates/item/icon-arme-broken.hbs b/templates/item/icon-arme-broken.hbs new file mode 100644 index 00000000..bfc3409e --- /dev/null +++ b/templates/item/icon-arme-broken.hbs @@ -0,0 +1,3 @@ +{{#if (lte system.resistance 0)}} + +{{/if}}