summaryrefslogtreecommitdiff
path: root/src/map/unit.c
AgeCommit message (Collapse)AuthorFilesLines
2020-03-08Remove unnecessary parameter of set_mobstateskyleo1-9/+9
2020-03-08Add documentation for unit->walktobl_timerskyleo1-0/+9
2020-03-08Rename unit->walktobl_sub to unit->walktobl_timerskyleo1-6/+6
2020-03-08Update Coding Style for unit->walktobl_subskyleo1-6/+4
2020-03-08Add nullpo_retr for unit_data in unit->walktobl_subskyleo1-2/+6
2020-03-08Update Coding Style for set_mobstateskyleo1-3/+7
2020-03-08Add documentation for set_mobstateskyleo1-1/+6
2020-03-08Add TODO-comment suggesting enum for unit->walktoxyskyleo1-0/+1
2020-03-08Add documentation for unit->walktoxyskyleo1-6/+13
2020-03-08Update Coding Style of unit->walktoxyskyleo1-15/+21
2020-03-08Remove "already refactored" commentskyleo1-1/+1
2020-03-08Change returning error-code in unit->walktoxy to obey code-style guidelinesskyleo1-12/+16
2020-03-08Correct checks mistreating non-boolean values in unit->walktoxyskyleo1-5/+5
2020-03-08Cleanup nullpointer checks in unit->walktoxyskyleo1-2/+3
2020-03-08Use *DWord functions for saving x & y into data of unit->delay_walktoxy_timerskyleo1-4/+5
2020-03-08Add documentation for unit->delay_walktoxy_timerskyleo1-0/+8
2020-03-08Change returning error-code in unit->delay_walktoxy_timer to obey code-style ↵skyleo1-2/+2
guidelines
2020-03-08Move bitwise-operations into named variables in unit->delay_walktoxy_timerskyleo1-1/+3
2020-03-08Apply code-style to nullpointer-checks in unit->delay_walktoxy_timerskyleo1-2/+1
2020-03-08Remove refactor-continue commentskyleo1-1/+0
2020-03-08Refactor code using directions to use enum unit_dirskyleo1-15/+13
This removes a lot of duplicated code, especially related to people not using the arrays dirx and diry. Assertions for whenever these arrays are used have been added as well, to ensure valid index range. Some trailing white space has been removed as well.
2020-03-08Add enum unit_dir and make direction functions use itskyleo1-11/+22
Without a doubt the readability of code will be increased by this greatly
2020-03-08Refactor unit_walktoxy_timerskyleo1-156/+158
2020-03-08Update Coding Style in unit->step_timerskyleo1-9/+9
2020-03-08Update error-code and some Coding Style in unit->step_timerskyleo1-33/+23
2020-03-08Change returning error-code in unit->walktoxy_subskyleo1-3/+3
2020-03-08Update Coding Style in unit->walktoxy_subskyleo1-10/+11
2020-03-08Rename reused var appropriately in unit->walktoxy_subskyleo1-11/+12
2020-03-08Move declarations to initializations in unit->walktoxy_subskyleo1-8/+6
2020-03-08Add documentation for unit->walktoxy_subskyleo1-0/+5
2020-03-08Refactor unit->bl2udskyleo1-9/+20
2020-02-09Added skill_is_item_skill() function.Kenpachi Developer1-6/+2
2020-02-09Added pc_itemskill_clear() function.Kenpachi Developer1-16/+4
2020-02-09Added a new option flag to itemskill() script command to be able to ↵Kenpachi Developer1-0/+2
forcefully cast skill on on invoking character.
2020-02-09Added a new option flag to itemskill() script command, to be able to cast a ↵Kenpachi Developer1-0/+13
skill without cast time.
2020-02-09Fixed skill conditions check and <flag> parameter in itemskill() script command.Kenpachi Developer1-19/+28
* itemskill() script command should check for the skill's conditions and also consumes them. SP are not consumed. * The same applies to Hocus-pocus skill. Conditions should be checked and consumed, SP are not consumed. * This was bugged for more than 6 years now. See linked bug report and commits. Related bug: * https://herc.ws/oldboard/tracker/issue-7210-itemskill-command-does-not-check-for-required-items/ Related commits: * https://github.com/HerculesWS/Hercules/commit/b864056b8d088660fca9129bddad477732ed8df9 * https://github.com/HerculesWS/Hercules/commit/07272f7a16db87970583286db03167ca79604a69
2020-01-13Update copyright headers for year 2020Haru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2020-01-09Adding PCBLOCK_NPC to setpcblock script commandRidley1-2/+4
2019-11-17Merge pull request #2577 from Asheraf/dehardcodestatusiconsHaru1-2/+2
Dehardcode Status Icons
2019-11-17Merge pull request #2564 from skyleo/target_to_fixesHaru1-1/+3
Fix ud->target_to not being cleared appropriately
2019-11-06Dehardcode Status IconsAsheraf1-2/+2
2019-10-20Fix ud->target_to not being cleared appropriatelyskyleo1-1/+3
2019-10-10Fix Chaotic Blessings never healing the enemyskyleo1-0/+6
It has a chance to roll for enemy and heal the enemy, While calculating the chance was correct, it was getting the enemy with battle->check_target. But unit->stop_attack has been called before in unit->skilluse_id2, making battle->check_target return NULL at that point, since it has no attack target anymore. So it defaulted to heal the Homunculus itself, instead of the enemy.
2019-10-10Fix Homunculus skill requirements being put on owner as wellskyleo1-7/+0
This fixes not being able to use Homunculus skills when having 90% overweight. This also fixes not being able to use Homunculus skills when the owner has low HP or SP, even though the Homunculus has enough HP or SP to use the skill.
2019-05-06Merge pull request #2453 from Emistry/scriptcommand_unitwarpHaru1-1/+1
Update unitwarp script command.
2019-05-05Add missing checks for prevend flagAndrei Karas1-0/+1
2019-05-01Update unitwarp script command.Emistry Haoyan1-1/+1
- allow NPC to warp to non-walkable cell. Just like `*movenpc`
2018-12-12Remove typedef from clr_type.Andrei Karas1-4/+4
2018-11-16Merge pull request #2322 from MishimaHaruna/fix-allychat-leaveguildHaru1-0/+1
Fix allychat leaveguild
2018-11-13Replace sd->channels with a VECTORHaru1-0/+1
This removes some shady array compaction code and prepares the ground for some further fixes. Signed-off-by: Haru <haru@dotalux.com>