diff options
author | AnnieRuru <jeankof@ymail.com> | 2014-09-01 02:50:15 +0800 |
---|---|---|
committer | AnnieRuru <jeankof@ymail.com> | 2014-09-01 02:50:15 +0800 |
commit | bac319d7f99c9a87c20774a50e13d9c80d2aaf8a (patch) | |
tree | 9ead1053a65088db3b73666e227ad66cfcc91136 | |
parent | 2ebfb09d86d7cda778f555c693ef7492515e07d3 (diff) | |
download | hercules-bac319d7f99c9a87c20774a50e13d9c80d2aaf8a.tar.gz hercules-bac319d7f99c9a87c20774a50e13d9c80d2aaf8a.tar.bz2 hercules-bac319d7f99c9a87c20774a50e13d9c80d2aaf8a.tar.xz hercules-bac319d7f99c9a87c20774a50e13d9c80d2aaf8a.zip |
Add MAX_REFINE as hard-coded constant
MAX_REFINE has different value for renewal(20) and non-renewal(10)
and some server even adjust this value
so its better to add this constant so there's no need to add a configuration when making custom refiner scripts
-rw-r--r-- | doc/script_commands.txt | 1 | ||||
-rw-r--r-- | src/map/script.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index e964385ba..3a65c86dd 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -702,6 +702,7 @@ MAX_INVENTORY - Maximum inventory items MAX_ZENY - Maximum Zeny MAX_BG_MEMBERS - Maximum BattleGround members MAX_CHAT_USERS - Maximum Chat users +MAX_REFINE - Maximum Refine level Send targets and status options are also hard-coded and can be found in src/map/script.c::script_hardcoded_constants or in functions that diff --git a/src/map/script.c b/src/map/script.c index 26072cf66..2c893219c 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -19282,6 +19282,7 @@ void script_hardcoded_constants(void) { script->set_constant("MAX_ZENY",MAX_ZENY,false); script->set_constant("MAX_BG_MEMBERS",MAX_BG_MEMBERS,false); script->set_constant("MAX_CHAT_USERS",MAX_CHAT_USERS,false); + script->set_constant("MAX_REFINE",MAX_REFINE,false); /* status options */ script->set_constant("Option_Nothing",OPTION_NOTHING,false); |