OSDN Git Service

Merge pull request #3569 from sikabane-works/release/3.0.0.88-alpha
[hengbandforosx/hengbandosx.git] / src / object-activation / activation-util.cpp
1 #include "object-activation/activation-util.h"
2 #include "object/object-info.h"
3 #include "system/baseitem-info.h"
4 #include "system/item-entity.h"
5 #include "system/player-type-definition.h"
6
7 ae_type *initialize_ae_type(PlayerType *player_ptr, ae_type *ae_ptr, const INVENTORY_IDX item)
8 {
9     ae_ptr->o_ptr = ref_item(player_ptr, item);
10     ae_ptr->lev = ae_ptr->o_ptr->get_baseitem().level;
11     return ae_ptr;
12 }