forked from public/foundryvtt-reve-de-dragon
Ongoing progress for weapons
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user