OSDN Git Service

Merge pull request #3532 from sikabane-works/release/3.0.0.87-alpha
[hengbandforosx/hengbandosx.git] / src / monster-floor / monster-lite-util.cpp
1 #include "monster-floor/monster-lite-util.h"
2 #include "system/grid-type-definition.h"
3 #include "system/monster-entity.h"
4 #include "util/bit-flags-calculator.h"
5
6 monster_lite_type *initialize_monster_lite_type(BIT_FLAGS grid_info, monster_lite_type *ml_ptr, MonsterEntity *m_ptr)
7 {
8     ml_ptr->mon_fx = m_ptr->fx;
9     ml_ptr->mon_fy = m_ptr->fy;
10     ml_ptr->mon_invis = none_bits(grid_info, CAVE_VIEW);
11     return ml_ptr;
12 }