This commit is contained in:
Vincent Vandemeulebrouck
2022-11-17 01:18:06 +01:00
parent 884733e54b
commit 95179ffff2
4 changed files with 4 additions and 7 deletions

View File

@ -1,4 +1,3 @@
import { TMRRencontres } from "./tmr-rencontres.js";
import { Misc } from "./misc.js";
import { Grammar } from "./grammar.js";
import { RdDDice } from "./rdd-dice.js";
@ -291,9 +290,9 @@ export class TMRUtility {
static typeTmrName(type) {
return Misc.upperFirst(TMRType[Grammar.toLowerCaseNoAccent(type)].name);
}
static buildSelectionTypesTMR(typesTMR) {
typesTMR= typesTMR?? [];
typesTMR = typesTMR?? [];
return Object.values(TMRType).map(value => Misc.upperFirst(value.name))
.sort()
.map(name => { return { name: name, selected: typesTMR.includes(name) } });