From 5dd5ed1987bdafa8d32edf10317a3f80dd8b2708 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Thu, 26 Feb 2009 10:51:37 -0700 Subject: 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 --- src/beingmanager.cpp | 6 +++--- 1 file 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); -- cgit v1.2.3-70-g09d2