summaryrefslogtreecommitdiff
path: root/src/map/skill.c
AgeCommit message (Collapse)AuthorFilesLines
2015-06-19Removed ".." from include directivesHaru1-33/+33
- 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-02Follow up to 712812bMysteries1-1/+1
- More link changes - Added proper link to Roulette topic
2015-06-02Re-implemented clif->colormes to accept arbitrary colorsHaru1-2/+2
- Due to the backward-incompatible change, clif->colormes was renamed to clif->messagecolor_self (for similarity with clif->messagecolor). The 'color' argument is now a 0xRRGGBB color rather than a color_table index. - enum clif_colors is no longer needed, but 0xRRGGBB-based constants are now provided to replace the old COLOR_* values. Signed-off-by: Haru <haru@dotalux.com>
2015-06-01Replaced some of the hardcoded values with constants (map)Haru1-102/+105
- 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-20/+16
-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-31Follow up@027f124cbb96bb99d00bc31ad51345024edadf66malufett1-4/+5
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-05-26Fix Vacuum Extrem resistanceMichieru1-2/+4
In renewal Safetywall Hits Blocked depending also on Skill Level
2015-05-26Another batch of corrected skill level checkmalufett1-1/+2
-Followup@dbaff8bdff2552c94d83e71249ae9e2117f62a72 -Added missing code from previous commit@027f124cbb96bb99d00bc31ad51345024edadf66 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-05-26Fixed Bug#8682malufett1-0/+1
-http://hercules.ws/board/tracker/issue-8682-bakuretsu-kunai/?gopid=25327#entry25327 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-05-24Fixes ninja skill Final Strike sliding. Bug report 8618: ↵csnv1-3/+10
http://hercules.ws/board/tracker/issue-8618-final-strike/
2015-05-24Corrected a skill level checkHaru1-2/+5
- Caused by yet another overwritten variable, this time from 61135037. - This fixes some of the failed assertions from bug 8672 http://hercules.ws/board/index.php?app=tracker&showissue=8672 - Special thanks to csnv. Signed-off-by: Haru <haru@dotalux.com>
2015-05-21* Follow-up to 5be01dcMichieru1-1/+1
- effect was give at 100% chance - Special thanks to Haru
2015-05-19Fixed some issues reported by coverity scan [3/3]Haru1-22/+5
- 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-19Fixed some issues reported by coverity scan [1/3]Haru1-3/+2
Signed-off-by: Haru <haru@dotalux.com>
2015-05-18Removed duplicates of clif->msgtableHaru1-7/+7
- 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-17Added bonus4 variant of bAddEff to specify a durationHaru1-4/+13
- When a duration value is specified, the effect will have a fixed, non-reducible duration, as required by item scripts. - Special thanks to Michieru Signed-off-by: Haru <haru@dotalux.com>
2015-05-12Follow-up to 2b4f2993Haru1-1/+1
Related: fff2194, http://hercules.ws/board/tracker/issue-8672-map-server-error/ Signed-off-by: Haru <haru@dotalux.com>
2015-05-11Merge pull request #508 from 4144/sanityHaruna1-25/+25
Extend sanity check configure flag with all sanity checks.
2015-05-03Fixed Bug#8650malufett1-7/+7
-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-02Fix out of bound access if skill level is 0.Andrei Karas1-25/+25
2015-04-23Fixed Bug#8644malufett1-0/+1
-http://hercules.ws/board/tracker/issue-8644-cr-fullprotection/ Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-04-02Merge branch 'master' of https://github.com/HerculesWS/Hercules into ↵malufett1-59/+40
JobDBRedesign
2015-04-01Fixed Bug#8601malufett1-58/+31
-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-29Fixed Bug#5654malufett1-1/+9
-http://hercules.ws/board/tracker/issue-5654-high-wizard-gravitational-field/ Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-03-27Hercules 'job_db1.txt' Redesignmalufett1-2/+2
-Initial and for review Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-03-19Fix for Sorcerer Skill WarmerInzianity1-1/+0
Warmer skill was regenerating 10% instead of 5% per 3 seconds. Full details of report and fix result here: http://hercules.ws/board/tracker/issue-8579-sorcerer-warmer-giving-10-mhp-regeneration-per-3-seconds-instead-of-5/
2015-03-16RENEWAL Updates:malufett1-3/+5
-AM_DEMONSTRATION and AM_ACIDTERROR is now using RE formula. -Fixed damage modifiers of some skills. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-03-15Fixed Bug#8545malufett1-1/+1
-http://hercules.ws/board/tracker/issue-8545-magnum-break/?gopid=24608#entry24608 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-03-13Fixed Bug 8544shennetsind1-0/+5
Special Thanks to Legend for all the info on how to reproduce. Blame goes to 3089a7d2d2dc655fb955b90ec152c0ba569bd4e2 http://hercules.ws/board/tracker/issue-8544-map-freeblock-timer/ Signed-off-by: shennetsind <ind@henn.et>
2015-03-12Fixed Bug#8546malufett1-1/+2
-http://hercules.ws/board/tracker/issue-8546-reflect-kaite-magic-rod-bug-fix-please/?gopid=24609#entry24609 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-03-05Fixed Bug 8535shennetsind1-1/+1
Mob/Clone causing a crash when casting absorb spirits outside of a 'vs' map. Special Thanks to kyeme, Playtester. http://hercules.ws/board/tracker/issue-8535-map-crash/ Signed-off-by: shennetsind <ind@henn.et>
2015-02-23Hercules Ultimate Localization Designshennetsind1-3/+3
Servers can now run on any number of languages, without editing npc files. Designed by Haruna and Ind http://hercules.ws/board/topic/8687-hercules-ultimate-localization-design/ Signed-off-by: shennetsind <ind@henn.et>
2015-02-13Fixed Bug#8529malufett1-13/+10
-http://hercules.ws/board/tracker/issue-8529-npc-earthquake-damage-calculation-bugged-and-possibly-wrong/?gopid=24559#entry24559 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-01-28Follow-up to e778f4f5f1b6a08adee5e7e908a44c38cd29bd12Haru1-1/+1
- Fixed some issues that prevented spirit charms from showing up - Special thanks to Michieru Signed-off-by: Haru <haru@dotalux.com>
2015-01-23Cleaned up spirit charms implementation (optimized memory and CPU usage)Haru1-31/+15
Signed-off-by: Haru <haru@dotalux.com>
2015-01-20Minor fixes and tweaks suggested by cppcheckHaru1-199/+189
- 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>
2015-01-18Fixes direction in AOE skillscsnv1-2/+2
2015-01-18For bug report 8367shennetsind1-4/+22
While unable to reproduce, I implemented a countermeasure to the issue in question (settick failing, which'd cause blockskill[] not to be filled). Hopefully someone who can reproduce is able to shed some light on the conditions required, allowing for a proper fix to be made. http://hercules.ws/board/tracker/issue-8367-timer-settick-issue/ Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Fixed Bug 8441shennetsind1-1/+2
Magnifier item no longer consumes sp http://hercules.ws/board/tracker/issue-8441-item-magnifier-is-consuming-sp/ Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Replacing rand leftovers with the mt19937arshennetsind1-4/+4
Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Fixing 38 issuesshennetsind1-9/+21
Addressing out of bounds read/write, pointless null checks on already deferenced variables, dead code. Special Thanks to 4144 and Haruna! Signed-off-by: shennetsind <ind@henn.et>
2015-01-1727 Fixesshennetsind1-18/+21
Addressing out of bounds read/write, pointless null checks on already deferenced variables. Special Thanks to 4144 and Haruna! Signed-off-by: shennetsind <ind@henn.et>
2015-01-17Another ~10 Fixesshennetsind1-1/+2
Addressing out of bounds read/write. Special Thanks to 4144 and Haruna! Signed-off-by: shennetsind <ind@henn.et>
2015-01-1710 Distinct fixesshennetsind1-1/+2
Addressing out of bounds read-write. Special Thanks to 4144, Haruna! Signed-off-by: shennetsind <ind@henn.et>
2015-01-12Fix uninitialized warning in skill.c.Andrei Karas1-2/+2
2015-01-12fix skills issue introduced in commit 5cdb3d12c4236e0c3a682e30fed96192d2c58188.Andrei Karas1-2/+2
2015-01-12Fixed an uninitialized variable in skill.cHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2015-01-12Fixed Bug where skill timer is not properly terminated/clear when the caster ↵malufett1-5/+5
dies. -Thanks to GM Nihad. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-01-11Fixed direction problem with self targeted skills. Thanks to Harunacsnv1-1/+2
2015-01-11Merge pull request #435 from 4144/skillextHaruna1-42/+302
Extend skills for using custom skills from plugins.