diff options
author | Ira Rice <irarice@gmail.com> | 2009-02-26 10:51:37 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-02-26 10:51:37 -0700 |
commit | 5dd5ed1987bdafa8d32edf10317a3f80dd8b2708 (patch) | |
tree | 013256e5052939459c01ba0fbc406b344c4ad95f /src | |
parent | 4c0259fc06f9147fa1c7e55db26659d1dade0f45 (diff) | |
download | mana-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')
-rw-r--r-- | src/beingmanager.cpp | 6 |
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); |