Big WIP...
This commit is contained in:
parent
1f3fd0bb46
commit
dffe191d6e
@ -3,7 +3,7 @@ export class RdDItemMeditation {
|
|||||||
static calculDifficulte(rollData) {
|
static calculDifficulte(rollData) {
|
||||||
if (rollData.meditation) {
|
if (rollData.meditation) {
|
||||||
// Malus permanent éventuel
|
// Malus permanent éventuel
|
||||||
let diff = rollData.meditation.data.malus ?? 0;
|
let diff = rollData.meditation.system.malus ?? 0;
|
||||||
if (!rollData.conditionMeditation.isHeure) diff -= 2;
|
if (!rollData.conditionMeditation.isHeure) diff -= 2;
|
||||||
if (!rollData.conditionMeditation.isVeture) diff -= 2;
|
if (!rollData.conditionMeditation.isVeture) diff -= 2;
|
||||||
if (!rollData.conditionMeditation.isComportement) diff -= 2;
|
if (!rollData.conditionMeditation.isComportement) diff -= 2;
|
||||||
|
@ -4,14 +4,14 @@
|
|||||||
<div class="flex-group-left">
|
<div class="flex-group-left">
|
||||||
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}" />
|
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}" />
|
||||||
<div class="flexcol">
|
<div class="flexcol">
|
||||||
<label><strong>{{meditation.data.theme}}</strong></label>
|
<label><strong>{{meditation.system.theme}}</strong></label>
|
||||||
<hr>
|
<hr>
|
||||||
<label>Support: <strong>{{upperFirst meditation.data.support}}</strong></label>
|
<label>Support: <strong>{{upperFirst meditation.system.support}}</strong></label>
|
||||||
<label>Case TMR: <strong>{{typeTmr-name meditation.data.tmr}}</strong></label>
|
<label>Case TMR: <strong>{{typeTmr-name meditation.system.tmr}}</strong></label>
|
||||||
<label>Durée: 60 minutes</label>
|
<label>Durée: 60 minutes</label>
|
||||||
<hr>
|
<hr>
|
||||||
<label>Intellect / {{competence.name}}:
|
<label>Intellect / {{competence.name}}:
|
||||||
{{numberFormat carac.intellect.value decimals=0 sign=false}} / {{numberFormat competence.data.niveau decimals=0 sign=true}}</label>
|
{{numberFormat carac.intellect.value decimals=0 sign=false}} / {{numberFormat competence.system.niveau decimals=0 sign=true}}</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-group-left">
|
<div class="flex-group-left">
|
||||||
@ -19,19 +19,19 @@
|
|||||||
<label><strong>Conditions Optionnelles : </strong></label>
|
<label><strong>Conditions Optionnelles : </strong></label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<label>Comportement antérieur : {{upperFirst meditation.data.comportement}}</label>
|
<label>Comportement antérieur : {{upperFirst meditation.system.comportement}}</label>
|
||||||
<input class="attribute-value conditionMeditation" type="checkbox" id="isComportement" {{#if conditionMeditation.isComportement}}checked{{/if}} />
|
<input class="attribute-value conditionMeditation" type="checkbox" id="isComportement" {{#if conditionMeditation.isComportement}}checked{{/if}} />
|
||||||
</div>
|
</div>
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<label>Heure : {{upperFirst meditation.data.heure}}</label>
|
<label>Heure : {{upperFirst meditation.system.heure}}</label>
|
||||||
<input class="attribute-value conditionMeditation" type="checkbox" id="isHeure" {{#if conditionMeditation.isHeure}}checked{{/if}} />
|
<input class="attribute-value conditionMeditation" type="checkbox" id="isHeure" {{#if conditionMeditation.isHeure}}checked{{/if}} />
|
||||||
</div>
|
</div>
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<label>Purification : {{upperFirst meditation.data.purification}}</label>
|
<label>Purification : {{upperFirst meditation.system.purification}}</label>
|
||||||
<input class="attribute-value conditionMeditation" type="checkbox" id="isPurification" {{#if conditionMeditation.isPurification}}checked{{/if}} />
|
<input class="attribute-value conditionMeditation" type="checkbox" id="isPurification" {{#if conditionMeditation.isPurification}}checked{{/if}} />
|
||||||
</div>
|
</div>
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<label>Vêture : {{upperFirst meditation.data.veture}}</label>
|
<label>Vêture : {{upperFirst meditation.system.veture}}</label>
|
||||||
<input class="attribute-value conditionMeditation" type="checkbox" id="isVeture" {{#if conditionMeditation.isVeture}}checked{{/if}} />
|
<input class="attribute-value conditionMeditation" type="checkbox" id="isVeture" {{#if conditionMeditation.isVeture}}checked{{/if}} />
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
<hr>
|
||||||
|
Loading…
Reference in New Issue
Block a user