mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[10928] Uncomment all races in enum Races
Race can also be creature race and needed for future implementation of spells. RACE_UNDEAD_PLAYER renamed to more proper RACE_UNDEAD Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
d400f00224
commit
f8921dbca8
4 changed files with 27 additions and 27 deletions
|
|
@ -797,7 +797,7 @@ bool Creature::IsTrainerOf(Player* pPlayer, bool msg) const
|
||||||
case RACE_ORC: pPlayer->PlayerTalkClass->SendGossipMenu(5863,GetGUID()); break;
|
case RACE_ORC: pPlayer->PlayerTalkClass->SendGossipMenu(5863,GetGUID()); break;
|
||||||
case RACE_TAUREN: pPlayer->PlayerTalkClass->SendGossipMenu(5864,GetGUID()); break;
|
case RACE_TAUREN: pPlayer->PlayerTalkClass->SendGossipMenu(5864,GetGUID()); break;
|
||||||
case RACE_TROLL: pPlayer->PlayerTalkClass->SendGossipMenu(5816,GetGUID()); break;
|
case RACE_TROLL: pPlayer->PlayerTalkClass->SendGossipMenu(5816,GetGUID()); break;
|
||||||
case RACE_UNDEAD_PLAYER:pPlayer->PlayerTalkClass->SendGossipMenu( 624,GetGUID()); break;
|
case RACE_UNDEAD: pPlayer->PlayerTalkClass->SendGossipMenu( 624,GetGUID()); break;
|
||||||
case RACE_BLOODELF: pPlayer->PlayerTalkClass->SendGossipMenu(5862,GetGUID()); break;
|
case RACE_BLOODELF: pPlayer->PlayerTalkClass->SendGossipMenu(5862,GetGUID()); break;
|
||||||
case RACE_DRAENEI: pPlayer->PlayerTalkClass->SendGossipMenu(5864,GetGUID()); break;
|
case RACE_DRAENEI: pPlayer->PlayerTalkClass->SendGossipMenu(5864,GetGUID()); break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@ void PlayerTaxi::InitTaxiNodesForLevel(uint32 race, uint32 chrClass, uint32 leve
|
||||||
case RACE_DWARF: SetTaximaskNode(6); break; // Dwarf
|
case RACE_DWARF: SetTaximaskNode(6); break; // Dwarf
|
||||||
case RACE_NIGHTELF: SetTaximaskNode(26);
|
case RACE_NIGHTELF: SetTaximaskNode(26);
|
||||||
SetTaximaskNode(27); break; // Night Elf
|
SetTaximaskNode(27); break; // Night Elf
|
||||||
case RACE_UNDEAD_PLAYER: SetTaximaskNode(11); break;// Undead
|
case RACE_UNDEAD: SetTaximaskNode(11); break; // Undead
|
||||||
case RACE_TAUREN: SetTaximaskNode(22); break; // Tauren
|
case RACE_TAUREN: SetTaximaskNode(22); break; // Tauren
|
||||||
case RACE_GNOME: SetTaximaskNode(6); break; // Gnome
|
case RACE_GNOME: SetTaximaskNode(6); break; // Gnome
|
||||||
case RACE_TROLL: SetTaximaskNode(23); break; // Troll
|
case RACE_TROLL: SetTaximaskNode(23); break; // Troll
|
||||||
|
|
|
||||||
|
|
@ -34,36 +34,36 @@ enum Gender
|
||||||
// Race value is index in ChrRaces.dbc
|
// Race value is index in ChrRaces.dbc
|
||||||
enum Races
|
enum Races
|
||||||
{
|
{
|
||||||
RACE_HUMAN = 1,
|
RACE_HUMAN = 1,
|
||||||
RACE_ORC = 2,
|
RACE_ORC = 2,
|
||||||
RACE_DWARF = 3,
|
RACE_DWARF = 3,
|
||||||
RACE_NIGHTELF = 4,
|
RACE_NIGHTELF = 4,
|
||||||
RACE_UNDEAD_PLAYER = 5,
|
RACE_UNDEAD = 5,
|
||||||
RACE_TAUREN = 6,
|
RACE_TAUREN = 6,
|
||||||
RACE_GNOME = 7,
|
RACE_GNOME = 7,
|
||||||
RACE_TROLL = 8,
|
RACE_TROLL = 8,
|
||||||
//RACE_GOBLIN = 9,
|
RACE_GOBLIN = 9,
|
||||||
RACE_BLOODELF = 10,
|
RACE_BLOODELF = 10,
|
||||||
RACE_DRAENEI = 11,
|
RACE_DRAENEI = 11,
|
||||||
//RACE_FEL_ORC = 12,
|
RACE_FEL_ORC = 12,
|
||||||
//RACE_NAGA = 13,
|
RACE_NAGA = 13,
|
||||||
//RACE_BROKEN = 14,
|
RACE_BROKEN = 14,
|
||||||
//RACE_SKELETON = 15,
|
RACE_SKELETON = 15,
|
||||||
//RACE_VRYKUL = 16,
|
RACE_VRYKUL = 16,
|
||||||
//RACE_TUSKARR = 17,
|
RACE_TUSKARR = 17,
|
||||||
//RACE_FOREST_TROLL = 18,
|
RACE_FOREST_TROLL = 18,
|
||||||
//RACE_TAUNKA = 19,
|
RACE_TAUNKA = 19,
|
||||||
//RACE_NORTHREND_SKELETON = 20,
|
RACE_NORTHREND_SKELETON = 20,
|
||||||
//RACE_ICE_TROLL = 21
|
RACE_ICE_TROLL = 21
|
||||||
};
|
};
|
||||||
|
|
||||||
// max+1 for player race
|
// max+1 for player race
|
||||||
#define MAX_RACES 12
|
#define MAX_RACES 12
|
||||||
|
|
||||||
#define RACEMASK_ALL_PLAYABLE \
|
#define RACEMASK_ALL_PLAYABLE \
|
||||||
((1<<(RACE_HUMAN-1)) |(1<<(RACE_ORC-1)) |(1<<(RACE_DWARF-1)) | \
|
((1<<(RACE_HUMAN-1)) |(1<<(RACE_ORC-1)) |(1<<(RACE_DWARF-1)) | \
|
||||||
(1<<(RACE_NIGHTELF-1))|(1<<(RACE_UNDEAD_PLAYER-1))|(1<<(RACE_TAUREN-1)) | \
|
(1<<(RACE_NIGHTELF-1)) |(1<<(RACE_UNDEAD-1)) |(1<<(RACE_TAUREN-1)) | \
|
||||||
(1<<(RACE_GNOME-1)) |(1<<(RACE_TROLL-1)) |(1<<(RACE_BLOODELF-1))| \
|
(1<<(RACE_GNOME-1)) |(1<<(RACE_TROLL-1)) |(1<<(RACE_BLOODELF-1))| \
|
||||||
(1<<(RACE_DRAENEI-1)) )
|
(1<<(RACE_DRAENEI-1)) )
|
||||||
|
|
||||||
// Class value is index in ChrClasses.dbc
|
// Class value is index in ChrClasses.dbc
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10927"
|
#define REVISION_NR "10928"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue