summaryrefslogtreecommitdiff
path: root/src/beingmanager.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-02-26 10:51:37 -0700
committerIra Rice <irarice@gmail.com>2009-02-26 10:51:37 -0700
commit5dd5ed1987bdafa8d32edf10317a3f80dd8b2708 (patch)
tree013256e5052939459c01ba0fbc406b344c4ad95f /src/beingmanager.cpp
parent4c0259fc06f9147fa1c7e55db26659d1dade0f45 (diff)
downloadmana-5dd5ed1987bdafa8d32edf10317a3f80dd8b2708.tar.gz
mana-5dd5ed1987bdafa8d32edf10317a3f80dd8b2708.tar.bz2
mana-5dd5ed1987bdafa8d32edf10317a3f80dd8b2708.tar.xz
mana-5dd5ed1987bdafa8d32edf10317a3f80dd8b2708.zip
Extended job numbers based on what's actually used for Ragnarok's
server. TODO: Make this externally configurable, so that specific servers can specify what they use specific sprite IDs for, as well as specifying good defaults as well, in case that configuration file isn't found. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/beingmanager.cpp')
-rw-r--r--src/beingmanager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/beingmanager.cpp b/src/beingmanager.cpp
index d63e0dc5..a2d39150 100644
--- a/src/beingmanager.cpp
+++ b/src/beingmanager.cpp
@@ -69,11 +69,11 @@ Being* BeingManager::createBeing(Uint32 id, Uint16 job)
{
Being *being;
- if (job < 10)
+ if (job <= 25 || (job >= 4001 && job <= 4049))
being = new Player(id, job, mMap);
- else if (job >= 100 && job < 200)
+ else if (job >= 46 && job <= 1000)
being = new NPC(id, job, mMap, mNetwork);
- else if (job >= 1000 && job < 1200)
+ else if (job > 1000 && job <= 2000)
being = new Monster(id, job, mMap);
else
being = new Being(id, job, mMap);