[1] | 1 | // Copyright (c) Athena Dev Teams - Licensed under GNU GPL |
---|
| 2 | // For more information, see LICENCE in the main folder |
---|
| 3 | |
---|
| 4 | #ifndef _BATTLE_H_ |
---|
| 5 | #define _BATTLE_H_ |
---|
| 6 | |
---|
| 7 | // state of a single attack attempt; used in flee/def penalty calculations when mobbed |
---|
| 8 | typedef enum damage_lv { |
---|
| 9 | ATK_NONE, // not an attack |
---|
| 10 | ATK_LUCKY, // attack was lucky-dodged |
---|
| 11 | ATK_FLEE, // attack was dodged |
---|
| 12 | ATK_DEF // attack connected |
---|
| 13 | } damage_lv; |
---|
| 14 | |
---|
| 15 | // _[W |
---|
| 16 | struct Damage { |
---|
| 17 | int damage,damage2; |
---|
| 18 | int type,div_; |
---|
| 19 | int amotion,dmotion; |
---|
| 20 | int blewcount; |
---|
| 21 | int flag; |
---|
| 22 | enum damage_lv dmg_lv; //ATK_LUCKY,ATK_FLEE,ATK_DEF |
---|
| 23 | }; |
---|
| 24 | |
---|
| 25 | // ®«\iÇÝÝÍpc.cAbattle_attr_fixÅgpj |
---|
| 26 | extern int attr_fix_table[4][10][10]; |
---|
| 27 | |
---|
| 28 | struct map_session_data; |
---|
| 29 | struct mob_data; |
---|
| 30 | struct block_list; |
---|
| 31 | |
---|
| 32 | // _[WvZ |
---|
| 33 | |
---|
| 34 | struct Damage battle_calc_attack(int attack_type,struct block_list *bl,struct block_list *target,int skill_num,int skill_lv,int count); |
---|
| 35 | |
---|
| 36 | int battle_calc_return_damage(struct block_list *bl, int damage, int flag); |
---|
| 37 | |
---|
| 38 | void battle_drain(struct map_session_data *sd, struct block_list *tbl, int rdamage, int ldamage, int race, int boss); |
---|
| 39 | |
---|
| 40 | int battle_attr_ratio(int atk_elem,int def_type, int def_lv); |
---|
| 41 | int battle_attr_fix(struct block_list *src, struct block_list *target, int damage,int atk_elem,int def_type, int def_lv); |
---|
| 42 | |
---|
| 43 | // _[WÅIvZ |
---|
| 44 | int battle_calc_damage(struct block_list *src,struct block_list *bl,int damage,int div_,int skill_num,int skill_lv,int flag); |
---|
| 45 | int battle_calc_gvg_damage(struct block_list *src,struct block_list *bl,int damage,int div_,int skill_num,int skill_lv,int flag); |
---|
| 46 | |
---|
| 47 | enum { // ÅIvZÌtO |
---|
| 48 | BF_WEAPON = 0x0001, |
---|
| 49 | BF_MAGIC = 0x0002, |
---|
| 50 | BF_MISC = 0x0004, |
---|
| 51 | BF_SHORT = 0x0010, |
---|
| 52 | BF_LONG = 0x0040, |
---|
| 53 | BF_SKILL = 0x0100, |
---|
| 54 | BF_NORMAL = 0x0200, |
---|
| 55 | BF_WEAPONMASK=0x000f, |
---|
| 56 | BF_RANGEMASK= 0x00f0, |
---|
| 57 | BF_SKILLMASK= 0x0f00, |
---|
| 58 | }; |
---|
| 59 | |
---|
| 60 | int battle_delay_damage (unsigned int tick, int amotion, struct block_list *src, struct block_list *target, int attack_type, int skill_id, int skill_lv, int damage, enum damage_lv dmg_lv, int ddelay); |
---|
| 61 | |
---|
| 62 | // ÊíUÜÆß |
---|
| 63 | enum damage_lv battle_weapon_attack( struct block_list *bl,struct block_list *target,unsigned int tick,int flag); |
---|
| 64 | |
---|
| 65 | // eíp[^ðŸé |
---|
| 66 | struct block_list* battle_get_master(struct block_list *src); |
---|
| 67 | struct block_list* battle_gettargeted(struct block_list *target); |
---|
| 68 | struct block_list* battle_getenemy(struct block_list *target, int type, int range); |
---|
| 69 | int battle_gettarget(struct block_list *bl); |
---|
| 70 | int battle_getcurrentskill(struct block_list *bl); |
---|
| 71 | |
---|
| 72 | //New definitions [Skotlex] |
---|
| 73 | #define BCT_ENEMY 0x020000 |
---|
| 74 | //This should be (~BCT_ENEMY&BCT_ALL) |
---|
| 75 | #define BCT_NOENEMY 0x1d0000 |
---|
| 76 | #define BCT_PARTY 0x040000 |
---|
| 77 | //This should be (~BCT_PARTY&BCT_ALL) |
---|
| 78 | #define BCT_NOPARTY 0x1b0000 |
---|
| 79 | #define BCT_GUILD 0x080000 |
---|
| 80 | //This should be (~BCT_GUILD&BCT_ALL) |
---|
| 81 | #define BCT_NOGUILD 0x170000 |
---|
| 82 | #define BCT_ALL 0x1f0000 |
---|
| 83 | #define BCT_NOONE 0x000000 |
---|
| 84 | #define BCT_SELF 0x010000 |
---|
| 85 | #define BCT_NEUTRAL 0x100000 |
---|
| 86 | |
---|
| 87 | #define is_boss(bl) (status_get_mode(bl)&MD_BOSS) // Can refine later [Aru] |
---|
| 88 | |
---|
| 89 | int battle_check_undead(int race,int element); |
---|
[5] | 90 | int battle_check_living(int race,int element); //Living Creature Check [Brain] |
---|
[1] | 91 | int battle_check_target(struct block_list *src, struct block_list *target,int flag); |
---|
| 92 | bool battle_check_range(struct block_list *src,struct block_list *bl,int range); |
---|
| 93 | |
---|
| 94 | void battle_consume_ammo(struct map_session_data* sd, int skill, int lv); |
---|
| 95 | // Ýè |
---|
| 96 | |
---|
| 97 | extern struct Battle_Config |
---|
| 98 | { |
---|
| 99 | int warp_point_debug; |
---|
| 100 | int enable_critical; |
---|
| 101 | int mob_critical_rate; |
---|
| 102 | int critical_rate; |
---|
| 103 | int enable_baseatk; |
---|
| 104 | int enable_perfect_flee; |
---|
| 105 | int cast_rate, delay_rate; |
---|
| 106 | int delay_dependon_dex, delay_dependon_agi; |
---|
| 107 | int sdelay_attack_enable; |
---|
| 108 | int left_cardfix_to_right; |
---|
| 109 | int skill_add_range; |
---|
| 110 | int skill_out_range_consume; |
---|
| 111 | int skillrange_by_distance; //[Skotlex] |
---|
| 112 | int use_weapon_skill_range; //[Skotlex] |
---|
| 113 | int pc_damage_delay_rate; |
---|
| 114 | int defnotenemy; |
---|
| 115 | int vs_traps_bctall; |
---|
| 116 | int traps_setting; |
---|
| 117 | int summon_flora; //[Skotlex] |
---|
| 118 | int clear_unit_ondeath; //[Skotlex] |
---|
| 119 | int clear_unit_onwarp; //[Skotlex] |
---|
| 120 | int random_monster_checklv; |
---|
| 121 | int attr_recover; |
---|
| 122 | int item_auto_get; |
---|
| 123 | int flooritem_lifetime; |
---|
| 124 | int item_first_get_time; |
---|
| 125 | int item_second_get_time; |
---|
| 126 | int item_third_get_time; |
---|
| 127 | int mvp_item_first_get_time; |
---|
| 128 | int mvp_item_second_get_time; |
---|
| 129 | int mvp_item_third_get_time; |
---|
| 130 | int base_exp_rate,job_exp_rate; |
---|
| 131 | int drop_rate0item; |
---|
| 132 | int death_penalty_type; |
---|
| 133 | int death_penalty_base,death_penalty_job; |
---|
| 134 | int pvp_exp; // [MouseJstr] |
---|
| 135 | int gtb_sc_immunity; |
---|
| 136 | int zeny_penalty; |
---|
| 137 | int restart_hp_rate; |
---|
| 138 | int restart_sp_rate; |
---|
| 139 | int mvp_exp_rate; |
---|
| 140 | int mvp_hp_rate; |
---|
| 141 | int monster_hp_rate; |
---|
| 142 | int monster_max_aspd; |
---|
| 143 | int view_range_rate; |
---|
| 144 | int chase_range_rate; |
---|
| 145 | int atc_gmonly; |
---|
| 146 | int atc_spawn_quantity_limit; |
---|
| 147 | int atc_slave_clone_limit; |
---|
| 148 | int partial_name_scan; |
---|
| 149 | int gm_allskill; |
---|
| 150 | int gm_allequip; |
---|
| 151 | int gm_skilluncond; |
---|
| 152 | int gm_join_chat; |
---|
| 153 | int gm_kick_chat; |
---|
| 154 | int skillfree; |
---|
| 155 | int skillup_limit; |
---|
| 156 | int wp_rate; |
---|
| 157 | int pp_rate; |
---|
| 158 | int monster_active_enable; |
---|
| 159 | int monster_damage_delay_rate; |
---|
| 160 | int monster_loot_type; |
---|
| 161 | int mob_skill_rate; //[Skotlex] |
---|
| 162 | int mob_skill_delay; //[Skotlex] |
---|
| 163 | int mob_count_rate; |
---|
| 164 | int no_spawn_on_player; //[Skotlex] |
---|
| 165 | int force_random_spawn; //[Skotlex] |
---|
| 166 | int mob_spawn_delay, plant_spawn_delay, boss_spawn_delay; // [Skotlex] |
---|
| 167 | int slaves_inherit_mode; |
---|
| 168 | int slaves_inherit_speed; |
---|
| 169 | int summons_trigger_autospells; |
---|
| 170 | int pc_walk_delay_rate; //Adjusts can't walk delay after being hit for players. [Skotlex] |
---|
| 171 | int walk_delay_rate; //Adjusts can't walk delay after being hit. [Skotlex] |
---|
| 172 | int multihit_delay; //Adjusts can't walk delay per hit on multi-hitting skills. [Skotlex] |
---|
| 173 | int quest_skill_learn; |
---|
| 174 | int quest_skill_reset; |
---|
| 175 | int basic_skill_check; |
---|
| 176 | int guild_emperium_check; |
---|
| 177 | int guild_exp_limit; |
---|
| 178 | int guild_max_castles; |
---|
| 179 | int guild_skill_relog_delay; |
---|
| 180 | int emergency_call; |
---|
| 181 | int guild_aura; |
---|
| 182 | int pc_invincible_time; |
---|
| 183 | int pet_catch_rate; |
---|
| 184 | int pet_rename; |
---|
| 185 | int pet_friendly_rate; |
---|
| 186 | int pet_hungry_delay_rate; |
---|
| 187 | int pet_hungry_friendly_decrease; |
---|
| 188 | int pet_status_support; |
---|
| 189 | int pet_attack_support; |
---|
| 190 | int pet_damage_support; |
---|
| 191 | int pet_support_min_friendly; //[Skotlex] |
---|
| 192 | int pet_support_rate; |
---|
| 193 | int pet_attack_exp_to_master; |
---|
| 194 | int pet_attack_exp_rate; |
---|
| 195 | int pet_lv_rate; //[Skotlex] |
---|
| 196 | int pet_max_stats; //[Skotlex] |
---|
| 197 | int pet_max_atk1; //[Skotlex] |
---|
| 198 | int pet_max_atk2; //[Skotlex] |
---|
| 199 | int pet_no_gvg; //Disables pets in gvg. [Skotlex] |
---|
| 200 | int skill_min_damage; |
---|
| 201 | int finger_offensive_type; |
---|
| 202 | int heal_exp; |
---|
| 203 | int max_heal_lv; |
---|
| 204 | int max_heal; //Mitternacht |
---|
| 205 | int resurrection_exp; |
---|
| 206 | int shop_exp; |
---|
| 207 | int combo_delay_rate; |
---|
| 208 | int item_check; |
---|
| 209 | int item_use_interval; //[Skotlex] |
---|
| 210 | int wedding_modifydisplay; |
---|
| 211 | int wedding_ignorepalette; //[Skotlex] |
---|
| 212 | int xmas_ignorepalette; // [Valaris] |
---|
| 213 | int summer_ignorepalette; // [Zephyrus] |
---|
| 214 | int natural_healhp_interval; |
---|
| 215 | int natural_healsp_interval; |
---|
| 216 | int natural_heal_skill_interval; |
---|
| 217 | int natural_heal_weight_rate; |
---|
| 218 | int arrow_decrement; |
---|
| 219 | int max_aspd; |
---|
| 220 | int max_walk_speed; //Maximum walking speed after buffs [Skotlex] |
---|
| 221 | int max_hp; |
---|
| 222 | int max_sp; |
---|
| 223 | int max_lv, aura_lv; |
---|
| 224 | int max_parameter, max_baby_parameter; |
---|
| 225 | int max_cart_weight; |
---|
| 226 | int skill_log; |
---|
| 227 | int battle_log; |
---|
| 228 | int save_log; |
---|
| 229 | int etc_log; |
---|
| 230 | int save_clothcolor; |
---|
| 231 | int undead_detect_type; |
---|
| 232 | int auto_counter_type; |
---|
| 233 | int min_hitrate; //[Skotlex] |
---|
| 234 | int max_hitrate; //[Skotlex] |
---|
| 235 | int agi_penalty_target; |
---|
| 236 | int agi_penalty_type; |
---|
| 237 | int agi_penalty_count; |
---|
| 238 | int agi_penalty_num; |
---|
| 239 | int vit_penalty_target; |
---|
| 240 | int vit_penalty_type; |
---|
| 241 | int vit_penalty_count; |
---|
| 242 | int vit_penalty_num; |
---|
| 243 | int weapon_defense_type; |
---|
| 244 | int magic_defense_type; |
---|
| 245 | int skill_reiteration; |
---|
| 246 | int skill_nofootset; |
---|
| 247 | int pc_cloak_check_type; |
---|
| 248 | int monster_cloak_check_type; |
---|
| 249 | int estimation_type; |
---|
| 250 | int gvg_short_damage_rate; |
---|
| 251 | int gvg_long_damage_rate; |
---|
| 252 | int gvg_weapon_damage_rate; |
---|
| 253 | int gvg_magic_damage_rate; |
---|
| 254 | int gvg_misc_damage_rate; |
---|
| 255 | int gvg_flee_penalty; |
---|
| 256 | int gvg_eliminate_time; |
---|
| 257 | int pk_short_damage_rate; |
---|
| 258 | int pk_long_damage_rate; |
---|
| 259 | int pk_weapon_damage_rate; |
---|
| 260 | int pk_magic_damage_rate; |
---|
| 261 | int pk_misc_damage_rate; |
---|
| 262 | int mob_changetarget_byskill; |
---|
| 263 | int attack_direction_change; |
---|
| 264 | int land_skill_limit; |
---|
| 265 | int party_skill_penalty; |
---|
| 266 | int monster_class_change_recover; |
---|
| 267 | int produce_item_name_input; |
---|
| 268 | int display_skill_fail; |
---|
| 269 | int chat_warpportal; |
---|
| 270 | int mob_warp; |
---|
| 271 | int dead_branch_active; |
---|
| 272 | int vending_max_value; |
---|
| 273 | int vending_over_max; |
---|
| 274 | int vending_tax; |
---|
| 275 | int show_steal_in_same_party; |
---|
| 276 | int party_share_type; |
---|
| 277 | int party_hp_mode; |
---|
| 278 | int party_show_share_picker; |
---|
| 279 | int attack_attr_none; |
---|
| 280 | int item_rate_mvp, item_rate_common, item_rate_common_boss, item_rate_card, item_rate_card_boss, |
---|
| 281 | item_rate_equip, item_rate_equip_boss, item_rate_heal, item_rate_heal_boss, item_rate_use, |
---|
| 282 | item_rate_use_boss, item_rate_treasure, item_rate_adddrop; |
---|
| 283 | |
---|
| 284 | int logarithmic_drops; |
---|
| 285 | int item_drop_common_min,item_drop_common_max; // Added by TyrNemesis^ |
---|
| 286 | int item_drop_card_min,item_drop_card_max; |
---|
| 287 | int item_drop_equip_min,item_drop_equip_max; |
---|
| 288 | int item_drop_mvp_min,item_drop_mvp_max; // End Addition |
---|
| 289 | int item_drop_heal_min,item_drop_heal_max; // Added by Valatris |
---|
| 290 | int item_drop_use_min,item_drop_use_max; //End |
---|
| 291 | int item_drop_treasure_min,item_drop_treasure_max; //by [Skotlex] |
---|
| 292 | int item_drop_adddrop_min,item_drop_adddrop_max; //[Skotlex] |
---|
| 293 | int prevent_logout; // Added by RoVeRT |
---|
| 294 | |
---|
| 295 | int alchemist_summon_reward; // [Valaris] |
---|
| 296 | int drops_by_luk; |
---|
| 297 | int drops_by_luk2; |
---|
| 298 | int equip_natural_break_rate; //Base Natural break rate for attacks. |
---|
| 299 | int equip_self_break_rate; //Natural & Penalty skills break rate |
---|
| 300 | int equip_skill_break_rate; //Offensive skills break rate |
---|
| 301 | int pet_equip_required; |
---|
| 302 | int multi_level_up; |
---|
| 303 | int max_exp_gain_rate; //Max amount of exp bar % you can get in one go. |
---|
| 304 | int pk_mode; |
---|
| 305 | int pk_level_range; |
---|
| 306 | |
---|
| 307 | int manner_system; // end additions [Valaris] |
---|
| 308 | int show_mob_info; |
---|
| 309 | |
---|
| 310 | int agi_penalty_count_lv; |
---|
| 311 | int vit_penalty_count_lv; |
---|
| 312 | |
---|
| 313 | int gx_allhit; |
---|
| 314 | int gx_disptype; |
---|
| 315 | int devotion_level_difference; |
---|
| 316 | int player_skill_partner_check; |
---|
| 317 | int hide_GM_session; |
---|
| 318 | int invite_request_check; |
---|
| 319 | int skill_removetrap_type; |
---|
| 320 | int disp_experience; |
---|
| 321 | int disp_zeny; |
---|
| 322 | int castle_defense_rate; |
---|
| 323 | int backstab_bow_penalty; |
---|
| 324 | int hp_rate; |
---|
| 325 | int sp_rate; |
---|
| 326 | int gm_cant_drop_min_lv; |
---|
| 327 | int gm_cant_drop_max_lv; |
---|
| 328 | int disp_hpmeter; |
---|
| 329 | int bone_drop; |
---|
| 330 | int buyer_name; |
---|
| 331 | |
---|
| 332 | // eAthena additions |
---|
| 333 | int night_at_start; // added by [Yor] |
---|
| 334 | int day_duration; // added by [Yor] |
---|
| 335 | int night_duration; // added by [Yor] |
---|
| 336 | int ban_hack_trade; // added by [Yor] |
---|
| 337 | int hack_info_GM_level; // added by [Yor] |
---|
| 338 | int any_warp_GM_min_level; // added by [Yor] |
---|
| 339 | int packet_ver_flag; // added by [Yor] |
---|
| 340 | |
---|
| 341 | int min_hair_style; // added by [MouseJstr] |
---|
| 342 | int max_hair_style; // added by [MouseJstr] |
---|
| 343 | int min_hair_color; // added by [MouseJstr] |
---|
| 344 | int max_hair_color; // added by [MouseJstr] |
---|
| 345 | int min_cloth_color; // added by [MouseJstr] |
---|
| 346 | int max_cloth_color; // added by [MouseJstr] |
---|
| 347 | int pet_hair_style; // added by [Skotlex] |
---|
| 348 | |
---|
| 349 | int castrate_dex_scale; // added by [MouseJstr] |
---|
| 350 | int area_size; // added by [MouseJstr] |
---|
| 351 | |
---|
| 352 | int max_def, over_def_bonus; //added by [Skotlex] |
---|
| 353 | |
---|
| 354 | int zeny_from_mobs; // [Valaris] |
---|
| 355 | int mobs_level_up; // [Valaris] |
---|
| 356 | int mobs_level_up_exp_rate; // [Valaris] |
---|
| 357 | int pk_min_level; // [celest] |
---|
| 358 | int skill_steal_max_tries; //max steal skill tries on a mob. if 0, then w/o limit [Lupus] |
---|
| 359 | int motd_type; // [celest] |
---|
| 360 | int finding_ore_rate; // orn |
---|
| 361 | int exp_calc_type; |
---|
| 362 | int exp_bonus_attacker; |
---|
| 363 | int exp_bonus_max_attacker; |
---|
| 364 | int min_skill_delay_limit; |
---|
| 365 | int default_walk_delay; |
---|
| 366 | int no_skill_delay; |
---|
| 367 | int attack_walk_delay; |
---|
| 368 | int require_glory_guild; |
---|
| 369 | int idle_no_share; |
---|
| 370 | int party_update_interval; |
---|
| 371 | int party_even_share_bonus; |
---|
| 372 | int delay_battle_damage; |
---|
| 373 | int hide_woe_damage; |
---|
| 374 | int display_version; |
---|
| 375 | int who_display_aid; |
---|
| 376 | |
---|
| 377 | int display_hallucination; // [Skotlex] |
---|
| 378 | int use_statpoint_table; // [Skotlex] |
---|
| 379 | |
---|
| 380 | int ignore_items_gender; //[Lupus] |
---|
| 381 | |
---|
| 382 | int copyskill_restrict; // [Aru] |
---|
| 383 | int berserk_cancels_buffs; // [Aru] |
---|
| 384 | int debuff_on_logout; // Removes a few "official" negative Scs on logout. [Skotlex] |
---|
| 385 | int mob_ai; //Configures various mob_ai settings to make them smarter or dumber(official). [Skotlex] |
---|
| 386 | int hom_setting; //Configures various homunc settings which make them behave unlike normal characters.. [Skotlex] |
---|
| 387 | int dynamic_mobs; // Dynamic Mobs [Wizputer] - battle_athena flag implemented by [random] |
---|
| 388 | int mob_remove_damaged; // Dynamic Mobs - Remove mobs even if damaged [Wizputer] |
---|
| 389 | int mob_remove_delay; // Dynamic Mobs - delay before removing mobs from a map [Skotlex] |
---|
| 390 | int mob_active_time; //Duration through which mobs execute their Hard AI after players leave their area of sight. |
---|
| 391 | int boss_active_time; |
---|
| 392 | |
---|
| 393 | int show_hp_sp_drain, show_hp_sp_gain; //[Skotlex] |
---|
| 394 | |
---|
| 395 | int mob_npc_event_type; //Determines on who the npc_event is executed. [Skotlex] |
---|
| 396 | int mob_clear_delay; // [Valaris] |
---|
| 397 | |
---|
| 398 | int character_size; // if riders have size=2, and baby class riders size=1 [Lupus] |
---|
| 399 | int mob_max_skilllvl; // Max possible skill level [Lupus] |
---|
| 400 | int rare_drop_announce; // chance <= to show rare drops global announces |
---|
| 401 | |
---|
| 402 | int retaliate_to_master; //Whether when a mob is attacked by another mob, it will retaliate versus the mob or the mob's master. [Skotlex] |
---|
| 403 | |
---|
| 404 | int title_lvl1; // Players titles [Lupus] |
---|
| 405 | int title_lvl2; // Players titles [Lupus] |
---|
| 406 | int title_lvl3; // Players titles [Lupus] |
---|
| 407 | int title_lvl4; // Players titles [Lupus] |
---|
| 408 | int title_lvl5; // Players titles [Lupus] |
---|
| 409 | int title_lvl6; // Players titles [Lupus] |
---|
| 410 | int title_lvl7; // Players titles [Lupus] |
---|
| 411 | int title_lvl8; // Players titles [Lupus] |
---|
| 412 | |
---|
| 413 | int duel_allow_pvp; // [LuzZza] |
---|
| 414 | int duel_allow_gvg; // [LuzZza] |
---|
| 415 | int duel_allow_teleport; // [LuzZza] |
---|
| 416 | int duel_autoleave_when_die; // [LuzZza] |
---|
| 417 | int duel_time_interval; // [LuzZza] |
---|
| 418 | int duel_only_on_same_map; // [Toms] |
---|
| 419 | |
---|
| 420 | int skip_teleport_lv1_menu; // possibility to disable (skip) Teleport Lv1 menu, that have only two lines `Random` and `Cancel` [LuzZza] |
---|
| 421 | |
---|
| 422 | int allow_skill_without_day; // [Komurka] |
---|
| 423 | int allow_es_magic_pc; // [Skotlex] |
---|
| 424 | int skill_wall_check; // [Skotlex] |
---|
| 425 | int cell_stack_limit; // [Skotlex] |
---|
| 426 | int skill_caster_check; // [Skotlex] |
---|
| 427 | int sc_castcancel; // [Skotlex] |
---|
| 428 | int pc_sc_def_rate; // [Skotlex] |
---|
| 429 | int mob_sc_def_rate; |
---|
| 430 | int pc_luk_sc_def; |
---|
| 431 | int mob_luk_sc_def; |
---|
| 432 | int pc_max_sc_def; |
---|
| 433 | int mob_max_sc_def; |
---|
| 434 | |
---|
| 435 | int sg_angel_skill_ratio; |
---|
| 436 | int sg_miracle_skill_ratio; |
---|
| 437 | int sg_miracle_skill_duration; |
---|
| 438 | int autospell_stacking; //Enables autospell cards to stack. [Skotlex] |
---|
| 439 | int override_mob_names; //Enables overriding spawn mob names with the mob_db names. [Skotlex] |
---|
| 440 | int min_chat_delay; //Minimum time between client messages. [Skotlex] |
---|
| 441 | int friend_auto_add; //When accepting friends, both get friended. [Skotlex] |
---|
| 442 | int hvan_explosion_intimate; // fix [albator] |
---|
| 443 | int hom_rename; |
---|
| 444 | int homunculus_show_growth ; //[orn] |
---|
| 445 | int homunculus_friendly_rate; |
---|
| 446 | int quest_exp_rate; |
---|
| 447 | int autotrade_mapflag; |
---|
| 448 | int at_timeout; |
---|
| 449 | int homunculus_autoloot; |
---|
| 450 | int idle_no_autoloot; |
---|
| 451 | int max_guild_alliance; |
---|
| 452 | int ksprotection; |
---|
| 453 | int auction_feeperhour; |
---|
| 454 | int auction_maximumprice; |
---|
[5] | 455 | //Vanaheim battle settings [Brainstorm] |
---|
| 456 | int necro_retaliation; //Battle flag to force monsters to attack adept/necro/warlock summons [Brain] |
---|
| 457 | int disp_summon_stats; //Battle Flag to show summoned monster stats [Brain] |
---|
[1] | 458 | int gm_viewequip_min_lv; |
---|
| 459 | } battle_config; |
---|
| 460 | |
---|
| 461 | void do_init_battle(void); |
---|
| 462 | void do_final_battle(void); |
---|
| 463 | extern int battle_config_read(const char *cfgName); |
---|
| 464 | extern void battle_validate_conf(void); |
---|
| 465 | extern void battle_set_defaults(void); |
---|
| 466 | int battle_set_value(const char* w1, const char* w2); |
---|
| 467 | int battle_get_value(const char* w1); |
---|
| 468 | |
---|
| 469 | #endif /* _BATTLE_H_ */ |
---|