Add fight options
This commit is contained in:
@ -26,13 +26,17 @@
|
||||
{{!-- Sheet Body --}}
|
||||
<section class="sheet-body">
|
||||
<div class="tab stats" data-group="primary" data-tab="stats">{{>
|
||||
"systems/bol/templates/actor/parts/tabs/actor-stats.hbs"}}</div>
|
||||
"systems/bol/templates/actor/parts/tabs/actor-stats.hbs"}}
|
||||
</div>
|
||||
|
||||
<div class="tab actions" data-group="primary" data-tab="actions">
|
||||
{{> "systems/bol/templates/actor/parts/tabs/actor-actions.hbs"}}
|
||||
</div>
|
||||
|
||||
<div class="tab combat" data-group="primary" data-tab="combat">
|
||||
{{> "systems/bol/templates/actor/parts/tabs/actor-combat.hbs"}}
|
||||
</div>
|
||||
|
||||
<div class="tab features" data-group="primary" data-tab="features">
|
||||
{{> "systems/bol/templates/actor/parts/tabs/actor-features.hbs"}}
|
||||
</div>
|
||||
|
@ -6,6 +6,7 @@
|
||||
{{#if blocking}}<div class="item-field">{{localize "BOL.ui.blocking"}}</div>{{/if}}
|
||||
{{#if weapon}}<div class="item-field">{{localize "BOL.ui.damages"}}</div>{{/if}}
|
||||
{{#if ranged}}<div class="item-field">{{localize "BOL.ui.range"}}</div>{{else}}<div class="item-field"></div>{{/if}}
|
||||
{{#if options}}<div class="item-field">{{localize "BOL.ui.status"}}</div>{{else}}<div class="item-field"></div>{{/if}}
|
||||
</li>
|
||||
{{#each combatType.items as |item id|}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
@ -15,6 +16,15 @@
|
||||
{{#if ../blocking}}<div class="item-field">{{item.data.properties.blocking.malus}}</div>{{/if}}
|
||||
{{#if ../weapon}}<div class="item-field"><a class="rollable" data-roll-type="damage">{{item.data.properties.damage}}</a></div>{{/if}}
|
||||
{{#if ../ranged}}<div class="item-field">{{item.data.properties.range}}</div>{{else}}<div class="item-field"></div>{{/if}}
|
||||
{{#if ../options}}<div class="item-field">
|
||||
{{#if item.data.properties.activated}}
|
||||
<a class="toggle-fight-option">{{localize "BOL.ui.toactivated"}}</a>
|
||||
{{else}}
|
||||
<a class="toggle-fight-option">{{localize "BOL.ui.todeactivated"}}</a>
|
||||
{{/if}}
|
||||
</div>{{else}}
|
||||
<div class="item-field"></div>
|
||||
{{/if}}
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
|
14
templates/chat/chat-activate-fight-option.hbs
Normal file
14
templates/chat/chat-activate-fight-option.hbs
Normal file
@ -0,0 +1,14 @@
|
||||
<div>
|
||||
<img class="chat-icon" src="{{img}}" alt="{{name}}"/>
|
||||
<h2 class="good"><strong>{{name}}</strong></h2>
|
||||
</div>
|
||||
|
||||
<div class="flexrow">
|
||||
{{#if state}}
|
||||
{{name}} active son option de combat {{foName}} pour ce round !
|
||||
{{else}}
|
||||
{{name}} désactive son option de combat {{foName}} pour ce round !
|
||||
{{/if}}
|
||||
|
||||
</div>
|
||||
|
@ -1,41 +0,0 @@
|
||||
<div class="chat-message-header flexrow">
|
||||
<img class="chat-icon" src="{{actorImg}}" alt="{{alias}}"/>
|
||||
<h4 class=chat-actor-name>{{alias}}</h4>
|
||||
</div>
|
||||
<div class="flexrow">
|
||||
<h3>
|
||||
{{#if (eq mode "attribute")}}
|
||||
{{localize attribute.label}}
|
||||
{{else}}
|
||||
{{#if (eq mode "career")}}
|
||||
{{localize "Career"}} : {{career.name}}
|
||||
{{else}}
|
||||
{{#if (eq mode "weapon")}}
|
||||
{{localize "Attack with"}} {{weapon.name}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</h3>
|
||||
</div>
|
||||
<div class="dice-roll">
|
||||
<div class="dice-result">
|
||||
<div class="dice-formula">{{formula}}</div>
|
||||
<div class="dice-formula">{{modifier}}</div>
|
||||
<div class="dice-tooltip" style="display: none;">
|
||||
<section class="tooltip-part">
|
||||
<div class="dice">
|
||||
<header class="part-header flexrow">
|
||||
<span class="part-formula">{{formula}}</span>
|
||||
<span class="part-total">{{finalScore}}</span>
|
||||
</header>
|
||||
<ol class="dice-rolls">
|
||||
<li class="roll die d6 discarded min">1</li>
|
||||
<li class="roll die d6">2</li>
|
||||
<li class="roll die d6">3</li>
|
||||
</ol>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<h4 class="dice-total">{{finalScore}}</h4>
|
||||
</div>
|
||||
</div>
|
@ -1,5 +1,7 @@
|
||||
<img class="chat-icon" src="{{img}}" alt="{{name}}"/>
|
||||
<h3><strong>{{name}}</strong></h3>
|
||||
<div>
|
||||
<img class="chat-icon" src="{{img}}" alt="{{name}}"/>
|
||||
<h2 class="bad"><strong>{{name}}</strong></h2>
|
||||
</div>
|
||||
|
||||
<div class="flexrow">
|
||||
|
||||
|
@ -5,4 +5,5 @@
|
||||
<div id="{{applyId}}">
|
||||
<button class="chat-damage-apply" data-attack-id="{{id}}">Appliquer les dommages à la cible</button>
|
||||
</div>
|
||||
<br>
|
||||
{{/if}}
|
||||
|
@ -1,21 +1,30 @@
|
||||
<img class="chat-icon" src="{{actor.img}}" alt="{{actor.name}}"/>
|
||||
{{#if isSuccess}}
|
||||
{{#if isCritical}}
|
||||
<h2 class="success critical"><i class="fas fa-check-double"></i> {{localize "BOL.ui.critical"}}...</h2>
|
||||
{{else}}
|
||||
<h2 class="success"><i class="fas fa-check"></i> {{localize "BOL.ui.success"}}...</h2>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{#if isFailure}}
|
||||
{{#if isFumble}}
|
||||
<h2 class="failure fumble"><i class="fas fa-skull-crossbones"></i> {{localize "BOL.ui.fumble"}}...</h2>
|
||||
{{else}}
|
||||
<h2 class="failure"><i class="fas fa-times"></i> {{localize "BOL.ui.failure"}}...</h2>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
<div>
|
||||
{{#if isSuccess}}
|
||||
{{#if isCritical}}
|
||||
<h2 class="success critical"><i class="fas fa-check-double"></i> {{localize "BOL.ui.critical"}}...
|
||||
{{else}}
|
||||
<h2 class="success"><i class="fas fa-check"></i> {{localize "BOL.ui.success"}}...
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{#if isFailure}}
|
||||
{{#if isFumble}}
|
||||
<h2 class="failure fumble"><i class="fas fa-skull-crossbones"></i> {{localize "BOL.ui.fumble"}}...
|
||||
{{else}}
|
||||
<h2 class="failure"><i class="fas fa-times"></i> {{localize "BOL.ui.failure"}}...
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
<img class="chat-icon" src="{{actor.img}}" alt="{{actor.name}}"/>
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
<h3><strong>{{description}}</strong></h3>
|
||||
|
||||
{{#if fightOption}}
|
||||
<div>
|
||||
Option de combat : {{fightOption.name}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div id="{{optionsId}}">
|
||||
{{#if (and isSuccess weapon)}}
|
||||
{{> "systems/bol/templates/chat/rolls/attack-damage-card.hbs"}}
|
||||
@ -33,4 +42,5 @@
|
||||
{{#if isRealCritical}}
|
||||
<button class="chat-button button transform-heroic-roll" data-roll-id=="{{rollId}}" data-actor-id="{{actor.id}}">Transformer en succes héroique (1 P. Heroisme)</button>
|
||||
{{/if}}
|
||||
<br>
|
||||
</div>
|
@ -1,6 +1,10 @@
|
||||
<img class="chat-icon" src="{{defender.img}}" alt="{{defender.name}}"/>
|
||||
Va encaisser {{damageTotal}} dégats !
|
||||
|
||||
{{#if damagesIgnoresArmor}}
|
||||
<br>C'est une attaque au défaut de l'armure : vous devez encaisser SANS la protection de l'armure !
|
||||
{{/if}}
|
||||
|
||||
<button class="damage-handling" data-defense-mode="damage-with-armor" data-attack-id="{{attackId}}">Encaisser avec la protection de l'armure</button>
|
||||
<button class="damage-handling" data-defense-mode="damage-without-armor" data-attack-id="{{attackId}}">Encaisser sans la protection de l'armure</button>
|
||||
|
||||
|
10
templates/dialogs/fightoptions-roll-part.hbs
Normal file
10
templates/dialogs/fightoptions-roll-part.hbs
Normal file
@ -0,0 +1,10 @@
|
||||
{{#if fightOption}}
|
||||
<div class="flexrow" style="margin-bottom: 1px;">
|
||||
<div class="flex1 center bg-darkred">
|
||||
<label for="fg">{{localize 'BOL.ui.fightOption'}}</label>
|
||||
</div>
|
||||
<div class="flex1 center cell">
|
||||
{{fightOption.name}}
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
@ -45,10 +45,12 @@
|
||||
|
||||
{{> "systems/bol/templates/dialogs/flaws-roll-part.hbs"}}
|
||||
|
||||
{{> "systems/bol/templates/dialogs/fightoptions-roll-part.hbs"}}
|
||||
|
||||
{{> "systems/bol/templates/dialogs/adv-roll-part.hbs"}}
|
||||
|
||||
{{> "systems/bol/templates/dialogs/mod-roll-part.hbs"}}
|
||||
|
||||
{{> "systems/bol/templates/dialogs/total-roll-part.hbs"}}
|
||||
|
||||
</form>
|
||||
</form>
|
||||
|
@ -12,9 +12,9 @@
|
||||
{{#if (equals data.subtype "career")}}
|
||||
{{> "systems/bol/templates/item/parts/properties/feature/career-properties.hbs"}}
|
||||
{{/if}}
|
||||
{{!#if (equals data.subtype "origin")}}
|
||||
{{!> "systems/bol/templates/item/parts/properties/feature/origin-properties.hbs"}}
|
||||
{{!/if}}
|
||||
{{#if (equals data.subtype "fightoption")}}
|
||||
{{> "systems/bol/templates/item/parts/properties/feature/fightoption-properties.hbs"}}
|
||||
{{/if}}
|
||||
{{!#if (equals data.subtype "race")}}
|
||||
{{!> "systems/bol/templates/item/parts/properties/feature/race-properties.hbs"}}
|
||||
{{!/if}}
|
||||
|
@ -0,0 +1,19 @@
|
||||
<h3 class="form-header">{{localize "BOL.ui.fightOption"}}</h3>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="property-label">{{localize "BOL.ui.fightOptionType"}}</label>
|
||||
<div class="form-fields">
|
||||
<select name="data.properties.fightoptiontype" data-dtype="String">
|
||||
{{#select data.properties.fightoptiontype}}
|
||||
{{#each config.fightOptionTypes as |item id|}}
|
||||
<option value="{{id}}">{{localize item}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "BOL.ui.activated"}}</label>
|
||||
<input class="field-value" type="checkbox" name="data.properties.activated" {{checked data.properties.activated}}>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user