Fix Maîtrise avec TMR cachée
On ne donne plus le nom et les coordonées des cases à maîtriser quand le personnage est perdu
This commit is contained in:
parent
5efb7d9be0
commit
8cf43d4e8a
@ -750,6 +750,7 @@ export class RdDTMRDialog extends Dialog {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async _maitriserTMR(rollData, callbackMaitrise) {
|
async _maitriserTMR(rollData, callbackMaitrise) {
|
||||||
this.minimize(); // Hide
|
this.minimize(); // Hide
|
||||||
|
rollData.isTMRCache = rollData.actor.isTMRCache();
|
||||||
const dialog = await RdDRoll.create(this.actor, rollData,
|
const dialog = await RdDRoll.create(this.actor, rollData,
|
||||||
{
|
{
|
||||||
html: 'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-maitrise-tmr.html',
|
html: 'systems/foundryvtt-reve-de-dragon/templates/dialog-roll-maitrise-tmr.html',
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}"/>
|
<img class="chat-icon" src="{{competence.img}}" alt="{{competence.name}}"/>
|
||||||
<h4 data-categorie="tmr" data-actor-id="{{actor._id}}">
|
<h4 data-categorie="tmr" data-actor-id="{{actor._id}}">
|
||||||
{{alias}} tente de {{maitrise.verbe}} {{le tmr.genre}} {{tmr.label}} ({{tmr.coord}})
|
{{alias}} tente de {{maitrise.verbe}} {{le tmr.genre}}
|
||||||
|
{{#if isTMRCache}}
|
||||||
|
{{caseTmr-type tmr.coord}}
|
||||||
|
{{else}}
|
||||||
|
{{tmr.label}} ({{tmr.coord}})
|
||||||
|
{{/if}}
|
||||||
</h4>
|
</h4>
|
||||||
{{#if previous}}
|
{{#if previous}}
|
||||||
{{#with previous}}
|
{{#with previous}}
|
||||||
@ -11,15 +16,20 @@
|
|||||||
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-infojet.html"}}
|
{{> "systems/foundryvtt-reve-de-dragon/templates/chat-infojet.html"}}
|
||||||
<hr>
|
<hr>
|
||||||
<span>
|
<span>
|
||||||
{{#if rolled.isSuccess}}
|
{{alias}}
|
||||||
{{alias}} parvient à {{maitrise.verbe}} {{le tmr.genre}} {{tmr.label}} !
|
{{#if rolled.isSuccess}}parvient à{{else}}échoue à{{/if}}
|
||||||
|
{{maitrise.verbe}} {{le tmr.genre}}
|
||||||
|
{{#if isTMRCache}}
|
||||||
|
{{caseTmr-type tmr.coord}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{alias}} échoue à {{maitrise.verbe}} {{le tmr.genre}} {{tmr.label}}.
|
{{tmr.label}} ({{tmr.coord}})
|
||||||
|
{{/if}}!
|
||||||
|
{{#if rolled.isEchec}}
|
||||||
{{alias}} <strong>quitte les Terres Médianes</strong> !
|
{{alias}} <strong>quitte les Terres Médianes</strong> !
|
||||||
{{#if souffle}}
|
{{#if souffle}}
|
||||||
<br>De plus, son échec total lui fait subir un Souffle de Dragon : {{souffle.name}}
|
<br>De plus, son échec total lui fait subir un Souffle de Dragon : {{souffle.name}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</span>
|
</span>
|
||||||
{{#if poesie}}
|
{{#if poesie}}
|
||||||
<hr>
|
<hr>
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
<form class="skill-roll-dialog">
|
<form class="skill-roll-dialog">
|
||||||
<h2>Maîtrise {{tmr.label}} ({{tmr.coord}})</h2>
|
<h2>Maîtrise {{#if isTMRCache}}
|
||||||
|
{{tmr.type}}
|
||||||
|
{{else}}
|
||||||
|
{{tmr.label}} ({{tmr.coord}})
|
||||||
|
{{/if}}
|
||||||
|
</h2>
|
||||||
<div class="grid grid-2col">
|
<div class="grid grid-2col">
|
||||||
<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}}"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user