summaryrefslogtreecommitdiff
path: root/src/map/mob.h
AgeCommit message (Collapse)AuthorFilesLines
2020-05-22Implement MSC_MAGICATTACKED cast condition for monster skillsKenpachi Developer1-0/+1
2020-04-14Adjust mob_getfriendstatus() to consider characters as friends for summoned ↵Kenpachi Developer1-1/+1
monsters like mob_getfriendhprate() does
2020-04-11Add missing constants for global skill assignmentKenpachi Developer1-0/+7
2020-04-05Increase MAX_MOB_DB to 22000Kenpachi Developer1-1/+1
Increased MAX_MOB_DB to 22000 to support new mobs/pets with IDs 20000+. (For example NIGHTMARE_TERROR_H (20373) and WANDER_MAN_H (20420).) This also eliminates the conflict between job IDs and clone IDs. (Issue #303)
2020-02-09Change unload NPC behavior to kill mobs that were spawned by unloaded NPC ↵Kenpachi Developer1-4/+5
(non-permanent monster spawns) [Issue #2530] Mobs spawned by NPC will be removed on @reloadnpc, @unloadnpc, and @unloadnpcfile. Additionally OnNPCUnload NPC label was added, to revert other changes made by NPC. For example set/removed mapflags or added mob drops.
2020-01-13Update copyright headers for year 2020Haru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2019-12-15Merge pull request #2572 from Asheraf/mobviewdatadbHaru1-1/+2
Add support for overriding default view data in mob database
2019-10-30Drop the usage of mob_availAsheraf1-1/+1
2019-10-30Add support for overriding default view data in mob databaseAsheraf1-0/+1
2019-10-22Fix Steal accidentally being able to steal cards from certain mobsHaru1-1/+0
Cards are now blocked by item type rather than item drop slot position, since cards no longer have a fixed position in the drop list (regression in ed72a947a6c97804c1eef5b80bfa49d99f7d7586) Signed-off-by: Haru <haru@dotalux.com>
2019-10-18Make slave mobs react to master's chase targetskyleo1-0/+1
This fixes slaves not chasing after master's chase target, when master was immobilized by an Ankle Snare for example midway.
2019-07-28Merge pull request #2510 from Emistry/mobdb_dmg_taken_rateHaru1-0/+2
Update mob_db - DamageTakenRate field
2019-07-24Update mob_db - DamageTakenRate fieldEmistry Haoyan1-0/+2
- adjust the damage taken by monster. (default = `100 = 1x`) - ref: https://github.com/idathena/trunk/commit/e267d2e2dada6196b479a6f2f35e9d25291ef22b
2019-07-10Update atreloadmob to update living mobsEmistry Haoyan1-0/+1
- fix living mobs aren't updated by latest mob_db upon updated. from https://github.com/rathena/rathena/issues/3783
2019-04-20Moved mob drop data to its own structureGuilherme G. Menaldo1-2/+11
2019-04-20Added support for mobs to drop items with Random OptionsGuilherme G. Menaldo1-3/+43
2019-02-11Change type for class variables from short to intAndrei Karas1-1/+1
2018-07-19Add new constant MAX_ITEM_ID for maximum allowed item id.Andrei Karas1-0/+8
For clients older than 2018-07-04 Re maximum supported and enabled id is 65535 (0xffff). For newer clients miximum id is 2147483648. Enabled by default 131072 (0x20000)
2018-05-312012-2018 !Maytichai Saowa1-1/+1
2018-05-01Replace "--ja--" and "--en--" with constants (source only)Haru1-0/+3
- Use `DEFAULT_MOB_NAME` instead of a literal "--en--" - Use `DEFAULT_MOB_JNAME` instead of a literal "--ja--" Signed-off-by: Haru <haru@dotalux.com>
2018-04-19Convert mob_skill_db into libconf formatAsheraf1-1/+3
2018-04-08Added delay to tomb spawnGuilherme G. Menaldo1-0/+2
2018-01-25Implementation of Official Clan SystemMurilo Pereti Tavares1-0/+1
All official features work including the autokick for inactive members And the system is completely customizable.
2017-12-23Show item drop effects only if monster dropping non looted items.Andrei Karas1-0/+1
2017-10-30Add monster spawn boss flag for miniboss: miniboss_monsterAndrei Karas1-1/+7
also fix boss_monster flag for works as mvp and not like mini boss. unhide boss flag if hp bar disabled.
2016-10-28Fixed copyright year for 2016Lemongrass31101-1/+1
2016-02-28Changed mob mode field to 32 bit, for future expansionHaru1-3/+3
Signed-off-by: Haru <haru@dotalux.com>
2016-02-17Removed unnecessary typedefs from libconfigHaru1-8/+8
Signed-off-by: Haru <haru@dotalux.com>
2016-01-29Modified Mob DB loader to behave like the Item DB loaderHaru1-6/+8
- Separated load and validation logic. - The load/validation functions now return the loaded mob ID Signed-off-by: Haru <haru@dotalux.com>
2016-01-09Corrected various zero-argument function definitionsHaru1-1/+1
- Functions should always specify their arguments, even if they take none. In C, not specifying arguments is different than specifying (void). Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Added Poring to the mob_id enumHaru1-0/+2
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Added Zanzou mob ID to the mob_id enumHaru1-0/+2
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Added Summon Legion-related monsters to the mob_id enumHaru1-0/+4
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Added Alchemist-related monsters to the enum mob_idHaru1-0/+17
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Added Splendide, Manuk and Mora mobs to the mob_id enumHaru1-0/+27
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Standardized (source) mob_id enumHaru1-3/+79
- 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-23Update:Jedzkie1-3/+3
- 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-15Added GPL-compliant header to all sources and build scriptsHaru1-4/+20
Signed-off-by: Haru <haru@dotalux.com>
2015-12-14Added official effect of Mora Berry.Jedzkie1-5/+6
Signed-off-by: Haru <haru@dotalux.com>
2015-10-22Removed support for the deprecated SQL item, mob, mob_skill databases.Haru1-1/+0
Follow-up to 84e02ac28fbb15c58d0a0f8a916b49663198b05b Signed-off-by: Haru <haru@dotalux.com>
2015-10-20Fixed an issue preventing the mob_db2 from being loadedHaru1-1/+1
Follow-up to 3feef93 (thanks to kyeme) Signed-off-by: Haru <haru@dotalux.com>
2015-10-19Add support for mob_db in conf format.Andrei Karas1-3/+9
2015-10-11Cleanup of the HPluginData implementation (second part)Haru1-6/+2
- Changed the hplugin_data_store's array into a VECTOR. Signed-off-by: Haru <haru@dotalux.com>
2015-10-11Cleanup of the HPluginData implementation (First part)Haru1-5/+4
- Several explicit casts are removed, to have a slightly better type-checking at compile time. - A destructor function is provided, to remove code duplication. Signed-off-by: Haru <haru@dotalux.com>
2015-08-15HPM compatibility improvementsHaru1-5/+5
Improved compatibility, portability and standards conformance. - Since it is not possible to portably and reliably re-use the core's symbols in plugins, symbols are no longer exported unless explicitly required, in the UNIX builds. This mimics the Windows behavior and adds HPM compatibility to OSes such as FreeBSD. Credits to Andrei Karas for making this possible. - For convenience, it is no longer necessary to call GET_SYMBOL, since the plugin will automatically import all the available symbols when it's loaded, depending on the included headers. - Plugins are now supposed to include the "common/hercules.h" header before including anything else. Incluing common/HPMi.h, common/cbasetypes.h or conf/core.h is no longer necessary, as those are guaranteed to be automatically included by hercules.h. - HPM API version bumped to 1.1. Signed-off-by: Haru <haru@dotalux.com>
2015-06-19Cleaned up some #includesHaru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2015-06-19Removed ".." from include directivesHaru1-5/+5
- Include directives are now directory-independent. - This will allow building plugins from other directories in future. Signed-off-by: Haru <haru@dotalux.com>
2015-06-01Replaced some of the hardcoded values with constants (map)Haru1-13/+20
- Replaced several hardcoded values with the appropriate enums. - Added documentation for some hardcoded values that haven't been replaced by enums (yet) - Minor code legibility improvements. Signed-off-by: Haru <haru@dotalux.com>
2015-01-12Blocked compilation of plugins that use unavailable functionsHaru1-0/+2
- Rather than failing at runtime, plugins that try to access non-interfaced, unavailable functions or variables, will now show an error at compile-time. Signed-off-by: Haru <haru@dotalux.com>
2014-12-21Move mob_db deletion into separate function.Andrei Karas1-0/+1