summaryrefslogtreecommitdiff
path: root/src/dungeon_info_type.hpp
diff options
context:
space:
mode:
authorManoj Srivastava <srivasta@debian.org>2020-05-27 16:31:00 -0700
committerManoj Srivastava <srivasta@debian.org>2020-05-27 16:31:00 -0700
commitd7533e931cfb49a68dc8e6e3f524d49e364cef83 (patch)
tree06d31523b9647d3de8ce8888f6e83d24f046aa82 /src/dungeon_info_type.hpp
parent4e9b9c402ed95bf9a17fd6d795bc49bb4128a6fa (diff)
New upstream version 2.41-ah~0.git.20200131
Diffstat (limited to 'src/dungeon_info_type.hpp')
-rw-r--r--src/dungeon_info_type.hpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/dungeon_info_type.hpp b/src/dungeon_info_type.hpp
index 2f8fefde..afee2c52 100644
--- a/src/dungeon_info_type.hpp
+++ b/src/dungeon_info_type.hpp
@@ -1,12 +1,14 @@
#pragma once
-#include "h-basic.h"
-#include "rule_type.hpp"
-#include "obj_theme.hpp"
#include "dungeon_flag_set.hpp"
+#include "h-basic.hpp"
+#include "level_data.hpp"
+#include "obj_theme.hpp"
+#include "rule_type.hpp"
#include <array>
#include <string>
+#include <unordered_map>
/**
* Maximum number of towns per dungeon
@@ -41,7 +43,7 @@ struct dungeon_info_type
s16b mindepth = 0; /* Minimal depth */
s16b maxdepth = 0; /* Maximal depth */
- bool_ principal = 0; /* If it's a part of the main dungeon */
+ bool principal = 0; /* If it's a part of the main dungeon */
byte min_plev = 0; /* Minimal plev needed to enter -- it's an anti-cheating mesure */
int min_m_alloc_level = 0; /* Minimal number of monsters per level */
@@ -71,6 +73,8 @@ struct dungeon_info_type
int d_frequency[4] = { 0 }; /* Frequency of damage (1 is the minimum) */
int d_type[4] = { 0 }; /* Type of damage */
+ std::unordered_map<int, level_data> level_data_by_depth { };
+
s16b t_idx[TOWN_DUNGEON] = { 0 }; /* The towns */
s16b t_level[TOWN_DUNGEON] = { 0 }; /* The towns levels */
s16b t_num = 0; /* Number of towns */