forked from public/foundryvtt-reve-de-dragon
Suppression de setForceRencontre
On pourra se créer des rencontres et les placer sur la feuille du personnage
This commit is contained in:
@ -307,35 +307,6 @@ export class TMRUtility {
|
||||
return tmr.type == 'fleuve' || tmr.type == 'lac' || tmr.type == 'marais';
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
/** Some debug functions */
|
||||
static async setForceRencontre(index, force = undefined) {
|
||||
this.prochaineRencontre = TMRRencontres.getRencontre(index);
|
||||
if (this.prochaineRencontre) {
|
||||
if (force) {
|
||||
this.prochaineRencontre.force = force;
|
||||
}
|
||||
else {
|
||||
await TMRRencontres.evaluerForceRencontre(this.prochaineRencontre);
|
||||
}
|
||||
console.log("La prochaine rencontre sera:", this.prochaineRencontre.name, " force:", this.prochaineRencontre.force);
|
||||
}
|
||||
else {
|
||||
ui.notifications.warn("Pas de prochaine rencontre valide pour " + index);
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static isForceRencontre() {
|
||||
return this.prochaineRencontre;
|
||||
}
|
||||
/* -------------------------------------------- */
|
||||
static utiliseForceRencontre() {
|
||||
const rencontre = this.prochaineRencontre;
|
||||
this.prochaineRencontre = undefined;
|
||||
return rencontre;
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static async getDirectionPattern() {
|
||||
return await RdDDice.rollOneOf(tmrRandomMovePatten);
|
||||
|
Reference in New Issue
Block a user