summaryrefslogtreecommitdiff
path: root/src/map/status.c
AgeCommit message (Collapse)AuthorFilesLines
2016-10-22Implemented SU_CN_POWDERING Skill.Dastgir Pojee1-0/+1
Consumes 1 Catnip Fruit. Lv 1-2: 3x3 AoE Lv 3-4: 5x5 AoE Lv 5: 7x7 AoE Lasts for (2+SkillLevel) Seconds Increases Natural Recovery of HP/SP. Reduces Atk and MAtk by 50% Reduces Movement Speed.
2016-10-22Implemented SU_SV_STEMSPEAR Skill.Dastgir Pojee1-0/+1
Silvervine Steam Spear: 10% Bleeding Chance, 700% Matk at all levels. Lv 1: Earth Magic Lv 2: Fire Magic Lv 3: Water Magic Lv 4: Wind Magic Lv 5: Ghost Magic Base Level 30: Chance to activate skill again. Every 30 Base Level: Increases the chance to activate skill.
2016-10-22Implemented SU_POWEROFLAND Skill.Dastgir Pojee1-0/+6
Increases INT by 20, If More than 20 skill points invested in plant based Skills, MATK+20%.
2016-10-22Implemented SU_FRESHSHRIMP Skill.Dastgir Pojee1-1/+17
Consumes Fresh Shrimp to recover HP for 2 Minutes. Max Level 5: Recovers Every (11-SkillLevel) Seconds.
2016-10-22Implemented SU_SPRITEMABLE Skill.Dastgir Pojee1-1/+16
MaxHP + 1000, MaxSP + 100. Show's Spirit of Sea, Land and Life around the sprite when skill is learned.
2016-10-22Implemented SU_STOOP Skill.Dastgir Pojee1-0/+1
Reduces Incoming Damange by 90% for 6 seconds. When Knock Back, the effect disappears.
2016-10-22Implemented SU_SCRATCH:Dastgir Pojee1-0/+1
Max Level: 3 Attack Increases by 50+(50+Level)% Base Level >= 30: Activates a Chance to cast skill again. Every 30 Base Level: Increases the chance to cast skill again.
2016-10-22Implemented SU_HIDE Skill.Dastgir Pojee1-0/+8
Transforms into Bush.
2016-10-05CRI should only be calculated if flag have SCB_CRI.Dastgir Pojee1-4/+6
Fixes #1442
2016-09-30Add different fixes for gcc 7 warnings.Andrei Karas1-1/+34
Some possible buffer overflows. Add attribute for mark fallthrough cases. Skipped libconfig warnings.
2016-09-19Add missing checks into status.cAndrei Karas1-90/+239
2016-09-11Fixes skills targeting characters under camouflage statuscsnv1-1/+1
Fixes #571
2016-07-19Add skill atributes for allow moving while casting skill.Andrei Karas1-7/+18
New SkillInfo attributes: FreeCastReduced - allow move while casting with slowdown FreeCastNormal - allow move while casting with normal speed
2016-07-14Changed mmo_charstatus::base_level and mmo_charstatus::job_level to intHaru1-4/+2
Fixes several -Wsign-compare issues Signed-off-by: Haru <haru@dotalux.com>
2016-07-12Add into skill.c some handling for unknown skills/skill units.Andrei Karas1-11/+1
Also improve a bit cast end functions call.
2016-07-10Merge pull request #1350 from 4144/scconfHaru1-40/+4
Extend with new flag sc_config.txt
2016-07-10Fixed SC_OFFERTORIUM and SC_MAGNIFICATRidley1-5/+9
They should cancel each other, not prevent the usage (like Kyrie and Assumptio) Closes #1222 as merged Signed-off-by: Haru <haru@dotalux.com>
2016-07-10Add sc_config.txt flag for always visible effects.Andrei Karas1-40/+4
Remove hardcoded visible effects from status.c and add visible flag into sc_config.txt
2016-07-05Move static methods into interface in status.cAndrei Karas1-375/+387
2016-07-02Trivialities: indentation fixesHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
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>