OSDN Git Service

Merge pull request #3569 from sikabane-works/release/3.0.0.88-alpha
[hengbandforosx/hengbandosx.git] / src / mspell / smart-mspell-util.h
1 #pragma once
2
3 #include "monster-race/race-ability-flags.h"
4 #include "monster/smart-learn-types.h"
5 #include "util/flag-group.h"
6
7 // Monster Spell Remover.
8 class MonsterRaceInfo;
9 class PlayerType;
10 struct msr_type {
11     msr_type(PlayerType *player_ptr, short m_idx, const EnumClassFlagGroup<MonsterAbilityType> &ability_flags);
12     MonsterRaceInfo *r_ptr;
13     EnumClassFlagGroup<MonsterAbilityType> ability_flags;
14     EnumClassFlagGroup<MonsterSmartLearnType> smart_flags{};
15 };
16
17 bool int_outof(MonsterRaceInfo *r_ptr, int prob);