summaryrefslogtreecommitdiff
path: root/src/rule_type.hpp
diff options
context:
space:
mode:
authorManoj Srivastava <srivasta@debian.org>2020-05-22 20:05:37 -0700
committerManoj Srivastava <srivasta@debian.org>2020-05-22 21:39:31 -0700
commit035291b7f18974925f9a85a41e057bdc462c75f1 (patch)
treed69056be1a045aec185393b52dadb6fc2d5f50c9 /src/rule_type.hpp
parent9714b44a37dfc03aa00187726beea7ed8257415e (diff)
parent4e9b9c402ed95bf9a17fd6d795bc49bb4128a6fa (diff)
Merge branch 'upstream'
Diffstat (limited to 'src/rule_type.hpp')
-rw-r--r--src/rule_type.hpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/rule_type.hpp b/src/rule_type.hpp
index a8b35ffa..b88ce7bf 100644
--- a/src/rule_type.hpp
+++ b/src/rule_type.hpp
@@ -1,22 +1,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; /* Mode of combination of the monster flags */
- byte percent; /* Percent of monsters affected by the rule */
+ byte mode = 0; /* Mode of combination of the monster flags */
+ byte percent = 0; /* Percent of monsters affected by the rule */
- u32b mflags1; /* The monster flags that are allowed */
- u32b mflags2;
- u32b mflags3;
- u32b mflags4;
- u32b mflags5;
- u32b mflags6;
- u32b mflags7;
- u32b mflags8;
- u32b mflags9;
+ 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]; /* Monster race allowed */
+ char r_char[5] = { 0 }; /* Monster race allowed */
};