Ongoing progress for weapons

This commit is contained in:
2020-06-12 11:47:41 +02:00
parent b16e977b19
commit 711ff19b10
5 changed files with 82 additions and 44 deletions

View File

@ -377,7 +377,25 @@ export class RdDUtility {
}
}
}
/* -------------------------------------------- */
static getArmeCategory( arme )
{
let compname = arme.data.competence.toLowerCase();
if ( compname.match("hache") ) return "hache";
if ( compname.match("hast") ) return "hast";
if ( compname.match("lance") ) return "lance";
if ( compname.match("bouclier") ) return "bouclier";
if ( compname.match("masse") ) return "masse";
if ( compname.match("fléau") ) return "fleau";
if ( compname.match("epée") ) {
let armename = arme.name.toLowerCase();
if (armename == "dague" || armename.match("gnome") )
return "epee_courte";
}
return "epee_longue";
}
/* -------------------------------------------- */
static isArmeMelee( compName)
{