Cosmetic changes

This commit is contained in:
sladecraven 2021-05-26 17:45:52 +02:00
parent e0f83e9be2
commit 87a0bece5e
2 changed files with 10 additions and 1 deletions

View File

@ -3138,6 +3138,7 @@ export class RdDActor extends Actor {
} }
} }
/* -------------------------------------------- */
async onDeleteOwnedItem(item, options, id) { async onDeleteOwnedItem(item, options, id) {
switch (item.type) { switch (item.type) {
case 'tete': case 'tete':
@ -3152,6 +3153,7 @@ export class RdDActor extends Actor {
} }
} }
/* -------------------------------------------- */
async onCreateOwnedDraconique(item, options, id) { async onCreateOwnedDraconique(item, options, id) {
if (Misc.isElectedUser()) { if (Misc.isElectedUser()) {
let draconique = Draconique.all().find(it => it.match(item)); let draconique = Draconique.all().find(it => it.match(item));
@ -3162,6 +3164,8 @@ export class RdDActor extends Actor {
} }
} }
} }
/* -------------------------------------------- */
async onDeleteOwnedDraconique(item, options, id) { async onDeleteOwnedDraconique(item, options, id) {
if (Misc.isElectedUser()) { if (Misc.isElectedUser()) {
let draconique = Draconique.all().find(it => it.match(item)); let draconique = Draconique.all().find(it => it.match(item));
@ -3171,6 +3175,7 @@ export class RdDActor extends Actor {
} }
} }
/* -------------------------------------------- */
async onDeleteOwnedCaseTmr(item, options, id) { async onDeleteOwnedCaseTmr(item, options, id) {
if (Misc.isElectedUser()) { if (Misc.isElectedUser()) {
let draconique = Draconique.all().find(it => it.isCase(item)); let draconique = Draconique.all().find(it => it.isCase(item));
@ -3180,6 +3185,7 @@ export class RdDActor extends Actor {
} }
} }
/* -------------------------------------------- */
notifyGestionTeteSouffleQueue(item, manualMessage = true) { notifyGestionTeteSouffleQueue(item, manualMessage = true) {
ChatMessage.create({ ChatMessage.create({
whisper: ChatUtility.getWhisperRecipientsAndGMs(game.user.name), whisper: ChatUtility.getWhisperRecipientsAndGMs(game.user.name),

View File

@ -208,7 +208,6 @@ export class RdDTMRDialog extends Dialog {
} }
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
async derober() { async derober() {
await this.actor.addTMRRencontre(this.currentRencontre); await this.actor.addTMRRencontre(this.currentRencontre);
@ -292,6 +291,7 @@ export class RdDTMRDialog extends Dialog {
return false; return false;
} }
/* -------------------------------------------- */
async quitterLesTMRInconscient() { async quitterLesTMRInconscient() {
if (this.currentRencontre?.isPersistant) { if (this.currentRencontre?.isPersistant) {
await this.refouler(); await this.refouler();
@ -360,6 +360,7 @@ export class RdDTMRDialog extends Dialog {
} }
} }
/* -------------------------------------------- */
_rollPresentCite(rencontreData) { _rollPresentCite(rencontreData) {
let rolled = RdDResolutionTable.computeChances(rencontreData.reve, 0); let rolled = RdDResolutionTable.computeChances(rencontreData.reve, 0);
mergeObject(rolled, { caracValue: rencontreData.reve, finalLevel: 0, roll: rolled.score }); mergeObject(rolled, { caracValue: rencontreData.reve, finalLevel: 0, roll: rolled.score });
@ -420,6 +421,7 @@ export class RdDTMRDialog extends Dialog {
} }
} }
/* -------------------------------------------- */
_presentCite(tmr, postRencontre) { _presentCite(tmr, postRencontre) {
const presentCite = this.casesSpeciales.find(c => EffetsDraconiques.presentCites.isCase(c, tmr.coord)); const presentCite = this.casesSpeciales.find(c => EffetsDraconiques.presentCites.isCase(c, tmr.coord));
if (presentCite) { if (presentCite) {
@ -429,6 +431,7 @@ export class RdDTMRDialog extends Dialog {
return presentCite; return presentCite;
} }
/* -------------------------------------------- */
async _utiliserPresentCite(presentCite, typeRencontre, tmr, postRencontre) { async _utiliserPresentCite(presentCite, typeRencontre, tmr, postRencontre) {
this.currentRencontre = TMRRencontres.getRencontre(typeRencontre); this.currentRencontre = TMRRencontres.getRencontre(typeRencontre);
await TMRRencontres.evaluerForceRencontre(this.currentRencontre); await TMRRencontres.evaluerForceRencontre(this.currentRencontre);