Jump to content

How to reduce hunger absorption


Recommended Posts

Hi, I'm trying to make it so my character gets less hunger from food. Also, I know this is a long shot, but is it possible to also reduce the amount of damage to stats when eating bad things? (mushrooms, rot, etc)

Link to comment
Share on other sites

26 minutes ago, Armadyllo said:

snip

Wortox does EXACTLY this, All of foods stats get halved when eaten by him,
 

if inst.components.eater ~= nil then
        inst.components.eater:SetAbsorptionModifiers(TUNING.WORTOX_FOOD_MULT, TUNING.WORTOX_FOOD_MULT, TUNING.WORTOX_FOOD_MULT)
    end

 

Link to comment
Share on other sites

 
 
1
21 minutes ago, Omaremad74 said:

Wortox does EXACTLY this, All of foods stats get halved when eaten by him,
 


if inst.components.eater ~= nil then
        inst.components.eater:SetAbsorptionModifiers(TUNING.WORTOX_FOOD_MULT, TUNING.WORTOX_FOOD_MULT, TUNING.WORTOX_FOOD_MULT)
    end

Oh, thanks! Where exactly should this go though, in my character.lua I'm assuming? Just want to make sure.

 

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
 Share

×
  • Create New...