diff options
Diffstat (limited to 'src/rule_type.hpp')
-rw-r--r-- | src/rule_type.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/rule_type.hpp b/src/rule_type.hpp new file mode 100644 index 00000000..b88ce7bf --- /dev/null +++ b/src/rule_type.hpp @@ -0,0 +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 = 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 */ +}; |