summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-04-13 22:48:28 -0600
committerJared Adams <jaxad0127@gmail.com>2010-04-16 17:42:45 -0600
commit11a6f342e579c26320334b9ae9735701386e3b25 (patch)
tree5de9a3647f881a1f27f4dc31054ad086bdc86d84 /src/localplayer.cpp
parent9f6c1f0bd9d2ef9a3be35fee2c488d8ea6c09d6d (diff)
downloadmana-11a6f342e579c26320334b9ae9735701386e3b25.tar.gz
mana-11a6f342e579c26320334b9ae9735701386e3b25.tar.bz2
mana-11a6f342e579c26320334b9ae9735701386e3b25.tar.xz
mana-11a6f342e579c26320334b9ae9735701386e3b25.zip
Add race support for eAthena
The job/class field is used to select the race. If the given race isn't defined, it falls back on the first race (so servers can use jobs/classes without races). Also rename job to subtype for Being and subclasses, and begin support for changing monster and NPC subtypes on the fly (particle effects still need to be reset when they change). Reviewed-by: Bertram
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index ef2d7e4e..961248dc 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -75,8 +75,8 @@ const short walkingKeyboardDelay = 1000;
LocalPlayer *player_node = NULL;
-LocalPlayer::LocalPlayer(int id, int job):
- Player(id, job, 0),
+LocalPlayer::LocalPlayer(int id, int subtype):
+ Player(id, subtype, 0),
mEquipment(new Equipment),
mAttackRange(0),
mTargetTime(-1),