summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorxantara <xantara@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-18 23:15:45 +0000
committerxantara <xantara@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-18 23:15:45 +0000
commit1e53053984f45825c26af9ffc27ba30c71408c35 (patch)
treed2d83959731b06f9dd5c36e0d3268fac2fddad8d /src/map/pc.c
parenta48c4ecb8c451198f22995b6e6af5547409d5753 (diff)
downloadhercules-1e53053984f45825c26af9ffc27ba30c71408c35.tar.gz
hercules-1e53053984f45825c26af9ffc27ba30c71408c35.tar.bz2
hercules-1e53053984f45825c26af9ffc27ba30c71408c35.tar.xz
hercules-1e53053984f45825c26af9ffc27ba30c71408c35.zip
- 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
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c50
1 files changed, 50 insertions, 0 deletions
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);
}