summaryrefslogtreecommitdiff
path: root/src/map/skill.c
AgeCommit message (Collapse)AuthorFilesLines
2018-11-14Use an enum as flag for status->heal() and related functionsHaru1-52/+53
This introduces the `enum status_heal_flag`. No functional changes are made. Signed-off-by: Haru <haru@dotalux.com>
2018-10-21Merge pull request #2182 from guilherme-gm/201808-trapfixHaru1-16/+37
Fixes some issues with traps
2018-09-19Update inventory packet for 2018-09-12 RE.Andrei Karas1-3/+3
2018-08-30Fixed Blastime and Claymore Trap damage that wasn't being split by the ↵Guilherme G. Menaldo1-16/+37
number of enemies
2018-08-26Merge pull request #2164 from mekolat/addvariableHaru1-8/+8
always set the type to C_NAME when adding variables through script->add_str
2018-08-11Supresses warning in skill_attack when MAGIC_REFLECTION_TYPE is 0.EyesOfAHawk1-0/+6
2018-07-30always set the type when doing script->add_strgumi1-8/+8
2018-07-26Fix Venom Splasher consuming its gemstome requirement twiceHaru1-0/+5
Fixes #1837 Signed-off-by: Haru <haru@dotalux.com>
2018-07-26Merge pull request #2143 from dastgirp/plugin/unit_layoutHaru1-2/+2
Added missing parameter to init_unit_layout_unknown
2018-07-24Correct wrong attribute used for pet evolution egg hidingAsheraf1-0/+3
2018-07-24Added missing parameter to init_unit_layout_unknownDastgir1-2/+2
2018-07-19Replace item id shorts to int in map server.Andrei Karas1-2/+2
2018-07-15Update packet PACKET_CZ_REQ_ITEMREPAIR.Andrei Karas1-1/+1
2018-07-12Split btype and item_id parameters in function clif_skill_fail.Andrei Karas1-235/+235
2018-07-01Change functions to static where possible (Part 4 - map)Haru1-246/+260
This fixes issues with plugins defining symbols with the same names Signed-off-by: Haru <haru@dotalux.com>
2018-07-01Merge pull request #2091 from AnnieRuru/46-novendingHaru1-0/+13
Fix novending cause player gets stuck
2018-06-30add support for send target in unittalkAsheraf1-1/+1
2018-06-25Merge pull request #2076 from dastgirp/3-skill_pluginHaru1-3/+5
Plugin function ReturnType fix
2018-06-18Fix novending cause player gets stuckAnnieRuru1-0/+13
2018-06-12Changed returntype of skill_check_condition_castend_unknown.Dastgir1-3/+5
skill_check_condition_castend is terminated if returntype is true
2018-06-03Fix the skill element for levels above the MAX_SKILL_LEVELHaru1-4/+0
Fixes a regression in 2b4bfa5d08931530d5c9b30af10dd58c1af14883 Signed-off-by: Haru <haru@dotalux.com>
2018-06-02Merge pull request #2038 from 4144/msiHaru1-10/+23
Improve msgstring table usage
2018-05-312012-2018 !Maytichai Saowa1-1/+1
2018-05-29Add autogenerated messages list headers with original strings and translation.Andrei Karas1-5/+18
Also add packet version checks for used messages.
2018-05-29Fix wrong values in clif_messages enum.Andrei Karas1-5/+5
Also use official constant names with custom prefix in clif_messages enum.
2018-05-01Replace "--ja--" and "--en--" with constants (source only)Haru1-2/+2
- Use `DEFAULT_MOB_NAME` instead of a literal "--en--" - Use `DEFAULT_MOB_JNAME` instead of a literal "--ja--" Signed-off-by: Haru <haru@dotalux.com>
2018-05-01Fix the name of the monsters summoned by SA_SUMMONMONSTERHaru1-1/+2
- The displayed name was " --ja--" due to an extra space inside a string. - Error introduced in 2012, commit d9d3adf3fd4795bf2483ec8549ddc30e01629db Signed-off-by: Haru <haru@dotalux.com>
2018-04-23Merge pull request #2005 from guilherme-gm/guildskillcdHaru1-6/+10
Allow guild skills cooldown to continue when logged out
2018-04-08Allow guild skills cooldown to continue when logged outGuilherme G. Menaldo1-6/+10
2018-04-08Prevent a null pointer failure when TK_JUMPKICK is used by a non-playerHaru1-8/+6
Fixes #1875 Signed-off-by: Haru <haru@dotalux.com>
2018-01-25Implementation of Official Clan SystemMurilo Pereti Tavares1-0/+2
All official features work including the autokick for inactive members And the system is completely customizable.
2018-01-14Merge pull request #1939 from Asheraf/zero_drop_packetHaru1-10/+10
Add support for new drop packet 0xadd for zero clients
2017-12-23Replace the use of skill_reproduce_db with AllowReproduce flagAsheraf1-18/+7
2017-12-23Add support for new drop packet 0xadd for zero clientsAsheraf1-10/+10
2017-11-26Fix handling of the special case of SplashRange < 0 meaning AREA_SIZEHaru1-3/+6
This restores the behavior that was broken in 2b4bfa5d0. Fixes #1911 Signed-off-by: Haru <haru@dotalux.com>
2017-11-24Allow using the skill DB accessors on non-skill attacks (skill_id = 0)Haru1-53/+182
This suppresses an assertion in the skill DB accessors when called with `skill_id = 0` (such as during normal attacks). In such case, they'll now return an appropriate zero value, as it happened before 2b4bfa5d0. Fixes #1909 Signed-off-by: Haru <haru@dotalux.com>
2017-11-18Merge pull request #1903 from Asheraf/skill_scaleHaru1-0/+6
Implement skill scale packet for client versions >= 20151223.
2017-11-16Implement skill scale packet for client versions >= 20151223.Asheraf1-0/+6
2017-11-05Fix/clarify various incorrect modulo operationsHaru1-23/+24
Most relevantly, `skill_lv%11 - 1` is not a valid skill item requirement index, since it can return -1 depending on the skill_lv. It was replaced with `(skill_lv - 1) % MAX_SKILL_ITEM_REQUIRE`, which always returns a value in the 0 ~ MAX_SKILL_ITEM_REQUIRE range. Signed-off-by: Haru <haru@dotalux.com>
2017-11-05Reduce confusion between skill IDs and skill DB indexes (part 2)Haru1-4/+4
Remove MAX_SKILL in favor of MAX_SKILL_DB, when referring to the maximum skill DB index. This is opposed to MAX_SKILL_ID, the maximum skill ID. Signed-off-by: Haru <haru@dotalux.com>
2017-11-05Use the skill DB accessors where possible/appropriateHaru1-46/+50
This includes some renamed local variables, in order to minimize the cases of unsafe variable reuse. Signed-off-by: Haru <haru@dotalux.com>
2017-11-05Reduce confusion between skill IDs and skill DB indexes (part 1)Haru1-68/+444
Rewrite skill DB accessors to clarify the difference between IDs and indexes, and to report a backtrace to the console when an invalid ID is passed. The type of the skill_id and skill_lv arguments has been changed to int. Signed-off-by: Haru <haru@dotalux.com>
2017-11-05Fix a subtle error in case skill->unit_group_newid overflowsHaru1-7/+8
The incorrect handling of the overflowed values would cause certain skill unit entries to get stuck and never get deleted correctly. A possible symptom of the issue are monsters that become immune to certain AoE spells having the UF_NOOVERLAP flag (Storm Gust, Lord of Vermillion, etc). Signed-off-by: Haru <haru@dotalux.com>
2017-10-21Merge pull request #1854 from Asheraf/skillHaru1-1/+2
Change skill_init_unit_layout to report skill id instead of index
2017-10-21Add packets for 64 bit exp.Andrei Karas1-2/+2
Also update some functions for support 64 bit exp calculation.
2017-10-21Change skill_init_unit_layout to report skill id instead of indexAsheraf1-1/+2
2017-09-21Convert some functions from int32 types to int64.Andrei Karas1-2/+2
This mainly need for base and job exp, because now they using int64 type.
2017-09-19remove trailing whitespaces from sourcegumi1-16/+16
2017-09-17Differentiate variables that hold a ViewSprite and a Subtype (part 2)Haru1-1/+1
`sd->status.shield` is renamed to `sd->status.look.shield` and only holds ViewSprite IDs. Its previous other meaning is now transferred to `sd->has_shield`, of boolean type (to detect the presence of a shield) Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Differentiate variables that hold a ViewSprite and a weapon SubtypeHaru1-5/+5
`sd->status.weapon` is renamed to `sd->status.look.weapon` and only holds ViewSprite IDs. Its previous other meaning is now transferred to `sd->weapontype` (holding the currently equipped weapon type, considering both hands at once) Signed-off-by: Haru <haru@dotalux.com>