Recipe Extension - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

<- Back

Recipe_Extension does a single thing, it allows you to create a recipe specifying categories for each ingredient, for example, Vegetable, Vegetable, Meat and Meat, and the pawns will choose different vegetables for the first two, and different meats for the latter.

Confusing? Let me give you an example. In base game, if you make a Vegetable, Vegetable, Meat and Meat recipe, it will be the same as a Vegetable and Meat recipe. The colonist will grab potatoes and squirrel meat and cal it a day. With this extension, he'll be forced to grab potatoes, corn, squirrel meat and megasloth meat.

 public bool individualIngredients = false;

How to use this code?

It is a def extension, so you just add it in XML in the <modExtensions> tag. For example, this is the recipe for haute meals in Vanilla Cooking Expanded - Haute

<modExtensions>
	<li Class="VEF.Cooking.Recipe_Extension">
		<individualIngredients>true</individualIngredients>
	</li>
</modExtensions>

Annd for reference this is the ingredients list of the recipe:

<ingredients>
	<li>
		<filter>
			<categories>
				<li>MeatRaw</li>
				<li>AnimalProductRaw</li>
			</categories>
		</filter>
		<count>0.5</count>
	</li>
	<li>
		<filter>
			<categories>
				<li>PlantFoodRaw</li>
			</categories>
		</filter>
		<count>0.5</count>
	</li>
	<li>
		<filter>
			<categories>
				<li>PlantFoodRaw</li>
			</categories>
		</filter>
		<count>0.5</count>
	</li>
	<li>
		<filter>
			<categories>
				<li>VCE_Condiments</li>
			</categories>
		</filter>
		<count>1</count>
	</li>
	<li>
		<filter>
			<categories>
				<li>VCE_Condiments</li>
			</categories>
		</filter>
		<count>1</count>
	</li>
</ingredients>
⚠️ **GitHub.com Fallback** ⚠️