Liste des milieux par défaut
This commit is contained in:
parent
ac77c6da9e
commit
86f9c37b30
@ -8,17 +8,16 @@ const RARETES = [
|
|||||||
{ name: 'Frequente', frequence: 18, min: 9, max: 36 },
|
{ name: 'Frequente', frequence: 18, min: 9, max: 36 },
|
||||||
{ name: 'Rare', frequence: 6, min: 3, max: 12 },
|
{ name: 'Rare', frequence: 6, min: 3, max: 12 },
|
||||||
{ name: 'Rarissime', frequence: 2, min: 1, max: 4 }]
|
{ name: 'Rarissime', frequence: 2, min: 1, max: 4 }]
|
||||||
|
const DEFAULT_RARETE = 1;
|
||||||
|
|
||||||
const SETTINGS_LISTE_MILIEUX = "liste-milieux";
|
const SETTINGS_LISTE_MILIEUX = "liste-milieux";
|
||||||
const MILIEUX = [
|
const MILIEUX = [
|
||||||
"Collines",
|
"Collines",
|
||||||
"Déserts",
|
"Déserts",
|
||||||
"Désolations",
|
|
||||||
"Forêts",
|
"Forêts",
|
||||||
"Forêts Tropicales",
|
|
||||||
"Marais",
|
"Marais",
|
||||||
"Milieux Aquatiques",
|
"Cours d'eau",
|
||||||
"Milieux Maritimes",
|
"Maritimes",
|
||||||
"Montagnes",
|
"Montagnes",
|
||||||
"Plaines",
|
"Plaines",
|
||||||
"Sous-Sols",
|
"Sous-Sols",
|
||||||
@ -46,7 +45,7 @@ export class Environnement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static getRarete(name = undefined) {
|
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) {
|
static getFrequenceRarete(rarete, field = undefined) {
|
||||||
|
Loading…
Reference in New Issue
Block a user