summaryrefslogtreecommitdiff
path: root/src/game-server/being.hpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-01-28 07:51:40 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-01-28 07:51:40 +0000
commitaa603c3ec05f6143b1c9085b56e3becf45be4bf5 (patch)
tree75a2a2b767f5a9380716986a82d98af2df7a589b /src/game-server/being.hpp
parent2dd95f1b69e9b024d8877dd400a141ccdf1c153f (diff)
downloadmanaserv-aa603c3ec05f6143b1c9085b56e3becf45be4bf5.tar.gz
manaserv-aa603c3ec05f6143b1c9085b56e3becf45be4bf5.tar.bz2
manaserv-aa603c3ec05f6143b1c9085b56e3becf45be4bf5.tar.xz
manaserv-aa603c3ec05f6143b1c9085b56e3becf45be4bf5.zip
Added weapon skill system and leveling system.
Diffstat (limited to 'src/game-server/being.hpp')
-rw-r--r--src/game-server/being.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game-server/being.hpp b/src/game-server/being.hpp
index 55aa603e..44857dc1 100644
--- a/src/game-server/being.hpp
+++ b/src/game-server/being.hpp
@@ -64,6 +64,7 @@ struct Damage
unsigned short cth; /**< Chance to hit. Opposes the evade attribute. */
unsigned char element; /**< Elemental damage. */
unsigned char type; /**< Damage type: Physical or magical? */
+ size_t usedSkill; /**< Skill used by source (needed for exp calculation) */
};
/**
@@ -128,7 +129,7 @@ class Being : public MovingObject
/**
* Cleans obsolete attribute modifiers.
*/
- void update();
+ virtual void update();
/**
* Takes a damage structure, computes the real damage based on the