OSDN Git Service

Merge pull request #41491 (taotao/hengband/fix-impure_calc_num_blow into develop).
[hengband/hengband.git] / src / object-activation / activation-util.c
1 #include "object-activation/activation-util.h"
2 #include "object/object-info.h"
3 #include "object/object-kind.h"
4
5 ae_type *initialize_ae_type(player_type *user_ptr, ae_type *ae_ptr, const INVENTORY_IDX item)
6 {
7     ae_ptr->o_ptr = ref_item(user_ptr, item);
8     ae_ptr->lev = k_info[ae_ptr->o_ptr->k_idx].level;
9     return ae_ptr;
10 }