OSDN Git Service

49742edd90f51dca0da249cea35ac5b79235fd1b
[hengbandforosx/hengbandosx.git] / src / combat / shoot.h
1 #pragma once
2
3 #include "system/angband.h"
4
5 typedef struct monster_type monster_type;
6 typedef struct object_type object_type;
7 typedef struct player_type player_type;
8 bool test_hit_fire(player_type *shooter_ptr, int chance, monster_type *m_ptr, int vis, char *o_name);
9 HIT_POINT critical_shot(player_type *shooter_ptr, WEIGHT weight, int plus_ammo, int plus_bow, HIT_POINT dam);
10 ENERGY bow_energy(OBJECT_SUBTYPE_VALUE sval);
11 int bow_tmul(OBJECT_SUBTYPE_VALUE sval);
12 HIT_POINT calc_crit_ratio_shot(player_type *shooter_ptr, HIT_POINT plus_ammo, HIT_POINT plus_bow);
13 HIT_POINT calc_expect_crit_shot(player_type *shooter_ptr, WEIGHT weight, int plus_ammo, int plus_bow, HIT_POINT dam);
14 HIT_POINT calc_expect_crit(player_type *shooter_ptr, WEIGHT weight, int plus, HIT_POINT dam, s16b meichuu, bool dokubari);
15 void exe_fire(player_type *shooter_ptr, INVENTORY_IDX item, object_type *j_ptr, SPELL_IDX snipe_type);