summaryrefslogtreecommitdiff
path: root/src/map/status.c
AgeCommit message (Collapse)AuthorFilesLines
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>
2015-01-18Replacing rand leftovers with the mt19937arshennetsind1-1/+1
Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Fixing 38 issuesshennetsind1-5/+9
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-24/+27
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-17Fixed Bug#8497malufett1-28/+33
-http://hercules.ws/board/tracker/issue-8497-all-mercenaries-miss-hit-for-0/?gopid=24434#entry24434 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-01-11Convert pcdb_checkid into function in pc interface.Andrei Karas1-4/+4
2015-01-02Add npcdb_checkid to npc interface.Andrei Karas1-1/+1
2014-12-31Fix wrong formattingAndrei Karas1-1/+2
2014-12-31Add some missing null pointer checks after automatic checks.Andrei Karas1-5/+11
2014-12-30Merge pull request #429 from csnv/overviewmalufett1-108/+110
Speeding up 'status_calc_aspd' processing in Renewal
2014-12-28Fixed Bug#8453malufett1-1/+5
-http://hercules.ws/board/tracker/issue-8453-mind-breaker/?gopid=24181#entry24181 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2014-12-28Merge pull request #427 from csnv/skillsworkHaruna1-0/+1
PR_KYRIE Visual fix, EDP corrections. Preliminary fix Maya Purple Hack update position.
2014-12-28Added RE version for 'size_fix.txt'.malufett1-1/+1
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2014-12-27Speeding up calc aspd process in Renewalcsnv1-108/+110
Only the requested type of aspd bonus is calculated
2014-12-27Preliminary fix antimaya hack reporting wrong position. Bug report 8461: ↵csnv1-0/+1
http://hercules.ws/board/tracker/issue-8461-attack-range-bug/
2014-12-26Fix compilation errors and possible server crash from previous commits.Andrei Karas1-1/+2
2014-12-26Follow up@6dd08befa6064a652d0d98e7cb85f0e353992dd5malufett1-1/+5
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2014-12-26Updated KG/OB Spirit Charms to official behaviormalufett1-1/+4
-http://hercules.ws/board/tracker/issue-8170-oborokagerou-charm/ -http://hercules.ws/board/tracker/issue-8274-ninja-charms-not-giving-proper-bonuses/ Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2014-12-22Follow up@772cb2b111973c0c749e505ffd2685bb67e887bdmalufett1-2/+2
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2014-12-20Merge branch 'master' of https://github.com/HerculesWS/Herculesmalufett1-2/+6
2014-12-20Fixed Bug#8469malufett1-4/+6
-http://hercules.ws/board/tracker/issue-8469-issue417-refine-weapon-may-caused-server-to-crash/?gopid=24287#entry24287 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2014-12-16Add function what called if player leave npc area.Andrei Karas1-2/+6
2014-12-14Fixed some improper grammar.Mysteries1-4/+4
2014-12-10Add missing interface usage.Andrei Karas1-2/+2
2014-12-10Follow up 8faef4ff7ef37f52f24ac6e1e026a418b19db1femalufett1-10/+10
-oops.compile warning.. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2014-12-10RENEWAL Updates:malufett1-450/+478
-Homunculus Official Statuses -Updated RE @mobinfo to show proper status data.(Follow up 28a8b0f7b06a6af86aff6ececf7d9541d457e297) -Some official behaviors. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2014-11-26Update Fire Expansion to official formula for all levelMichieru1-13/+19
Fix Full Throttle Order of Calculations For Stat Increase/Decrease By Status's Mega Thanks to Rytech
2014-11-24* 1st Transcendent Spirit, monster position lag fixesMichieru1-19/+48
- 1st Transcendent Spirit will now work as on official servers (#116) * The max total stat that is granted by the skill is now BaseLevel-10 with a maximum of 50 instead of always 50 * It will now work as Marionette Control and calculate the bonus at cast time rather than overwrite all existing bonuses * Agi Up and Blessing will now cancel the soul link - Fixed various problems that caused position lags on the client (#118) * Added a define ACTIVEPATHSEARCH in mob.c; if active (default and official), monsters will only grab targets if the walk path to the target is shorter or equal their search range; search range depends on whether the monster is moving or not (range2 for standing monsters and range3 for walking monsters); this requires a lot of CPU load, if it causes trouble, just comment the define for old behavior * Fixed a bug that made monsters display "irregular movement with position lag" continuously when a status change ended that changed their walk speed * OFFICIAL_WALKPATH now also applies to monsters * If the path search fails while a unit is already moving, we will now issue of fixpos packet so that the unit does not only stop moving on the server, but also on the client * Direction fixes - Updated the config setting attack_direction_change from 15 to 0 (official value); that means that a unit's direction will no longer change when it attacks; knock-back effects from e.g. Firewall will depend on the last direction the target walked into instead (bugreport:1322) - Ensured that the default direction of a monster is always "north", so that immobile monsters will now always be knocked back to the south by e.g. Firewall on default settings, unless a skill like e.g. Backstab changes their direction (bugreport:1322) - Fixed a bug that stopped characters server-sided and caused position lag when closing a skill menu * Magnum Break damage fixed - Targets two cells away will now only take 100%+10%*level damage (#108)
2014-11-16Whitespace cleanup (no code changes)Haru1-192/+214
This includes, and is not limited to: mixed or wrong indentation, excess whitespace (horizontal and vertical), misalignment, trailing spaces. Signed-off-by: Haru <haru@dotalux.com>
2014-11-10Fix interfaces methods usage.Andrei Karas1-7/+7
In some places was used direct methods.
2014-11-01Merge pull request #380 from csnv/somefixesMichieru1-4/+3
Fixed ALL_RESURRECTION to not inflict damage on hidden undead type playe...
2014-10-31Fixed some errors pointed out by clang's static analyzerHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2014-10-30Fixed ALL_RESURRECTION to not inflict damage on hidden undead type playerscsnv1-4/+3
- Fixed bug report 8407: http://hercules.ws/board/tracker/issue-8407-resurrection-skill-cant-be-dodged-by-hide/ - Refactorized code
2014-10-29Added 2014 Halloween Event and made status change parameter optional on ↵Taylor Locke1-0/+11
montransform.
2014-10-30Fixed Bug#7915malufett1-2/+2
-http://hercules.ws/board/tracker/issue-7915-mind-breaker/ Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2014-10-30Fixed Bug#7736malufett1-1/+1
-http://hercules.ws/board/tracker/issue-7736-fist-spell-w-double-attack-and-similar-effects/?gopid=20575#entry20575 Fixed RE ATK random variance. Thanks to Angelmelody. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2014-10-27Fix Gentle Touch Change map-server crashRidley88191-1/+1
Report:8415 http://hercules.ws/board/tracker/issue-8415-gentle-touch-change-crash/
2014-10-25HPM Hooks UpdateHercules.ws1-12/+12
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2014-10-25Sight Blaster and other skill fixes, magic reflect, crash, trap display and ↵Michieru1-12/+22
monster behavior fixes - Fixed cast time of Sightrasher in pre-renewal (700ms -> 500ms) - Official Sight Blaster behavior (bugreport:6945, partially bugreport:144) * Sight Blaster's AoE is now 3x3 even in pre-renewal (it was originally larger so it hits traps before they trigger) * Sight Blaster will now prevent traps from triggering as long as they are knocked back * Fixed a bug that caused Sight Blaster to not work on traps and ice walls at all * Sight Blaster will no longer expire when the attack was reflected * Sight Blaster will now expire when hitting an ice wall * Sight Blaster will now properly protect you from being attacked from its AoE range - Sight, Ruwach and Sight Blaster will now check for a target every 20ms (previously every 250ms) - Step action will now be canceled when being knocked back (skills won't be executed anymore when knocked out of range) - When knock back magic is reflected it will no longer lead to the caster being knocked back (related to bugreport:6945) - Activated traps can no longer be hit - Fixed a problem that left "trap ghosts" forever on the screen when a trap was knocked out of the screen - Monster behavior fixes * Monsters will no longer be able to do normal attacks when hiding * If out of any reason a monster on "attack" state can't move and can't do normal attacks, it will now use "attack" state skills * The order of monster thought processing is now equal to official servers - Fixed some potential map server crashes Mega thanks to Playtester (rathena b88e95381d6a7)
2014-10-24pc_isriding* / pc_setriding* cleanupHaru1-27/+39
- pc_isriding is now renamed to pc_isridingpeco, since that's what it checks (to avoid confusion). - pc_hasmount is added, to check for any of Peco, Dragon, Mado Gear, Wug Rider. - pc->setridingdragon is added. - pc->setridingwug is added. - pc->setfalcon type is changed. - pc->setmadogear type is changed. - pc->setridign is changed to pc->setridingpeco to avoid confusion. - Changed direct accesses to sd->sd.option to the proper pc_is* accessors, where applicable. - Special thanks to Kisuka. Signed-off-by: Haru <haru@dotalux.com>
2014-10-18HPM Hooks UpdateHercules.ws1-6/+6
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2014-10-18Correctly fix bug:8225 gentle touch revitalize now reduce damage correctlyMichieru1-11/+8
2014-10-10Fix Kyougaku make client crash and update the formula to official (bug:7975)Michieru1-19/+16
2014-10-08Update Hovering to it's official formula. (bug:8384)Michieru1-1/+1
2014-09-20Fixed Bug 8260shennetsind1-2/+7
Fixed issue with map zone inheritance failing to inherit subtype, and fixed MOB_BOSS subtype criteria in order to separate from non-MOB_BOSS. Special Thanks to Angelmelody, Michieru. http://hercules.ws/board/tracker/issue-8260-the-uint-type-of-map-zone-system-was-not-working-properly/ Signed-off-by: shennetsind <ind@henn.et>
2014-09-20Replaced hardcoded values with constants for status_change_start's flagHaru1-41/+51
- Please use the values from enum scstart_flag when calling status_change_start or related functions. - This also applies to the sc_start script commands. Signed-off-by: Haru <haru@dotalux.com>
2014-09-20Fix attack in pre-re (bug:8353)Michieru1-7/+2
2014-09-19Fix compile error in pre-re follow: ↵Michieru1-1/+1
https://github.com/HerculesWS/Hercules/commit/acc4d2eb875ddf67898ae0ac443e76de2d640daa
2014-09-19Update official Homunculus renewal stats (bug:6970) ↵Michieru1-14/+43
http://hercules.ws/board/tracker/issue-6970-homunculus-renewal-stats/ Follow up (bug 8348): https://github.com/HerculesWS/Hercules/commit/ddc52570a9bf694cdba6445bc02350a94856a583 Update official overbrand damage (special thanks to Rytech) The skill damage is no longer affected by your base level. It is now affected by the enemy's base level (special thanks to Rytech) Updated the list of skills usable while mounted on a mado. (special thanks to Rytech)