68 "Invalid culture " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
77 "Invalid religion " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
86 "Invalid ideology " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
92 type_ = it->second.id;
95 "Invalid rebel type " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
120 "Invalid modifier " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
134 "Invalid modifier " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
146 type_ = it->second.id;
149 "Invalid cb type " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
161 type_ = it->second.id;
164 "Invalid cb type " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
175 type_ = it->second.id;
178 "Invalid cb type " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
189 type_ = it->second.id;
192 "Invalid cb type " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
211 }
else if(value.length() == 3) {
225 if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"test_end_war")) {
227 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"call_allies_cb")) {
232 err.
accumulated_errors +=
"Invalid cb type " + std::string(value) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
253 dcon::national_event_id
id_;
259 dcon::provincial_event_id
id_;
310 err.
accumulated_errors +=
"Invalid issue option " + std::string(v) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
343 err.
accumulated_errors +=
"Invalid issue option " + std::string(v) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
364 err.
accumulated_errors +=
"Invalid issue option " + std::string(v) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
377 err.
accumulated_errors +=
"Invalid leader trait " + std::string(v) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
384 err.
accumulated_errors +=
"Invalid leader trait " + std::string(v) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
397 err.
accumulated_errors +=
"Invalid leader trait " + std::string(v) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
404 err.
accumulated_errors +=
"Invalid leader trait " + std::string(v) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
423 dcon::issue_option_id
to_;
426 from_ = it->second.id;
428 err.
accumulated_errors +=
"Invalid issue option " + std::string(v) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
435 err.
accumulated_errors +=
"Invalid issue option " + std::string(v) +
" (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
455 err.
accumulated_errors +=
"party_loyalty given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
536 "capital effect given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
541 if(
is_integer(value.data(), value.data() + value.length())) {
544 auto ivalue =
parse_int(value, line, err);
549 "add_core = int effect given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
564 std::to_string(line) +
")\n";
574 std::to_string(line) +
")\n";
588 std::to_string(line) +
")\n";
591 }
else if(value.length() == 3) {
598 "add_core effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
603 "add_core effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
612 std::to_string(line) +
")\n";
622 std::to_string(line) +
")\n";
636 std::to_string(line) +
")\n";
639 }
else if(value.length() == 3) {
642 context.
compiled_effect.push_back(uint16_t(effect::add_core_tag_state));
646 "add_core effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
651 "add_core effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
663 if(
is_integer(value.data(), value.data() + value.length())) {
666 auto ivalue =
parse_int(value, line, err);
671 std::to_string(line) +
")\n";
676 std::to_string(line) +
")\n";
686 std::to_string(line) +
")\n";
696 std::to_string(line) +
")\n";
710 std::to_string(line) +
")\n";
713 }
else if(value.length() == 3) {
720 "remove_core effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
725 "remove_core effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
734 std::to_string(line) +
")\n";
744 std::to_string(line) +
")\n";
758 std::to_string(line) +
")\n";
761 }
else if(value.length() == 3) {
764 context.
compiled_effect.push_back(uint16_t(effect::remove_core_tag_state));
768 "remove_core effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
773 "remove_core effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
782 std::to_string(line) +
")\n";
792 std::to_string(line) +
")\n";
806 std::to_string(line) +
")\n";
809 }
else if(value.length() == 3) {
812 context.
compiled_effect.push_back(uint16_t(effect::remove_core_tag_nation));
816 "remove_core effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
821 "remove_core effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
845 err.
accumulated_errors +=
"trade_goods effect supplied with invalid commodity name " + std::string(value) +
" (" +
846 err.
file_name +
", line " + std::to_string(line) +
")\n";
855 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"this_union")) {
857 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"from_union")) {
865 context.
compiled_effect.push_back(uint16_t(effect::add_accepted_culture));
868 err.
accumulated_errors +=
"add_accepted_culture effect supplied with invalid culture name " + std::string(value) +
" (" +
869 err.
file_name +
", line " + std::to_string(line) +
")\n";
874 std::to_string(line) +
")\n";
886 ", line " + std::to_string(line) +
")\n";
900 ", line " + std::to_string(line) +
")\n";
909 err.
accumulated_errors +=
"primary_culture effect supplied with invalid culture name " + std::string(value) +
" (" +
910 err.
file_name +
", line " + std::to_string(line) +
")\n";
924 context.
compiled_effect.push_back(uint16_t(effect::remove_accepted_culture));
927 err.
accumulated_errors +=
"remove_accepted_culture effect supplied with invalid culture name " + std::string(value) +
928 " (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
933 std::to_string(line) +
")\n";
944 err.
accumulated_errors +=
"remove_accepted_culture effect supplied with invalid culture name " + std::string(value) +
945 " (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
959 context.
compiled_effect.push_back(uint16_t(effect::life_rating_state));
974 err.
accumulated_errors +=
"religion effect supplied with invalid religion name " + std::string(value) +
" (" +
975 err.
file_name +
", line " + std::to_string(line) +
")\n";
982 context.
compiled_effect.push_back(uint16_t(effect::religion_province));
985 err.
accumulated_errors +=
"religion effect supplied with invalid religion name " + std::string(value) +
" (" +
986 err.
file_name +
", line " + std::to_string(line) +
")\n";
996 err.
accumulated_errors +=
"religion effect supplied with invalid religion name " + std::string(value) +
" (" +
997 err.
file_name +
", line " + std::to_string(line) +
")\n";
1047 err.
accumulated_errors +=
"tech_school effect supplied with invalid modifier name " + std::string(value) +
" (" +
1048 err.
file_name +
", line " + std::to_string(line) +
")\n";
1065 std::to_string(line) +
")\n";
1073 err.
accumulated_errors +=
"government effect supplied with invalid government name " + std::string(value) +
" (" +
1074 err.
file_name +
", line " + std::to_string(line) +
")\n";
1088 context.
compiled_effect.push_back(uint16_t(effect::treasury_province));
1121 }
else if(value.length() == 3) {
1128 "change_tag effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1133 "change_tag effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1148 }
else if(value.length() == 3) {
1151 context.
compiled_effect.push_back(uint16_t(effect::change_tag_no_core_switch));
1155 std::to_string(line) +
")\n";
1160 "change_tag_no_core_switch effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1166 std::to_string(line) +
")\n";
1173 context.
compiled_effect.push_back(uint16_t(effect::set_country_flag));
1176 context.
compiled_effect.push_back(uint16_t(effect::set_country_flag_province));
1179 context.
compiled_effect.push_back(uint16_t(effect::set_country_flag_pop));
1190 context.
compiled_effect.push_back(uint16_t(effect::clr_country_flag));
1210 ", line " + std::to_string(line) +
")\n";
1220 ", line " + std::to_string(line) +
")\n";
1223 }
else if(value.length() == 3) {
1230 "military_access effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1235 "military_access effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1280 }
else if(
is_reb(value)) {
1287 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"---")) {
1290 }
else if(value.length() == 3) {
1297 err.
accumulated_warnings +=
"secede_province effect given an invalid tag '" + std::string(value) +
"' will assume null (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1300 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"null")) {
1304 err.
accumulated_errors +=
"secede_province effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1330 }
else if(
is_reb(value)) {
1337 }
else if(value.length() == 3) {
1340 context.
compiled_effect.push_back(uint16_t(effect::secede_province_state));
1343 err.
accumulated_errors +=
"secede_province effect given an invalid tag '" + std::string(value) +
"' (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1347 err.
accumulated_errors +=
"secede_province effect given an invalid value '" + std::string(value) +
"' (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1368 std::to_string(line) +
")\n";
1378 std::to_string(line) +
")\n";
1381 }
else if(value.length() == 3) {
1388 "inherit effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1393 "inherit effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1416 std::to_string(line) +
")\n";
1426 std::to_string(line) +
")\n";
1429 }
else if(value.length() == 3) {
1436 "annex_to effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1439 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"null")) {
1444 "annex_to effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1453 std::to_string(line) +
")\n";
1475 std::to_string(line) +
")\n";
1485 std::to_string(line) +
")\n";
1488 }
else if(value.length() == 3) {
1495 "release effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1500 "release effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1520 ", line " + std::to_string(line) +
")\n";
1530 ", line " + std::to_string(line) +
")\n";
1533 }
else if(value.length() == 3) {
1536 context.
compiled_effect.push_back(uint16_t(effect::change_controller));
1540 "change_controller effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1545 "change_controller effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1556 ", line " + std::to_string(line) +
")\n";
1566 ", line " + std::to_string(line) +
")\n";
1569 }
else if(value.length() == 3) {
1572 context.
compiled_effect.push_back(uint16_t(effect::change_controller_state));
1576 "change_controller effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1581 "change_controller effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1595 context.
compiled_effect.push_back(uint16_t(effect::infrastructure_state));
1621 context.
compiled_effect.push_back(uint16_t(effect::naval_base_state));
1647 context.
compiled_effect.push_back(uint16_t(effect::university_state));
1658 context.
compiled_effect.push_back(uint16_t(effect::add_province_modifier_no_duration));
1660 }
else if(value == -1) {
1661 context.
compiled_effect.push_back(uint16_t(effect::remove_province_modifier));
1665 "province_selector effect with invalid value " + std::to_string(value) +
" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1676 context.
compiled_effect.push_back(uint16_t(effect::add_province_modifier_no_duration));
1678 }
else if(value == -1) {
1679 context.
compiled_effect.push_back(uint16_t(effect::remove_province_modifier));
1683 "province_immigrator effect with invalid value " + std::to_string(value) +
" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1696 context.
compiled_effect.push_back(uint16_t(effect::treasury_province));
1727 std::to_string(line) +
")\n";
1737 std::to_string(line) +
")\n";
1740 }
else if(value.length() == 3) {
1747 "create_vassal effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1752 "create_vassal effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1772 ", line " + std::to_string(line) +
")\n";
1782 ", line " + std::to_string(line) +
")\n";
1785 }
else if(value.length() == 3) {
1788 context.
compiled_effect.push_back(uint16_t(effect::end_military_access));
1792 "end_military_access effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1797 "end_military_access effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1803 std::to_string(line) +
")\n";
1817 std::to_string(line) +
")\n";
1827 std::to_string(line) +
")\n";
1830 }
else if(value.length() == 3) {
1837 "leave_alliance effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1842 "leave_alliance effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1848 std::to_string(line) +
")\n";
1861 std::to_string(line) +
")\n";
1871 std::to_string(line) +
")\n";
1874 }
else if(value.length() == 3) {
1881 "end_war effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1886 "end_war effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1903 err.
accumulated_errors +=
"enable_ideology effect supplied with invalid ideology name " + std::string(value) +
" (" +
1904 err.
file_name +
", line " + std::to_string(line) +
")\n";
1912 context.
compiled_effect.push_back(uint16_t(effect::ruling_party_this));
1914 context.
compiled_effect.push_back(uint16_t(effect::ruling_party_from));
1917 context.
compiled_effect.push_back(uint16_t(effect::ruling_party_ideology));
1920 err.
accumulated_errors +=
"ruling_party_ideology effect supplied with invalid ideology name " + std::string(value) +
1921 " (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1926 std::to_string(line) +
")\n";
1945 context.
compiled_effect.push_back(uint16_t(effect::remove_province_modifier));
1948 err.
accumulated_errors +=
"remove_province_modifier effect supplied with invalid modifier name " + std::string(value) +
1949 " (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1955 context.
compiled_effect.push_back(uint16_t(effect::remove_province_modifier_state));
1958 err.
accumulated_errors +=
"remove_province_modifier effect supplied with invalid modifier name " + std::string(value) +
1959 " (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1964 std::to_string(line) +
")\n";
1973 context.
compiled_effect.push_back(uint16_t(effect::remove_country_modifier));
1976 err.
accumulated_errors +=
"remove_country_modifier effect supplied with invalid modifier name " + std::string(value) +
1977 " (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1982 std::to_string(line) +
")\n";
1996 ", line " + std::to_string(line) +
")\n";
2006 ", line " + std::to_string(line) +
")\n";
2009 }
else if(value.length() == 3) {
2016 "create_alliance effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2021 "create_alliance effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2040 std::to_string(line) +
")\n";
2050 std::to_string(line) +
")\n";
2053 }
else if(
is_reb(value)) {
2058 std::to_string(line) +
")\n";
2061 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"random")) {
2063 }
else if(value.length() == 3) {
2069 err.
accumulated_errors +=
"release_vassal effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2073 err.
accumulated_errors +=
"release_vassal effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2084 std::to_string(line) +
")\n";
2094 std::to_string(line) +
")\n";
2097 }
else if(
is_reb(value)) {
2102 std::to_string(line) +
")\n";
2105 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"random")) {
2107 }
else if(value.length() == 3) {
2110 context.
compiled_effect.push_back(uint16_t(effect::release_vassal_province));
2113 err.
accumulated_errors +=
"release_vassal effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2117 err.
accumulated_errors +=
"release_vassal effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2142 context.
compiled_effect.push_back(uint16_t(effect::nationalvalue_nation));
2145 context.
compiled_effect.push_back(uint16_t(effect::nationalvalue_province));
2153 err.
accumulated_errors +=
"nationalvalue effect supplied with invalid modifier name " + std::string(value) +
" (" +
2154 err.
file_name +
", line " + std::to_string(line) +
")\n";
2187 context.
compiled_effect.push_back(uint16_t(effect::social_reform_province));
2195 err.
accumulated_errors +=
"social_reform effect supplied with invalid issue option name " + std::string(value) +
" (" +
2196 err.
file_name +
", line " + std::to_string(line) +
")\n";
2205 context.
compiled_effect.push_back(uint16_t(effect::political_reform));
2208 context.
compiled_effect.push_back(uint16_t(effect::political_reform_province));
2212 std::to_string(line) +
")\n";
2216 err.
accumulated_errors +=
"political_reform effect supplied with invalid issue option name " + std::string(value) +
" (" +
2217 err.
file_name +
", line " + std::to_string(line) +
")\n";
2224 context.
compiled_effect.push_back(uint16_t(effect::add_tax_relative_income));
2228 std::to_string(line) +
")\n";
2245 "reduce_pop effect with a negative value (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2247 value = std::max(0.0f, value);
2252 context.
compiled_effect.push_back(uint16_t(effect::reduce_pop_nation));
2255 context.
compiled_effect.push_back(uint16_t(effect::reduce_pop_province));
2258 context.
compiled_effect.push_back(uint16_t(effect::reduce_pop_state));
2283 "move_pop effect given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2305 ", line " + std::to_string(line) +
")\n";
2311 context.
compiled_effect.push_back(uint16_t(effect::years_of_research));
2322 context.
compiled_effect.push_back(uint16_t(effect::prestige_factor_positive));
2324 context.
compiled_effect.push_back(uint16_t(effect::prestige_factor_negative));
2345 err.
accumulated_errors +=
"military_reform effect supplied with invalid issue option name " + std::string(value) +
" (" +
2346 err.
file_name +
", line " + std::to_string(line) +
")\n";
2363 err.
accumulated_errors +=
"economic_reform effect supplied with invalid issue option name " + std::string(value) +
" (" +
2364 err.
file_name +
", line " + std::to_string(line) +
")\n";
2371 context.
compiled_effect.push_back(uint16_t(effect::remove_random_military_reforms));
2375 ", line " + std::to_string(line) +
")\n";
2382 context.
compiled_effect.push_back(uint16_t(effect::remove_random_economic_reforms));
2386 ", line " + std::to_string(line) +
")\n";
2400 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"none")) {
2403 err.
accumulated_errors +=
"add_crime effect supplied with invalid modifier name " + std::string(value) +
" (" +
2404 err.
file_name +
", line " + std::to_string(line) +
")\n";
2423 context.
compiled_effect.push_back(uint16_t(effect::build_factory_in_capital_state));
2427 ", line " + std::to_string(line) +
")\n";
2431 err.
accumulated_errors +=
"build_factory_in_capital_state effect supplied with invalid factory name " + std::string(value) +
2432 " (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2441 context.
compiled_effect.push_back(uint16_t(effect::activate_technology));
2445 std::to_string(line) +
")\n";
2451 context.
compiled_effect.push_back(uint16_t(effect::activate_invention));
2455 std::to_string(line) +
")\n";
2459 err.
accumulated_errors +=
"activate_technology effect supplied with invalid technology/invention name " +
2460 std::string(value) +
" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2506 std::to_string(line) +
")\n";
2512 context.
compiled_effect.push_back(uint16_t(effect::flashpoint_tension));
2515 context.
compiled_effect.push_back(uint16_t(effect::flashpoint_tension_province));
2519 std::to_string(line) +
")\n";
2525 context.
compiled_effect.push_back(uint16_t(effect::add_crisis_temperature));
2533 context.
compiled_effect.push_back(uint16_t(effect::consciousness_province));
2536 context.
compiled_effect.push_back(uint16_t(effect::consciousness_state));
2539 context.
compiled_effect.push_back(uint16_t(effect::consciousness_nation));
2552 context.
compiled_effect.push_back(uint16_t(effect::militancy_province));
2558 context.
compiled_effect.push_back(uint16_t(effect::militancy_nation));
2581 context.
compiled_effect.push_back(uint16_t(effect::add_province_modifier_no_duration));
2584 err.
accumulated_errors +=
"add_province_modifier effect supplied with invalid modifier name " + std::string(value) +
2585 " (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2591 context.
compiled_effect.push_back(uint16_t(effect::add_province_modifier_state_no_duration));
2594 err.
accumulated_errors +=
"add_province_modifier effect supplied with invalid modifier name " + std::string(value) +
2595 " (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2600 std::to_string(line) +
")\n";
2609 context.
compiled_effect.push_back(uint16_t(effect::add_country_modifier_no_duration));
2612 err.
accumulated_errors +=
"add_country_modifier effect supplied with invalid modifier name " + std::string(value) +
" (" +
2613 err.
file_name +
", line " + std::to_string(line) +
")\n";
2618 std::to_string(line) +
")\n";
2625 "trigger_revolt must have a valid rebel type (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2648 std::to_string(line) +
")\n";
2659 context.
compiled_effect.push_back(effect::diplomatic_influence_from_nation);
2667 context.
compiled_effect.push_back(effect::diplomatic_influence_from_province);
2670 ", line " + std::to_string(line) +
")\n";
2674 }
else if(
is_this(value.who)) {
2682 context.
compiled_effect.push_back(effect::diplomatic_influence_this_nation);
2690 context.
compiled_effect.push_back(effect::diplomatic_influence_this_province);
2693 ", line " + std::to_string(line) +
")\n";
2697 }
else if(value.who.length() == 3) {
2709 context.
compiled_effect.push_back(uint16_t(effect::diplomatic_influence));
2714 "diplomatic_influence effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2719 "diplomatic_influence effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2732 std::to_string(line) +
")\n";
2736 }
else if(
is_this(value.who)) {
2743 std::to_string(line) +
")\n";
2747 }
else if(
is_reb(value.who)) {
2752 std::to_string(line) +
")\n";
2756 }
else if(value.who.length() == 3) {
2764 "relation effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2769 "relation effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2775 context.
compiled_effect.push_back(effect::relation_province_from_nation);
2777 context.
compiled_effect.push_back(effect::relation_province_from_province);
2780 std::to_string(line) +
")\n";
2784 }
else if(
is_this(value.who)) {
2786 context.
compiled_effect.push_back(effect::relation_province_this_nation);
2788 context.
compiled_effect.push_back(effect::relation_province_this_province);
2791 std::to_string(line) +
")\n";
2795 }
else if(
is_reb(value.who)) {
2800 std::to_string(line) +
")\n";
2804 }
else if(value.who.length() == 3) {
2807 context.
compiled_effect.push_back(uint16_t(effect::relation_province));
2812 "relation effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2817 "relation effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2829 if(value.duration <= 0) {
2830 context.
compiled_effect.push_back(effect::add_province_modifier_no_duration);
2838 if(value.duration <= 0) {
2839 context.
compiled_effect.push_back(effect::add_province_modifier_state_no_duration);
2842 context.
compiled_effect.push_back(effect::add_province_modifier_state);
2854 if(value.duration <= 0) {
2855 context.
compiled_effect.push_back(effect::add_country_modifier_province_no_duration);
2858 context.
compiled_effect.push_back(effect::add_country_modifier_province);
2863 if(value.duration <= 0) {
2864 context.
compiled_effect.push_back(effect::add_country_modifier_no_duration);
2873 std::to_string(line) +
")\n";
2890 std::to_string(line) +
")\n";
2895 }
else if(
is_this(value.target)) {
2906 std::to_string(line) +
")\n";
2911 }
else if(
is_integer(value.target.data(), value.target.data() + value.target.length())) {
2912 auto ivalue =
parse_int(value.target, line, err);
2920 "casus_belli effect given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2923 }
else if(value.target.length() == 3) {
2933 "casus_belli effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2938 "casus_belli effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2950 context.
compiled_effect.push_back(effect::add_casus_belli_from_nation);
2952 context.
compiled_effect.push_back(effect::add_casus_belli_from_province);
2955 std::to_string(line) +
")\n";
2960 }
else if(
is_this(value.target)) {
2962 context.
compiled_effect.push_back(effect::add_casus_belli_this_nation);
2964 context.
compiled_effect.push_back(effect::add_casus_belli_this_province);
2966 context.
compiled_effect.push_back(effect::add_casus_belli_this_state);
2971 std::to_string(line) +
")\n";
2976 }
else if(
is_integer(value.target.data(), value.target.data() + value.target.length())) {
2977 auto ivalue =
parse_int(value.target, line, err);
2985 "add_casus_belli effect given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2988 }
else if(value.target.length() == 3) {
2992 context.
compiled_effect.push_back(uint16_t(effect::add_casus_belli_tag));
2998 "add_casus_belli effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3003 "add_casus_belli effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3011 std::to_string(line) +
")\n";
3016 context.
compiled_effect.push_back(effect::remove_casus_belli_from_nation);
3018 context.
compiled_effect.push_back(effect::remove_casus_belli_from_province);
3021 ", line " + std::to_string(line) +
")\n";
3025 }
else if(
is_this(value.target)) {
3027 context.
compiled_effect.push_back(effect::remove_casus_belli_this_nation);
3029 context.
compiled_effect.push_back(effect::remove_casus_belli_this_province);
3031 context.
compiled_effect.push_back(effect::remove_casus_belli_this_state);
3033 context.
compiled_effect.push_back(effect::remove_casus_belli_this_pop);
3036 ", line " + std::to_string(line) +
")\n";
3040 }
else if(
is_integer(value.target.data(), value.target.data() + value.target.length())) {
3041 auto ivalue =
parse_int(value.target, line, err);
3048 "remove_casus_belli effect given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3051 }
else if(value.target.length() == 3) {
3055 context.
compiled_effect.push_back(uint16_t(effect::remove_casus_belli_tag));
3060 "remove_casus_belli effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3065 "remove_casus_belli effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3073 std::to_string(line) +
")\n";
3078 context.
compiled_effect.push_back(effect::this_remove_casus_belli_from_nation);
3080 context.
compiled_effect.push_back(effect::this_remove_casus_belli_from_province);
3083 ", line " + std::to_string(line) +
")\n";
3087 }
else if(
is_this(value.target)) {
3089 context.
compiled_effect.push_back(effect::this_remove_casus_belli_this_nation);
3091 context.
compiled_effect.push_back(effect::this_remove_casus_belli_this_province);
3093 context.
compiled_effect.push_back(effect::this_remove_casus_belli_this_state);
3095 context.
compiled_effect.push_back(effect::this_remove_casus_belli_this_pop);
3098 ", line " + std::to_string(line) +
")\n";
3102 }
else if(
is_integer(value.target.data(), value.target.data() + value.target.length())) {
3103 auto ivalue =
parse_int(value.target, line, err);
3105 context.
compiled_effect.push_back(effect::this_remove_casus_belli_int);
3110 std::to_string(line) +
")\n";
3113 }
else if(value.target.length() == 3) {
3117 context.
compiled_effect.push_back(uint16_t(effect::this_remove_casus_belli_tag));
3122 "this_remove_casus_belli effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3127 "this_remove_casus_belli effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3137 if(value.attacker_goal.special_end_wargoal) {
3148 }
else if(
is_this(value.target)) {
3162 }
else if(value.target.length() == 3) {
3170 "war = effect (used to create a truce) given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3175 "war = effect (used to create a truce) given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3180 }
else if(value.attacker_goal.special_call_ally_wargoal) {
3186 context.
compiled_effect.push_back(value.call_ally ? effect::war_from_nation : effect::war_no_ally_from_nation);
3188 context.
compiled_effect.push_back(value.call_ally ? effect::war_from_province : effect::war_no_ally_from_province);
3194 }
else if(
is_this(value.target)) {
3196 context.
compiled_effect.push_back(value.call_ally ? effect::war_this_nation : effect::war_no_ally_this_nation);
3198 context.
compiled_effect.push_back(value.call_ally ? effect::war_this_province : effect::war_no_ally_this_province);
3200 context.
compiled_effect.push_back(value.call_ally ? effect::war_this_state : effect::war_no_ally_this_state);
3202 context.
compiled_effect.push_back(value.call_ally ? effect::war_this_pop : effect::war_no_ally_this_pop);
3208 }
else if(value.target.length() == 3) {
3212 context.
compiled_effect.push_back(uint16_t(value.call_ally ? effect::war_tag : effect::war_no_ally_tag));
3216 "war = effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3219 }
else if(value.target.length() == 0) {
3223 "war = effect given an invalid tag (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3235 if(value.days <= 0) {
3237 context.
compiled_effect.push_back(uint16_t(effect::country_event_immediate_this_nation));
3239 context.
compiled_effect.push_back(uint16_t(effect::country_event_immediate_this_province));
3241 context.
compiled_effect.push_back(uint16_t(effect::country_event_immediate_this_state));
3243 context.
compiled_effect.push_back(uint16_t(effect::country_event_immediate_this_pop));
3252 context.
compiled_effect.push_back(uint16_t(effect::country_event_this_nation));
3254 context.
compiled_effect.push_back(uint16_t(effect::country_event_this_province));
3256 context.
compiled_effect.push_back(uint16_t(effect::country_event_this_state));
3258 context.
compiled_effect.push_back(uint16_t(effect::country_event_this_pop));
3268 if(value.days <= 0) {
3270 context.
compiled_effect.push_back(uint16_t(effect::country_event_immediate_province_this_nation));
3272 context.
compiled_effect.push_back(uint16_t(effect::country_event_immediate_province_this_province));
3274 context.
compiled_effect.push_back(uint16_t(effect::country_event_immediate_province_this_state));
3276 context.
compiled_effect.push_back(uint16_t(effect::country_event_immediate_province_this_pop));
3285 context.
compiled_effect.push_back(uint16_t(effect::country_event_province_this_nation));
3287 context.
compiled_effect.push_back(uint16_t(effect::country_event_province_this_province));
3289 context.
compiled_effect.push_back(uint16_t(effect::country_event_province_this_state));
3291 context.
compiled_effect.push_back(uint16_t(effect::country_event_province_this_pop));
3308 if(value.days <= 0) {
3310 context.
compiled_effect.push_back(uint16_t(effect::province_event_immediate_this_nation));
3312 context.
compiled_effect.push_back(uint16_t(effect::province_event_immediate_this_province));
3314 context.
compiled_effect.push_back(uint16_t(effect::province_event_immediate_this_state));
3316 context.
compiled_effect.push_back(uint16_t(effect::province_event_immediate_this_pop));
3319 std::to_string(line) +
")\n";
3325 context.
compiled_effect.push_back(uint16_t(effect::province_event_this_nation));
3327 context.
compiled_effect.push_back(uint16_t(effect::province_event_this_province));
3329 context.
compiled_effect.push_back(uint16_t(effect::province_event_this_state));
3331 context.
compiled_effect.push_back(uint16_t(effect::province_event_this_pop));
3334 std::to_string(line) +
")\n";
3356 }
else if(
is_from(value.value)) {
3364 }
else if(
is_fixed_token_ci(value.value.data(), value.value.data() + value.value.length(),
"current")) {
3373 auto ivalue =
parse_int(value.value, line, err);
3381 "sub_unit effect given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3443 context.
compiled_effect.push_back(uint16_t(effect::change_terrain_pop));
3445 context.
compiled_effect.push_back(uint16_t(effect::change_terrain_province));
3452 err.
accumulated_errors +=
"chenge_terrain effect supplied with an invalid terrain \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3458 context.
compiled_effect.push_back(uint16_t(effect::masquerade_as_nation_this));
3460 context.
compiled_effect.push_back(uint16_t(effect::masquerade_as_nation_from));
3466 err.
accumulated_errors +=
"masquerade_as_nation effect not used in a nation scope (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3506 if(
bool(value.ideology_)) {
3510 }
else if(
bool(value.issue_)) {
3515 context.
compiled_effect.push_back(effect::scaled_militancy_unemployment);
3519 if(
bool(value.ideology_)) {
3520 context.
compiled_effect.push_back(effect::scaled_militancy_nation_ideology);
3523 }
else if(
bool(value.issue_)) {
3524 context.
compiled_effect.push_back(effect::scaled_militancy_nation_issue);
3528 context.
compiled_effect.push_back(effect::scaled_militancy_nation_unemployment);
3532 if(
bool(value.ideology_)) {
3533 context.
compiled_effect.push_back(effect::scaled_militancy_state_ideology);
3536 }
else if(
bool(value.issue_)) {
3537 context.
compiled_effect.push_back(effect::scaled_militancy_state_issue);
3541 context.
compiled_effect.push_back(effect::scaled_militancy_state_unemployment);
3545 if(
bool(value.ideology_)) {
3546 context.
compiled_effect.push_back(effect::scaled_militancy_province_ideology);
3549 }
else if(
bool(value.issue_)) {
3550 context.
compiled_effect.push_back(effect::scaled_militancy_province_issue);
3554 context.
compiled_effect.push_back(effect::scaled_militancy_province_unemployment);
3565 if(
bool(value.ideology_)) {
3566 context.
compiled_effect.push_back(effect::scaled_consciousness_ideology);
3569 }
else if(
bool(value.issue_)) {
3570 context.
compiled_effect.push_back(effect::scaled_consciousness_issue);
3574 context.
compiled_effect.push_back(effect::scaled_consciousness_unemployment);
3578 if(
bool(value.ideology_)) {
3579 context.
compiled_effect.push_back(effect::scaled_consciousness_nation_ideology);
3582 }
else if(
bool(value.issue_)) {
3583 context.
compiled_effect.push_back(effect::scaled_consciousness_nation_issue);
3587 context.
compiled_effect.push_back(effect::scaled_consciousness_nation_unemployment);
3591 if(
bool(value.ideology_)) {
3592 context.
compiled_effect.push_back(effect::scaled_consciousness_state_ideology);
3595 }
else if(
bool(value.issue_)) {
3596 context.
compiled_effect.push_back(effect::scaled_consciousness_state_issue);
3600 context.
compiled_effect.push_back(effect::scaled_consciousness_state_unemployment);
3604 if(
bool(value.ideology_)) {
3605 context.
compiled_effect.push_back(effect::scaled_consciousness_province_ideology);
3608 }
else if(
bool(value.issue_)) {
3609 context.
compiled_effect.push_back(effect::scaled_consciousness_province_issue);
3613 context.
compiled_effect.push_back(effect::scaled_consciousness_province_unemployment);
3618 std::to_string(line) +
")\n";
3637 context.
compiled_effect.push_back(effect::move_issue_percentage_nation);
3639 context.
compiled_effect.push_back(effect::move_issue_percentage_state);
3641 context.
compiled_effect.push_back(effect::move_issue_percentage_province);
3646 std::to_string(line) +
")\n";
3654 if(
bool(value.province_id_)) {
3672 std::to_string(line) +
")\n";
3682 std::to_string(line) +
")\n";
3684 }
else if(!value.opt_) {
3686 std::to_string(line) +
")\n";
3696 std::to_string(line) +
")\n";
3699 if(value.in_whole_capital_state && value.limit_to_world_greatest_level)
3701 else if(value.in_whole_capital_state && !value.limit_to_world_greatest_level)
3703 else if(!value.in_whole_capital_state && value.limit_to_world_greatest_level)
3712 std::to_string(line) +
")\n";
3715 if(value.in_whole_capital_state && value.limit_to_world_greatest_level)
3717 uint16_t(effect::build_bank_in_capital_yes_whole_state_yes_limit |
effect::no_payload));
3718 else if(value.in_whole_capital_state && !value.limit_to_world_greatest_level)
3720 else if(!value.in_whole_capital_state && value.limit_to_world_greatest_level)
3729 std::to_string(line) +
")\n";
3732 if(value.in_whole_capital_state && value.limit_to_world_greatest_level)
3734 uint16_t(effect::build_university_in_capital_yes_whole_state_yes_limit |
effect::no_payload));
3735 else if(value.in_whole_capital_state && !value.limit_to_world_greatest_level)
3737 else if(!value.in_whole_capital_state && value.limit_to_world_greatest_level)
3746 std::to_string(line) +
")\n";
3749 if(value.in_whole_capital_state && value.limit_to_world_greatest_level)
3751 else if(value.in_whole_capital_state && !value.limit_to_world_greatest_level)
3753 else if(!value.in_whole_capital_state && value.limit_to_world_greatest_level)
3768void ef_random_by_modifier(token_generator& gen, error_handler& err, effect_building_context& context);
3779dcon::value_modifier_key
make_option_ai_chance(token_generator& gen, error_handler& err, effect_building_context& context);
3781dcon::trigger_key
ef_limit(token_generator& gen, error_handler& err, effect_building_context& context);
3783void ef_scope_if(token_generator& gen, error_handler& err, effect_building_context& context);
3784void ef_scope_else_if(token_generator& gen, error_handler& err, effect_building_context& context);
std::string accumulated_errors
std::string accumulated_warnings
dcon::modifier_id get_province_immigrator_modifier(sys::state &state)
dcon::modifier_id get_province_selector_modifier(sys::state &state)
constexpr uint16_t owner_scope_province
constexpr uint16_t no_payload
constexpr uint16_t scope_has_limit
uint32_t tag_to_int(char first, char second, char third)
void ef_scope_random_owned(token_generator &gen, error_handler &err, effect_building_context &context)
bool is_integer(char const *start, char const *end)
void ef_scope_any_defined_country(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_location(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_all_core(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_hidden_tooltip(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_sphere_owner(token_generator &gen, error_handler &err, effect_building_context &context)
bool is_this(std::string_view value)
bool is_reb(std::string_view value)
void ef_scope_random_state(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_owner(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_cultural_union(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_any_greater_power(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_random_list(token_generator &gen, error_handler &err, effect_building_context &context)
int32_t simplify_effect(uint16_t *source)
void ef_scope_else_if(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_middle_strata(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_any_state(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_random_empty_neighbor_province(token_generator &gen, error_handler &err, effect_building_context &context)
bool is_from(std::string_view value)
void ef_crisis_state_scope(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_controller(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_else(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_random_country(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_overlord(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_any_neighbor_province(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_capital_scope(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_state_scope(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_rich_strata(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_any_owned(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_any_substate(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_random_by_modifier(token_generator &gen, error_handler &err, effect_building_context &context)
bool is_fixed_token_ci(char const *start, char const *end, char const (&t)[N])
void ef_scope_any_existing_country_except_scoped(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_independence(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_from(token_generator &gen, error_handler &err, effect_building_context &context)
int32_t parse_int(std::string_view content, int32_t line, error_handler &err)
dcon::trigger_key ef_limit(token_generator &gen, error_handler &err, effect_building_context &context)
dcon::effect_key make_effect(token_generator &gen, error_handler &err, effect_building_context &context)
int32_t add_to_random_list(std::string_view label, token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_random_neighbor_province(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_poor_strata(token_generator &gen, error_handler &err, effect_building_context &context)
dcon::value_modifier_key read_chance_modifier(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_any_country(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_flashpoint_tag_scope(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_variable(std::string_view label, token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_random(token_generator &gen, error_handler &err, effect_building_context &context)
dcon::value_modifier_key make_option_ai_chance(token_generator &gen, error_handler &err, effect_building_context &context)
std::string slot_contents_to_string(trigger::slot_contents v)
void ef_scope_random_neighbor_country(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_country(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_sea_zone(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_any_neighbor_country(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_if(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_random_pop(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_this(token_generator &gen, error_handler &err, effect_building_context &context)
void ef_scope_any_pop(token_generator &gen, error_handler &err, effect_building_context &context)
dcon::text_key find_or_add_key(sys::state &state, std::string_view key, bool as_unicode)
void finish(effect_building_context &)
void type(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void name(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void finish(effect_building_context &)
void finish(effect_building_context &)
void name(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void casus_belli(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
void finish(effect_building_context &)
dcon::cb_type_id casus_belli_
void finish(effect_building_context &)
bool limit_to_world_greatest_level
bool in_whole_capital_state
bool limit_to_world_greatest_level
bool in_whole_capital_state
void finish(effect_building_context &)
bool in_whole_capital_state
void finish(effect_building_context &)
bool limit_to_world_greatest_level
bool in_whole_capital_state
void finish(effect_building_context &)
bool limit_to_world_greatest_level
void type(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void finish(effect_building_context &)
dcon::ideology_id ideology_
void ideology(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
void name(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
void finish(effect_building_context &)
dcon::issue_option_id opt_
void position(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
void finish(effect_building_context &)
dcon::ideology_id ideology_
void ideology(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
void finish(effect_building_context &)
void which(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
dcon::national_variable_id which_
dcon::national_event_id id_
void id(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void finish(effect_building_context &)
dcon::leader_trait_id personality_
void personality(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
dcon::leader_trait_id background_
void finish(effect_building_context &)
void background(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
dcon::leader_trait_id personality_
void personality(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
void background(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
dcon::leader_trait_id background_
void finish(effect_building_context &)
void finish(effect_building_context &)
void finish(effect_building_context &)
void value(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
dcon::issue_option_id value_
void value(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
void finish(effect_building_context &)
void finish(effect_building_context &)
dcon::issue_option_id from_
dcon::issue_option_id to_
void to(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
void from(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
void ideology(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
dcon::ideology_id ideology_
void finish(effect_building_context &)
void province_id(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
dcon::province_id province_id_
void id(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
dcon::provincial_event_id id_
void finish(effect_building_context &)
void finish(effect_building_context &)
void any_group(std::string_view label, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void finish(effect_building_context &)
void finish(effect_building_context &)
void type(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void finish(effect_building_context &)
dcon::ideology_id ideology_
void ideology(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
void issue(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
dcon::issue_option_id issue_
void finish(effect_building_context &)
void ideology(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
dcon::ideology_id ideology_
void issue(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
dcon::issue_option_id issue_
dcon::value_modifier_key chance_modifier
void finish(effect_building_context &)
void finish(effect_building_context &)
dcon::national_variable_id which_
void which(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
void finish(effect_building_context &)
void type(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
void type(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void finish(effect_building_context &)
dcon::culture_id culture_
void type(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void ideology(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
dcon::rebel_type_id type_
dcon::religion_id religion_
dcon::ideology_id ideology_
void culture(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void finish(effect_building_context &)
void religion(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void ideology(association_type t, std::string_view v, error_handler &err, int32_t line, effect_building_context &context)
void finish(effect_building_context &)
dcon::ideology_id ideology_
void finish(effect_building_context &)
dcon::national_identity_id country_
void finish(effect_building_context &)
bool target_country_is_this
void state_province_id(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
dcon::cb_type_id casus_belli_
void country(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
dcon::province_id state_province_id_
void casus_belli(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
bool target_country_is_from
bool special_call_ally_wargoal
void scaled_consciousness(ef_scaled_consciousness const &value, error_handler &err, int32_t line, effect_building_context &context)
void remove_random_military_reforms(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void province_immigrator(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void activate_technology(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void remove_accepted_culture(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void military_access(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void change_party_name(ef_change_party_name const &value, error_handler &err, int32_t line, effect_building_context &context)
void change_party_position(ef_change_party_position const &value, error_handler &err, int32_t line, effect_building_context &context)
void define_general(ef_define_general const &value, error_handler &err, int32_t line, effect_building_context &context)
void add_country_modifier(ef_add_country_modifier const &value, error_handler &err, int32_t line, effect_building_context &context)
void build_university_in_capital(ef_build_university_in_capital const &value, error_handler &err, int32_t line, effect_building_context &context)
void government(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void annex_to(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void naval_base(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void limit(dcon::trigger_key lim, error_handler &err, int32_t line, effect_building_context &context)
void set_culture(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void pop_type(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void decrement_variable(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void capital(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void clr_global_flag(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void military_reform(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void set_variable(ef_set_variable const &value, error_handler &err, int32_t line, effect_building_context &context)
void build_factory_in_capital_state(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void release_vassal(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void finish(effect_building_context &)
void add_country_modifier(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void end_war(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void party_loyalty(ef_party_loyalty const &value, error_handler &err, int32_t line, effect_building_context &context)
void set_global_flag(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void primary_culture(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void remove_province_modifier(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void create_vassal(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void leave_alliance(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void world_wars_enabled(association_type t, bool value, error_handler &err, int32_t line, effect_building_context &context)
void enable_ideology(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void nationalvalue(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void create_alliance(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void clr_country_flag(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void trigger_revolt(ef_trigger_revolt const &value, error_handler &err, int32_t line, effect_building_context &context)
void nationalize(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void economic_reform(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void relation(ef_relation const &value, error_handler &err, int32_t line, effect_building_context &context)
void consciousness(association_type t, float value, error_handler &err, int32_t line, effect_building_context &context)
void add_casus_belli(ef_add_casus_belli const &value, error_handler &err, int32_t line, effect_building_context &context)
void change_controller(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void set_variable_to_zero(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void add_accepted_culture(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void literacy(association_type t, float value, error_handler &err, int32_t line, effect_building_context &context)
void add_tax_relative_income(association_type t, float value, error_handler &err, int32_t line, effect_building_context &context)
void any_value(std::string_view label, association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void neutrality(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void prestige(association_type t, float value, error_handler &err, int32_t line, effect_building_context &context)
void flashpoint_tension(association_type t, float value, error_handler &err, int32_t line, effect_building_context &context)
void university(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void ruling_party_ideology(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void leadership(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void election(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void province_selector(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void sub_unit(ef_sub_unit const &value, error_handler &err, int32_t line, effect_building_context &context)
void remove_random_economic_reforms(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void religion(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void badboy(association_type t, float value, error_handler &err, int32_t line, effect_building_context &context)
void change_tag(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void war_exhaustion(association_type t, float value, error_handler &err, int32_t line, effect_building_context &context)
void add_crime(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void change_tag_no_core_switch(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void add_crisis_temperature(association_type t, float value, error_handler &err, int32_t line, effect_building_context &context)
void ideology(ef_ideology const &value, error_handler &err, int32_t line, effect_building_context &context)
void province_event(ef_province_event const &value, error_handler &err, int32_t line, effect_building_context &context)
void masquerade_as_nation(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void political_reform(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void dominant_issue(ef_dominant_issue const &value, error_handler &err, int32_t line, effect_building_context &context)
void remove_casus_belli(ef_remove_casus_belli const &value, error_handler &err, int32_t line, effect_building_context &context)
void upper_house(ef_upper_house const &value, error_handler &err, int32_t line, effect_building_context &context)
void remove_core(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void bank(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void move_issue_percentage(ef_move_issue_percentage const &value, error_handler &err, int32_t line, effect_building_context &context)
void prestige_factor(association_type t, float value, error_handler &err, int32_t line, effect_building_context &context)
void change_province_name(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void money(association_type t, float value, error_handler &err, int32_t line, effect_building_context &context)
void country_event(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void plurality(association_type t, float value, error_handler &err, int32_t line, effect_building_context &context)
void trade_goods(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void social_reform(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void assimilate(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void infrastructure(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void casus_belli(ef_casus_belli const &value, error_handler &err, int32_t line, effect_building_context &context)
void add_war_goal(ef_add_war_goal const &value, error_handler &err, int32_t line, effect_building_context &context)
void change_variable(ef_change_variable const &value, error_handler &err, int32_t line, effect_building_context &context)
void release(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void reduce_pop(association_type t, float value, error_handler &err, int32_t line, effect_building_context &context)
void define_admiral(ef_define_admiral const &value, error_handler &err, int32_t line, effect_building_context &context)
void end_military_access(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void add_province_modifier(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void rgo_size(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void years_of_research(association_type t, float value, error_handler &err, int32_t line, effect_building_context &context)
void remove_country_modifier(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void set_country_flag(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void enable_canal(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void war(ef_war const &value, error_handler &err, int32_t line, effect_building_context &context)
void research_points(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void add_province_modifier(ef_add_province_modifier const &value, error_handler &err, int32_t line, effect_building_context &context)
void inherit(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void reduce_pop_abs(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void fort(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void province_event(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void kill_leader(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void country_event(ef_country_event const &value, error_handler &err, int32_t line, effect_building_context &context)
void great_wars_enabled(association_type t, bool value, error_handler &err, int32_t line, effect_building_context &context)
void scaled_militancy(ef_scaled_militancy const &value, error_handler &err, int32_t line, effect_building_context &context)
void move_pop(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void tech_school(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void diplomatic_influence(ef_diplomatic_influence const &value, error_handler &err, int32_t line, effect_building_context &context)
void life_rating(association_type t, int32_t value, error_handler &err, int32_t line, effect_building_context &context)
void treasury(association_type t, float value, error_handler &err, int32_t line, effect_building_context &context)
void secede_province(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void civilized(association_type t, bool value, error_handler &err, int32_t line, effect_building_context &context)
void increment_variable(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void build_railway_in_capital(ef_build_railway_in_capital const &value, error_handler &err, int32_t line, effect_building_context &context)
void change_region_name(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void this_remove_casus_belli(ef_this_remove_casus_belli const &value, error_handler &err, int32_t line, effect_building_context &context)
void add_crisis_interest(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void build_fort_in_capital(ef_build_fort_in_capital const &value, error_handler &err, int32_t line, effect_building_context &context)
void change_terrain(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void build_bank_in_capital(ef_build_bank_in_capital const &value, error_handler &err, int32_t line, effect_building_context &context)
void add_core(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
void is_slave(association_type t, bool value, error_handler &err, int32_t line, effect_building_context &context)
void militancy(association_type t, float value, error_handler &err, int32_t line, effect_building_context &context)
trigger::slot_contents this_slot
scenario_building_context & outer_context
void add_int32_t_to_payload(int32_t i)
std::vector< uint16_t > compiled_effect
trigger::slot_contents from_slot
effect_building_context(scenario_building_context &outer_context, trigger::slot_contents main_slot, trigger::slot_contents this_slot, trigger::slot_contents from_slot)
trigger::slot_contents main_slot
void add_float_to_payload(float f)
dcon::value_modifier_key ai_chance
void name(association_type t, std::string_view value, error_handler &err, int32_t line, effect_building_context &context)
ankerl::unordered_dense::map< std::string, dcon::unit_type_id > map_of_unit_types
ankerl::unordered_dense::map< std::string, dcon::modifier_id > map_of_modifiers
ankerl::unordered_dense::map< std::string, dcon::religion_id > map_of_religion_names
ankerl::unordered_dense::map< std::string, pending_invention_content > map_of_inventions
ankerl::unordered_dense::map< std::string, pending_roption_content > map_of_roptions
ankerl::unordered_dense::map< std::string, pending_tech_content > map_of_technologies
ankerl::unordered_dense::map< std::string, dcon::pop_type_id > map_of_poptypes
ankerl::unordered_dense::map< std::string, pending_ideology_content > map_of_ideologies
std::vector< dcon::province_id > original_id_to_prov_id_map
ankerl::unordered_dense::map< std::string, pending_crime_content > map_of_crimes
ankerl::unordered_dense::map< std::string, dcon::leader_trait_id > map_of_leader_traits
dcon::global_flag_id get_global_flag(std::string const &name)
ankerl::unordered_dense::map< std::string, pending_option_content > map_of_ioptions
ankerl::unordered_dense::map< std::string, pending_cb_content > map_of_cb_types
ankerl::unordered_dense::map< std::string, terrain_type > map_of_terrain_types
dcon::national_flag_id get_national_flag(std::string const &name)
ankerl::unordered_dense::map< std::string, pending_rebel_type_content > map_of_rebeltypes
ankerl::unordered_dense::map< uint32_t, dcon::national_identity_id > map_of_ident_names
ankerl::unordered_dense::map< std::string, dcon::culture_id > map_of_culture_names
ankerl::unordered_dense::map< std::string, dcon::commodity_id > map_of_commodity_names
ankerl::unordered_dense::map< std::string, dcon::government_type_id > map_of_governments
dcon::national_variable_id get_national_variable(std::string const &name)
ankerl::unordered_dense::map< std::string, dcon::factory_type_id > map_of_factory_names