aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/pop/Religion.cpp
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-09-09 22:49:52 +0200
committer Hop311 <hop3114@gmail.com>2023-09-09 22:50:29 +0200
commit3d7fbd9b376811ca0ed226fa78bcc8b6279ba8dc (patch)
treeeb36a9b030b263d825eb93638e64deb0dbd38a78 /src/openvic-simulation/pop/Religion.cpp
parentb4220ad73e14e3b497b2fdeb83d76a6633664764 (diff)
Format cleanup and req comments
Diffstat (limited to 'src/openvic-simulation/pop/Religion.cpp')
-rw-r--r--src/openvic-simulation/pop/Religion.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/openvic-simulation/pop/Religion.cpp b/src/openvic-simulation/pop/Religion.cpp
index b336ae1..0652eb2 100644
--- a/src/openvic-simulation/pop/Religion.cpp
+++ b/src/openvic-simulation/pop/Religion.cpp
@@ -64,8 +64,11 @@ bool ReligionManager::add_religion(const std::string_view identifier, colour_t c
return religions.add_item({ identifier, colour, *group, icon, pagan });
}
+/* REQUIREMENTS:
+ * POP-286, POP-287, POP-288, POP-289, POP-290, POP-291, POP-292,
+ * POP-293, POP-294, POP-295, POP-296, POP-297, POP-298, POP-299
+ */
bool ReligionManager::load_religion_file(ast::NodeCPtr root) {
-
size_t total_expected_religions = 0;
bool ret = expect_dictionary_reserve_length(
religion_groups,
@@ -85,7 +88,6 @@ bool ReligionManager::load_religion_file(ast::NodeCPtr root) {
religions.reserve(religions.size() + total_expected_religions);
ret &= expect_dictionary(
[this](std::string_view religion_group_key, ast::NodeCPtr religion_group_value) -> bool {
-
ReligionGroup const* religion_group = get_religion_group_by_identifier(religion_group_key);
return expect_dictionary(