summaryrefslogtreecommitdiff
path: root/src/map/battle.c
AgeCommit message (Collapse)AuthorFilesLines
2015-12-29Spear Stab damage adjustmentKerubael1-1/+1
Set the skillratio to 20*skill_lv as mentioned in skill describtions.
2015-12-28Standardized (source) mob_id enumHaru1-7/+7
- 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-25*Show the katar critical bonus in player status windowAnnieRuru1-2/+3
- 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-RefineDefhemagx1-0/+3
Added Costume/Shadow Atk/Def refine bonus setting
2015-12-26Follow up ↵Jedzkie1-4/+2
https://github.com/Jedzkie/Hercules/commit/3f13598714f2d6cecb1c1e5c382592a904798624, thanks to dastgir.
2015-12-25Added Costume/Shadow Atk/Def refine bonus settingDastgir1-0/+3
2015-12-24Item Update:Jedzkie1-12/+26
- Fix items that uses SPVanishRate bonus are not working properly. - Fix Velum Katzbalger item effect. - Added HPVanishRate bonus.
2015-12-23Update:Jedzkie1-5/+5
- Rename BLUE_CRYST and PINK_CRYST to BLUE_CRYSTAL and PINK_CRYSTAL - Rename FOOD_STOR to FOOD_STORAGE - Rename TREAS01, TREAS40, TREAS41, TREAS49 to TREASURE_01, TREASURE_40, TREASURE_41, TREASURE_49
2015-12-23Item Update:Jedzkie1-2/+2
- Remove the hard coded entry of Monster Transform Scrolls - Change mob names into mob constants.
2015-12-19Corrected a typo in the Renewal cardfix calculationHaru1-3/+3
- If you name your variabled cardfix_ and cardfix, don't complain if you get confused... - Since 210c963d Signed-off-by: Haru <haru@dotalux.com>
2015-12-17Implement official effect of MVP ScrollsJedzkie1-0/+11
- Ghostring Scroll - Phreeoni Scroll - Tao Gunka Scroll - Mistress Scroll - Orc Hero Scroll - Orc Lord Scroll (thanks to Dastgir) Note: in Aegis, the reflect damage from Orc Lord Scroll is in the user not in the attacker, but in this commit, the attacker receives the reflect damage. - Added New Cash Boxes * Tao Gunka Scroll Box * Mistress Scroll Box Signed-off-by: Haru <haru@dotalux.com>
2015-12-15Added GPL-compliant header to all sources and build scriptsHaru1-4/+20
Signed-off-by: Haru <haru@dotalux.com>
2015-12-14Added official effect of Mora Berry.Jedzkie1-6/+18
Signed-off-by: Haru <haru@dotalux.com>
2015-12-13- Fixed #723 now it's possible to retrieve Battle Config Settings from ↵Your Name1-6/+14
plugins into scripts - Fixed Possible Crash when null parse function pointer passed to HPMi->addConf - Now it's possible to use same parse function for all config entries - Now Battle Config entries must have a return function
2015-12-06Refactored/fixed race handling for bonuses that store it as a bitmaskHaru1-16/+16
- The following bonuses now work correctly with RC_DemiPlayer, RC_NonDemiPlayer, RC_NonDemiHuman, RC_Nonplayer: * bIgnoreDefRace * bIgnoreMdefRace * bDefRatioAtkRace * bAddMonsterDropChainItem (bonus3) * bAddMonsterDropItem (bonus3) - A new function (map->race_id2mask) is provided, to easily and efficiently generate a bitmask from a race ID. - The RC_ALL race ID is mapped to RC_BOSS and RC_NONBOSS, for backwards compatibility. Signed-off-by: Haru <haru@dotalux.com>
2015-11-18Merge pull request #837 from AnnieRuru/request_5Haruna1-0/+1
Add new config to allow player vend/chat room nearby hidden npc (#834)
2015-11-14Add option for fix hit after warp.Andrei Karas1-4/+8
Introduced new configuration option: fix_warp_hit_delay_abuse. Official way is to set this option to false.
2015-10-29Add new config to allow player vend/chat room nearby hidden npc (#834)AnnieRuru1-0/+1
credit to Emistry for the idea
2015-10-25Merge pull request #516 from milky-milk/pre-re_defenderHaruna1-0/+5
Fixed defending aura bug in pre-renewal
2015-10-22Removed support for the deprecated SQL item, mob, mob_skill databases.Haru1-10/+3
Follow-up to 84e02ac28fbb15c58d0a0f8a916b49663198b05b Signed-off-by: Haru <haru@dotalux.com>
2015-10-19rename malloc.c/h to memmgr.Andrei Karas1-1/+1
2015-10-07Deleted dublicateMilk1-3/+2
2015-09-28Fixes Maelstrom crashing serverNihadm891-1/+1
Bug Report: https://github.com/HerculesWS/Hercules/issues/731
2015-09-26Merge pull request #579 from csnv/minfixesHaruna1-4/+10
Corrected critical bonus display
2015-09-25More aggressive whitespace cleanup. Follow up to 51329e6Haru1-15/+7
Signed-off-by: Haru <haru@dotalux.com>
2015-09-24Add bl parameter to getcell functions.Andrei Karas1-1/+1
2015-09-18Clarified the intent of several assignments inside conditional expressionsHaru1-6/+6
Signed-off-by: Haru <haru@dotalux.com>
2015-09-17corrected some white spaces and added missing EOL.Frost1-2/+0
Split from #558 (and added a few more corrections) Signed-off-by: Haru <haru@dotalux.com>
2015-09-17Added Configuration in enabling/disabling monster hp bar on new clients.Frost1-0/+1
Closes #558 Signed-off-by: Haru <haru@dotalux.com>
2015-09-14Add missing checks into battle.c.Andrei Karas1-9/+51
2015-09-10Add to path search functions source bl for plugins usage.Andrei Karas1-1/+1
2015-09-08Fixed a failed assertion in skill_get_ele. Fixes #708Haru1-17/+20
- Thanks to AnisotropicDefixation Signed-off-by: Haru <haru@dotalux.com>
2015-08-15HPM compatibility improvementsHaru1-0/+1
Improved compatibility, portability and standards conformance. - Since it is not possible to portably and reliably re-use the core's symbols in plugins, symbols are no longer exported unless explicitly required, in the UNIX builds. This mimics the Windows behavior and adds HPM compatibility to OSes such as FreeBSD. Credits to Andrei Karas for making this possible. - For convenience, it is no longer necessary to call GET_SYMBOL, since the plugin will automatically import all the available symbols when it's loaded, depending on the included headers. - Plugins are now supposed to include the "common/hercules.h" header before including anything else. Incluing common/HPMi.h, common/cbasetypes.h or conf/core.h is no longer necessary, as those are guaranteed to be automatically included by hercules.h. - HPM API version bumped to 1.1. Signed-off-by: Haru <haru@dotalux.com>
2015-08-09Fixed an issue caused by duel-song interactionHaru1-1/+1
- Fixes #546 (follow-up to 127f9b52a4030a655564584b95b7c10dfdcb04e6) - Special thanks to kyeme, Mordekaiser Signed-off-by: Haru <haru@dotalux.com>
2015-07-12Remove useless checks from map server.Andrei Karas1-3/+3
2015-07-03Corrected critical bonus displaycsnv1-4/+10
- Fixes #573
2015-06-19Removed ".." from include directivesHaru1-30/+30
- Include directives are now directory-independent. - This will allow building plugins from other directories in future. Signed-off-by: Haru <haru@dotalux.com>
2015-06-12RC_Player, RC_DemiPlayer, RC_NonPlayer, RC_NonDemiPlayer, RC_All and Ele_All ↵Dastgir1-20/+4
implemented (ref:Herc@9d1fe3cd3855bb973c55bdf98909c25bb80ee97a)
2015-06-01Replaced some of the hardcoded values with constants (map)Haru1-41/+57
- Replaced several hardcoded values with the appropriate enums. - Added documentation for some hardcoded values that haven't been replaced by enums (yet) - Minor code legibility improvements. Signed-off-by: Haru <haru@dotalux.com>
2015-05-31Fixed Bug#8673malufett1-23/+19
-http://hercules.ws/board/tracker/issue-8673-gt-energy-gain/?gopid=25265#entry25265 -Fixed some skills related to spiritball, should now work like official. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-05-28Fixed Bug#8694malufett1-0/+4
-http://hercules.ws/board/tracker/issue-8694-npc-earthquake-wrong-type/?gopid=25380#entry25380 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-05-26Fix Vacuum Extrem resistanceMichieru1-0/+2
In renewal Safetywall Hits Blocked depending also on Skill Level
2015-05-26Another batch of corrected skill level checkmalufett1-1/+1
-Followup@dbaff8bdff2552c94d83e71249ae9e2117f62a72 -Added missing code from previous commit@027f124cbb96bb99d00bc31ad51345024edadf66 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-05-17Fixed some issues detected by coverity scanHaru1-4/+5
Signed-off-by: Haru <haru@dotalux.com>
2015-05-13Fixed defending aura bug in pre-renewal ↵milky-milk1-0/+6
(http://hercules.ws/board/tracker/issue-8560-pre-renewal-defending-aura-bug/)
2015-05-12Follow-up to fff2194Haru1-10/+11
Related: http://hercules.ws/board/tracker/issue-8672-map-server-error/ Signed-off-by: Haru <haru@dotalux.com>
2015-05-03Fixed Bug#8650malufett1-1/+3
-http://hercules.ws/board/tracker/issue-8650-minstrel-poem-of-netherworld-or-despair-song-skillleffect/?gopid=25083#entry25083 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-04-23Fixed Bug#8474malufett1-5/+12
-http://hercules.ws/board/tracker/issue-8474-elemental-damage-amplifier-doesnt-apply-to-cart-cannon/ Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-04-01Fixed Bug#8601malufett1-3/+3
-http://hercules.ws/board/tracker/issue-8601-chemical-protection/?gopid=24866#entry24866 Fixed proper skill fail message when bullet runs out.. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-03-19Follow up 145a4fe644c4fe856ba6f83086e8ee5075caad99shennetsind1-0/+2
Thanks to Mordekaiser for pointing this scenario to us. Signed-off-by: shennetsind <ind@henn.et>