14 lines
501 B
JavaScript
14 lines
501 B
JavaScript
export class RdDItemCompetence extends Item {
|
|
|
|
/* -------------------------------------------- */
|
|
static isCompetenceMelee(name) {
|
|
return name.toLowerCase().match(/(epée|épée|hache|fleau|fléau|masse|lance|hast|dague|bouclier)/);
|
|
}
|
|
static isArmeUneMain(competence) {
|
|
return competence && competence.name.toLowerCase().includes("1 main");
|
|
}
|
|
|
|
static isMalusEncombrementTotal(competence) {
|
|
return competence && competence.name.toLowerCase().match(/(natation|acrobatie)/);
|
|
}
|
|
} |