Files
rathena/npc
Aleos da081129d5 Merge pull request #264 from rathena/cleanup/skill_db
Skill array clean up
- 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 levels greater than 10.
- Reduced MAX_SKILL from 5020 to 1200 (only 1109 skills are used).
- Added macros for checking Homunculus, Guild, Mercenary, and Elemental skill ranges.
- Added skill check and index validation when player logs in and on use of @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.
Summary:
- Decreased memory usage by map-server up to 50 MB.
- Decreased memory for each player because of mmo_charstatus::skill[] array size from 5020 to 1200.
- Please use skill_get_index() for accessing sd->status.skill[] or skill_db[], don't recklessly use skill_id as array index.
NOTE:
- Please import upgrade_20150131_skillset.sql
2015-02-07 01:12:21 -05:00
..
2015-02-03 15:24:17 -08:00
2014-03-13 15:47:02 -04:00
2014-08-23 15:17:59 -04:00
2015-01-31 19:45:52 +07:00
2015-01-31 19:45:52 +07:00
2014-08-23 15:17:59 -04:00
2015-01-25 23:04:25 +01:00
2014-12-02 18:35:33 -08:00
2013-08-05 19:42:00 -04:00
2014-08-31 12:09:38 -04:00