From f558f85abf08d52a494d9af99f489ddfe92e6423 Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Sat, 2 Jan 2016 00:38:56 +0100 Subject: [PATCH] Migrated all race constants to source exports --- db/const.txt | 21 --------------------- src/map/script_constants.h | 22 ++++++++++++++++++++++ 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/db/const.txt b/db/const.txt index bff5e29a3a..accddb4a43 100644 --- a/db/const.txt +++ b/db/const.txt @@ -247,32 +247,11 @@ bSubSkill 2077 bSubDefEle 2078 bStateNoRecoverRace 2079 -RC_Formless 0 -RC_Undead 1 -RC_Brute 2 -RC_Plant 3 -RC_Insect 4 -RC_Fish 5 -RC_Demon 6 -RC_DemiHuman 7 -RC_Angel 8 -RC_Dragon 9 -RC_Player 10 -RC_All 11 - Class_Normal 0 Class_Boss 1 Class_Guardian 2 Class_All 3 -RC2_None 0 -RC2_Goblin 1 -RC2_Kobold 2 -RC2_Orc 3 -RC2_Golem 4 -RC2_Guardian 5 -RC2_Ninja 6 - Size_Small 0 Size_Medium 1 Size_Large 2 diff --git a/src/map/script_constants.h b/src/map/script_constants.h index e9703b93f3..355ca9e5e9 100644 --- a/src/map/script_constants.h +++ b/src/map/script_constants.h @@ -2078,6 +2078,28 @@ export_constant(ELE_UNDEAD); export_constant(ELE_ALL); + /* races */ + export_constant(RC_FORMLESS); + export_constant(RC_UNDEAD); + export_constant(RC_BRUTE); + export_constant(RC_PLANT); + export_constant(RC_INSECT); + export_constant(RC_FISH); + export_constant(RC_DEMON); + export_constant(RC_DEMIHUMAN); + export_constant(RC_ANGEL); + export_constant(RC_DRAGON); + export_constant(RC_PLAYER); + export_constant(RC_ALL); + + export_constant(RC2_NONE); + export_constant(RC2_GOBLIN); + export_constant(RC2_KOBOLD); + export_constant(RC2_ORC); + export_constant(RC2_GOLEM); + export_constant(RC2_GUARDIAN); + export_constant(RC2_NINJA); + /* status options */ export_constant(OPTION_NOTHING); export_constant(OPTION_SIGHT);