Skip to content

Commit

Permalink
Migrated all class and size 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 f558f85 commit 2eb8b93
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
10 changes: 0 additions & 10 deletions db/const.txt
Original file line number Diff line number Diff line change
Expand Up @@ -247,16 +247,6 @@ bSubSkill 2077
bSubDefEle 2078
bStateNoRecoverRace 2079

Class_Normal 0
Class_Boss 1
Class_Guardian 2
Class_All 3

Size_Small 0
Size_Medium 1
Size_Large 2
Size_All 3

BF_WEAPON 0x0001
BF_MAGIC 0x0002
BF_MISC 0x0004
Expand Down
12 changes: 12 additions & 0 deletions src/map/script_constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -2100,6 +2100,18 @@
export_constant(RC2_GUARDIAN);
export_constant(RC2_NINJA);

/* classes */
export_constant(CLASS_NORMAL);
export_constant(CLASS_BOSS);
export_constant(CLASS_GUARDIAN);
export_constant(CLASS_ALL);

/* sizes */
script_set_constant("Size_Small",SZ_SMALL,false);
script_set_constant("Size_Medium",SZ_MEDIUM,false);
script_set_constant("Size_Large",SZ_BIG,false);
script_set_constant("Size_All",SZ_ALL,false);

/* status options */
export_constant(OPTION_NOTHING);
export_constant(OPTION_SIGHT);
Expand Down

0 comments on commit 2eb8b93

Please sign in to comment.