Jump to content
Sign in to follow this  
Hydromancerx

Hot/Cold vs Hunger/Thist

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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 by Patrick H

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...