diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-09-28 23:39:01 +0200 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-09-28 23:39:01 +0200 |
commit | 77ea3d90114a7d6503d19e89ffaf2e548f63e420 (patch) | |
tree | f92edc2775fde07a7b9df4ccf7c8f70f436c2c13 /src/common | |
parent | 60b44b8efa96d318fb22077011f2ccb5d2f03104 (diff) | |
download | manaserv-77ea3d90114a7d6503d19e89ffaf2e548f63e420.tar.gz manaserv-77ea3d90114a7d6503d19e89ffaf2e548f63e420.tar.xz manaserv-77ea3d90114a7d6503d19e89ffaf2e548f63e420.zip |
Started to fix the autoattack system.
I simply made the default autoattack look for the default skill
and add exp to it when killing monsters.
Now the player can earn xp again even if it's not well handled
between two logins.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/defines.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common/defines.h b/src/common/defines.h index c14aca5..140a692 100644 --- a/src/common/defines.h +++ b/src/common/defines.h @@ -126,6 +126,17 @@ enum Element }; /** + * Damage type, used to know how to compute them. + */ +enum DamageType +{ + DAMAGE_PHYSICAL = 0, + DAMAGE_MAGICAL, + DAMAGE_DIRECT, + DAMAGE_OTHER = -1 +}; + +/** * A series of hardcoded attributes that must be defined. * FIXME: Much of these serve only to indicate derivatives, and so would not be * needed once this is no longer a hardcoded system. |