summaryrefslogtreecommitdiff
path: root/src/map/battle.c
AgeCommit message (Collapse)AuthorFilesLines
2019-07-28Merge pull request #2510 from Emistry/mobdb_dmg_taken_rateHaru1-0/+12
Update mob_db - DamageTakenRate field
2019-07-24Update mob_db - DamageTakenRate fieldEmistry Haoyan1-0/+12
- adjust the damage taken by monster. (default = `100 = 1x`) - ref: https://github.com/idathena/trunk/commit/e267d2e2dada6196b479a6f2f35e9d25291ef22b
2019-07-14Added battle config autoloot_adjustEmistry Haoyan1-0/+1
Added battle config autoloot_adjust that allows autoloot to take player drop penalties and bonuses into account.
2019-05-06Merge pull request #2232 from guilherme-gm/201810-trap-visibilityHaru1-1/+6
Added option to make hunter traps invisible
2019-05-06Add configurable limits for attack related functionsAndrei Karas1-2/+16
2019-05-05Implement Refinery UIIbrahim Zidan1-0/+14
Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
2019-05-05Add option for drop connection on disconnect packet from clientAndrei Karas1-0/+1
New configuration option drop_connection_on_quit.
2019-04-20Added support for mobs to drop items with Random OptionsGuilherme G. Menaldo1-0/+1
2019-04-07Add ZC_PING and CZ_PING packetsAndrei Karas1-0/+2
For supported packet version, from now server send ping packets to client.
2019-04-07Fix possible null pointersAndrei Karas1-1/+1
2019-04-07Added configuration to enable/disable achievement systemDastgir1-0/+1
2019-02-28Adds configuration for Magic Rod behavior (official/eAthena).EyesOfAHawk1-0/+1
2019-02-11Change type for class variables from short to intAndrei Karas1-2/+2
2018-11-14Merge pull request #1233 from dastgirp/r5-defenseHaru1-30/+35
Fixed defense overflow exploit
2018-11-14Clarify the code around the def/flee reduction for multiple attackersHaru1-31/+35
This is just a clarification/sanitization, no functional changes intended. Signed-off-by: Haru <haru@dotalux.com>
2018-11-14Use an enum as flag for status->heal() and related functionsHaru1-3/+3
This introduces the `enum status_heal_flag`. No functional changes are made. Signed-off-by: Haru <haru@dotalux.com>
2018-11-14Fixes #889 & #840Jedzkie1-0/+1
- 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-21Merge pull request #2182 from guilherme-gm/201808-trapfixHaru1-0/+35
Fixes some issues with traps
2018-10-20Added setting to keep traps invisible when triggeredGuilherme G. Menaldo1-1/+2
2018-10-20add a warning for `traps_setting` in battle confgumi1-0/+4
2018-10-20Added option to make hunter traps invisibleGuilherme G. Menaldo1-1/+1
2018-10-13Fixed Issue #2177Dastgir1-0/+2
If Item Price is 0, it is now changed to 1.
2018-08-30Makes trap damage possible to be reflectedGuilherme G. Menaldo1-0/+35
2018-08-04Fixed defense overflow exploitDastgir1-0/+1
* The defense penalty for being attacked by many enemies at the same time can no longer make DEF go negative * Fixed two potential overflow exploits When being hit by a lot of monsters, your DEF will become negative and then eventually overflow, making you almost invincible. On official servers the simultaneous attacker count is limited to 22. So at max, your def is reduced by ((22-2)*5%) = 100%. So it should neither be able to make your DEF negative nor cause an overflow. Merge from https://github.com/rathena/rathena/commit/590f42cd15c58de78cff8be6053109852375bce1#diff-d96b6365b4bdad78139e676d6e7e3295R4589
2018-07-24Merge pull request #2088 from guilherme-gm/fix-ghostmonstersHaru1-0/+1
Fixed monsters not disappearing from some clients upon death
2018-07-12Fixed clearunit packet not being sent to clients going out of the view range ↵Guilherme G. Menaldo1-0/+1
when monster dies
2018-07-12Split btype and item_id parameters in function clif_skill_fail.Andrei Karas1-4/+4
2018-07-01Change functions to static where possible (Part 4 - map)Haru1-60/+112
This fixes issues with plugins defining symbols with the same names Signed-off-by: Haru <haru@dotalux.com>
2018-06-25Implemented Pet AutofeedingDastgir1-0/+1
2018-05-04Add setpcblock & checkpcblock script commandsAnnieRuru1-1/+1
thanks to @MishimaHaruna for the updated syntax
2018-04-25Merge pull request #2023 from MishimaHaruna/remove-stat-serverHaru1-171/+2
Remove stat server
2018-04-23Merge pull request #2005 from guilherme-gm/guildskillcdHaru1-1/+1
Allow guild skills cooldown to continue when logged out
2018-04-22Remove the stat-reporting mechanismHaru1-171/+2
Signed-off-by: Haru <haru@dotalux.com>
2018-04-08Merge pull request #2001 from guilherme-gm/tombspawnHaru1-0/+1
Added delay to tomb spawn
2018-04-08Allow guild skills cooldown to continue when logged outGuilherme G. Menaldo1-1/+1
2018-04-08Added delay to tomb spawnGuilherme G. Menaldo1-0/+1
2018-04-07Implementation of Attendance systemAsheraf1-0/+2
2018-04-07Add an option to prevent item usage when storage is openJedzkie1-0/+1
In official servers, you can't open boxes and use usable/consumables items when the storage is open. Fixes #1806
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-11/+21
All official features work including the autokick for inactive members And the system is completely customizable.
2017-11-18Implement Homunculus autofeedingAsheraf1-0/+1
2017-10-21Merge pull request #1825 from HerculesWS/cardfixHaru1-32/+3
Remove separate cardfix definition for pre-re/re
2017-10-21Merge pull request #1812 from mekolat/partyleader2Haru1-0/+1
add option to restrict party leader change to same map
2017-09-17Differentiate variables that hold a ViewSprite and a weapon SubtypeHaru1-18/+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-5/+4
- 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-08-17Remove separate cardfix definition for pre-re/reHaru1-32/+3
Cardfix is now always calculated in thousandths (it previously was in hundredths in renewal mode only). The variable size is increased to int (from short), to ensure that no overflows occur in case of large multipliers. This doesn't change the game mechanics (barring some minor truncation issues that would previously occur due to the lack of precision in renewal) Signed-off-by: Haru <haru@dotalux.com>
2017-08-01add option to restrict party leader change to same mapgumi1-0/+1
2017-07-30Implementation of RoDEXKirieZ1-0/+2
2017-05-27Merge pull request #1722 from Smokexyz/mmo_charstatus-fixHaru1-1/+1
Dismemberment of `storage_data` from `mmo_charstatus`.
2017-05-22Add storage_data reception, parsing and sending to/from the map-server.Smokexyz1-1/+1
Remove loading and saving of storage_data through char.c Re-declaration of structure storage_data as a vector. Re-code of portions in the map-server using storage_data. A new approach is taken by saving the loaded storage data from sql into memory for the duration of the session, thereby removing the need of querying the database to re-load all items everytime a storage save routine is issued from the map-server. Saving of storage items is done through a new function that significantly reduces the number of queries compared to char_memitemdata_tosql(), and therefore run-time speed. This method potentially reduces the number of update and delete queries from MAX_STORAGE (which could be >= 600) times to literally 1. Storage items are stored in a dynamically allocated array and handled accordingly. struct mmo_charstatus size reduces by 34,800 bytes. Update pc_checkitem() with masks for item checks. `sd->state.itemcheck` has been changed to `sd->itemcheck` of type `enum pc_checkitem_types` `battle/items.conf` has been updated to reflect configuration changes. Further updates to assert a successful reception of storage data in related functions.