RimWorld

RimWorld

[KYD] ReFreshed ReGrowth
Cactus fix
Thanks for the fixes!! I am glad to remove the small patches myself now.

There is still a minor bug introduced by ReGrowth: Core and Framework.
RG:CF replaces the "plant" entry from the Saguaro Cactus def, but forgets to define the harvest yield and product. This makes the Saguaro produce return the default of 27 wood when harvested, rather than Cactus Flesh (as per ReGrowth design). (Also the default of 27 wood is quite OP)

Here is my patch to fix this. I have replaced the plant entry again with a correct entry.

By the way, since you are also correcting typos, notice the description of RG-D_Plant_AngelWingsCactus from ReGrowth: Desert Expansion:

<description>A small cactus native to arid Earth environments. It's meat can be harvested for food.</description>

<Operation Class="PatchOperationFindMod"> <mods> <li>ReGrowth: Core and Framework</li> </mods> <match Class="PatchOperationSequence"> <success>Always</success> <operations> <li Class="PatchOperationReplace"> <xpath>/Defs/ThingDef[defName="Plant_SaguaroCactus"]/plant</xpath> <value> <plant> <lifespanDaysPerGrowDays>40</lifespanDaysPerGrowDays> <fertilityMin>0.05</fertilityMin> <fertilitySensitivity>0</fertilitySensitivity> <growDays>5</growDays> <harvestedThingDef>RG_RawCactus</harvestedThingDef> <harvestWork>300</harvestWork> <harvestYield>15</harvestYield> <harvestMinGrowth>0.2</harvestMinGrowth> <leaflessGraphicPath>Things/Plant/Leafless/SaguaroCactus_Leafless</leaflessGraphicPath> <treeLoversCareIfChopped>false</treeLoversCareIfChopped> <topWindExposure>0.08</topWindExposure> <wildClusterRadius>-1</wildClusterRadius> </plant> </value> </li> </operations> </match> </Operation>
< >
Showing 1-2 of 2 comments
Kayedon  [developer] 3 Dec, 2021 @ 11:08am 
I'll take a look! I must've missed this. If I recall, the cactus meat def is from the Desert expansion.

Edit:. NOPE, I'm an idiot. Will address. However, I'm unsure removing pretty much the best wood source in the game and replacing it with a food is the ideal solution.
Last edited by Kayedon; 3 Dec, 2021 @ 11:09am
The problem is that in vanilla it gives 15 wood, not 27. It goes to 27 because for some reasons ReGrowth removes the harvestWork and harvestYield entries

About substituting cacti yield from wood to cactus flesh, that's what ReGrowth: Core and Framework does:
- Cactuses no longer give wood:
Now they give you food, which is realistic. This will not reduce the amount of wood you have available on desert maps, as the plant density changes will balance this change out.

Then it with ReGrowth: Desert one can use palms as wood source as well.
< >
Showing 1-2 of 2 comments
Per page: 1530 50