4 Commits

Author SHA1 Message Date
Auke Kok
8f8956e9b7 Update stamina max handling
There no longer is a real stamina cap. Any food eaten while stamina
is not at the visual max(20) will have its stamina value added
entirely to the stamina value, exceeding the visual max, so
no food value is ever lost. However, you can't eat foods anymore
when the stamina value is at or over the visual cap.
2016-02-16 22:04:43 -08:00
Auke Kok
96588a16ea Code cleanups, fix craft/punch exhaustion.
- add exhaustion for punhing players
- fix exhaustion for craftin (was not working)
- add more exhaustion when jumping (double of walking)

I radically made the action callers simpler by pushing
all the validity checks down, which removes a bunch of
functions that were just duplicating code. This makes
much of it a lot more straightforward and easier to
understand.
2016-02-16 19:59:44 -08:00
Auke Kok
7e8c00b1bc Style changes/fixes/typos to README.txt 2016-02-16 19:04:49 -08:00
Auke Kok
503a0f7b62 Stamina mod.
This mod implements a reduced version of BlockMen's hunger+hud
mod, implementing a player "stamina" stat that converts food
hp_change to stamina points. Stamina points heal the player
over time if they are available and higher than the HP amount.
2016-02-16 16:33:58 -08:00