Gestion de jets de competences et modificateurs associés
This commit is contained in:
@ -38,34 +38,34 @@
|
||||
<div class="tab principal" data-group="primary" data-tab="principal">
|
||||
|
||||
<div class="grid grid-2col">
|
||||
<ul>
|
||||
|
||||
<ul class="item-list alternate-list">
|
||||
{{#each caracList as |char key|}}
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-medium">{{char.name}}</label>
|
||||
<li class="item flexrow list-item carac-box">
|
||||
<label class="item-left-pad item-field item-field-label-medium">{{char.name}}</label>
|
||||
<select type="text" class="input-numeric-short" name="system.caracteristiques.{{key}}.value"data-dtype="Number" />
|
||||
{{selectOptions @root.config.descriptionValeur selected=char.value labelAttr="valeur"}}
|
||||
</select>
|
||||
<label class="">{{char.qualite}}</label>
|
||||
<label class="">{{char.dice}}</label>
|
||||
<label class="">{{char.negativeDice}}</label>
|
||||
<label class="item-field item-field-label-medium">{{char.qualite}}</label>
|
||||
<label class="item-field item-field-label-medium">{{char.dice}} ({{char.negativeDice}})</label>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li class="flexrow">
|
||||
<label class="item-field-label-medium">Providence</label>
|
||||
<ul class="item-list alternate-list">
|
||||
<li class="item flexrow list-item carac-box">
|
||||
<label class="item-left-pad item-field item-field-label-medium">Providence</label>
|
||||
<select type="text" class="input-numeric-short" name="system.providence.value" data-dtype="Number" />
|
||||
{{selectOptions @root.config.providence selected=providence.value nameAttr="value" valueAttr="value" labelAttr="value"}}
|
||||
</select>
|
||||
<label class="item-field-label-long">{{providence.qualite}}</label>
|
||||
<label class="item-field-label-short">{{providence.dice}}</label>
|
||||
<label class="item-field item-field-label-long">{{providence.qualite}}</label>
|
||||
<label class="item-field item-field-label-short">{{providence.dice}}</label>
|
||||
</li>
|
||||
<li class="flexrow">
|
||||
<label class="">Bienveillance</label>
|
||||
<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-label-long"></label>
|
||||
<label class="item-field-label-short"></label>
|
||||
<label class="item-field item-field-label-long"></label>
|
||||
<label class="item-field item-field -label-short"></label>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@ -79,76 +79,27 @@
|
||||
{{#each arbreCompetences as |carac key|}}
|
||||
<ul>
|
||||
<li class="flexrow">
|
||||
<h3 class="item-field-label-medium" data-tooltip="Caracteristique">{{carac.name}}</h3>
|
||||
<label class="">{{carac.value}}</label>
|
||||
<label class="">{{carac.qualite}}</label>
|
||||
<label class="">{{carac.dice}}</label>
|
||||
<label class="">{{carac.negativeDice}}</label>
|
||||
<h3 class="item-field-label-long14" data-tooltip="Caracteristique">{{carac.name}} : {{carac.qualite}}</h3>
|
||||
<label class="item-field item-field-label-short">{{carac.value}}</label>
|
||||
<label class="item-field item-field-label-medium">{{carac.dice}} (xp : {{carac.experience}})</label>
|
||||
</li>
|
||||
<ul class="comp-column-list">
|
||||
<ul class="ul-level1 flexrow item-list alternate-list">
|
||||
{{#each carac.competences as |comp skillkey|}}
|
||||
<li class="flexrow comp-li">
|
||||
<label class="item-field-label-medium">{{comp.name}}</label>
|
||||
<label class="item-field-label-medium">{{comp.system.score}}</label>
|
||||
<li class="flexrow carac-box comp-box item-id" data-item-id="{{comp.id}}">
|
||||
<label class="item-left-pad item-field item-field-label-long">
|
||||
<a class="roll-competence" data-comp-id="{{comp.id}}">{{comp.name}} {{comp.system.formula}} </a>
|
||||
</label>
|
||||
<span> </span>
|
||||
<a class="item-control item-edit" title="Editer"><i class="fas fa-edit"></i></a>
|
||||
<a class="item-control item-delete" title="Supprimer"><i class="fas fa-trash"></i></a>
|
||||
</li>
|
||||
{{/each}}
|
||||
|
||||
</ul>
|
||||
</ul>
|
||||
</ul>
|
||||
{{/each}}
|
||||
|
||||
</div>
|
||||
|
||||
{{#if hasCephaly}}
|
||||
{{!-- Cephaly Tab --}}
|
||||
<div class="tab cephaly" data-group="primary" data-tab="cephaly">
|
||||
|
||||
<div class="grid grid-2col">
|
||||
|
||||
<div>
|
||||
|
||||
<h3>{{localize "ECRY.ui.cephaly"}}</h3>
|
||||
<ul class="stat-list alternate-list item-list">
|
||||
{{#each cephalySkills as |skill skillkey|}}
|
||||
<li class="item flexrow list-item">
|
||||
<span class="item-name-label-long">
|
||||
<a class="roll-cephaly" data-category-key="cephaly" data-skill-key="{{skillkey}}">
|
||||
<i class="fa-solid fa-dice-d6"></i>
|
||||
{{localize skill.name}}
|
||||
</a></span>
|
||||
<select class="item-field-label-short" type="text" name="system.cephaly.skilllist.{{skillkey}}.value"
|
||||
value="{{skill.value}}" data-dtype="Number">
|
||||
{{#select skill.value}}
|
||||
{{#each @root.config.skillLevel as |level key| }}
|
||||
<option value="{{level}}">{{level}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
{{#if annency}}
|
||||
<h3>{{localize "ECRY.ui.annency"}} : <a class="open-annency" data-annency-id="{{annency.id}}">{{annency.name}}<i class="fas fa-edit"></i></a></h3>
|
||||
<ul class="stat-list alternate-list item-list">
|
||||
<li class="item flexrow list-item">
|
||||
<span class="item-name-label-long">
|
||||
{{annency.system.base.description}}
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
{{/if}}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="tab traits" data-group="primary" data-tab="traits">
|
||||
|
||||
<ul class="item-list alternate-list">
|
||||
|
@ -1,37 +0,0 @@
|
||||
<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="{{alias}}" />
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div>
|
||||
<ul>
|
||||
<li>{{localize "ECRY.ui.cephaly"}} : {{localize skill.name}}</li>
|
||||
|
||||
{{#if annency}}
|
||||
<li>{{localize "ECRY.ui.annencybonus"}} {{annency.name}}: {{annencyBonus}}</li>
|
||||
{{/if}}
|
||||
|
||||
{{#if (gt marginExecution 0)}}
|
||||
<li>{{localize "ECRY.ui.execution"}} {{executionTotal}} vs {{difficulty}} : {{marginExecution}}</li>
|
||||
<li>{{localize cephalySuccess}}</li>
|
||||
{{/if}}
|
||||
|
||||
{{#if (gt marginPreservation 0)}}
|
||||
<li>{{localize "ECRY.ui.preservation"}} {{preservationTotal}} vs {{difficulty}} : {{marginPreservation}}</li>
|
||||
<li>{{localize cephalyFailure}}</li>
|
||||
{{/if}}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
@ -1,72 +0,0 @@
|
||||
<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="{{alias}}" />
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div>
|
||||
<ul>
|
||||
{{#if (eq mode "cephaly")}}
|
||||
<li>{{localize "ECRY.ui.cephaly"}} : {{localize skill.name}} </li>
|
||||
{{else}}
|
||||
<li>Confrontation : {{alias}} </li>
|
||||
{{/if}}
|
||||
|
||||
<li>{{localize skill.name}}: {{skill.value}} </li>
|
||||
{{#if spec}}
|
||||
<li>{{localize "ECRY.chat.specialization"}} {{spec.name}} (+{{spec.system.bonus}}) </li>
|
||||
{{/if}}
|
||||
|
||||
{{#each traitsBonus as |trait idx|}}
|
||||
{{#if trait.activated}}
|
||||
<li>{{localize "ECRY.chat.traitbonus"}}: {{trait.name}} ({{trait.system.level}}) </li>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
{{#each traitsMalus as |trait idx|}}
|
||||
{{#if trait.activated}}
|
||||
<li>{{localize "ECRY.chat.traitmalus"}}: {{trait.name}} ({{trait.system.level}}) </li>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
{{#if bonusMalusTraits}}
|
||||
<li>{{localize "ECRY.chat.bonusmalustraits"}}: {{bonusMalusTraits}} </li>
|
||||
{{/if}}
|
||||
|
||||
{{#if (isGM)}}
|
||||
{{else}}
|
||||
<li>{{localize "ECRY.ui.execution"}} : {{executionTotal}}</li>
|
||||
<li>{{localize "ECRY.ui.preservation"}} : {{preservationTotal}}</li>
|
||||
{{/if}}
|
||||
|
||||
</ul>
|
||||
|
||||
{{#if (isGM)}}
|
||||
{{#if (eq mode "cephaly")}}
|
||||
<div>
|
||||
<span>{{localize "ECRY.chat.difficulty"}}</span>
|
||||
<select id="{{rollId}}-cephaly-difficulty" name="cephaly-difficulty">
|
||||
{{#for 1 20 1}}
|
||||
<option value="{{this}}">{{this}}</option>
|
||||
{{/for}}
|
||||
</select>
|
||||
</div>
|
||||
<button class="button-apply-cephaly-difficulty">{{localize "ECRY.ui.cephalydifficulty"}}</button>
|
||||
{{else}}
|
||||
<button class="button-select-confront">{{localize "ECRY.ui.selectconfront"}}</button>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<div>
|
||||
{{localize "ECRY.chat.sentogm"}}
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
</div>
|
@ -1,54 +0,0 @@
|
||||
<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="{{alias}}" />
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div>
|
||||
<ul>
|
||||
<li>Confrontation : {{rollData1.alias}} vs {{rollData2.alias}}</li>
|
||||
<li>{{localize rollData1.skill.name}} ({{rollData1.skill.value}}) vs {{localize rollData2.skill.name}} ({{rollData2.skill.value}}) </li>
|
||||
<li>{{rollData1.executionTotal}} vs {{rollData2.preservationTotal}} : {{marginExecution}}</li>
|
||||
<li>{{rollData1.preservationTotal}} vs {{rollData2.executionTotal}} : {{marginPreservation}}</li>
|
||||
|
||||
{{#if rollData1.weapon}}
|
||||
<li>{{rollData1.alias}} {{rollData1.weapon.name}} ({{rollData1.weapon.system.effect}})
|
||||
</li>
|
||||
{{/if}}
|
||||
|
||||
{{#if rollData2.weapon}}
|
||||
<li>{{rollData2.alias}} {{rollData2.weapon.name}} ({{rollData2.weapon.system.effect}})</li>
|
||||
{{/if}}
|
||||
|
||||
<li>{{localize "ECRY.ui.effect"}} {{localize "ECRY.ui.execution"}} : {{effectExecution}}</li>
|
||||
{{#if impactExecution}}
|
||||
<li>Impact {{rollData2.alias}} : 1 {{localize (concat "ECRY.ui." impactExecution)}}</li>
|
||||
<button class="button-apply-impact" data-actor-id="{{rollData2.actorId}}" data-impact-type={{rollData1.skill.categKey}} data-impact="{{impactExecution}}">{{localize "ECRY.ui.applyimpact"}}</button>
|
||||
{{/if}}
|
||||
{{#if bonus2}}
|
||||
<li>Bonus {{rollData2.alias}} : {{bonus2}}</li>
|
||||
<button class="button-apply-bonus" data-actor-id="{{rollData2.actorId}}" data-bonus="{{bonus2}}">{{localize "ECRY.ui.applybonus"}}</button>
|
||||
{{/if}}
|
||||
|
||||
<li>{{localize "ECRY.ui.effect"}} {{localize "ECRY.ui.preservation"}} : {{effectPreservation}}</li>
|
||||
{{#if impactPreservation}}
|
||||
<li>Impact {{rollData1.alias}} : 1 {{localize (concat "ECRY.ui." impactPreservation)}}</li>
|
||||
<button class="button-apply-impact" data-actor-id="{{rollData1.actorId}}" data-impact-type={{rollData1.skill.categKey}} data-impact="{{impactPreservation}}">{{localize "ECRY.ui.applyimpact"}}</button>
|
||||
{{/if}}
|
||||
{{#if bonus1}}
|
||||
<li>Bonus {{rollData1.alias}} : {{bonus1}}</li>
|
||||
<button class="button-apply-bonus" data-actor-id="{{rollData1.actorId}}" data-bonus="{{bonus1}}">{{localize "ECRY.ui.applybonus"}}</button>
|
||||
{{/if}}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
@ -18,47 +18,33 @@
|
||||
|
||||
<div>
|
||||
<ul>
|
||||
{{#if skill}}
|
||||
<li>{{localize skill.name}}: {{skill.value}} </li>
|
||||
{{#if spec}}
|
||||
<li>{{localize "ECRY.chat.specialization"}} {{spec.name}} (+{{spec.system.bonus}}) </li>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{#if impactMalus}}
|
||||
<li>{{localize "ECRY.ui.impactmalus"}}: {{impactMalus}} </li>
|
||||
{{/if}}
|
||||
|
||||
{{#if skillTranscendence}}
|
||||
<li>{{localize "ECRY.ui.skilltranscendence"}}: {{skillTranscendence}} </li>
|
||||
{{/if}}
|
||||
|
||||
{{#if traitsBonusList}}
|
||||
{{#each traitsBonusList as |trait idx|}}
|
||||
<li>{{localize "ECRY.chat.traitbonus"}}: {{trait.name}} ({{trait.system.level}}) </li>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{#if traitsMalusList}}
|
||||
{{#each traitsMalusList as |trait idx|}}
|
||||
<li>{{localize "ECRY.chat.traitmalus"}}: {{trait.name}} ({{trait.system.level}}) </li>
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
{{#if bonusMalusTraits}}
|
||||
<li>{{localize "ECRY.chat.bonusmalustraits"}}: {{bonusMalusTraits}} </li>
|
||||
{{/if}}
|
||||
|
||||
<li>{{localize "ECRY.chat.formula"}}: {{diceFormula}} </li>
|
||||
<li>{{localize "ECRY.chat.dicesum"}}: {{diceSum}} </li>
|
||||
<li>{{localize "ECRY.chat.result"}}: {{total}} </li>
|
||||
{{#if difficulty}}
|
||||
<li>{{localize "ECRY.chat.difficulty"}}: {{difficulty}} - {{localize "ECRY.chat.margin"}}: {{margin}} </li>
|
||||
{{#if isSuccess}}
|
||||
<li><label class="chat-result-text chat-result-success ">{{localize "ECRY.chat.success"}}</label></li>
|
||||
{{else}}
|
||||
<li><label class="chat-result-text chat-result-failure">{{localize "ECRY.chat.failure"}}</label></li>
|
||||
{{/if}}
|
||||
{{#if carac}}
|
||||
<li>{{carac.name}}: {{carac.qualite}} ({{carac.dice}}) </li>
|
||||
{{/if}}
|
||||
{{#if competence}}
|
||||
<li>{{competence.name}}: {{competence.system.score}} </li>
|
||||
{{/if}}
|
||||
{{#if bonusMalus}}
|
||||
<li>Bonus/Malus: {{bonusMalus}} </li>
|
||||
{{/if}}
|
||||
{{#if enableProvidence}}
|
||||
<li>Un niveau de Providence a été utilisé !</li>
|
||||
{{/if}}
|
||||
|
||||
<li>Dés: {{diceFormula}} </li>
|
||||
<li>Difficulté: {{difficulty}} </li>
|
||||
<li><strong>Résultat: {{total}}</strong> </li>
|
||||
{{#if isSuccess}}
|
||||
<li><strong>Succès !</strong> </li>
|
||||
{{#if isReussiteCritique}}
|
||||
<li><strong>Réussite critique ! 1 XP gagné en {{carac.name}}.</strong> </li>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<li><strong>Echec !</strong> </li>
|
||||
{{#if isEchecCritique}}
|
||||
<li><strong>Echec critique ! 1 XP gagné en {{carac.name}}.</strong> </li>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
@ -7,18 +7,43 @@
|
||||
</header>
|
||||
|
||||
<div class="flexcol">
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">Caracteristique </span>
|
||||
<span class="roll-dialog-label">{{carac.name}} : {{carac.qualite}} ({{carac.dice}})</span>
|
||||
</div>
|
||||
|
||||
{{> systems/fvtt-ecryme/templates/dialogs/partial-common-roll-dialog.hbs}}
|
||||
{{#if competence}}
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">Compétence </span>
|
||||
<span class="roll-dialog-label">{{competence.name}} ({{competence.system.score}})</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if malusBlessures}}
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">Malus Blessures </span>
|
||||
<span class="roll-dialog-label">{{malusBlessures}} niveaux</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">Bonus/Malus : </span>
|
||||
<select class="" type="text" id="roll-bonus-malus" value="{{bonusMalus}}" data-dtype="Number">
|
||||
{{selectOptions config.bonusMalus selected=bonusMalus labelAttr="label" valueAttr="value" nameAttr="value"}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{{#if providence.value}}
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">Utiliser la Providence ({{providence.dice}})</span>
|
||||
<input type="checkbox" id="roll-enable-providence" {{checked enableProvidence}} />
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">Difficulté : </span>
|
||||
<select class="" type="text" id="roll-difficulty" value="{{difficulty}}" data-dtype="Number">
|
||||
{{#select difficulty}}
|
||||
{{#each config.difficulty as |diffData value| }}
|
||||
<option value="{{diffData.value}}">{{localize diffData.difficulty}} / {{localize diffData.frequency}}
|
||||
({{diffData.value}})</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
{{selectOptions config.difficulte selected=difficulty labelAttr="label"}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user