public static HasEquipmentPart ( int id ) : bool | ||
id | int | |
return | bool |
public static bool HasEquipmentPart(int id)
{
bool has = false;
foreach(DictionaryEntry entry in GameHandler.Instance().weapons)
{
if(DataHolder.Weapon((int)entry.Key).equipPart[id])
{
has = true;
break;
}
}
if(!has)
{
foreach(DictionaryEntry entry in GameHandler.Instance().armors)
{
if(DataHolder.Armor((int)entry.Key).equipPart[id])
{
has = true;
break;
}
}
}
return has;
}
GameHandler::HasEquipmentPart ( int id, int classID ) : bool |