Hydromancerx Posted March 14, 2018 Share Posted March 14, 2018 I would like to make it so you get more Hungry when you are Cold and more Thirsty when you are Hot. Is this already a thing? If so where should I be looking at for the code or is it hard coded? Thanks in advance! Link to comment Share on other sites More sharing options...
Fenris_Wolf Posted March 14, 2018 Share Posted March 14, 2018 Not sure if this is already a thing. Looking at the java API: player:getBodyDamage():getTemperature() returns a float value player:getStats():getHunger() and player:getStats():getThirts() both return floats possibly on a EveryTenMinutes event (or similar), check the temperature of the player, then: local h = player:getStats():getHunger() player:getStats():setHunger(h + 0.1) or increment it by w/e value works for balance (disclamer: totally untested theory) Link to comment Share on other sites More sharing options...
Spikelord Posted March 14, 2018 Share Posted March 14, 2018 Way back swear i remember reading the emotes you got when hot/cold saying increased thirst/hunger am i remebering wrong? Link to comment Share on other sites More sharing options...
Patrick H Posted March 14, 2018 Share Posted March 14, 2018 (edited) Cold definitely needs more downsides.. I wouldn't mind risking catching a cold or a fever/ the flu even. There's no reason not to run the prone to illness perk. Edited March 14, 2018 by Patrick H Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now