• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

The number of parts depends on the quality of the item.

Survager

Tester
Hello. I have a mod for repairing and researching weapons, tools and armor.
The study requires, among other things, the parts of the subjects being studied.

Question: is it possible to somehow tie the number of parts received when scraping items (weapons, tools, armor)?

 
I believe it is not currently possible, at least not with the vanilla code.

I'm pretty sure this is how it works. When you scrap an item, the game uses the value of the "Material" property to determine what item it scraps to. It uses the "Weight" property to determine how many of those items are produced.

This means you can only scrap to one item, and that you can't tie the count to the tier level.

It might be possible with custom C# coding. If you want to go that route, you'd need to do a Harmony patch on the ItemActionEntryScrap.OnActivated method. But that's already a pretty complicated method, so it would be difficult. (It would probably involve either transpiling or replacing the method entirely.)

 
Back
Top