Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Changed skill_db array to better memory allocation. * Reduced MAX_SKILL_LEVEL from 100 to 10 (part of Hercules HerculesWS/Hercules@0f4a50d), also has changes on skill_get checks for skill level that more than 10. * Reduced MAX_SKILL from 5020 to 1200 (actually only 1109 skills are used). * Added macros for checking Homunculus, Guild, Mercenary, & Elemental skill ranges. * Added skill check & index validation when player logged in and when @reloadskilldb. * Corrected `enum e_skill_flag` order for SKILL_FLAG_REPLACED_LV_0's sake. * Merged 'addtoskill' script command just as alias of 'skill' script command. * Fixed #277 * Changed 'skill' script command flag to constant value Signed-off-by: Cydh Ramdh <house.bad@gmail.com> NOTE: * Decreased memory usage by map-server reduced up to 50 MB. * Decreased memory for each player because of mmo_charstatus::skill[] only has 1200 array, before is 5020. * Please use skill_get_index() for accessing sd->status.skill[] or skill_db[], don't reckless use skill_id as array index. * Please import upgrade_20150211_skillset.sql Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
- Loading branch information
Showing
70 changed files
with
1,489 additions
and
1,196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.