
The fourth line sets Main.recipe to our altered (converted) recipe list which is recreated to an array. The third line adds one to this variable per recipe that creates the specified item. The second line creates a variable that will hold the total amount of removed recipes that will then later be deducted from the total amount of recipes. The first line transforms the main recipe array to a list, which is more 'dynamic' than an array, as an array has a fixed size whereas a list does not. Recipe.numRecipes -= numberRecipesRemoved

NumberRecipesRemoved += rec.RemoveAll(x => x.createItem.type = ItemID.AlphabetStatueT) Īrray.Resize(ref Main.recipe, Recipe.maxRecipes)
