public static int GetEquippedWeaponCount(int id)
{
int count = 0;
bool multi = DataHolder.Weapon(id).IsMulti();
Character[] cs = GameHandler.Party().GetParty();
for(int i=0; i<cs.Length; i++)
{
bool added = false;
for(int j=0; j<cs[i].equipment.Length; j++)
{
if(cs[i].equipment[j].IsWeapon() && cs[i].equipment[j].equipID == id
&& ((multi && !added) || !multi))
{
count++;
added = true;
}
}
}
return count;
}