Skip to content

Instantly share code, notes, and snippets.

@Phantom23
Created August 30, 2014 14:44
Show Gist options
  • Save Phantom23/d8f460b57291d91655d5 to your computer and use it in GitHub Desktop.
Save Phantom23/d8f460b57291d91655d5 to your computer and use it in GitHub Desktop.
// Race value is index in ChrRaces.dbc
enum Races
{
RACE_NONE = 0,
RACE_HUMAN = 1,
RACE_ORC = 2,
RACE_DWARF = 3,
RACE_NIGHTELF = 4,
RACE_UNDEAD_PLAYER = 5,
RACE_TAUREN = 6,
RACE_GNOME = 7,
RACE_TROLL = 8,
RACE_GOBLIN = 9,
RACE_BLOODELF = 10,
RACE_DRAENEI = 11,
RACE_FEL_ORC = 12,
RACE_NAGA = 13,
RACE_BROKEN = 14,
RACE_SKELETON = 15,
RACE_VRYKUL = 16,
RACE_TUSKARR = 17,
RACE_FOREST_TROLL = 18,
RACE_TAUNKA = 19,
RACE_NORTHREND_SKELETON = 20,
RACE_ICE_TROLL = 21
};
// max+1 for player race
#define MAX_RACES 22
#define RACEMASK_ALL_PLAYABLE \
((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_GNOME-1)) |(1<<(RACE_TROLL-1)) |(1<<(RACE_GOBLIN-1))| \
(1<<(RACE_BLOODELF-1))|(1<<(RACE_DRAENEI-1)) |(1<<(RACE_FEL_ORC-1))| \
(1<<(RACE_NAGA-1)) |(1<<(RACE_BROKEN-1)) |(1<<(RACE_SKELETON-1))| \
(1<<(RACE_VRYKUL-1)) |(1<<(RACE_TUSKARR-1)) |(1<<(RACE_FOREST_TROLL-1))| \
(1<<(RACE_TAUNKA-1)) |(1<<(RACE_NORTHREND_SKELETON-1)) |(1<<(RACE_ICE_TROLL-1)) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment