public void MaterialList(EDDiscovery2.DB.MaterialCommoditiesList mc, DB.SQLiteConnectionUser conn) { if (Materials != null) { foreach (KeyValuePair <string, int> k in Materials) // may be commodities or materials { mc.Craft(k.Key, k.Value); // same as this, uses up materials } } }
public void MaterialList(EDDiscovery2.DB.MaterialCommoditiesList mc, DB.SQLiteConnectionUser conn) { if (Ingredients != null) { foreach (KeyValuePair <string, int> k in Ingredients) // may be commodities or materials { mc.Craft(k.Key, k.Value); } } }