summaryrefslogtreecommitdiff
path: root/src/map/pc.c
AgeCommit message (Collapse)AuthorFilesLines
2020-06-22Remove pet if intimacy drops to 0Kenpachi Developer1-1/+1
2020-06-01Merge pull request #2745 from Kenpachi2k13/unequip_on_loginHaru1-5/+0
Prevent unequipping items on login before calculating the character's status data
2020-06-01Merge pull request #2746 from Jedzkie/jedzkie-pr02Haru1-1/+1
Fix an issue regarding using items when the storage is open.
2020-06-01Move equipment check from pc_setpos() to clif_parse_LoadEndAck()Kenpachi Developer1-5/+0
2020-06-01Merge pull request #2718 from Kenpachi2k13/prere_use_items_skills_in_npcHaru1-1/+2
Add/extend battle flags to enable item/skill usage while interacting with NPC
2020-05-28Fix an issue regarding using items when the storage is open.Jedzkie1-1/+1
2020-05-13Extend item_enabled_npc battle flag with option for usable itemsKenpachi Developer1-1/+2
2020-05-10Change pc_autocast_clear() function to voidKenpachi Developer1-7/+5
2020-05-10Add pc_autocast_clear_current() callsKenpachi Developer1-15/+2
2020-05-10Add pc_autocast_clear_current() functionKenpachi Developer1-0/+20
2020-05-10Add pc_autocast_remove() functionKenpachi Developer1-0/+23
2020-05-10Use auto_cast_current instead of autocastKenpachi Developer1-7/+7
2020-05-10Add pc_autocast_set_current() functionKenpachi Developer1-0/+28
2020-05-10Introduce auto-cast vectorKenpachi Developer1-0/+3
2020-05-04Merge pull request #2710 from MishimaHaruna/fix-skill-idxIbrahem Zidan1-40/+40
Fix skill idx
2020-05-04Sanitize the use of the enum e_skill_flag values, especially ↵Haru1-17/+16
SKILL_FLAG_REPLACED_LV_0 This ensures that a negative level is never saved to the database and hopefully helps catching any coding errors that would lead to that. Signed-off-by: Haru <haru@dotalux.com>
2020-05-04Refactor the Bard/Dancer Soul Link temporary skill granting codeHaru1-24/+25
The code no longer relies on invalid assumptions about the mapping between skill IDs and indices Fixes #2670 Signed-off-by: Haru <haru@dotalux.com>
2020-05-04Use enum spirit_charm_types for charm type fieldAndrei Karas1-2/+2
2020-05-03Merge pull request #2690 from Kenpachi2k13/operator_use_fixHaru1-2/+2
Fix usage of *= operator
2020-04-11Fix usage of *= operatorKenpachi Developer1-2/+2
2020-04-08Use pc_(un)hide() in pc_setoption()Kenpachi Developer1-1/+7
2020-04-08Add pc_unhide() functionKenpachi Developer1-0/+37
2020-04-08Add pc_hide() functionKenpachi Developer1-0/+31
2020-04-05Apply code style to pc_dead() functionKenpachi Developer1-183/+224
2020-04-05Apply code style to pc_setpos() functionKenpachi Developer1-120/+165
2020-04-05Add value capping to pet_set_intimate() functionKenpachi Developer1-2/+0
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-16/+13
Clean up auto-cast related code
2020-04-05Merge pull request #2658 from Kenpachi2k13/new_status_changesHaru1-0/+4
Add new status changes and update related items
2020-03-14Remove IT_DELAYCONSUME related auto-cast codeKenpachi Developer1-5/+0
First of all: In official servers, skill casting item are consumed immediately and thus IT_DELAYCONSUME should not be used for those items And additionally these code blocks are obsolete, because of the way how skill casting items work. * If the item won't check the skill's requirements, the code block to delete the item of type IT_DELAYCONSUME isn't even executed. * If the item does check the skill's requirements, the check is done prior to the skill casting which would be the same as using IT_USABLE.
2020-03-14Remove map_session_data->state.itemskill_* and use ↵Kenpachi Developer1-4/+0
map_session_data->autocast.itemskill_* instead
2020-03-14Remove itemskill_id and itemskill_lv helper variables, since they are not ↵Kenpachi Developer1-2/+0
used anymore
2020-03-14Remove map_session_data->state.abra_flag and use ↵Kenpachi Developer1-3/+4
map_session_data->autocast.type instead
2020-03-14Add pc_autocast_clear() function callsKenpachi Developer1-3/+3
2020-03-14Rename function pc_itemskill_clear() to pc_autocast_clear()Kenpachi Developer1-3/+3
2020-03-14Add map_session_data->autocast.itemskill_* assignmentsKenpachi Developer1-0/+4
2020-03-14Add map_session_data->autocast.skill_id/_lv assignmentsKenpachi Developer1-0/+2
2020-03-14Add map_session_data->autocast.type assignmentsKenpachi Developer1-0/+1
2020-03-14Add SC_VITALIZE_POTION status changeKenpachi Developer1-0/+4
2020-03-09Merge pull request #2648 from Kenpachi2k13/itemskill_fixHaru1-1/+1
Fix itemskill() script command
2020-03-09Merge pull request #2642 from Kenpachi2k13/zone_disabled_items_fixHaru1-222/+258
Fix (un)equip script execution for map zone restrcited items
2020-03-07Apply code style to pc_isequip() functionKenpachi Developer1-52/+66
2020-03-07Apply code style to pc_equipitem() functionKenpachi Developer1-97/+109
2020-03-07Apply code style to pc_unequipitem() functionKenpachi Developer1-68/+75
2020-03-07Change execution order in pc_isequip() functionKenpachi Developer1-17/+18
Validating, if the item is disabled by the map's zone, should be done prior to the validation of the character's status changes. If not, equipment, enabled by Super Novice Spirit, is able to bypass the map zone restriction.
2020-03-06Rename itemskill_no_conditions to itemskill_check_conditionsKenpachi Developer1-1/+1
2020-02-23Remove unequip_restricted_equipment dependency from OnEquipScript zone ↵Kenpachi Developer1-4/+14
validation The execution of the OnEquipScript should be prevented, regardless of the unequip_restricted_equipment configuration, if the item is restricted in that zone.
2020-02-23Remove unequip_restricted_equipment dependency from OnUnequipScript zone ↵Kenpachi Developer1-13/+5
validation The execution of the OnUnequipScript should be prevented, regardless of the unequip_restricted_equipment configuration, if the item is restricted in that zone.
2020-02-18Add new return values to pc_setpos() functionKenpachi Developer1-9/+17
* 3 - No character data. (Parameter sd is a NULL pointer.) * 4 - Character is jailed.
2020-02-09Added pc_itemskill_clear() function.Kenpachi Developer1-0/+21