Enhance armes+armures
This commit is contained in:
@ -150,9 +150,14 @@
|
||||
</li>
|
||||
<li class="item flexrow list-item carac-box">
|
||||
<label class="item-left-pad item-field item-field-label-medium">Bienveillance</label>
|
||||
<input class="input-numeric-short" type="text" name="system.bienveillance.value" data-dtype="Number" />
|
||||
<label class="item-field item-field-label-long"></label>
|
||||
<label class="item-field item-field -label-short"></label>
|
||||
<input class="input-numeric-short" type="text" name="system.bienveillance.value" value="{{system.bienveillance.value}}" data-dtype="Number" />
|
||||
<label class="item-left-pad item-field item-field-label-medium">Bonus dégats</label>
|
||||
<input class="input-numeric-short" type="text" value="{{bonusDegats.label}}" disabled data-dtype="Number" />
|
||||
</li>
|
||||
<li class="item flexrow list-item carac-box">
|
||||
<label class="item-left-pad item-field item-field-label-medium">Armures Lourdes</label>
|
||||
<input class="input-numeric-short" type="text" value="{{nbArmuresLourdes}}" disabled data-dtype="Number" /> /
|
||||
<input class="input-numeric-short" type="text" value="{{pointsArmuresLourdes.value}}" disabled data-dtype="Number" />
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
31
templates/chat/chat-blessure-result.hbs
Normal file
31
templates/chat/chat-blessure-result.hbs
Normal file
@ -0,0 +1,31 @@
|
||||
<div class="chat-message-header">
|
||||
{{#if actorImg}}
|
||||
<img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />
|
||||
{{/if}}
|
||||
<h4 class="chat-actor-name">{{alias}}</h4>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
{{#if img}}
|
||||
<div >
|
||||
<img class="chat-icon" src="{{img}}" alt="{{name}}" />
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="flexcol">
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<ul>
|
||||
{{#if blessure}}
|
||||
<li>{{defenderName}} a subi une blessure!</li>
|
||||
<li>Gravité : {{blessure.name}}</li>
|
||||
<li>Localisation : {{loc.label}}</li>
|
||||
{{else}}
|
||||
<li>Aucune blessure subie par {{defenderName}}</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
@ -33,9 +33,19 @@
|
||||
{{#if enableProvidence}}
|
||||
<li>Un niveau de Providence a été utilisé !</li>
|
||||
{{/if}}
|
||||
{{#if isViser}}
|
||||
<li>Bonus de visée (+1 niveau)</li>
|
||||
{{/if}}
|
||||
{{#if isMouvement}}
|
||||
<li>Malus de cible petite ou en mouvement (-1 niveau)</li>
|
||||
{{/if}}
|
||||
|
||||
<li>Dés: {{diceFormula}} </li>
|
||||
<li>Difficulté: {{difficulty}} </li>
|
||||
{{#if isTir}}
|
||||
<li>Portée: {{porteeLabel}} ( {{difficulty}} )</li>
|
||||
{{else}}
|
||||
<li>Difficulté: {{difficulty}} </li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@ -53,6 +63,12 @@
|
||||
<li><strong class="chat-result-failure">Echec critique ! 1 XP gagné en {{carac.name}}.</strong> </li>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{#if loc}}
|
||||
<li><strong>Attaque réussie !!</strong> </li>
|
||||
<li>Localisation: {{loc.label}} </li>
|
||||
<li>Dégats: {{degats}} {{#if isReussiteCritique}}(Augmentez la gravité de la blessure d'un niveau){{/if}}</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
<div>
|
||||
<a class="chat-command-button" data-chat-command="opposition">
|
||||
|
@ -40,12 +40,37 @@
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if arme}}
|
||||
{{#if isTir}}
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">Portée : </span>
|
||||
<select class="" type="text" id="roll-portee-tir" value="{{porteeTir}}" data-dtype="String">
|
||||
{{#select porteeTir}}
|
||||
{{#each config.ARME_PORTEES as |portee key|}}
|
||||
<option value="{{key}}">{{portee.label}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">Viser : </span>
|
||||
<input type="checkbox" id="roll-tir-viser" {{checked isViser}} />
|
||||
</div>
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">Cible petite/en mouvement : </span>
|
||||
<input type="checkbox" id="roll-tir-mouvement" {{checked isMouvement}} />
|
||||
</div>
|
||||
{{else}}
|
||||
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">Difficulté : </span>
|
||||
<select class="" type="text" id="roll-difficulty" value="{{difficulty}}" data-dtype="String">
|
||||
{{selectOptions config.difficulte selected=difficulty valueAttr="key" labelAttr="label"}}
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -45,6 +45,12 @@
|
||||
name="system.degats" value="{{system.degats}}" data-dtype="String" />
|
||||
</li>
|
||||
|
||||
<li class="flexrow">
|
||||
<label class="item-name-label-long">Valeur d'echec critique (ie 1 par défaut)</label>
|
||||
<input type="text" class="padd-right numeric-input item-field-label-short"
|
||||
name="system.valeurEchecCritique" value="{{system.valeurEchecCritique}}" data-dtype="Numeric" />
|
||||
</li>
|
||||
|
||||
{{#if (eq system.typeArme "melee")}}
|
||||
<li class="flexrow">
|
||||
<label class="item-name-label-long">Allonge</label>
|
||||
@ -66,6 +72,11 @@
|
||||
{{selectOptions config.competencesRecharge selected=system.competenceRecharge labelAttr="label"}}
|
||||
</select>
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="item-name-label-long">Dégâts avec crosse (si applicable)</label>
|
||||
<input type="text" class="padd-right numeric-input item-field-label-short"
|
||||
name="system.degatscrosse" value="{{system.degatscrosse}}" data-dtype="String" />
|
||||
</li>
|
||||
{{/if}}
|
||||
|
||||
{{#each system.specificites as |spec specId|}}
|
||||
|
@ -18,6 +18,12 @@
|
||||
|
||||
<div class="tab" data-group="primary">
|
||||
<ul>
|
||||
<li class="flexrow">
|
||||
<label class="item-name-label-long">Type d'armure</label>
|
||||
<select name="system.typeArmure">
|
||||
{{selectOptions config.armureTypes selected=system.typeArmure labelAttr="label"}}
|
||||
</select>
|
||||
</li>
|
||||
|
||||
{{#each system.localisation as |armure armId|}}
|
||||
<li class="flexrow">
|
||||
@ -31,7 +37,25 @@
|
||||
<input type="text" class="padd-right numeric-input item-field-label-short"
|
||||
name="system.protection" value="{{system.protection}}" data-dtype="Number" />
|
||||
</li>
|
||||
|
||||
|
||||
<li class="flexrow">
|
||||
<label class="item-name-label-long">Cout en pièces d'Armure Lourde</label>
|
||||
<input type="text" class="padd-right numeric-input item-field-label-short"
|
||||
name="system.coutArmureLourde" value="{{system.coutArmureLourde}}" data-dtype="Number" />
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="item-name-label-long">Superposable avec du cuir?</label>
|
||||
<input type="checkbox" name="system.superposableCuir" {{checked system.superposableCuir}} />
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="item-name-label-long">Superposable avec armures de maille?</label>
|
||||
<input type="checkbox" name="system.superposableMaille" {{checked system.superposableMaille}} />
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="item-name-label-long">Superposable avec armures de plate?</label>
|
||||
<input type="checkbox" name="system.superposablePlate" {{checked system.superposablePlate}} />
|
||||
</li>
|
||||
|
||||
<li class="flexrow">
|
||||
<label class="item-name-label-long">Equipé?</label>
|
||||
<input type="checkbox" name="system.equipe" {{checked system.equipe}} />
|
||||
|
Reference in New Issue
Block a user