summaryrefslogtreecommitdiff
path: root/src/map/battle.h
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-22 23:58:16 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-22 23:58:16 +0000
commit021b26b8409a84b4c83eb0cc1eedbd65eedfd4e0 (patch)
tree63b8507c38f428421d56c9d816c1d2b2b5c4cd7a /src/map/battle.h
parent2e2f6aff261555ae5eaee6b7777d5844b7d20544 (diff)
downloadhercules-021b26b8409a84b4c83eb0cc1eedbd65eedfd4e0.tar.gz
hercules-021b26b8409a84b4c83eb0cc1eedbd65eedfd4e0.tar.bz2
hercules-021b26b8409a84b4c83eb0cc1eedbd65eedfd4e0.tar.xz
hercules-021b26b8409a84b4c83eb0cc1eedbd65eedfd4e0.zip
- Merged the unit_data structure from jA for handling unit-related data (attack times, walking, auto-attack timers, skill related data)
- Modified unit_skillcastcancel to receive flag&2, which stands for "cancel casting only if current skill is cancellable" - Battle config options changed from yes/no to BL_TYPE settings: skillrange_by_distance, skill_noreiteration, skill_nofootset, gvg_traps_target_all, skill_log, attack_direction_change, auto_counter_type - Clif.c will disconnect sessions that send an unknown command packet above 0x30000 instead of just ignoring it. - Cleaned up/rewrite of the pet ai, same for pet_calc_pos - Implemented use of mob variable attacked_players as it is used on jA - Cleaned up error reporting during mob-skill loading to be less spamy with non-loaded mobs. - Corrected water_height reading. I forgot to give credits to LittleWolf for providing the water-reading function :X git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5707 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.h')
-rw-r--r--src/map/battle.h25
1 files changed, 6 insertions, 19 deletions
diff --git a/src/map/battle.h b/src/map/battle.h
index 0f92c3160..8ec793e8c 100644
--- a/src/map/battle.h
+++ b/src/map/battle.h
@@ -47,23 +47,16 @@ enum { // 最終計算のフラグ
};
// 実際にHPを増減
-int battle_walkdelay(struct block_list *bl, unsigned int tick, int adelay, int delay, int div_); //Calcs walk delay based on attack type. [Skotlex]
int battle_delay_damage (unsigned int tick, struct block_list *src, struct block_list *target, int attack_type, int skill_id, int skill_lv, int damage, int dmg_lv, int flag);
int battle_damage(struct block_list *bl,struct block_list *target,int damage,int flag);
int battle_heal(struct block_list *bl,struct block_list *target,int hp,int sp,int flag);
-// 攻撃や移動を止める
-int battle_stopattack(struct block_list *bl);
-int battle_iswalking(struct block_list *bl);
-int battle_stopwalking(struct block_list *bl,int type);
-int battle_set_walkdelay(struct block_list *bl, unsigned int tick, int delay, int type);
// 通常攻撃処理まとめ
int battle_weapon_attack( struct block_list *bl,struct block_list *target,
unsigned int tick,int flag);
// 各種パラメータを得る
-int battle_counttargeted(struct block_list *bl,struct block_list *src,int target_lv);
struct block_list* battle_gettargeted(struct block_list *target);
int battle_gettarget(struct block_list *bl);
int battle_getcurrentskill(struct block_list *bl);
@@ -109,9 +102,8 @@ extern struct Battle_Config {
unsigned short cast_rate,delay_rate,delay_dependon_dex;
unsigned short sdelay_attack_enable;
unsigned short left_cardfix_to_right;
- unsigned short pc_skill_add_range;
+ unsigned short skill_add_range;
unsigned short skill_out_range_consume;
- unsigned short mob_skill_add_range;
unsigned short skillrange_by_distance; //[Skotlex]
unsigned short use_weapon_skill_range; //[Skotlex]
unsigned short pc_damage_delay_rate;
@@ -222,8 +214,7 @@ extern struct Battle_Config {
unsigned short max_lv, aura_lv;
unsigned short max_parameter, max_baby_parameter;
int max_cart_weight;
- unsigned short pc_skill_log;
- unsigned short mob_skill_log;
+ unsigned short skill_log;
unsigned short battle_log;
unsigned short save_log;
unsigned short error_log;
@@ -244,10 +235,8 @@ extern struct Battle_Config {
unsigned short monster_defense_type;
unsigned short pet_defense_type;
unsigned short magic_defense_type;
- unsigned short pc_skill_reiteration;
- unsigned short monster_skill_reiteration;
- unsigned short pc_skill_nofootset;
- unsigned short monster_skill_nofootset;
+ unsigned short skill_reiteration;
+ unsigned short skill_nofootset;
unsigned short pc_cloak_check_type;
unsigned short monster_cloak_check_type;
unsigned short estimation_type;
@@ -259,10 +248,8 @@ extern struct Battle_Config {
unsigned short gvg_flee_penalty;
int gvg_eliminate_time;
unsigned short mob_changetarget_byskill;
- unsigned short pc_attack_direction_change;
- unsigned short monster_attack_direction_change;
- unsigned short pc_land_skill_limit;
- unsigned short monster_land_skill_limit;
+ unsigned short attack_direction_change;
+ unsigned short land_skill_limit;
unsigned short party_skill_penalty;
unsigned short monster_class_change_full_recover;
unsigned short produce_item_name_input;