Fix armes de tir
This commit is contained in:
parent
43ca970dbd
commit
131629fdb5
@ -394,7 +394,7 @@ export class VadentisActor extends Actor {
|
||||
if ( target ) {
|
||||
let arme = this.data.items.find( item => (item.type == 'armecc' || item.type == 'tir') && item._id == armeId);
|
||||
if (arme) {
|
||||
if ( arme == 'tir' && arme.data.munition <= 0 ) {
|
||||
if ( arme.type == 'tir' && arme.data.munition <= 0 ) {
|
||||
ui.notifications.warn("Vous n'avez plus de munitions avec cette arme.");
|
||||
return;
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
"name": "foundryvtt-vadentis",
|
||||
"title": "Vadentis",
|
||||
"description": "Système Vadentis pour FoundryVTT",
|
||||
"version": "0.1.4",
|
||||
"version": "0.1.5",
|
||||
"manifestPlusVersion": "1.0.0",
|
||||
"minimumCoreVersion": "0.7.5",
|
||||
"compatibleCoreVersion": "0.7.9",
|
||||
|
@ -271,7 +271,7 @@
|
||||
{{#if arme.data.equipee}}
|
||||
<li class="item flexrow list-item" data-item-id="{{arme._id}}">
|
||||
<img class="sheet-competence-img" src="{{arme.img}}"/>
|
||||
<span class="arme-label"><a>{{arme.name}}</a></span>
|
||||
<span class="arme-label"><a>{{arme.name}} {{#if (eq arme.type "tir")}}({{arme.data.munition}}){{/if}}</a></span>
|
||||
<span class="generic-label"><a class="weapon-damage">{{arme.data.damage}}</a> / <a class="weapon-damage-critical">{{arme.data.criticaldamage}}</a></span>
|
||||
</li>
|
||||
{{/if}}
|
||||
@ -338,7 +338,7 @@
|
||||
{{#each armes as |arme key|}}
|
||||
<li class="item flexrow list-item" data-item-id="{{arme._id}}">
|
||||
<img class="sheet-competence-img" src="{{arme.img}}"/>
|
||||
<span class="arme-label">{{arme.name}}</span>
|
||||
<span class="arme-label">{{arme.name}} {{#if (eq arme.type "tir")}}({{arme.data.munition}}){{/if}}</span>
|
||||
<div class="item-controls">
|
||||
<a class="item-control item-equip" title="Equipé">{{#if arme.data.equipee}}<i class="fas fa-circle"></i>{{else}}<i class="fas fa-genderless"></i>{{/if}}</a>
|
||||
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
||||
|
Loading…
Reference in New Issue
Block a user