aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/politics
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-01-07 21:25:27 +0100
committer hop311 <hop3114@gmail.com>2024-01-07 21:30:44 +0100
commit34d9e9318387f2b2a0ae924a512f352540b84e07 (patch)
treea7cf192c714aa5553a244d7b16c04f833b626cb6 /src/openvic-simulation/politics
parent004abc9951d0a20d09027cde1d9b5b02bcc99fa0 (diff)
More impassable adjacencies + WVPM mod fixes
Diffstat (limited to 'src/openvic-simulation/politics')
-rw-r--r--src/openvic-simulation/politics/Rebel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/openvic-simulation/politics/Rebel.cpp b/src/openvic-simulation/politics/Rebel.cpp
index ca8e945..9f8b6c4 100644
--- a/src/openvic-simulation/politics/Rebel.cpp
+++ b/src/openvic-simulation/politics/Rebel.cpp
@@ -96,8 +96,8 @@ bool RebelManager::load_rebels_file(
RebelType::icon_t icon = 0;
RebelType::area_t area = RebelType::area_t::ALL;
RebelType::government_map_t desired_governments;
- RebelType::defection_t defection = RebelType::defection_t::ANY;
- RebelType::independence_t independence = RebelType::independence_t::ANY;
+ RebelType::defection_t defection = RebelType::defection_t::NONE;
+ RebelType::independence_t independence = RebelType::independence_t::NONE;
uint16_t defect_delay = 0;
Ideology const* ideology = nullptr;
bool break_alliance_on_win = false, allow_all_cultures = true, allow_all_culture_groups = true,
@@ -127,9 +127,9 @@ bool RebelManager::load_rebels_file(
)(value);
}
),
- "defection", ONE_EXACTLY,
+ "defection", ZERO_OR_ONE,
expect_identifier(expect_mapped_string(defection_map, assign_variable_callback(defection))),
- "independence", ONE_EXACTLY,
+ "independence", ZERO_OR_ONE,
expect_identifier(expect_mapped_string(independence_map, assign_variable_callback(independence))),
"defect_delay", ONE_EXACTLY, expect_uint(assign_variable_callback(defect_delay)),
"ideology", ZERO_OR_ONE,