Jump to content

Craft spears without damaging the knife?


GalloViking

Recommended Posts

Hello survivors, I need some help.

 

I've very recently started modding (yesterday, actually), and made a rather simple spear oriented profession. The profession works fine, and now I'm trying to give it a special trait that allows it to make crafted spears without changing durability on the knife used in the process. Searching through the files, I've found that knife durability reduction is done in Recipe.OnCreate.CreateSpear function, found in the recipecode.lua. How exactly can I edit this function to add a simple exception for my trait?

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