Skip to content

Commit

Permalink
Migrated all race constants to source exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Lemongrass3110 committed Jan 1, 2016
1 parent 7565dcc commit f558f85
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
21 changes: 0 additions & 21 deletions db/const.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 22 additions & 0 deletions src/map/script_constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f558f85

Please sign in to comment.