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

#include "h-basic.h"
#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 */

	u32b mflags1 = 0;               /* The monster flags that are allowed */
	u32b mflags2 = 0;
	u32b mflags3 = 0;
	u32b mflags7 = 0;
	u32b mflags8 = 0;
	u32b mflags9 = 0;

	monster_spell_flag_set mspells; /* Monster spells the are allowed */

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