RimWorld

RimWorld

41 ratings
Mines 2.0 Extension (deprecated)
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.3
File Size
Posted
Updated
381.314 KB
1 Feb, 2022 @ 12:23am
1 Feb, 2022 @ 6:07am
2 Change Notes ( view )

Subscribe to download
Mines 2.0 Extension (deprecated)

Description
THIS MOD HAS BEEN INTEGRATED INTO MINES 2.0 AND SO IS NO LONGER REQUIRED

Allows modders to add tech requirements and adjust work needed to mine different products from the Mines 2.0 mine. Also supports adding new items easily.

Should be loaded as far down your load order as possible, just before performance mods like RocketMan.

FOR MODDERS
<li Class="MinesAutomatedExtension.MineableSettings"> <researchPrerequisites> <li>MinesAutomated_ResearchProjectDef_minecraft</li> </researchPrerequisites> <workOffset>200</workOffset> <mineableYield>1</mineableYield> </li>

Adding this to an ThingDef's <modExtensions> that isn't usually mineable will allow the item to be mined when the basic Mines 2.0 research has been completed and will use 200 work to produce 1 item. Alternatively, adding it to something that Mines 2.0 already generates a recipe for will override the research required, adds 200 work for each operation, and sets the items produced to 1. You can also use the <workMultiplier> to multiply the work required by a float. If work required would end up <= 0 it will be set to 1.

Feel free to fork or expand on the code so long as you give credit. Source code in download.
3 Comments
Gogmagog 6 Aug, 2022 @ 10:27pm 
I'm using this with Expanded Materials - Metals, and when I add

<modExtensions>
<li Class="MinesAutomatedExtension.MineableSettings">
<researchPrerequisites>
<li>MinesAutomated_ResearchProjectDef_minecraft</li>
</researchPrerequisites>
<workOffset>200</workOffset>
<mineableYield>1</mineableYield>
</li>
</modExtensions>

from the this mod, to the chromium def it doesn't show up in the Mine recipe list.
I'm curious if there is something preventing it from working or if I'm missing something.
I've also posted this in the Materials Expanded - Metals mod comments as well. Any help at all would be appreciated.
Rat Man 29 Jun, 2022 @ 9:24pm 
deez nutz
Rat Man 29 Jun, 2022 @ 9:24pm 
balls