Gestion des paradigmes
This commit is contained in:
@@ -1,35 +1,38 @@
|
||||
<span class="flexrow">
|
||||
<h4 class="ame-margin ame-subtitle">{{typedata.label}}</h4>
|
||||
<div class="item-filler"> </div>
|
||||
<div class="ame-block">
|
||||
<span class="flexrow">
|
||||
<h4 class="ame-margin ame-subtitle">{{typedata.label}}</h4>
|
||||
<div class="item-filler"> </div>
|
||||
|
||||
<select class="input-numeric-short padd-right status-small-label color-class-common" type="text" name="system.amestype.{{typeame}}.malus" value="{{typedata.malus}}" data-dtype="Number">
|
||||
{{#select typedata.malus}}
|
||||
<option value="0">0</option>
|
||||
<option value="-1">-1</option>
|
||||
<option value="-2">-2</option>
|
||||
<option value="-3">-3</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
<select class="input-numeric-short padd-right status-small-label color-class-common" type="text"
|
||||
name="system.amestype.{{typeame}}.malus" value="{{typedata.malus}}" data-dtype="Number">
|
||||
{{#select typedata.malus}}
|
||||
<option value="0">0</option>
|
||||
<option value="-1">-1</option>
|
||||
<option value="-2">-2</option>
|
||||
<option value="-3">-3</option>
|
||||
{{/select}}
|
||||
</select>
|
||||
|
||||
<input type="text" class="input-numeric-short padd-right status-small-label color-class-common cohesion-input"
|
||||
name="system.amestype.{{typeame}}.cohesion" value="{{typedata.cohesion}}" data-dtype="Number" {{#unless
|
||||
@root.editScore}}disabled{{/unless}} /> /
|
||||
<input type="text" class="input-numeric-short padd-right status-small-label color-class-common cohesion-input"
|
||||
name="system.amestype.{{typeame}}.cohesionmax" value="{{typedata.cohesionmax}}" data-dtype="Number" {{#unless
|
||||
@root.editScore}}disabled{{/unless}}>
|
||||
</span>
|
||||
name="system.amestype.{{typeame}}.cohesion" value="{{typedata.cohesion}}" data-dtype="Number" {{#unless
|
||||
@root.editScore}}disabled{{/unless}} /> /
|
||||
<input type="text" class="input-numeric-short padd-right status-small-label color-class-common cohesion-input"
|
||||
name="system.amestype.{{typeame}}.cohesionmax" value="{{typedata.cohesionmax}}" data-dtype="Number" {{#unless
|
||||
@root.editScore}}disabled{{/unless}}>
|
||||
</span>
|
||||
|
||||
<ul class="ame-margin">
|
||||
{{#each system.ames as |ame key|}}
|
||||
{{#if (eq ame.type ../typeame)}}
|
||||
<li class="ame-padding item stat flexrow item-ame-roll" data-ame-key="{{key}}">
|
||||
<input type="text" class="input-numeric-short padd-right status-small-label color-class-common"
|
||||
name="system.ames.{{key}}.value" value="{{ame.value}}" data-dtype="Number" {{#unless
|
||||
@root.editScore}}disabled{{/unless}} />
|
||||
<span class="ame-label ame-margin" name="{{key}}">
|
||||
<a class="roll-ame" data-ame-key="{{key}}">{{ame.label}}</a>
|
||||
</span>
|
||||
</li>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</ul>
|
||||
<ul class="ame-margin">
|
||||
<li class="ame-padding item stat flexrow item-ame-roll" data-ame-key="{{key}}">
|
||||
{{#each system.ames as |ame key|}}
|
||||
{{#if (eq ame.type ../typeame)}}
|
||||
<span class="ame-label ame-margin " name="{{key}}">
|
||||
<button class="common-button roll-ame-button" data-ame-key="{{key}}">{{ame.label}}</button>
|
||||
<input type="text" class="input-numeric-short padd-right status-small-label color-class-common"
|
||||
name="system.ames.{{key}}.value" value="{{ame.value}}" data-dtype="Number" {{#unless
|
||||
@root.editScore}}disabled{{/unless}} />
|
||||
</span>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
@@ -12,11 +12,11 @@
|
||||
data-dtype="String" {{#unless @root.editScore}}disabled{{/unless}} />
|
||||
</h4>
|
||||
{{else}}
|
||||
<h4 class="ame-margin"><a class="roll-ame ame-margin" data-stat-key="{{key}}">{{para.label}}</a></h4>
|
||||
<h4 class="ame-margin">{{para.label}}</h4>
|
||||
{{/if}}
|
||||
</span>
|
||||
|
||||
<input type="checkbox">
|
||||
<input type="checkbox" name="system.paradigmes.{{key}}.used" {{checked para.used}}>
|
||||
|
||||
</li>
|
||||
{{/each}}
|
@@ -8,9 +8,9 @@
|
||||
<h1 class="charname margin-right"><input name="name" type="text" value="{{name}}" placeholder="Name" /></h1>
|
||||
{{!-- Sheet Tab Navigation --}}
|
||||
<nav class="sheet-tabs tabs" data-group="primary">
|
||||
<a class="item" data-tab="principal">Principal</a>
|
||||
<a class="item" data-tab="ressources">Ressources</a>
|
||||
<a class="item" data-tab="biodata">Bio</a>
|
||||
<a class="item tab-title" data-tab="principal">Principal</a>
|
||||
<a class="item tab-title" data-tab="ressources">Ressources</a>
|
||||
<a class="item tab-title" data-tab="biodata">Bio</a>
|
||||
</nav>
|
||||
</div>
|
||||
<img class="profile-img" src="{{img}}" data-edit="img" title="{{name}}" />
|
||||
@@ -25,7 +25,7 @@
|
||||
<div class="tab principal" data-group="primary" data-tab="principal">
|
||||
|
||||
<div>
|
||||
<div class="sheet-box color-bg-ame color-text-ame">
|
||||
<div class="sheet-box color-bg-ame ">
|
||||
<div class=flexrow>
|
||||
<h4 class="ame-margin title-font">KARMA</h4>
|
||||
<span class="item-name-label flexrow">Karma
|
||||
@@ -47,7 +47,7 @@
|
||||
<div class="flexrow">
|
||||
|
||||
<div class="flexrow">
|
||||
<div class="sheet-box color-bg-ame color-text-ame">
|
||||
<div class="sheet-box color-bg-ame ">
|
||||
<span class="flexrow">
|
||||
<img class="ame-icon" src="systems/fvtt-imperium5/images/icons/ame_transparent.webp">
|
||||
<h4 class="ame-margin title-font">AMES</h4>
|
||||
@@ -62,7 +62,7 @@
|
||||
</div>
|
||||
|
||||
<div class="flexrow">
|
||||
<div class="sheet-box color-bg-archetype">
|
||||
<div class="sheet-box color-bg-archetype ">
|
||||
<span class="flexrow">
|
||||
<img class="ame-icon" src="systems/fvtt-imperium5/images/icons/archetype_transparent.webp">
|
||||
<h4 class="ame-margin title-font">ARCHETYPE</h4>
|
||||
@@ -116,7 +116,7 @@
|
||||
|
||||
<div class="flexrow">
|
||||
|
||||
<div class="sheet-box color-bg-paradigme">
|
||||
<div class="sheet-box color-bg-paradigme ">
|
||||
|
||||
<span class="flexrow">
|
||||
<img class="ame-icon" src="systems/fvtt-imperium5/images/icons/paradigme_transparent.webp">
|
||||
@@ -127,7 +127,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="sheet-box color-bg-archetype">
|
||||
<div class="sheet-box color-bg-archetype ">
|
||||
|
||||
<span class="flexrow">
|
||||
<img class="ame-icon" src="systems/fvtt-imperium5/images/icons/nature_transparent.webp">
|
||||
|
@@ -13,6 +13,27 @@
|
||||
<div>
|
||||
<ul>
|
||||
<li>Réserve : {{humanFormula}}</li>
|
||||
<li>Score :
|
||||
(
|
||||
{{#each roll.terms.0.results as |r k|}}
|
||||
{{r.result}}
|
||||
{{/each}}
|
||||
)
|
||||
(
|
||||
{{#each roll.terms.2.results as |r k|}}
|
||||
{{r.result}}
|
||||
{{/each}}
|
||||
)
|
||||
(
|
||||
{{#each roll.terms.4.results as |r k|}}
|
||||
{{r.result}}
|
||||
{{/each}}
|
||||
)
|
||||
</li>
|
||||
{{#if usedParadigme}}
|
||||
<li>Paradigme utilisé : {{usedParadigme}}</li>
|
||||
{{/if}}
|
||||
<li>Seuil : {{seuil}}</li>
|
||||
<li>Succés : {{successPC}}</li>
|
||||
<li>Succés de Réalité : {{successGM}}</li>
|
||||
<li>Unités de narration : {{nbUnitesNarration}}</li>
|
||||
@@ -27,6 +48,14 @@
|
||||
<li>Mauvais Présage !</li>
|
||||
{{/if}}
|
||||
|
||||
{{#if (count paradigmes)}}
|
||||
<li class="li-button-paradigme">
|
||||
{{#each paradigmes as |para key|}}
|
||||
<button class="common-button chat-card-button button-apply-paradigme" data-para-key="{{para.key}}">Utiliser {{para.label}} ({{para.value}})</button>
|
||||
{{/each}}
|
||||
</li>
|
||||
{{/if}}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user