From 1e53053984f45825c26af9ffc27ba30c71408c35 Mon Sep 17 00:00:00 2001 From: xantara Date: Wed, 18 Jan 2012 23:15:45 +0000 Subject: - Fixed the function that returns the job name to include 3rd jobs - Fixes @who2 - bugreport:5252 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15495 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pc.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/src/map/pc.c b/src/map/pc.c index 9d7f67f3e..17a695fff 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4987,6 +4987,56 @@ const char* job_name(int class_) case JOB_SOUL_LINKER: return msg_txt(618); + case JOB_RUNE_KNIGHT: + case JOB_WARLOCK: + case JOB_RANGER: + case JOB_ARCH_BISHOP: + case JOB_MECHANIC: + case JOB_GUILLOTINE_CROSS: + return msg_txt(625 - JOB_RUNE_KNIGHT + class_); + + case JOB_RUNE_KNIGHT_T: + case JOB_WARLOCK_T: + case JOB_RANGER_T: + case JOB_ARCH_BISHOP_T: + case JOB_MECHANIC_T: + case JOB_GUILLOTINE_CROSS_T: + return msg_txt(625 - JOB_RUNE_KNIGHT_T + class_); + + case JOB_ROYAL_GUARD: + case JOB_SORCERER: + case JOB_MINSTREL: + case JOB_WANDERER: + case JOB_SURA: + case JOB_GENETIC: + case JOB_SHADOW_CHASER: + return msg_txt(631 - JOB_ROYAL_GUARD + class_); + + case JOB_ROYAL_GUARD_T: + case JOB_SORCERER_T: + case JOB_MINSTREL_T: + case JOB_WANDERER_T: + case JOB_SURA_T: + case JOB_GENETIC_T: + case JOB_SHADOW_CHASER_T: + return msg_txt(631 - JOB_ROYAL_GUARD_T + class_); + + case JOB_RUNE_KNIGHT2: + case JOB_RUNE_KNIGHT_T2: + return msg_txt(625); + + case JOB_ROYAL_GUARD2: + case JOB_ROYAL_GUARD_T2: + return msg_txt(631); + + case JOB_RANGER2: + case JOB_RANGER_T2: + return msg_txt(627); + + case JOB_MECHANIC2: + case JOB_MECHANIC_T2: + return msg_txt(629); + default: return msg_txt(651); } -- cgit v1.2.3-70-g09d2