Echec total tâche augmente la difficulté
This commit is contained in:
parent
1fb6dd8e96
commit
da24ff7232
@ -1389,6 +1389,7 @@ export class RdDActor extends Actor {
|
|||||||
label: 'Jet de Tâche ' + tache.name,
|
label: 'Jet de Tâche ' + tache.name,
|
||||||
callbacks: [
|
callbacks: [
|
||||||
this.createCallbackExperience(),
|
this.createCallbackExperience(),
|
||||||
|
{ condition: r=> r.rolled.isETotal, action: r => this._tacheETotal(r)},
|
||||||
{ action: r => this._tacheResult(r) }
|
{ action: r => this._tacheResult(r) }
|
||||||
]
|
]
|
||||||
} );
|
} );
|
||||||
@ -1418,6 +1419,11 @@ export class RdDActor extends Actor {
|
|||||||
}, this.name);
|
}, this.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_tacheETotal(rollData) {
|
||||||
|
rollData.tache.data.difficulte --;
|
||||||
|
this.updateEmbeddedEntity( "OwnedItem", rollData.tache);
|
||||||
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
_competenceResult(rollData) {
|
_competenceResult(rollData) {
|
||||||
ChatUtility.chatWithRollMode({
|
ChatUtility.chatWithRollMode({
|
||||||
|
Loading…
Reference in New Issue
Block a user