@@ -9,10 +9,10 @@ IdeologyGroup::IdeologyGroup(std::string_view new_identifier) : HasIdentifier {
99
1010Ideology::Ideology (
1111 std::string_view new_identifier, colour_t new_colour, IdeologyGroup const & new_group, bool new_uncivilised,
12- bool new_can_reduce_militancy, Date new_spawn_date, ConditionalWeight && new_add_political_reform,
13- ConditionalWeight && new_remove_political_reform, ConditionalWeight && new_add_social_reform,
14- ConditionalWeight && new_remove_social_reform, ConditionalWeight && new_add_military_reform,
15- ConditionalWeight && new_add_economic_reform
12+ bool new_can_reduce_militancy, Date new_spawn_date, ConditionalWeightBase && new_add_political_reform,
13+ ConditionalWeightBase && new_remove_political_reform, ConditionalWeightBase && new_add_social_reform,
14+ ConditionalWeightBase && new_remove_social_reform, ConditionalWeightBase && new_add_military_reform,
15+ ConditionalWeightBase && new_add_economic_reform
1616) : HasIdentifierAndColour { new_identifier, new_colour, false }, group { new_group }, uncivilised { new_uncivilised },
1717 can_reduce_militancy { new_can_reduce_militancy }, spawn_date { new_spawn_date },
1818 add_political_reform { std::move (new_add_political_reform) },
@@ -42,9 +42,9 @@ bool IdeologyManager::add_ideology_group(std::string_view identifier) {
4242
4343bool IdeologyManager::add_ideology (
4444 std::string_view identifier, colour_t colour, IdeologyGroup const * group, bool uncivilised, bool can_reduce_militancy,
45- Date spawn_date, ConditionalWeight && add_political_reform, ConditionalWeight && remove_political_reform,
46- ConditionalWeight && add_social_reform, ConditionalWeight && remove_social_reform, ConditionalWeight&& add_military_reform ,
47- ConditionalWeight && add_economic_reform
45+ Date spawn_date, ConditionalWeightBase && add_political_reform, ConditionalWeightBase && remove_political_reform,
46+ ConditionalWeightBase && add_social_reform, ConditionalWeightBase && remove_social_reform,
47+ ConditionalWeightBase&& add_military_reform, ConditionalWeightBase && add_economic_reform
4848) {
4949 if (identifier.empty ()) {
5050 Logger::error (" Invalid ideology identifier - empty!" );
@@ -88,25 +88,25 @@ bool IdeologyManager::load_ideology_file(ast::NodeCPtr root) {
8888 colour_t colour = colour_t::null ();
8989 bool uncivilised = true , can_reduce_militancy = false ;
9090 Date spawn_date;
91- ConditionalWeight add_political_reform { COUNTRY, COUNTRY, NO_SCOPE };
92- ConditionalWeight remove_political_reform { COUNTRY, COUNTRY, NO_SCOPE };
93- ConditionalWeight add_social_reform { COUNTRY, COUNTRY, NO_SCOPE };
94- ConditionalWeight remove_social_reform { COUNTRY, COUNTRY, NO_SCOPE };
95- ConditionalWeight add_military_reform { COUNTRY, COUNTRY, NO_SCOPE };
96- ConditionalWeight add_economic_reform { COUNTRY, COUNTRY, NO_SCOPE };
91+ ConditionalWeightBase add_political_reform { COUNTRY, COUNTRY, NO_SCOPE };
92+ ConditionalWeightBase remove_political_reform { COUNTRY, COUNTRY, NO_SCOPE };
93+ ConditionalWeightBase add_social_reform { COUNTRY, COUNTRY, NO_SCOPE };
94+ ConditionalWeightBase remove_social_reform { COUNTRY, COUNTRY, NO_SCOPE };
95+ ConditionalWeightBase add_military_reform { COUNTRY, COUNTRY, NO_SCOPE };
96+ ConditionalWeightBase add_economic_reform { COUNTRY, COUNTRY, NO_SCOPE };
9797
9898 bool ret = expect_dictionary_keys (
9999 " uncivilized" , ZERO_OR_ONE, expect_bool (assign_variable_callback (uncivilised)),
100100 " color" , ONE_EXACTLY, expect_colour (assign_variable_callback (colour)),
101101 " date" , ZERO_OR_ONE, expect_date (assign_variable_callback (spawn_date)),
102102 " can_reduce_militancy" , ZERO_OR_ONE, expect_bool (assign_variable_callback (can_reduce_militancy)),
103- " add_political_reform" , ONE_EXACTLY, add_political_reform.expect_conditional_weight (ConditionalWeight::BASE ),
103+ " add_political_reform" , ONE_EXACTLY, add_political_reform.expect_conditional_weight (),
104104 " remove_political_reform" , ONE_EXACTLY,
105- remove_political_reform.expect_conditional_weight (ConditionalWeight::BASE ),
106- " add_social_reform" , ONE_EXACTLY, add_social_reform.expect_conditional_weight (ConditionalWeight::BASE ),
107- " remove_social_reform" , ONE_EXACTLY, remove_social_reform.expect_conditional_weight (ConditionalWeight::BASE ),
108- " add_military_reform" , ZERO_OR_ONE, add_military_reform.expect_conditional_weight (ConditionalWeight::BASE ),
109- " add_economic_reform" , ZERO_OR_ONE, add_economic_reform.expect_conditional_weight (ConditionalWeight::BASE )
105+ remove_political_reform.expect_conditional_weight (),
106+ " add_social_reform" , ONE_EXACTLY, add_social_reform.expect_conditional_weight (),
107+ " remove_social_reform" , ONE_EXACTLY, remove_social_reform.expect_conditional_weight (),
108+ " add_military_reform" , ZERO_OR_ONE, add_military_reform.expect_conditional_weight (),
109+ " add_economic_reform" , ZERO_OR_ONE, add_economic_reform.expect_conditional_weight ()
110110 )(value);
111111
112112 ret &= add_ideology (
0 commit comments