summaryrefslogtreecommitdiff
path: root/src/map
AgeCommit message (Collapse)AuthorFilesLines
2016-01-06Replaced some explicit casts with BL_UCAST/BL_UCCASTHaru15-274/+475
- Replaced casts in foreach callbacks. - Added assertions and nullpo checks where applicable. Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Replaced some explicit casts with BL_UCAST/BL_UCCASTHaru13-92/+79
- Replaced the map-iterator related casts. Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Added const variants of BL_CAST/BL_UCAST: BL_CCAST/BL_UCCASTHaru1-0/+42
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Introduced the BL_UCAST() macro as an alternative to explicit castsHaru1-1/+40
- The benefit of using BL_UCAST() instead of an explicit cast is that it produces a compiler error if the argument is not a block_list. - The benefit of using BL_UCAST() instead of BL_CAST() is that the block_list argument is guaranteed to be evaluated only once. As such it can be used in places where the argument is a function. - No block_list type checking is done. As such, if a different block_list type is passed, behavior is undefined. The user should do the checking beforehand. Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_NPC to struct npc_data as per style guidelineshemagx8-106/+110
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_ELEM to struct elemental_data as per style guidelineshemagx5-30/+30
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_PET to struct pet_data as per style guidelineshemagx9-49/+52
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_SKILL to struct skill_data as per style guidelineshemagx5-18/+18
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_MER to struct mercenary_data as per style guidelineshemagx9-53/+52
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_HOM to struct homun_data as per style guidelineshemagx10-56/+57
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_MOB to struct mob_data as per strly guidelineshemagx13-169/+176
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_PC to struct map_session_data as per style guidelineshemagx26-915/+863
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Revert the changes in scope. thanks @dastgir.Jedzkie1-1/+2
2016-01-06Fixed #1071Jedzkie2-9/+12
Change the official message for NC_MAGICDECOY.
2016-01-05Add *swap script commandAnnieRuru1-0/+71
- extremely useful when writing algorithm functions Closes #1012 as merged Signed-off-by: Haru <haru@dotalux.com>
2016-01-05Fixed an unused variable warningHaru1-2/+0
Follow-up to 5020a123570a7b263f6b742df5891a36434473a0 Signed-off-by: Haru <haru@dotalux.com>
2016-01-05Change the leftover ItemID's in skills.Jedzkie2-2/+3
Closes #1067 as merged Signed-off-by: Haru <haru@dotalux.com>
2016-01-05Fix battle config Hp/Sp overflow valueAnnieRuru1-3/+3
- client can't handle value over 21474836 - SQL also can't save value over 16777215 due to mediumint unsigned Closes #965 as merged Signed-off-by: Haru <haru@dotalux.com>
2016-01-05Added Support for BodyStyleDastgir10-6/+117
Closes #974 as merged
2016-01-05Merge pull request #1053 from Jedzkie/Transformation_Scrolls_UpdateDastgir3-7/+5
Monster Transform Update:
2016-01-05Merge pull request #1047 from Kerubael/masterFrost1-1/+1
Spear Stab damage adjustment
2016-01-05Corrected the MTF_MATK, it should only give Fix MATK instead of MATK RateJedzkie1-1/+1
2016-01-05Enable the Status Icons for Transformation Candies.Jedzkie1-4/+4
2016-01-05Removal of Hard coded showscript command for Monster Transform.Jedzkie1-2/+0
2016-01-05Merge pull request #1058 from Emistry/scriptcommand_getitem2Dastgir2-3/+2
Fix *getitem2 and @item2 refine bug.
2016-01-03Rewritten skill_tree parser in a more robust wayHaru4-177/+276
- Fixes an issue that prevented skills with more than 4 pre-requisites or more than 3 pre-requisites and a minimum level from being parsed correctly (and without any warning or error messages). - Removes the limit on 5 pre-requisites (replaced a fixed size array with a VECTOR) - Reduces memory usage of skill_tree from 794kB to 440kB (32 bit) or 523kB (64 bit). - Fixes an issue that prevented multiple inheritance from working correctly in rare cases (incorrect definition order), without any warning or error messages. Now a warning is displayed if a job is inherited before being defined. - Fixes an issue that prevented skills inherited from being correctly merged with the skills defined for the current job. - Prevents a job from inheriting itself by accident. - Correctly detects skills defined twice for the same job. Signed-off-by: Haru <haru@dotalux.com>
2016-01-03Corrected wrong use of MAX_PC_SKILL_REQUIRE instead of MAX_HOM_SKILL_REQUIREHaru1-4/+4
Signed-off-by: Haru <haru@dotalux.com>
2016-01-03Fix *getitem2 and @item2 refine bug.Emistry2-3/+2
- Negative refine value isn't allowed.
2015-12-31Extended the numeric view ID deprecation to '-1' (FAKE_NPC)Haru1-2/+1
Signed-off-by: Haru <haru@dotalux.com>
2015-12-31Replaced leftover -1 view IDs with FAKE_NPCHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2015-12-29Spear Stab damage adjustmentKerubael1-1/+1
Set the skillratio to 20*skill_lv as mentioned in skill describtions.
2015-12-28Added some missing item IDs to their enumHaru2-1/+3
2015-12-28Added elemental_id enum, replaced numeric elemental IDs with enum membersHaru3-31/+61
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Added merc_id, replaced numeric mercenary IDs with enum membersHaru2-15/+50
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Added homun_id enum, replaced numeric constants with enum membersHaru3-15/+53
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Added Poring to the mob_id enumHaru4-5/+7
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Added Zanzou mob ID to the mob_id enumHaru2-2/+4
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Added Summon Legion-related monsters to the mob_id enumHaru2-8/+21
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Added Alchemist-related monsters to the enum mob_idHaru2-8/+48
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Replaced some numeric mob IDs with the proper constants (Magc Decoy / Silver ↵Haru1-14/+22
Sniper) Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Replaced some numeric mob IDs with the proper constants (MOBID_TREASURE_BOX*)Haru2-5/+7
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Added Splendide, Manuk and Mora mobs to the mob_id enumHaru2-3/+51
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Standardized (source) mob_id enumHaru8-57/+113
- MOBID_ constant names now follow the Mob DB spritenames. - The following names were changed: * MOBID_EMPERIUM => MOBID_EMPELIUM * MOBID_TREAS01 => MOBID_TREASURE_BOX1 * MOBID_TREAS40 => MOBID_TREASURE_BOX40 * MOBID_BARRICADE1 => MOBID_BARRICADE * MOBID_BARRICADE2 => MOBID_BARRICADE_ * MOBID_GUARIDAN_STONE1 => MOBID_S_EMPEL_1 * MOBID_GUARIDAN_STONE2 => MOBID_S_EMPEL_2 * MOBID_FOOD_STOR => MOBID_OBJ_A * MOBID_BLUE_CRYST => MOBID_OBJ_A2 * MOBID_PINK_CRYST => MOBID_OBJ_B2 * MOBID_TREAS41 => MOBID_TREASURE_BOX41 * MOBID_TREAS49 => MOBID_TREASURE_BOX49 - Added several missing items Signed-off-by: Haru <haru@dotalux.com>
2015-12-26Add *setgroupid script commands.Emistry1-0/+25
Useful for scripts that temporary adjust the group id of players.
2015-12-25*Show the katar critical bonus in player status windowAnnieRuru3-2/+6
- this is unofficial behavior, so it has to be in battle config Related to #579 Closes #882 as merged Signed-off-by: Haru <haru@dotalux.com>
2015-12-25Merge pull request #975 from dastgir/8-RefineDefhemagx3-4/+20
Added Costume/Shadow Atk/Def refine bonus setting
2015-12-25Merge pull request #1009 from Jedzkie/ItemDB_UpdatesDastgir10-312/+446
ItemDB Updates
2015-12-26Follow up ↵Jedzkie1-4/+2
https://github.com/Jedzkie/Hercules/commit/3f13598714f2d6cecb1c1e5c382592a904798624, thanks to dastgir.
2015-12-25Fix various ShowWarning that doesn't tell the source of the errorAnnieRuru1-7/+7
Closes #868 as merged
2015-12-25Added Costume/Shadow Atk/Def refine bonus settingDastgir3-4/+20