Recipe Mod Question

Started by madpluck, March 01, 2014, 12:58:27 AM

Previous topic - Next topic

madpluck

Okay so I want to add another food recipe to the cook stove, one that produces a "salad" from two different plant ingredients. Can't figure out how to make the option to cook it show up in game. Can someone take a look at it and let me know what I'm doing wrong?

[attachment deleted by admin: too old]

zngga

You have to go into buildings_furniture, find cooking stove, and add your recipe to the list of available bills.

<ThingDef ParentName="BuildingBase">
<defName>CookStove</defName>
<EType>Building_WorkTable</EType>
<Label>Cook stove</Label>
<ThingClass>Building_WorkTable</ThingClass>
<Description>A simple stove and attached countertops for preparing meals from simpler ingredients.</Description>
<TexturePath>Things/Building/TableCookStove</TexturePath>
<CostList>
<ResourceCost>
<thingDef>Metal</thingDef>
<count>80</count>
</ResourceCost>
</CostList>
<AltitudeLayer>Waist</AltitudeLayer>
<WorkToBuild>300</WorkToBuild>
<UseStandardHealth>True</UseStandardHealth>
<maxHealth>180</maxHealth>
<Size>(3,1)</Size>
<Overdraw>False</Overdraw>
<DesignationCategory>Furniture</DesignationCategory>
<Passability>Impassable</Passability>
<hasInteractionSquare>True</hasInteractionSquare>
<interactionSquareOffset>(0,0,-1)</interactionSquareOffset>
<itemSurface>True</itemSurface>
<recipes>
<li>CookMealSimple</li>
<li>CookMealFine</li>
<li>CookMealLavish</li>
</recipes>
<inspectorTabs>
<li>UI.ITab_Bills</li>
</inspectorTabs>
<comps>
<li>
<compClass>CompPowerTrader</compClass>
<startElectricalFires>true</startElectricalFires>
<basePowerConsumption>350</basePowerConsumption>
</li>
</comps>

</ThingDef>


and add your recipe to this list

<recipes>
<li>CookMealSimple</li>
<li>CookMealFine</li>
<li>CookMealLavish</li>
</recipes>


Hope that helps.

madpluck

Awesome, thank you! It now works in-game and spawns a fine meal with 14 veggie ingredients instead of veggies and meat. But so far they just take 14 of the same; is there a way to force them to use two different plant ingredients?