Help with new trait

Started by laughingowl, June 26, 2019, 02:51:48 AM

Previous topic - Next topic

laughingowl

I think it could be done,  but can anyone give me help with what StatOffsets would be used (I thihnk) to:

have a trait make harvesting (say plants for start) take twice as long,  but yield 50% more.

With Scenario editor I can do it across the board for EVERYTHING..... but hoping there is a way to make a trait that would give it to just a pawn.

Mehni

The StatDefOf.PlantHarvestYield sounds promising. It doesn't do what you want.

QuoteYou think you know what the stat "Plant Harvest Yield" does? Well, let me surprise you - it does NOT increase the amount you get when you harvest plants, like "Mining Yield" does for ores.

It merely gives you a chance to fail below 100%, above 100% you do not gain anything.

Yes it can be done, and yes it'll need C#.

It's a patch on the toils in JobDriver_PlantWork, specifically the part where it uses plant.YieldNow(). That gets you both the pawn and the plant yield.

Guess what? There's already a mod for that.

https://steamcommunity.com/sharedfiles/filedetails/?id=1461790308&searchtext=syrchalis