Rework méditation
This commit is contained in:
parent
cc2254112f
commit
8dea766540
@ -2482,10 +2482,14 @@ export class RdDActor extends Actor {
|
|||||||
|
|
||||||
console.log("rollMeditation !!!", meditationData);
|
console.log("rollMeditation !!!", meditationData);
|
||||||
|
|
||||||
const dialog = await RdDRoll.create(this, meditationData, { html: 'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-meditation.html' }, {
|
const dialog = await RdDRoll.create(this, meditationData,
|
||||||
|
{
|
||||||
|
html: 'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-meditation.html',
|
||||||
|
options: { height: 575, }
|
||||||
|
},
|
||||||
|
{
|
||||||
name: 'jet-meditation',
|
name: 'jet-meditation',
|
||||||
label: 'Jet de Meditation ' + meditation.name,
|
label: "Jet de méditation",
|
||||||
height: 600,
|
|
||||||
callbacks: [
|
callbacks: [
|
||||||
this.createCallbackExperience(),
|
this.createCallbackExperience(),
|
||||||
{ condition: r => r.rolled.isETotal, action: r => this._meditationETotal(r) },
|
{ condition: r => r.rolled.isETotal, action: r => this._meditationETotal(r) },
|
||||||
|
@ -1,58 +1,45 @@
|
|||||||
<form class="dialog-roll-meditation">
|
<form class="dialog-roll-meditation">
|
||||||
<div class="form-group">
|
<h2>{{meditation.name}}</h2>
|
||||||
<ul class="item-list">
|
<div class="grid grid-2col">
|
||||||
<li class="item flexrow">
|
<div class="flex-group-left">
|
||||||
<label><strong>Thème : {{meditation.data.theme}} </strong></label>
|
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}" />
|
||||||
<label>Intellect {{numberFormat carac.intellect.value decimals=0 sign=false}} / {{competence.name}} {{numberFormat competence.data.niveau decimals=0 sign=true}}</label>
|
<div class="flexcol">
|
||||||
</li>
|
<label><strong>{{meditation.data.theme}}</strong></label>
|
||||||
<li class="item flexrow">
|
<hr>
|
||||||
<label>Sujet : {{competence.name}} ({{meditation.data.theme}})</label>
|
<label>Support: <strong>{{upperFirst meditation.data.support}}</strong></label>
|
||||||
|
<label>Case TMR: <strong>{{upperFirst meditation.data.tmr}}</strong></label>
|
||||||
<label>Durée: 60 minutes</label>
|
<label>Durée: 60 minutes</label>
|
||||||
</li>
|
<hr>
|
||||||
<li class="item flexrow">
|
<label>Intellect / {{competence.name}}:
|
||||||
<label>Support : {{meditation.data.support}}</label>
|
{{numberFormat carac.intellect.value decimals=0 sign=false}} / {{numberFormat competence.data.niveau decimals=0 sign=true}}</label>
|
||||||
<label>Malus spécial : {{meditation.data.malus}}</label>
|
|
||||||
</li>
|
|
||||||
<li class="item flexrow"><label>Case TMR : {{meditation.data.tmr}}</label></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<label class="h4"><strong>Conditions Optionnelles : </strong></label>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="flex-group-left">
|
||||||
<ul class="item-list">
|
<div class="flexrow">
|
||||||
<li class="item flexrow">
|
<label><strong>Conditions Optionnelles : </strong></label>
|
||||||
<label>Heure : {{meditation.data.heure}}</label>
|
</div>
|
||||||
<input class="attribute-value conditionMeditation" type="checkbox" id="isHeure" {{#if conditionMeditation.isHeure}}checked{{/if}}/>
|
<div class="flexrow">
|
||||||
</li>
|
<label>Comportement antérieur : {{upperFirst meditation.data.comportement}}</label>
|
||||||
<li class="item flexrow">
|
|
||||||
<label>Purification : {{meditation.data.purification}}</label>
|
|
||||||
<input class="attribute-value conditionMeditation" type="checkbox" id="isPurification" {{#if conditionMeditation.isPurification}}checked{{/if}}/>
|
|
||||||
</li>
|
|
||||||
<li class="item flexrow">
|
|
||||||
<label>Vêture : {{meditation.data.veture}}</label>
|
|
||||||
<input class="attribute-value conditionMeditation" type="checkbox" id="isVeture" {{#if conditionMeditation.isVeture}}checked{{/if}}/>
|
|
||||||
</li>
|
|
||||||
<li class="item flexrow">
|
|
||||||
<label>Comportement antérieur : {{meditation.data.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}} />
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<label>Conditions supplémentaires : </label>
|
<div class="flexrow">
|
||||||
<select name="diffConditions" id="diffConditions" data-dtype="number">
|
<label>Heure : {{upperFirst meditation.data.heure}}</label>
|
||||||
{{#select diffConditions}}
|
<input class="attribute-value conditionMeditation" type="checkbox" id="isHeure" {{#if conditionMeditation.isHeure}}checked{{/if}} />
|
||||||
{{#each ajustementsConditions as |key|}}
|
</div>
|
||||||
<option value={{key}}>{{numberFormat key decimals=0 sign=true}}</option>
|
<div class="flexrow">
|
||||||
{{/each}}
|
<label>Purification : {{upperFirst meditation.data.purification}}</label>
|
||||||
{{/select}}
|
<input class="attribute-value conditionMeditation" type="checkbox" id="isPurification" {{#if conditionMeditation.isPurification}}checked{{/if}} />
|
||||||
</select>
|
</div>
|
||||||
|
<div class="flexrow">
|
||||||
|
<label>Vêture : {{upperFirst meditation.data.veture}}</label>
|
||||||
|
<input class="attribute-value conditionMeditation" type="checkbox" id="isVeture" {{#if conditionMeditation.isVeture}}checked{{/if}} />
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
{{>"systems/foundryvtt-reve-de-dragon/templates/partial-roll-diffCondition.html"}}
|
||||||
|
<div id="tableAjustements"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="tableAjustements">
|
|
||||||
</div>
|
|
||||||
<div id="tableResolution"></div>
|
<div id="tableResolution"></div>
|
||||||
<div id="tableProbaReussite"></div>
|
<div id="tableProbaReussite"></div>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
Reference in New Issue
Block a user