Hunger


So I finally got time again to sit down and write some code again. Between work and the holidays I have been busy as hell. But I got a few hours in to work on a new section.

I added the ground roots of hunger. I got it so it ticks down your hunger and when it hits certain points it starts to annoy you with messages, take away ac and att’s, and then start’s to tick hps away. If my crappy math is right you will go from full to starving to death in a little over an hr give or take. I still need to work on food item’s that you can eat and drink to recover from it. The hp loss will depend on your level so the higher the level the more you loose.

So while trying to implement it I had a real hard time remember how the spell system and ability system works. I was trying to use the drain ability and could not get it to work so need to go back and see if it’s broke or what. I decided to just hard code the tick in the checkHunger() method since it’s in the player’s class anyhow. Plus it let’s me to play with the numbers easier and a lot less overhead keeping that info.

Till next time…

Share