1 #include "action/throw-util.h"
3 it_type *initialize_it_type(
4 it_type *item_throw_ptr, object_type *q_ptr, const int delay_factor_val, const int mult, const bool boomerang, const OBJECT_IDX shuriken)
6 item_throw_ptr->mult = mult;
7 item_throw_ptr->boomerang = boomerang;
8 item_throw_ptr->shuriken = shuriken;
9 item_throw_ptr->q_ptr = q_ptr;
10 item_throw_ptr->hit_body = FALSE;
11 item_throw_ptr->hit_wall = FALSE;
12 item_throw_ptr->equiped_item = FALSE;
13 item_throw_ptr->return_when_thrown = FALSE;
14 item_throw_ptr->msec = delay_factor_val * delay_factor_val * delay_factor_val;
15 item_throw_ptr->come_back = FALSE;
16 item_throw_ptr->do_drop = TRUE;
17 return item_throw_ptr;