summaryrefslogtreecommitdiff
path: root/src/map/unit.c
AgeCommit message (Collapse)AuthorFilesLines
2020-04-14Adjust return value of mob_skill_use() and mobskill_event() according to ↵Kenpachi Developer1-2/+2
code style
2020-04-05Merge pull request #2678 from Kenpachi2k13/unit_bl2ud_assert_fixHaru1-0/+4
Add case for BL_SKILL to unit_bl2ud() to not trigger assert-returning
2020-04-05Merge pull request #2676 from Kenpachi2k13/del_timer_fixHaru1-1/+5
Fix misplaced return condition in unit_walk_toxy_timer()
2020-04-05Add enum for pet intimacy levels and use its constantsKenpachi Developer1-3/+3
2020-04-05Merge pull request #2657 from Kenpachi2k13/autocast_clean_upHaru1-8/+12
Clean up auto-cast related code
2020-04-01Add case for BL_SKILL to unit_cbl2ud() to not trigger assert-returningKenpachi Developer1-0/+2
2020-04-01Add case for BL_SKILL to unit_bl2ud() to not trigger assert-returningKenpachi Developer1-0/+2
2020-03-31Fix misplaced return conditionKenpachi Developer1-1/+5
2020-03-21Move misplaced condition in unit_walktobl() functionKenpachi Developer1-2/+5
2020-03-14Use map_session_data->autocast.type instead of skillitem variable to check ↵Kenpachi Developer1-2/+2
for auto-cast skills
2020-03-14Remove map_session_data->state.itemskill_* and use ↵Kenpachi Developer1-2/+2
map_session_data->autocast.itemskill_* instead
2020-03-14Remove skill_is_item_skill() function and use ↵Kenpachi Developer1-2/+2
map_session_data->autocast.type instead
2020-03-14Add skill_validate_autocast_data() function callsKenpachi Developer1-4/+8
2020-03-14Rename function pc_itemskill_clear() to pc_autocast_clear()Kenpachi Developer1-2/+2
2020-03-14Fix wrong return-value on success by unit->walktoblskyleo1-1/+1
This bugged aggressive monsters for example, as they wouldn't move to you and just do a move animation on 1 cell, stationary. Introduced by fe378985d5267bee1f73049c826ad4f1e9c2b9c4
2020-03-09Merge pull request #2648 from Kenpachi2k13/itemskill_fixHaru1-2/+2
Fix itemskill() script command
2020-03-08Correct some typos in doc of unit->walk_toxy_timerskyleo1-2/+2
2020-03-08Change bl parameter to be const in unit->getdirskyleo1-2/+2
2020-03-08Handle not known values of bl->type with assertionskyleo1-1/+4
2020-03-08Expect bl to be not NULL in unit->bl2udskyleo1-3/+2
2020-03-08Add unit->cbl2ud for when using const block_listskyleo1-0/+33
2020-03-08Change the name of all functions which got their return-value meaning changedskyleo1-44/+44
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