public uint GetQuantity(uint TypeId) { switch ((byte)TypeId.GetItemGroup()) { case 5: case 6: // Ball And Normal return(ItemWarehouse.GetQuantity(TypeId)); default: return(0); } }
public override uint GetQuantity(uint TypeId) { switch (GetPartGroup(TypeId)) { case 5: case 6: // Ball And Normal return(ItemWarehouse.GetQuantity(TypeId)); default: return(0); } }