summaryrefslogtreecommitdiff
path: root/src/map/status.c
AgeCommit message (Collapse)AuthorFilesLines
2015-09-18Clarified the intent of several assignments inside conditional expressionsHaru1-24/+24
Signed-off-by: Haru <haru@dotalux.com>
2015-08-17Fix wrong index access and probably wrong hp/sp calculation. Closes #653Andrei Karas1-6/+42
2015-08-15Added core HPM interfaceHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2015-08-15HPM compatibility improvementsHaru1-0/+2
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-10Move equip item script function call into function script_run_item_equip_script.Andrei Karas1-2/+2
2015-08-10Move use item script function call into function script_run_use_script.Andrei Karas1-7/+7
2015-08-09Merge pull request #464 from dastgir/AdditionalStatusAndrei Karas1-0/+8
Additional Status Calculation for Plugins.
2015-08-09Additional Status Calculation for Plugins.dastgir1-0/+8
2015-07-25Reduce memory usage in HPM in status.cAndrei Karas1-385/+387
2015-07-25Reduce memory usage in HPM in skill.cAndrei Karas1-1/+1
2015-07-12Remove useless checks from map server.Andrei Karas1-1/+1
2015-07-08Merge branch 'master' of https://github.com/HerculesWS/HerculesMatheus Macabu1-2/+3
2015-07-04* Quality of life change: display name of the NPC with an invalid view data.Matheus Macabu1-1/+1
Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
2015-07-04Fixed issue #556malufett1-2/+3
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
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-14Corrected an issue with Close ConfineHaru1-2/+2
- Fixes issue #539, thanks to @moguri85 - Introduced in 84785ca7, cbccd881 Signed-off-by: Haru <haru@dotalux.com>
2015-06-12RC_Player, RC_DemiPlayer, RC_NonPlayer, RC_NonDemiPlayer, RC_All and Ele_All ↵Dastgir1-2/+2
implemented (ref:Herc@9d1fe3cd3855bb973c55bdf98909c25bb80ee97a)
2015-06-02Fixed a crash when a Wink Charm user logs out during the skill effectHaru1-4/+9
- Fixes bugreport:8714, thanks to HermeMaton http://herc.ws/board/tracker/issue-8714-crash/ Signed-off-by: Haru <haru@dotalux.com>
2015-06-01Replaced some of the hardcoded values with constants (map)Haru1-41/+43
- 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-7/+6
-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-26Fix Vacuum Extrem resistanceMichieru1-3/+0
In renewal Safetywall Hits Blocked depending also on Skill Level
2015-05-25Corrected homunculus defense growing too much on level upHaru1-2/+3
- Caused by a variable not correctly re-initialized on level up. - Special thanks to Michieru, Malufett. Signed-off-by: Haru <haru@dotalux.com>
2015-05-19Fixed some issues reported by coverity scan [3/3]Haru1-82/+6
- Automatically zeroed variables are now zeroed in the correct size, regardless of padding. - Special thanks to Ind. Signed-off-by: Haru <haru@dotalux.com>
2015-05-18Removed duplicates of clif->msgtableHaru1-5/+5
- Removed clif->msgtable, and renamed clif->msg to clif->msgtable. - Removed clif->msgtable_num, and renamed clif->msg_value to clif->msgtable_num - Renamed clif->msg_skill to clif->msgtable_skill - Removed clif_viewequip_fail - Replaced hardcoded message IDs with constants (see enum clif_messages) Signed-off-by: Haru <haru@dotalux.com>
2015-05-13Follow-up to fb88a56Haru1-44/+47
- Fixes a division by zero while parsing the job_db. - Improves algorithm for guessing HP/SP table values when not enough levels are provided. Signed-off-by: Haru <haru@dotalux.com>
2015-05-11Fixed SC_BERSERK not starting SC_ENDUREHaru1-1/+1
- Issue present since cf56f7c9 (seemingly unintended edit of a condition in status_change_start). - Special thanks to MordekaiserGod. Signed-off-by: Haru <haru@dotalux.com>
2015-05-03Fixed Bug#8650malufett1-1/+9
-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-05-03Fixed Bug#8652malufett1-0/+1
-http://hercules.ws/board/tracker/issue-8652-sp-again/?gopid=25092#entry25092 -Added missing weight factor of Minstrel/Wanderer. Thanks Michi Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-04-20Fixed Bug#8638malufett1-4/+5
-http://hercules.ws/board/tracker/issue-8638-sp/?gopid=25021#entry25021 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-04-19Fixed wrong job_db.conf path from 0f2b317372c2d1c95d4f09c94d054958418a39b4.Taylor Locke1-1/+1
2015-04-19Fixed Bug#8636malufett1-1/+6
-http://hercules.ws/board/tracker/issue-8636-unknown-weapon-type/?gopid=25011#entry25011 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-04-15In comment change job_db1.txt to job_db.confAndrei Karas1-1/+1
2015-04-15Allow for plugins read custom fields from jobdb1.Andrei Karas1-129/+138
2015-04-14Fixed Bug#8621malufett1-1/+1
-http://hercules.ws/board/tracker/issue-8621-angra-manyu-with-aspd-low/?gopid=24959#entry24959 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-04-13Fixed Bug#8624malufett1-1/+6
-http://hercules.ws/board/tracker/issue-8624-damage-of-mvp/?gopid=24966#entry24966 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-04-02Merge branch 'master' of https://github.com/HerculesWS/Hercules into ↵malufett1-4/+3
JobDBRedesign
2015-03-29Fixed Bug#5654malufett1-4/+3
-http://hercules.ws/board/tracker/issue-5654-high-wizard-gravitational-field/ Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-03-28Follow up@fb88a56b9519adedfca06085de6c2ccc5da72582malufett1-36/+32
-Fix some flaw. Thanks to Michi Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-03-27Hercules 'job_db1.txt' Redesignmalufett1-146/+259
-Initial and for review Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-03-15Follow up 8aee60e91807930e4d43965a20c8991b416d7f29shennetsind1-3/+7
Added a new way to know whether a status has a duration (as the aforementioned commit made the previous method unusable). Special Thanks to Haruna! Signed-off-by: shennetsind <ind@henn.et>
2015-03-15Fixed Bug 8575shennetsind1-1/+1
Blame goes to 8aee60e91807930e4d43965a20c8991b416d7f29 http://hercules.ws/board/tracker/issue-8575-effects-arent-removed-when-time-gets-to-0/ Signed-off-by: shennetsind <ind@henn.et>
2015-03-14Multiple SC fixesshennetsind1-16/+44
First and foremost an ancient status_change_timer issue which'd cause a timer deletion error when an status within status_change_timer kills the unit. This commit also fixes some pointer/map-free-block logic which showed up while debugging status_change_timer. Special Thanks to Haruna. Signed-off-by: shennetsind <ind@henn.et>
2015-03-11RENEWAL Updates:malufett1-10/+22
-Fixed card bonuses related to to ATK.(Added 'bRaceTolerance'). Thanks Michi for the support. -Fixed Renewal EDP. Special thanks to Awesome Yommy <3 -Enabled 'display_skill_fail' since '/skillfail' is already available in the client Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-02-25Fixed Bug#8522malufett1-2/+2
-http://hercules.ws/board/tracker/issue-8522-royal-guard-skill-reflect-damage-skill-duration-lapses-quicker-than-intended/?gopid=24526#entry24526 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-02-13Merge branch 'master' of github.com:HerculesWS/Herculesshennetsind1-1/+1
2015-02-13Fixed alchemist marine sphere causing double deletion on renewalshennetsind1-13/+13
Special Thanks to Haruna, Michieru.
2015-02-13Fixed Bug#8514malufett1-1/+1
-http://hercules.ws/board/tracker/issue-8514-homunculus-not-gaining-aspd/?gopid=24511#entry24511 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-02-10Fixing Prestige formulaNihadm891-2/+2
It was giving too much def. Adjusted and confirmed with malufett
2015-01-23Cleaned up spirit charms implementation (optimized memory and CPU usage)Haru1-6/+4
Signed-off-by: Haru <haru@dotalux.com>
2015-01-20Minor fixes and tweaks suggested by cppcheckHaru1-122/+116
- Variable scopes reduced - Parenthesized ambiguous expressions - Removed or added NULL checks where (un)necessary - Corrected format strings - Fixed typos potentially leading to bugs Signed-off-by: Haru <haru@dotalux.com>