Jump to content

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


Recommended Posts

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)?

Link to comment
Share on other sites

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.)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...