10.3.3 #585

Merged
uberwald merged 4 commits from VincentVk/foundryvtt-reve-de-dragon:v10 into v10 2022-12-02 23:51:16 +01:00
Showing only changes of commit 86f9c37b30 - Show all commits

View File

@ -8,17 +8,16 @@ const RARETES = [
{ name: 'Frequente', frequence: 18, min: 9, max: 36 },
{ name: 'Rare', frequence: 6, min: 3, max: 12 },
{ name: 'Rarissime', frequence: 2, min: 1, max: 4 }]
const DEFAULT_RARETE = 1;
const SETTINGS_LISTE_MILIEUX = "liste-milieux";
const MILIEUX = [
"Collines",
"Déserts",
"Désolations",
"Forêts",
"Forêts Tropicales",
"Marais",
"Milieux Aquatiques",
"Milieux Maritimes",
"Cours d'eau",
"Maritimes",
"Montagnes",
"Plaines",
"Sous-Sols",
@ -46,7 +45,7 @@ export class Environnement {
}
static getRarete(name = undefined) {
return RARETES.find(it => it.name == name) ?? RARETES[0];
return RARETES.find(it => it.name == name) ?? RARETES[DEFAULT_RARETE];
}
static getFrequenceRarete(rarete, field = undefined) {