summaryrefslogtreecommitdiff
path: root/src/map/status.c
AgeCommit message (Collapse)AuthorFilesLines
2021-04-18[TMW2] Allow MP regen with maximum powerJesusaves1-1/+0
2021-03-20Nerf burning to the ground. It is now 100 DMG + 3% MaxHPJesusaves1-1/+1
2021-02-15[TMW2] Make the icon param in sc_config to be optional (allowing overrides)Jesusaves1-2/+1
2021-02-15Add support for defining status icons in the sc configAsheraf1-3/+8
[TMW2 CHERRYPICK]
2021-02-15Dehardcode status effect boss resistanceAsheraf1-48/+4
2020-09-12This is Hercules v2019.10.20r12.5_BUGGYJesusaves1-129/+160
2020-09-12This is Hercules v2019.09.22Jesusaves1-15/+97
2020-08-07This is Hercules v2019.08.25r12.4+1Jesusaves1-1/+3
2020-07-31[TMW2] BATK MODJesusaves1-2/+8
2020-07-31[TMW2] ASPD FIXJesusaves1-0/+6
2019-05-06Change return type of attack related functions from unsigned int to intAndrei Karas1-32/+32
2019-05-06Fix warnings after last changesAndrei Karas1-6/+10
2019-05-06Add configurable limits for attack related functionsAndrei Karas1-30/+30
2019-05-06Change attack related status functions to return int variableAndrei Karas1-39/+43
2019-05-05Remove all direct access to refine database from status.c and replace it ↵Ibrahim Zidan1-6/+6
with new refine interface functions Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
2019-05-05Fix variables shadowing refine interface variable map-server sourceIbrahim Zidan1-6/+6
Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
2019-05-05Removal of refine database code from status.c and moving it respectfully to ↵Ibrahim Zidan1-192/+5
its own files Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
2019-02-01Merge pull request #1631 from Emistry/fix_voice_of_sirenHaru1-0/+3
Fix Voice of Siren minimum duration.
2018-12-14Add inventory size field into db and using it in server.Andrei Karas1-1/+1
2018-11-21Fix a regression that prevented characters from being resurrectedHaru1-1/+1
Caused by a wrong check in 8269fdcd5d036ddc3c24bc0ebb4ad958b5c19a3a Signed-off-by: Haru <haru@dotalux.com>
2018-11-14Extend status->heal() with a flag to allow reviving a dead characterHaru1-1/+3
This adds `STATUS_HEAL_ALLOWREVIVE` to `enum status_heal_flag`. Fixes an issue caused by a hack in the resurrection code, that would make characters respawn with 2 HP instead of 1. Signed-off-by: Haru <haru@dotalux.com>
2018-11-14Use an enum as flag for status->heal() and related functionsHaru1-47/+64
This introduces the `enum status_heal_flag`. No functional changes are made. Signed-off-by: Haru <haru@dotalux.com>
2018-11-14Fixes #889 & #840Jedzkie1-14/+49
- Novice classes will never go below 50% hp when died. - Other classes will show 1 HP rather than 0 when died. - Added battle configuration. Signed-off-by: Haru <haru@dotalux.com>
2018-10-07Fixed Logically Dead CodeDastgir1-23/+0
2018-07-01Fix some warnings caused by static functions defined and unusedHaru1-2/+6
Signed-off-by: Haru <haru@dotalux.com>
2018-07-01Change functions to static where possible (Part 4 - map)Haru1-224/+233
This fixes issues with plugins defining symbols with the same names Signed-off-by: Haru <haru@dotalux.com>
2018-06-29Fix packet 836 (search in stores).Andrei Karas1-1/+1
Added item options fields into this packet. Updated other things for support for report item options in vending. Buying store not supported for now.
2018-06-20Revert "Fixed Bug#8624"skyleo1-6/+1
This reverts commit 2c192fc93f4b5c8a19eaefbca4e24e160feb5d47. This `Fix` broke NPC_POWERUP (or rather SC_INCATKRATE) on Monsters, making MVPs like Atroce and Doppelganger not stronger in their Power Up phase as they used to be. Additionally it broke Divest Weapon's ATK Reduction on Monsters in Renewal.
2018-06-07Fix a crash caused by removing entries in job_dbAsheraf1-2/+4
2018-06-03Conversion of exp.txt to libconfigSmokexyz1-7/+41
2018-06-02Merge pull request #842 from AnnieRuru/request_6Haru1-0/+3
Add new *pcblock script command
2018-05-312012-2018 !Maytichai Saowa1-1/+1
2018-05-04Add setpcblock & checkpcblock script commandsAnnieRuru1-0/+3
thanks to @MishimaHaruna for the updated syntax
2018-04-23Move hp recover code from status_calc_pc_ into separate function.Andrei Karas1-5/+14
2018-04-22Fixes interaction between Curse and BlessingJedzkie1-8/+16
When under Curse or Stone Curse, Blessing will only remove the negative statuses. Blessing needs to be cast twice to obtain the buff. Fixes #680 Signed-off-by: Haru <haru@dotalux.com>
2018-04-08Update Skill/Item messagesJedzkie1-1/+5
2018-02-10Clean up trailing whitespace and non-indent tabsHaru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2018-01-25Implementation of Official Clan SystemMurilo Pereti Tavares1-0/+21
All official features work including the autokick for inactive members And the system is completely customizable.
2017-12-17Merge pull request #1925 from MishimaHaruna/slowpoisonHaru1-13/+15
Natural expiration of Poison when under Slow Poison effect
2017-12-03Fix an issue that prevents the Poison status to naturally end when Slow ↵Haru1-13/+15
Poison is active The status change timer wasn't correctly rearmed in such a condition, keeping SC_POISON active indefinitely. Signed-off-by: Haru <haru@dotalux.com>
2017-11-05Reduce confusion between skill IDs and skill DB indexes (part 2)Haru1-2/+2
Remove MAX_SKILL in favor of MAX_SKILL_DB, when referring to the maximum skill DB index. This is opposed to MAX_SKILL_ID, the maximum skill ID. Signed-off-by: Haru <haru@dotalux.com>
2017-11-04Allow each npc use own view_data structure.Andrei Karas1-4/+8
Allow npc to use player classes (for older than 20170726 npc visible as players). View_data structure can be copied from predefined view_data lists created new if npc using player type.
2017-09-19remove trailing whitespaces from sourcegumi1-7/+7
2017-09-17Move other view-related variables to `sd->status.look`Haru1-4/+4
The following variables are now moved to `sd->status.look` (from `sd->status`): `head_top`, `head_mid`, `head_bottom`, `robe` Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Differentiate variables that hold a ViewSprite and a Subtype (part 2)Haru1-1/+1
`sd->status.shield` is renamed to `sd->status.look.shield` and only holds ViewSprite IDs. Its previous other meaning is now transferred to `sd->has_shield`, of boolean type (to detect the presence of a shield) Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Differentiate variables that hold a ViewSprite and a weapon SubtypeHaru1-21/+18
`sd->status.weapon` is renamed to `sd->status.look.weapon` and only holds ViewSprite IDs. Its previous other meaning is now transferred to `sd->weapontype` (holding the currently equipped weapon type, considering both hands at once) Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Split 'View' in two different fields in the item databaseHaru1-1/+1
- The field was used both for sprite view IDs and for weapon or ammunition subtypes. Now the fields 'ViewSprite' and 'Subtype' are used respectively. Signed-off-by: Haru <haru@dotalux.com>
2017-07-30Implementation of RoDEXKirieZ1-0/+7
2017-07-27Fix possible buffer overflows with snprintf.Andrei Karas1-1/+1
2017-07-27Move handling unknown sc code from status_change_start into separate function.Andrei Karas1-3/+13