research requirement on a <receipeMaker>

Started by MissStrobo, May 24, 2020, 02:45:32 PM

Previous topic - Next topic

MissStrobo

Hi there,
I'm totally new here and started modding 2 days ago. So far so good, my mod is working fine and i'm working on compatibility with other mods.

if I want to apply a research requirement on a <ThingDef> which has a <recipeMaker> tag, do I have to make a <ReceipeDef> for this item or is there a sub-tag in the <reciperMaker> that allows it ?

the <reciperMaker> is not in my mod but on the one I'd like to make compatible.

LWM

Yes, that is - recipeMaker has tags that do that: either "researchPrerequisite" for one or "researchPrerequisites" for a list (with <li>...</li> etc)

MissStrobo

thank you for the answer. I didn't work when i tried but since i was unsure i didn't go further.
I just found it out also by looking at something else in the code.

   
<recipeMaker>
      <researchPrerequisite>InsertMyResearch</researchPrerequisite>
</recipeMaker>