Jump to content

Recommended Posts

Hi

Each character uses a block that decides what the penalties are for drowning via tuning.lua

DROWNING_DAMAGE =
        {
            DEFAULT =
            {
                HEALTH_PENALTY = 0.25,
                HUNGER = 25,
                SANITY = 25,
                WETNESS = 100,
            },

            WX78 = 
            {
                HEALTH_PENALTY = 0.4,
                HUNGER = 25,
                SANITY = 50,
                WETNESS = 100,
            },

            WOODIE = 
            {
                HEALTH_PENALTY = 0.25,
                HUNGER = 50,
                SANITY = 25,
                WETNESS = 100,
            },

            WEREWOODIE = 
            {
                WERENESS = 100,
                WETNESS = 100,
            },

            WURT =
            {
                HEALTH_PENALTY = 0,
                HUNGER = 0,
                SANITY = 0,
                WETNESS = 50,  
            }
        },

The format is unusual and so my question is how can I add my own block in modmain.lua, and how can I set it up in my character.lua?

  • Like 1
Link to comment
https://forums.kleientertainment.com/forums/topic/116510-drown-damage/
Share on other sites

8 minutes ago, Hornete said:

All you simply have to do is,


GLOBAL.TUNING.DROWNING_DAMAGE.CHARACTER = {
	HEALTH_PENALTY = 0,
	HUNGER = 0,
	SANITY = 0,
	WETNESS = 50,
}


 

Thank you, but will my character automatically use it or will it go for Default?

Edited by Well-met
  • Like 1

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