Jump to content

Recommended Posts

I suppose english is not your first language, but I assume what you want is to make a character who does not lower sanity from dark weapons/armor. 

 

I am very new to coding Dont Starve, but I think the easiest way would be to give your character a sanity increase per tick when they wield these items so balance out the drop in sanity.

 

So:

When character uses night armor: +10 sanity per minute.

When character uses dark sword: +20 sanity per minute.

When character uses both: +30 sanity per minute.

 

This would balance out the sanity loss.

 

Alternatively, although I do not know how exactly to do it (yet), you could make a prefab in your mod of both items that is exactly the same as the game one, except without the sanity loss and a different file name (same game name though). Then, you would modify the tech menu that shows up to your character so that when you craft dark sword/night armor, it will craft the changed prefabs that are in your mod, and not the game prefabs that have sanity loss.

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