OSDN Git Service

Revert "Merge branch 'master' of git.osdn.net:/gitroot/hengband/hengband"
[hengband/hengband.git] / src / melee.h
1 
2 typedef int COMBAT_OPTION_IDX; // py_attack()用コンバットオプション型定義
3 #define HISSATSU_NONE   0
4 #define HISSATSU_2      1
5 #define HISSATSU_3WAY   2
6 #define HISSATSU_SUTEMI 3
7 #define HISSATSU_FIRE   4
8 #define HISSATSU_COLD   5
9 #define HISSATSU_POISON 6
10 #define HISSATSU_ELEC   7
11 #define HISSATSU_NYUSIN 8
12 #define HISSATSU_FUKI   9
13 #define HISSATSU_MAJIN  10
14 #define HISSATSU_BOOMER 11
15 #define HISSATSU_DRAIN  12
16 #define HISSATSU_SEKIRYUKA 13
17 #define HISSATSU_OTAKEBI 14
18 #define HISSATSU_SHOUGE 15
19 #define HISSATSU_CONF   16
20 #define HISSATSU_ISSEN  17
21 #define HISSATSU_KYUSHO 18
22 #define HISSATSU_KONSIN 19
23 #define HISSATSU_HYAKU  20
24 #define HISSATSU_MINEUCHI 21
25 #define HISSATSU_MEKIKI 22
26 #define HISSATSU_ZANMA  23
27 #define HISSATSU_UNDEAD 24
28 #define HISSATSU_HAGAN  25
29 #define HISSATSU_QUAKE  26
30 #define HISSATSU_COUNTER 27
31 #define HISSATSU_HARAI  28
32 #define HISSATSU_3DAN   29
33 #define HISSATSU_100NIN 30
34 #define HISSATSU_IAI    100
35
36 extern bool test_hit_norm(HIT_RELIABILITY chance, ARMOUR_CLASS ac, bool visible);
37 extern PERCENTAGE hit_chance(HIT_RELIABILITY chance, ARMOUR_CLASS ac);
38 extern HIT_POINT tot_dam_aux(object_type *o_ptr, HIT_POINT tdam, monster_type *m_ptr, BIT_FLAGS mode, bool thrown);
39 extern HIT_POINT critical_norm(WEIGHT weight, int plus, HIT_POINT dam, s16b meichuu, BIT_FLAGS mode);
40 extern bool py_attack(POSITION y, POSITION x, COMBAT_OPTION_IDX mode);
41 extern bool make_attack_normal(MONSTER_IDX m_idx);
42