Config.baseRate
: basically tells how much of each metabolism gets decreased at each tick (by default 1s)Config.lowTemperatureRate
: this is how much of metabolism gets decreased if the temperature is low, low temperature affects hunger.Config.highTemperatureRate
: as above, but for hot temperature. Hot temperature affects thirst.Config.walkingRate
: as above, but for walkingConfig.runningRate
: as above, but for running (walking and running are treated as separated actions, they don’t get added up).Config.stomachEmptyingRate
: this is how fast the stomach gets empty, basically it tells how frequently the player can eat again without vomiting because it’s full.Config.lowTemperature
: threshold value for low temperature, if the body temperature is below this temperature, it will add the lowTemperatureRate
debuff.Config.highTemperature
: same as above but inverted, if the body temperature is higher than this temperature, it will add the highTemperatureRate
debuff.config.lua
file inside the Config.nutritionalValues
table, this table holds all the data for the script to add/remove metabolism stats, execute custom actions and potentially trigger diseases.
raw_shrimp
and cooked_shrimp
so that we can give diseases if eaten raw.
Let’s go ahead and write a simple configuration