mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 15:00:25 +00:00
svn -> git Migration
This commit is contained in:
@@ -0,0 +1,113 @@
|
||||
/* EQEMu: Everquest Server Emulator
|
||||
Copyright (C) 2001-2002 EQEMu Development Team (http://eqemu.org)
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; version 2 of the License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY except by those people which sell it, which
|
||||
are required to give you total support for your newly bought product;
|
||||
without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||
A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#include "../common/debug.h"
|
||||
#include "../common/eq_packet_structs.h"
|
||||
#include "../common/races.h"
|
||||
|
||||
const char* GetRaceName(uint16 race) {
|
||||
switch(race) {
|
||||
case HUMAN:
|
||||
return "Human";
|
||||
case BARBARIAN:
|
||||
return "Barbarian";
|
||||
case ERUDITE:
|
||||
return "Erudite";
|
||||
case WOOD_ELF:
|
||||
return "Wood Elf";
|
||||
case HIGH_ELF:
|
||||
return "High Elf";
|
||||
case DARK_ELF:
|
||||
return "Dark Elf";
|
||||
case HALF_ELF:
|
||||
return "Half Elf";
|
||||
case DWARF:
|
||||
return "Dwarf";
|
||||
case TROLL:
|
||||
return "Troll";
|
||||
case OGRE:
|
||||
return "Ogre";
|
||||
case HALFLING:
|
||||
return "Halfling";
|
||||
case GNOME:
|
||||
return "Gnome";
|
||||
case IKSAR:
|
||||
return "Iksar";
|
||||
case WEREWOLF:
|
||||
return "Werewolf";
|
||||
case SKELETON:
|
||||
return "Skeleton";
|
||||
case ELEMENTAL:
|
||||
return "Elemental";
|
||||
case EYE_OF_ZOMM:
|
||||
return "Eye of Zomm";
|
||||
case WOLF_ELEMENTAL:
|
||||
return "Wolf Elemental";
|
||||
case IKSAR_SKELETON:
|
||||
return "Iksar Skeleton";
|
||||
case VAHSHIR:
|
||||
return "Vah Shir";
|
||||
case FROGLOK:
|
||||
case FROGLOK2:
|
||||
return "Froglok";
|
||||
case DRAKKIN:
|
||||
return "Drakkin";
|
||||
default:
|
||||
return "Unknown";
|
||||
}
|
||||
}
|
||||
|
||||
uint32 GetArrayRace(uint16 race) {
|
||||
switch(race) {
|
||||
case HUMAN:
|
||||
return Array_Race_HUMAN;
|
||||
case BARBARIAN:
|
||||
return Array_Race_BARBARIAN;
|
||||
case ERUDITE:
|
||||
return Array_Race_ERUDITE;
|
||||
case WOOD_ELF:
|
||||
return Array_Race_WOOD_ELF;
|
||||
case HIGH_ELF:
|
||||
return Array_Race_HIGH_ELF;
|
||||
case DARK_ELF:
|
||||
return Array_Race_DARK_ELF;
|
||||
case HALF_ELF:
|
||||
return Array_Race_HALF_ELF;
|
||||
case DWARF:
|
||||
return Array_Race_DWARF;
|
||||
case TROLL:
|
||||
return Array_Race_TROLL;
|
||||
case OGRE:
|
||||
return Array_Race_OGRE;
|
||||
case HALFLING:
|
||||
return Array_Race_HALFLING;
|
||||
case GNOME:
|
||||
return Array_Race_GNOME;
|
||||
case IKSAR:
|
||||
return Array_Race_IKSAR;
|
||||
case VAHSHIR:
|
||||
return Array_Race_VAHSHIR;
|
||||
case FROGLOK:
|
||||
case FROGLOK2:
|
||||
return Array_Race_FROGLOK;
|
||||
case DRAKKIN:
|
||||
return Array_Race_DRAKKIN;
|
||||
default:
|
||||
return Array_Race_UNKNOWN;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user