summaryrefslogtreecommitdiff
path: root/src/game-server/being.hpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-03-04 06:08:39 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-03-04 06:08:39 +0000
commit41079fd0e69cde97fcb44d2e6fe03ad198764fea (patch)
treef773ef2f7084250501414b51eb7f6ec8f00eef0d /src/game-server/being.hpp
parent3cf2198e2485c80633f8d80d1a4c12843db86fde (diff)
downloadmanaserv-41079fd0e69cde97fcb44d2e6fe03ad198764fea.tar.gz
manaserv-41079fd0e69cde97fcb44d2e6fe03ad198764fea.tar.bz2
manaserv-41079fd0e69cde97fcb44d2e6fe03ad198764fea.tar.xz
manaserv-41079fd0e69cde97fcb44d2e6fe03ad198764fea.zip
Added natural HP regeneration, capped HP at maximum and set HP to 1 after respawn.
Diffstat (limited to 'src/game-server/being.hpp')
-rw-r--r--src/game-server/being.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game-server/being.hpp b/src/game-server/being.hpp
index 44857dc1..27da220a 100644
--- a/src/game-server/being.hpp
+++ b/src/game-server/being.hpp
@@ -213,6 +213,7 @@ class Being : public MovingObject
virtual void modifiedAttribute(int) {}
protected:
+ static const int TICKS_PER_HP_REGENERATION = 100;
Action mAction;
std::vector< Attribute > mAttributes;
@@ -222,6 +223,7 @@ class Being : public MovingObject
Hits mHitsTaken; /**< List of punches taken since last update */
AttributeModifiers mModifiers; /**< Currently modified attributes. */
+ int mHpRegenTimer; /**< timer for hp regeneration*/
};
#endif // _TMWSERV_BEING_H_