2020-12-12 21:58:44 +01:00
|
|
|
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) {
|
2020-12-20 21:54:09 +01:00
|
|
|
return competence && competence.name.toLowerCase().includes("1 main");
|
2020-12-12 21:58:44 +01:00
|
|
|
}
|
|
|
|
|
2020-12-20 21:54:09 +01:00
|
|
|
static isMalusEncombrementTotal(competence) {
|
|
|
|
return competence && competence.name.toLowerCase().match(/(natation|acrobatie)/);
|
|
|
|
}
|
2020-12-12 21:58:44 +01:00
|
|
|
}
|