Jump to content

PERISH_SALTBOX_MULT Does not work.


JackJohnsn
  • Pending

If I'm understood correctly, the `PERISH_SALTBOX_MULT` constant is used to control the perish rate for saltbox, the same way `PERISH_FRIDGE_MULT` controls the perish rate for icebox. But using `TUNING.PERISH_SALTBOX_MULT` in your `customcommands.lua` file has no effect. I've also used `PERISH_FOOD_PRESERVER_MULT`, doesn't work either.


Steps to Reproduce

Mentioned above.




User Feedback


Are you setting it before it gets used? 

Additionally, I don't see any references to that tuning variable in customcommands.lua.

Edited by penguin0616

Share this comment


Link to comment
Share on other sites

8 hours ago, penguin0616 said:

Are you setting it before it gets used? 

Additionally, I don't see any references to that tuning variable in customcommands.lua.

What do you mean? If you set:

TUNING.PERISH_FRIDGE_MULT =0

in your customcommands.lua file before loading the game, fridge will stop spoilage. But doing the same:

TUNING.PERISH_SALTBOX_MULT=0

Does nothing.

Share this comment


Link to comment
Share on other sites

39 minutes ago, JackJohnsn said:

in your customcommands.lua file before loading the game, fridge will stop spoilage.

Yeah, because TUNING.PERISH_FRIDGE_MULT is used dynamically in calculations.

  

39 minutes ago, JackJohnsn said:

TUNING.PERISH_SALTBOX_MULT=0

Does nothing.

TUNING.PERISH_SALTBOX_MULT=0 isn't used for dynamic calculations. It's a one and done static calculation. 

You need to set it before it gets used. You shouldn't really just be sticking code into random game files either, unless you're playing offline or by yourself. Even then though, should just put it in a mod.

Edited by penguin0616

Share this comment


Link to comment
Share on other sites

1 hour ago, penguin0616 said:

You need to set it before it gets used. You shouldn't really just be sticking code into random game files either, unless you're playing offline or by yourself. Even then though, should just put it in a mod.

I think you've never used customcommands.lua in your servers before.

Share this comment


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