summaryrefslogtreecommitdiff
path: root/src/map/battle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/battle.h')
-rw-r--r--src/map/battle.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/map/battle.h b/src/map/battle.h
index 44016a5..3153925 100644
--- a/src/map/battle.h
+++ b/src/map/battle.h
@@ -2,7 +2,7 @@
#ifndef _BATTLE_H_
#define _BATTLE_H_
-// ƒ_ƒ[ƒW
+// ダメージ
struct Damage
{
int damage, damage2;
@@ -10,17 +10,17 @@ struct Damage
int amotion, dmotion;
int blewcount;
int flag;
- int dmg_lv; //ˆÍ‚܂ꌸŽZŒvŽZ—p@0:ƒXƒLƒ‹UŒ‚ ATK_LUCKY,ATK_FLEE,ATK_DEF
+ int dmg_lv; //囲ã¾ã‚Œæ¸›ç®—計算用 0:スキル攻撃 ATK_LUCKY,ATK_FLEE,ATK_DEF
};
-// ‘®«•\i“Ç‚Ýž‚Ý‚Ípc.cAbattle_attr_fix‚ÅŽg—pj
+// 属性表(読ã¿è¾¼ã¿ã¯pc.cã€battle_attr_fixã§ä½¿ç”¨ï¼‰
extern int attr_fix_table[4][10][10];
struct map_session_data;
struct mob_data;
struct block_list;
-// ƒ_ƒ[ƒWŒvŽZ
+// ダメージ計算
struct Damage battle_calc_attack (int attack_type,
struct block_list *bl,
@@ -38,15 +38,15 @@ struct Damage battle_calc_misc_attack (struct block_list *bl,
struct block_list *target,
int skill_num, int skill_lv, int flag);
-// ‘®«C³ŒvŽZ
+// 属性修正計算
int battle_attr_fix (int damage, int atk_elem, int def_elem);
-// ƒ_ƒ[ƒWÅIŒvŽZ
+// ダメージ最終計算
int battle_calc_damage (struct block_list *src, struct block_list *bl,
int damage, int div_, int skill_num, int skill_lv,
int flag);
enum
-{ // ÅIŒvŽZ‚̃tƒ‰ƒO
+{ // 最終計算ã®ãƒ•ãƒ©ã‚°
BF_WEAPON = 0x0001,
BF_MAGIC = 0x0002,
BF_MISC = 0x0004,
@@ -59,7 +59,7 @@ enum
BF_SKILLMASK = 0x0f00,
};
-// ŽÀÛ‚ÉHP‚𑌸
+// 実際ã«HPを増減
int battle_delay_damage (unsigned int tick, struct block_list *src,
struct block_list *target, int damage, int flag);
int battle_damage (struct block_list *bl, struct block_list *target,
@@ -67,15 +67,15 @@ int battle_damage (struct block_list *bl, struct block_list *target,
int battle_heal (struct block_list *bl, struct block_list *target, int hp,
int sp, int flag);
-// UŒ‚‚âˆÚ“®‚ðŽ~‚ß‚é
+// 攻撃や移動を止ã‚ã‚‹
int battle_stopattack (struct block_list *bl);
int battle_stopwalking (struct block_list *bl, int type);
-// ’ÊíUŒ‚ˆ—‚Ü‚Æ‚ß
+// 通常攻撃処ç†ã¾ã¨ã‚
int battle_weapon_attack (struct block_list *bl, struct block_list *target,
unsigned int tick, int flag);
-// ŠeŽíƒpƒ‰ƒ[ƒ^‚𓾂é
+// å„種パラメータを得る
int battle_counttargeted (struct block_list *bl, struct block_list *src,
int target_lv);
int battle_is_unarmed (struct block_list *bl);
@@ -107,7 +107,7 @@ int battle_get_amotion (struct block_list *bl);
int battle_get_dmotion (struct block_list *bl);
int battle_get_element (struct block_list *bl);
int battle_get_attack_element (struct block_list *bl);
-int battle_get_attack_element2 (struct block_list *bl); //¶Žè•Ší‘®«Žæ“¾
+int battle_get_attack_element2 (struct block_list *bl); //左手武器属性å–å¾—
#define battle_get_elem_type(bl) (battle_get_element(bl)%10)
#define battle_get_elem_level(bl) (battle_get_element(bl)/10/2)
int battle_get_party_id (struct block_list *bl);
@@ -142,7 +142,7 @@ int battle_check_target (struct block_list *src, struct block_list *target,
int battle_check_range (struct block_list *src, struct block_list *bl,
int range);
-// Ý’è
+// 設定
int battle_config_switch (const char *str); // [Valaris]