2022-10-25 17:54:18 +02:00
|
|
|
<li class="flexrow item">
|
|
|
|
<label class="generic-label item-field-label-long">Automatisation ? </label>
|
|
|
|
<input type="checkbox" name="system.isautomated" {{checked system.isautomated}} />
|
|
|
|
</li>
|
|
|
|
|
|
|
|
{{#if system.isautomated}}
|
|
|
|
<li class="flexrow item">
|
|
|
|
<ul>
|
|
|
|
{{#each system.automations as |automation key|}}
|
2022-11-05 10:03:23 +01:00
|
|
|
<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="item-field-label-long automation-edit-field" type="text" data-automation-index="{{key}}" data-automation-field="eventtype"
|
|
|
|
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="prepare-roll">Préparation d'un jet</option>
|
|
|
|
{{/select}}
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<label class="generic-label item-field-label-medium"> </label>
|
|
|
|
|
|
|
|
<a class="item-control item-field-label-medium delete-automation" title="Supprimer" data-automation-index="{{key}}"><i
|
|
|
|
class="fas fa-trash"></i></a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
{{#if (eq automation.eventtype "on-drop")}}
|
|
|
|
<li class="automation-item item flexrow">
|
|
|
|
<label class="generic-label item-field-label-long">Compétence/Attribut</label>
|
|
|
|
<input type="text" class="item-field-label-medium automation-edit-field" data-automation-index="{{key}}" data-automation-field="competence" value="{{automation.competence}}" data-dtype="String" />
|
|
|
|
</li>
|
|
|
|
<li class="automation-item item flexrow">
|
|
|
|
<label class="generic-label item-field-label-long">Valeur minimum</label>
|
|
|
|
<input type="text" class="item-field-label-medium automation-edit-field" data-automation-index="{{key}}" data-automation-field="minLevel" value="{{automation.minLevel}}" data-dtype="Number" />
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
{{#if (eq automation.eventtype "prepare-roll")}}
|
|
|
|
<li class="automation-item item flexrow">
|
|
|
|
<label class="generic-label item-field-label-long">Compétence/Attribut</label>
|
|
|
|
<input type="text" class="item-field-label-medium automation-edit-field" data-automation-index="{{key}}" data-automation-field="competence" value="{{automation.competence}}" data-dtype="String" />
|
|
|
|
</li>
|
|
|
|
<li class="automation-item item flexrow">
|
|
|
|
<label class="generic-label item-field-label-long">Bonus</label>
|
|
|
|
<input type="text" class="item-field-label-medium automation-edit-field" data-automation-index="{{key}}" data-automation-field="bonus" value="{{automation.bonus}}" data-dtype="Number" />
|
|
|
|
</li>
|
|
|
|
<li class="automation-item item flexrow">
|
|
|
|
<label class="generic-label item-field-label-long">Coût en BA</label>
|
|
|
|
<input type="text" class="item-field-label-medium automation-edit-field" data-automation-index="{{key}}" data-automation-field="baCost" value="{{automation.baCost}}" data-dtype="Number" />
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
|
2022-10-25 17:54:18 +02:00
|
|
|
{{/each}}
|
2022-11-05 10:03:23 +01:00
|
|
|
|
2022-10-25 17:54:18 +02:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<li class="flexrow item">
|
|
|
|
<button id="add-automation" class="chat-card-button">Ajouter une automatisation</button>
|
|
|
|
</li>
|
2022-10-28 21:44:49 +02:00
|
|
|
{{/if}}
|