private static bool _GetIsMeleeWeapon(int baseItemType)
{
// If this isn't even a real base item, it's not a melee weapon.
if (baseItemType == CLRScriptBase.BASE_ITEM_INVALID)
return false;
// All weapons have a weapon focus feat. If this is 0, then it's not even a weapon.
if (ALFA.Shared.Modules.InfoStore.BaseItems[baseItemType].FEATWpnFocus == 0)
return false;
// All melee weapons lack an ammunition type. If this is 0, it's a melee weapon.
if (ALFA.Shared.Modules.InfoStore.BaseItems[baseItemType].AmmunitionType == 0)
return true;
// If it's not a melee weapon, it must be a ranged weapon.
return false;
}
#endregion