forked from public/foundryvtt-reve-de-dragon
Calculs des informations dérivées
Calcul automatique des informations dérivées: - vie max - endurance max - bonus dommages Ces informations ne peuvent plus être saisies. L'endurance max des animaux est vie+constitution. Les entités non-incarnées n'ont pas de +dom
This commit is contained in:
@ -1,8 +1,21 @@
|
||||
<ol class="carac-list alterne-list">
|
||||
{{#each system.attributs as |attr key|}}
|
||||
<li class="caracteristique flexrow list-item" data-attribute="{{key}}">
|
||||
<span class="carac-label" name="system.attributs.{{key}}.label">{{attr.label}}</span>
|
||||
<input class="caracteristique streched" type="text" name="system.attributs.{{key}}.value" value="{{attr.value}}" data-dtype="{{attr.type}}" {{#unless @root.options.vueDetaillee}}disabled{{/unless}}/>
|
||||
</li>
|
||||
{{#if (and (eq key 'plusdom') (eq @root.system.definition.typeentite 'nonincarne'))}}
|
||||
{{else}}
|
||||
<li class="caracteristique flexrow list-item" data-attribute="{{key}}">
|
||||
<span class="carac-label" name="system.attributs.{{key}}.label">{{attr.label}}</span>
|
||||
{{#if (actor-default @root.type 'attributs' key 'derivee')}}
|
||||
<input class="caracteristique streched" type="text" name="system.attributs.{{key}}.value"
|
||||
{{#if (eq key 'plusdom')}}
|
||||
value="{{numberFormat attr.value decimals=0 sign=true}}"
|
||||
{{else}}
|
||||
value="{{attr.value}}"
|
||||
{{/if}}
|
||||
data-dtype="{{attr.type}}" disabled/>
|
||||
{{else}}
|
||||
<input class="caracteristique streched" type="text" name="system.attributs.{{key}}.value" value="{{attr.value}}" data-dtype="{{attr.type}}" {{#unless @root.options.vueDetaillee}}disabled{{/unless}}/>
|
||||
{{/if}}
|
||||
</li>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</ol>
|
||||
|
Reference in New Issue
Block a user