summaryrefslogtreecommitdiff
path: root/src/map/status.c
AgeCommit message (Collapse)AuthorFilesLines
2016-05-08Fixed various issues pointed out by cppcheckHaru1-5/+8
Signed-off-by: Haru <haru@dotalux.com>
2016-04-29Fix compilation warnings with gcc 6.Andrei Karas1-8/+11
2016-03-20Merge pull request #1080 from Jedzkie/Skill_FixesDastgir1-5/+15
Fixes #1014 - Corrects the Behavior of Tension Relax
2016-03-19status_get_name returns NULL instead of Unknown, Changed all functions to ↵Dastgir1-1/+7
use clif_get_bl_name
2016-03-19Added const qualifier to several status->get_XXX() functionsHaru1-10/+14
Signed-off-by: Haru <haru@dotalux.com>
2016-03-16Fixes HerculesWS/Hercules#1198 and fixes HerculesWS/Hercules#1194 introduced ↵Kolkka1-7/+7
in pull request #1189 Changed other instances of MAX_WEAPON_TYPE to MAX_SINGLE_WEAPON_TYPE.
2016-03-08Fixes #1014Jedzkie1-5/+16
2016-03-06Check allowed range for "View" field in item_db for weapon items.Andrei Karas1-3/+3
Also fix some array sizes.
2016-02-28Changed mob mode field to 32 bit, for future expansionHaru1-23/+35
Signed-off-by: Haru <haru@dotalux.com>
2016-02-27Replaced various '-1' with the correct constantHaru1-21/+21
INFINITE_DURATION, INVALID_TIMER, SC_NONE, INDEX_NOT_FOUND, depending on context. Signed-off-by: Haru <haru@dotalux.com>
2016-02-27Corrected wrong variable type of struct status_change_data::tickHaru1-2/+3
- The variable should be signed, since it uses the value -1 to indicate infinite duration (and it's stored as signed in the database). - Added #define for the special value -1 (INFINITE_DURATION). - This fixes an issue causing status changes to fail being saved to database (thanks to Michi for reporting it). - Related to commit 8dc75721. Signed-off-by: Haru <haru@dotalux.com>
2016-02-19Fix all known warnings from compiler flags -Wformat*Andrei Karas1-1/+1
Add all missing -Wformat flags into configure.
2016-02-17Removed unnecessary typedefs from libconfigHaru1-12/+12
Signed-off-by: Haru <haru@dotalux.com>
2016-02-17Renamed config->read_file to config->load_fileHaru1-7/+5
- The return value is now consistent with the libconfig standard (CONFIG_TRUE/CONFIG_FALSE). - Removed some redundant error messages. Signed-off-by: Haru <haru@dotalux.com>
2016-02-05Merge pull request #1081 from Jedzkie/PR_MAGNIFICATDastgir1-0/+4
PR_MAGNIFICAT Skill Fix.
2016-01-16Removed Hard Coded data for SC_ALL_RIDING.Jedzkie1-1/+3
2016-01-15Merge pull request #1086 from Jedzkie/GC_CLOAKINGEXCEEDDastgir1-2/+2
Fixes speed given by cloaking exceed
2016-01-12Whitespace cleanup (removed alignment tabs or trailing whitespace at line end)Haru1-50/+54
Signed-off-by: Haru <haru@dotalux.com>
2016-01-09Fixes #907Jedzkie1-2/+2
- Cloaking Exceed speed must 140%, not 200+%.
2016-01-09PR_MAGNIFICAT Skill Fix:Jedzkie1-0/+4
- PR_MAGNIFICAT HP Regeneration applies only in PRE-RENEWAL.
2016-01-06Replaced the remaining explicit casts with BL_CAST/BL_UCASTHaru1-49/+47
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Replaced some explicit casts with BL_UCASTHaru1-228/+343
- Replaced safe casts (bl type already checked) Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Moved status_get_homXXX macros to status.cHaru1-15/+37
- The macros were very specific to a small set of functions, they don't belong to status.h. - The macros have been edited to take two parameters instead of relying on external variables. Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Replaced some explicit casts with BL_UCAST/BL_UCCASTHaru1-3/+6
- Replaced casts in foreach callbacks. - Added assertions and nullpo checks where applicable. Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_NPC to struct npc_data as per style guidelineshemagx1-18/+18
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_ELEM to struct elemental_data as per style guidelineshemagx1-24/+24
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_PET to struct pet_data as per style guidelineshemagx1-26/+27
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_SKILL to struct skill_data as per style guidelineshemagx1-4/+4
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_MER to struct mercenary_data as per style guidelineshemagx1-35/+34
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_HOM to struct homun_data as per style guidelineshemagx1-34/+34
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_MOB to struct mob_data as per strly guidelineshemagx1-42/+44
Signed-off-by: Haru <haru@dotalux.com>
2016-01-06Change all TBL_PC to struct map_session_data as per style guidelineshemagx1-137/+158
Signed-off-by: Haru <haru@dotalux.com>
2016-01-05Added Support for BodyStyleDastgir1-0/+27
Closes #974 as merged
2016-01-05Corrected the MTF_MATK, it should only give Fix MATK instead of MATK RateJedzkie1-1/+1
2015-12-28Added Poring to the mob_id enumHaru1-3/+3
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Standardized (source) mob_id enumHaru1-3/+3
- MOBID_ constant names now follow the Mob DB spritenames. - The following names were changed: * MOBID_EMPERIUM => MOBID_EMPELIUM * MOBID_TREAS01 => MOBID_TREASURE_BOX1 * MOBID_TREAS40 => MOBID_TREASURE_BOX40 * MOBID_BARRICADE1 => MOBID_BARRICADE * MOBID_BARRICADE2 => MOBID_BARRICADE_ * MOBID_GUARIDAN_STONE1 => MOBID_S_EMPEL_1 * MOBID_GUARIDAN_STONE2 => MOBID_S_EMPEL_2 * MOBID_FOOD_STOR => MOBID_OBJ_A * MOBID_BLUE_CRYST => MOBID_OBJ_A2 * MOBID_PINK_CRYST => MOBID_OBJ_B2 * MOBID_TREAS41 => MOBID_TREASURE_BOX41 * MOBID_TREAS49 => MOBID_TREASURE_BOX49 - Added several missing items Signed-off-by: Haru <haru@dotalux.com>
2015-12-25*Show the katar critical bonus in player status windowAnnieRuru1-0/+2
- this is unofficial behavior, so it has to be in battle config Related to #579 Closes #882 as merged Signed-off-by: Haru <haru@dotalux.com>
2015-12-25Merge pull request #975 from dastgir/8-RefineDefhemagx1-4/+14
Added Costume/Shadow Atk/Def refine bonus setting
2015-12-25Added Costume/Shadow Atk/Def refine bonus settingDastgir1-4/+14
2015-12-23Item Update:Jedzkie1-77/+83
- Added official item effect for Mystic Powder. - Added Mystic Powder Box30 - Added effect for WOB_Amatsu - Added Songpyun_Box50 - White space adjustments
2015-12-23Update:Jedzkie1-7/+7
- Rename BLUE_CRYST and PINK_CRYST to BLUE_CRYSTAL and PINK_CRYSTAL - Rename FOOD_STOR to FOOD_STORAGE - Rename TREAS01, TREAS40, TREAS41, TREAS49 to TREASURE_01, TREASURE_40, TREASURE_41, TREASURE_49
2015-12-23Item Update:Jedzkie1-6/+14
- Added official effect for Rapid Life Water. - Added new items: - Fruit Salad (http://www.divine-pride.net/database/item/11715) - Shepherd Salad (http://www.divine-pride.net/database/item/11716) - Yogurt (http://www.divine-pride.net/database/item/11717) - Bisket Dessert (http://www.divine-pride.net/database/item/11718)
2015-12-23Item Update:Jedzkie1-14/+29
- Fix typo MOBID_GUARIDAN to MOBID_GUARDIAN - Added official item effect for Magic Candy.
2015-12-23Item Update:Jedzkie1-4/+4
- Remove the hard coded entry of Monster Transform Scrolls - Change mob names into mob constants.
2015-12-23Item Updates:Jedzkie1-6/+5
- Fix Speed Up Potion and Guyak Pudding effect, only movement speed reduction will not affect when in Quagmire, Decrease AGI and Slow Grace state. (thanks to kyeme) - Follow up https://github.com/Jedzkie/Hercules/commit/9dc44927ccf5ae88a40e92be5c7c2146cdb5eb06 - Remove Yggdrasilberry and Yggdrasil Seed item re-use delay.
2015-12-23Item Update:Jedzkie1-71/+114
- Update the Genetic Sling / Food items - AegisNames - iRO Names - Prices - Weight - Added official effect for HP Increase Potions and SP Increase Potions. - Fix Banana Bomb sitting behavior.
2015-12-23Item Update:Jedzkie1-0/+8
- Added official item effect for Ancient Spirit Agimat.
2015-12-23Item Update:Jedzkie1-35/+44
- Added official Buche De Noel item effect. - Minor white space adjustments.
2015-12-22Follow up ↵Frost1-1/+1
https://github.com/HerculesWS/Hercules/commit/d79a996b1ecfe2dfdfe0069927f3aa0fbe584c8f Fix Spark Candy's Endure effect timer.
2015-12-22Item Update:Jedzkie1-30/+37
- Added SC_MOVHASTE_POTION and SC_MOVESLOW_POTION. - Change some item effects based on Aegis's special.sc. - White space adjustments