Talents automation + management
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
<nav class="sheet-tabs tabs" data-group="primary">
|
||||
<a class="item" data-tab="principal">Attributs</a>
|
||||
<a class="item" data-tab="competences">Compétences</a>
|
||||
<a class="item" data-tab="talents">Talents</a>
|
||||
<a class="item" data-tab="equipement">Equipement</a>
|
||||
<a class="item" data-tab="biodata">Bio&Notes</a>
|
||||
</nav>
|
||||
@@ -161,6 +162,42 @@
|
||||
|
||||
</div>
|
||||
|
||||
{{!-- Talents Tab --}}
|
||||
<div class="tab talents" data-group="primary" data-tab="talents">
|
||||
|
||||
<div class="flexrow">
|
||||
|
||||
<div class="sheet-box color-bg-archetype">
|
||||
<ul class="item-list alternate-list">
|
||||
<li class="item flexrow">
|
||||
<span class="item-name-label-header">
|
||||
<h3><label class="items-title-text">Talents</label></h3>
|
||||
</span>
|
||||
<span class="item-field-label-short">
|
||||
<label class="short-label">Résumé</label>
|
||||
</span>
|
||||
<div class="item-filler"> </div>
|
||||
</li>
|
||||
{{#each talents as |talent key|}}
|
||||
<li class="item flexrow " data-item-id="{{talent._id}}" data-item-type="competence">
|
||||
<img class="item-name-img" src="{{talent.img}}" />
|
||||
<span class="item-name-label competence-name">{{talent.name}}</span>
|
||||
<span class="item-name-label item-field-label-long2">{{talent.system.resumebonus}}</span>
|
||||
|
||||
<div class="item-filler"> </div>
|
||||
<div class="item-controls item-controls-fixed">
|
||||
<a class="item-control item-edit" title="Edit Item"><i class="fas fa-edit"></i></a>
|
||||
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{{!-- Equipement Tab --}}
|
||||
<div class="tab equipement" data-group="primary" data-tab="equipement">
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
<li class="flexrow item">
|
||||
<label class="generic-label item-field-label-medium">Type </label>
|
||||
<select class="status-small-label color-class-common item-field-label-medium" type="text"
|
||||
<select class="status-small-label color-class-common item-field-label-long" type="text"
|
||||
name="system.talenttype" value="{{system.talenttype}}" data-dtype="String">
|
||||
{{#select system.talenttype}}
|
||||
<option value="personnage">Personnage</option>
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
<li class="flexrow item">
|
||||
<label class="generic-label item-field-label-medium">Utilisation </label>
|
||||
<select class="status-small-label color-class-common item-field-label-medium" type="text"
|
||||
<select class="status-small-label color-class-common item-field-label-long" type="text"
|
||||
name="system.utilisation" value="{{system.utilisation}}" data-dtype="String">
|
||||
{{#select system.utilisation}}
|
||||
<option value="permanent">Permanent</option>
|
||||
|
||||
@@ -7,26 +7,36 @@
|
||||
<li class="flexrow item">
|
||||
<ul>
|
||||
{{#each system.automations as |automation key|}}
|
||||
<li class="automation-item item flexrow" data-automation-index="{{key}}">
|
||||
<li class="automation-item item flexrow">
|
||||
<hr>
|
||||
</li>
|
||||
<li class="automation-item item flexrow" data-automation-field="eventtype" data-automation-index="{{key}}">
|
||||
<label class="generic-label item-field-label-medium">Evènement</label>
|
||||
<select class="status-small-label color-class-common item-field-label-long" type="text" name="system.automations.{{key}}.eventType" value="{{automation.eventType}}" data-dtype="string">
|
||||
{{#select automation.eventType}}
|
||||
<option value="drop">Drop sur l'acteur</option>
|
||||
<select class="status-small-label color-class-common item-field-label-long automation-edit-field" type="text"
|
||||
value="{{automation.eventtype}}" data-dtype="String">
|
||||
{{#select automation.eventtype}}
|
||||
<option value="on-drop">Drop sur l'acteur</option>
|
||||
<option value="prepare-actor">Préparation de l'acteur</option>
|
||||
<option value="associated-competence">Compétence associée</option>
|
||||
<option value="roll-bonus">Bonus au jet</option>
|
||||
<option value="prepare-roll">Préparation d'un jet</option>
|
||||
<option value="process-roll">Lancement d'un jet</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
</select>
|
||||
</li>
|
||||
|
||||
<li class="automation-item item flexrow" data-automation-index="{{key}}">
|
||||
<textarea row="4" type="text" class="padd-right color-class-common" name="system.automations.{{key}}.script" data-dtype="String">{{predilection.script}}</textarea>
|
||||
<li class="automation-item item flexrow" >
|
||||
<label class="generic-label item-field-label-long2">Script : </label>
|
||||
</li>
|
||||
|
||||
<li class="automation-item item flexrow" data-automation-field="script" data-automation-index="{{key}}">
|
||||
<textarea rows="4" type="text" class="padd-right color-class-common automation-edit-field" data-dtype="String"
|
||||
>{{automation.script}}</textarea>
|
||||
</li>
|
||||
<hr>
|
||||
{{/each}}
|
||||
</ul>
|
||||
|
||||
<li class="flexrow item">
|
||||
<button id="add-automation" class="chat-card-button">Ajouter une automatisation</button>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
@@ -44,15 +44,16 @@
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{#if (count talents)}}
|
||||
<div class="flexrow">
|
||||
<span class="roll-dialog-label">Modificateur : </span>
|
||||
<select class="roll-dialog-label" id="modificateur" type="text" name="modificateur" value="{{modificateur}}"
|
||||
data-dtype="Number">
|
||||
{{#select modificateur}}
|
||||
{{{modificateursOptions}}}
|
||||
{{/select}}
|
||||
<span class="roll-dialog-label">Talents applicables :</span>
|
||||
<select class="flex1" name="competence-talents" id="competence-talents" data-type="String" multiple>
|
||||
{{#each talents as |talent id|}}
|
||||
<option value="{{talent.id}}">{{talent.name}}</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if armeDefense}}
|
||||
<div class="flexrow">
|
||||
|
||||
Reference in New Issue
Block a user