summaryrefslogtreecommitdiff
path: root/src/rule_type.hpp
blob: b88ce7bfdc22280efcac34ca5156fb8b5c588925 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "h-basic.h"
#include "monster_race_flag_set.hpp"
#include "monster_spell_flag_set.hpp"

/* Define monster generation rules */
struct rule_type
{
	byte mode = 0;                  /* Mode of combination of the monster flags */
	byte percent = 0;               /* Percent of monsters affected by the rule */

	monster_race_flag_set mflags;   /* The monster flags that are allowed */
	monster_spell_flag_set mspells; /* Monster spells the are allowed */

	char r_char[5] = { 0 };         /* Monster race allowed */
};