159 return static_cast<uint16_t
>(0x7000) - a;
284 std::string(value) +
" is not a valid pop type name (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
329inline bool is_reb(std::string_view value) {
345 err.
file_name +
", line " + std::to_string(line) +
")\n";
385 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
398 err.
accumulated_errors +=
"involved_in_crisis trigger used in an incorrect scope type " +
400 std::to_string(line) +
")\n";
409 err.
accumulated_errors +=
"has_cultural_sphere trigger used in an incorrect scope type " +
411 std::to_string(line) +
")\n";
424 err.
accumulated_errors +=
"social_movement trigger used in an incorrect scope type " +
426 std::to_string(line) +
")\n";
438 err.
accumulated_errors +=
"political_movement trigger used in an incorrect scope type " +
440 std::to_string(line) +
")\n";
449 err.
accumulated_errors +=
"rich_tax_above_poor trigger used in an incorrect scope type " +
451 std::to_string(line) +
")\n";
463 std::to_string(line) +
")\n";
474 std::to_string(line) +
")\n";
488 std::to_string(line) +
")\n";
497 err.
accumulated_errors +=
"can_nationalize trigger used in an incorrect scope type " +
499 std::to_string(line) +
")\n";
510 std::to_string(line) +
")\n";
520 err.
accumulated_errors +=
"constructing_cb_discovered trigger used in an incorrect scope type " +
522 std::to_string(line) +
")\n";
531 err.
accumulated_errors +=
"colonial_nation trigger used in an incorrect scope type " +
533 std::to_string(line) +
")\n";
544 std::to_string(line) +
")\n";
553 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
567 err.
accumulated_errors +=
"is_releasable_vassal trigger used in an incorrect scope type " +
569 std::to_string(line) +
")\n";
577 err.
accumulated_errors +=
"is_releasable_vassal trigger used in an incorrect scope type " +
579 std::to_string(line) +
")\n";
592 err.
accumulated_errors +=
"someone_can_form_union_tag trigger used in an incorrect scope type " +
594 std::to_string(line) +
")\n";
602 err.
accumulated_errors +=
"someone_can_form_union_tag trigger used in an incorrect scope type " +
604 std::to_string(line) +
")\n";
615 err.
accumulated_errors +=
"is_state_capital trigger used in an incorrect scope type " +
617 std::to_string(line) +
")\n";
632 std::to_string(line) +
")\n";
642 err.
accumulated_errors +=
"has_empty_adjacent_province trigger used in an incorrect scope type " +
644 std::to_string(line) +
")\n";
661 std::to_string(line) +
")\n";
674 err.
accumulated_errors +=
"culture_has_union_tag trigger used in an incorrect scope type " +
676 std::to_string(line) +
")\n";
692 std::to_string(line) +
")\n";
707 err.
accumulated_errors +=
"is_greater_power trigger used in an incorrect scope type " +
709 std::to_string(line) +
")\n";
718 err.
accumulated_errors +=
"can_create_vassals trigger used in an incorrect scope type " +
720 std::to_string(line) +
")\n";
731 err.
accumulated_errors +=
"has_recently_lost_war trigger used in an incorrect scope type " +
743 std::to_string(line) +
")\n";
762 err.
accumulated_errors +=
"crime_higher_than_education trigger used in an incorrect scope type " +
764 std::to_string(line) +
")\n";
782 std::to_string(line) +
")\n";
792 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
808 err.
accumulated_errors +=
"has_recent_imigration trigger used in an incorrect scope type " +
810 std::to_string(line) +
")\n";
821 err.
accumulated_errors +=
"province_control_days trigger used in an incorrect scope type " +
823 std::to_string(line) +
")\n";
832 err.
accumulated_errors +=
"num_of_substates trigger used in an incorrect scope type " +
834 std::to_string(line) +
")\n";
844 err.
accumulated_errors +=
"num_of_vassals_no_substates trigger used in an incorrect scope type " +
846 std::to_string(line) +
")\n";
855 err.
accumulated_errors +=
"number_of_states trigger used in an incorrect scope type " +
857 std::to_string(line) +
")\n";
869 std::to_string(line) +
")\n";
881 err.
accumulated_errors +=
"flashpoint_tension trigger used in an incorrect scope type " +
883 std::to_string(line) +
")\n";
895 std::to_string(line) +
")\n";
907 std::to_string(line) +
")\n";
919 std::to_string(line) +
")\n";
929 err.
accumulated_errors +=
"social_movement_strength trigger used in an incorrect scope type " +
931 std::to_string(line) +
")\n";
941 err.
accumulated_errors +=
"political_movement_strength trigger used in an incorrect scope type " +
943 std::to_string(line) +
")\n";
954 err.
accumulated_errors +=
"total_num_of_ports trigger used in an incorrect scope type " +
956 std::to_string(line) +
")\n";
966 err.
accumulated_errors +=
"agree_with_ruling_party trigger used in an incorrect scope type " +
968 std::to_string(line) +
")\n";
978 err.
accumulated_errors +=
"constructing_cb_progress trigger used in an incorrect scope type " +
980 std::to_string(line) +
")\n";
990 err.
accumulated_errors +=
"civilization_progress trigger used in an incorrect scope type " +
992 std::to_string(line) +
")\n";
1009 err.
accumulated_errors +=
"rich_strata_life_needs trigger used in an incorrect scope type " +
1011 std::to_string(line) +
")\n";
1027 err.
accumulated_errors +=
"rich_strata_everyday_needs trigger used in an incorrect scope type " +
1029 std::to_string(line) +
")\n";
1045 err.
accumulated_errors +=
"rich_strata_luxury_needs trigger used in an incorrect scope type " +
1047 std::to_string(line) +
")\n";
1064 err.
accumulated_errors +=
"middle_strata_life_needs trigger used in an incorrect scope type " +
1066 std::to_string(line) +
")\n";
1083 err.
accumulated_errors +=
"middle_strata_everyday_needs trigger used in an incorrect scope type " +
1085 std::to_string(line) +
")\n";
1101 err.
accumulated_errors +=
"middle_strata_luxury_needs trigger used in an incorrect scope type " +
1103 std::to_string(line) +
")\n";
1120 err.
accumulated_errors +=
"poor_strata_life_needs trigger used in an incorrect scope type " +
1122 std::to_string(line) +
")\n";
1138 err.
accumulated_errors +=
"poor_strata_everyday_needs trigger used in an incorrect scope type " +
1140 std::to_string(line) +
")\n";
1156 err.
accumulated_errors +=
"poor_strata_luxury_needs trigger used in an incorrect scope type " +
1158 std::to_string(line) +
")\n";
1172 std::to_string(line) +
")\n";
1189 err.
accumulated_errors +=
"poor_strata_militancy trigger used in an incorrect scope type " +
1191 std::to_string(line) +
")\n";
1207 err.
accumulated_errors +=
"middle_strata_militancy trigger used in an incorrect scope type " +
1209 std::to_string(line) +
")\n";
1225 err.
accumulated_errors +=
"rich_strata_militancy trigger used in an incorrect scope type " +
1227 std::to_string(line) +
")\n";
1244 std::to_string(line) +
")\n";
1260 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1277 std::to_string(line) +
")\n";
1292 err.
accumulated_errors +=
"military_spending trigger used in an incorrect scope type " +
1294 std::to_string(line) +
")\n";
1310 err.
accumulated_errors +=
"administration_spending trigger used in an incorrect scope type " +
1312 std::to_string(line) +
")\n";
1327 err.
accumulated_errors +=
"education_spending trigger used in an incorrect scope type " +
1329 std::to_string(line) +
")\n";
1339 err.
accumulated_errors +=
"national_provinces_occupied trigger used in an incorrect scope type " +
1341 std::to_string(line) +
")\n";
1354 err.
accumulated_errors +=
"social_spending trigger used in an incorrect scope type " +
1356 std::to_string(line) +
")\n";
1368 err.
accumulated_errors +=
"brigades_compare trigger used in an incorrect scope type " +
1370 std::to_string(line) +
")\n";
1379 err.
accumulated_errors +=
"brigades_compare trigger used in an incorrect scope type " +
1381 std::to_string(line) +
")\n";
1385 err.
accumulated_errors +=
"brigades_compare trigger used in an incorrect scope type " +
1387 std::to_string(line) +
")\n";
1399 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1412 std::to_string(line) +
")\n";
1424 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1433 err.
accumulated_errors +=
"mobilisation_size trigger used in an incorrect scope type " +
1435 std::to_string(line) +
")\n";
1446 std::to_string(line) +
")\n";
1453 "province_id trigger given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1471 std::to_string(line) +
")\n";
1488 std::to_string(line) +
")\n";
1494 err.
accumulated_errors +=
"invention trigger supplied with neither a valid technology nor a valid invention "
1495 + std::string(value) +
" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1507 std::to_string(line) +
")\n";
1514 "big_producer trigger supplied with an invalid commodity \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1523 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"middle"))
1527 "strata trigger given unknown strata (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1532 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1545 std::to_string(line) +
")\n";
1560 err.
accumulated_errors +=
"has_empty_adjacent_state trigger used in an incorrect scope type " +
1562 std::to_string(line) +
")\n";
1574 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1581 "state_id trigger given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1591 std::to_string(line) +
")\n";
1608 std::to_string(line) +
")\n";
1629 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1639 err.
accumulated_errors +=
"is_independant trigger used in an incorrect scope type " +
1641 std::to_string(line) +
")\n";
1658 err.
accumulated_errors +=
"has_national_minority trigger used in an incorrect scope type " +
1660 std::to_string(line) +
")\n";
1676 std::to_string(line) +
")\n";
1682 err.
accumulated_errors +=
"government trigger supplied with an invalid government type \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
1683 std::to_string(line) +
")\n";
1694 err.
accumulated_errors +=
"constructing_cb_type trigger used in an incorrect scope type " +
1696 std::to_string(line) +
")\n";
1702 err.
accumulated_errors +=
"constructing_cb_type trigger supplied with an invalid cb type \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
1703 std::to_string(line) +
")\n";
1714 err.
accumulated_errors +=
"can_build_factory_in_capital_state trigger used in an incorrect scope type " +
1716 std::to_string(line) +
")\n";
1723 ", line " + std::to_string(line) +
")\n";
1731 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1738 "capital trigger given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1751 std::to_string(line) +
")\n";
1758 "tech_school trigger supplied with an invalid school \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1777 err.
accumulated_errors +=
"primary_culture trigger used in an incorrect scope type " +
1782 err.
accumulated_errors +=
"primary_culture = this trigger used in an incorrect scope type " +
1794 err.
accumulated_errors +=
"primary_culture = from trigger used in an incorrect scope type " +
1796 std::to_string(line) +
")\n";
1805 err.
accumulated_errors +=
"primary_culture trigger used in an incorrect scope type " +
1813 "primary_culture trigger supplied with an invalid culture \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1828 std::to_string(line) +
")\n";
1835 "has_crime trigger supplied with an invalid crime \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1845 err.
accumulated_errors +=
"accepted_culture trigger used in an incorrect scope type " +
1847 std::to_string(line) +
")\n";
1853 err.
accumulated_errors +=
"accepted_culture trigger supplied with an invalid culture \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
1854 std::to_string(line) +
")\n";
1878 err.
accumulated_errors +=
"pop_majority_religion trigger supplied with an invalid religion \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
1879 std::to_string(line) +
")\n";
1892 err.
accumulated_errors +=
"pop_majority_culture trigger used in an incorrect scope type " +
1894 std::to_string(line) +
")\n";
1899 err.
accumulated_errors +=
"pop_majority_culture trigger supplied with an invalid culture \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
1900 std::to_string(line) +
")\n";
1915 err.
accumulated_errors +=
"pop_majority_issue trigger used in an incorrect scope type " +
1917 std::to_string(line) +
")\n";
1922 err.
accumulated_errors +=
"pop_majority_issue trigger supplied with an invalid option name \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
1923 std::to_string(line) +
")\n";
1938 err.
accumulated_errors +=
"pop_majority_ideology trigger used in an incorrect scope type " +
1940 std::to_string(line) +
")\n";
1945 err.
accumulated_errors +=
"pop_majority_ideology trigger supplied with an invalid ideology \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
1946 std::to_string(line) +
")\n";
1957 err.
accumulated_errors +=
"trade_goods_in_state trigger used in an incorrect scope type " +
1959 std::to_string(line) +
")\n";
1964 err.
accumulated_errors +=
"trade_goods_in_state trigger supplied with an invalid commodity \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
1965 std::to_string(line) +
")\n";
1983 std::to_string(line) +
")\n";
1998 std::to_string(line) +
")\n";
2002 err.
accumulated_errors +=
"culture = this trigger used in an incorrect scope type " +
2004 std::to_string(line) +
")\n";
2012 err.
accumulated_errors +=
"culture = from trigger used in an incorrect scope type " +
2014 std::to_string(line) +
")\n";
2017 }
else if(
is_reb(value)) {
2021 std::to_string(line) +
")\n";
2038 std::to_string(line) +
")\n";
2053 std::to_string(line) +
")\n";
2059 "culture trigger supplied with an invalid culture \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2079 err.
accumulated_errors +=
"has_pop_culture = this trigger used in an incorrect scope type " +
2081 std::to_string(line) +
")\n";
2085 err.
accumulated_errors +=
"has_pop_culture = this trigger used in an incorrect scope type " +
2087 std::to_string(line) +
")\n";
2101 err.
accumulated_errors +=
"has_pop_culture trigger used in an incorrect scope type " +
2103 std::to_string(line) +
")\n";
2109 "has_pop_culture trigger supplied with an invalid culture \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2129 err.
accumulated_errors +=
"has_pop_religion = this trigger used in an incorrect scope type " +
2131 std::to_string(line) +
")\n";
2135 err.
accumulated_errors +=
"has_pop_religion = this trigger used in an incorrect scope type " +
2137 std::to_string(line) +
")\n";
2151 err.
accumulated_errors +=
"has_pop_religion trigger used in an incorrect scope type " +
2153 std::to_string(line) +
")\n";
2158 err.
accumulated_errors +=
"has_pop_religion trigger supplied with an invalid religion \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
2159 std::to_string(line) +
")\n";
2174 err.
accumulated_errors +=
"culture_group = this trigger used in an incorrect scope type " +
2176 std::to_string(line) +
")\n";
2187 err.
accumulated_errors +=
"culture_group = this trigger used in an incorrect scope type " +
2189 std::to_string(line) +
")\n";
2200 err.
accumulated_errors +=
"culture_group = this trigger used in an incorrect scope type " +
2202 std::to_string(line) +
")\n";
2213 err.
accumulated_errors +=
"culture_group = this trigger used in an incorrect scope type " +
2215 std::to_string(line) +
")\n";
2219 err.
accumulated_errors +=
"culture_group = this trigger used in an incorrect scope type " +
2221 std::to_string(line) +
")\n";
2233 err.
accumulated_errors +=
"culture_group = from trigger used in an incorrect scope type " +
2235 std::to_string(line) +
")\n";
2239 err.
accumulated_errors +=
"culture_group = from trigger used in an incorrect scope type " +
2241 std::to_string(line) +
")\n";
2244 }
else if(
is_reb(value)) {
2253 err.
accumulated_errors +=
"culture_group = reb trigger used in an incorrect scope type " +
2255 std::to_string(line) +
")\n";
2259 err.
accumulated_errors +=
"culture_group = reb trigger used in an incorrect scope type " +
2261 std::to_string(line) +
")\n";
2277 std::to_string(line) +
")\n";
2282 err.
accumulated_errors +=
"culture_group trigger supplied with an invalid culture group \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
2283 std::to_string(line) +
")\n";
2297 err.
accumulated_errors +=
"religion = this trigger used in an incorrect scope type " +
2299 std::to_string(line) +
")\n";
2310 err.
accumulated_errors +=
"religion = this trigger used in an incorrect scope type " +
2312 std::to_string(line) +
")\n";
2323 err.
accumulated_errors +=
"religion = this trigger used in an incorrect scope type " +
2325 std::to_string(line) +
")\n";
2336 err.
accumulated_errors +=
"religion = this trigger used in an incorrect scope type " +
2338 std::to_string(line) +
")\n";
2342 err.
accumulated_errors +=
"religion = this trigger used in an incorrect scope type " +
2344 std::to_string(line) +
")\n";
2356 err.
accumulated_errors +=
"religion = from trigger used in an incorrect scope type " +
2358 std::to_string(line) +
")\n";
2362 err.
accumulated_errors +=
"religion = from trigger used in an incorrect scope type " +
2364 std::to_string(line) +
")\n";
2367 }
else if(
is_reb(value)) {
2375 err.
accumulated_errors +=
"religion = reb trigger used in an incorrect scope type " +
2377 std::to_string(line) +
")\n";
2381 err.
accumulated_errors +=
"religion = reb trigger used in an incorrect scope type " +
2383 std::to_string(line) +
")\n";
2395 std::to_string(line) +
")\n";
2401 "religion trigger supplied with an invalid religion \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2414 std::to_string(line) +
")\n";
2420 "terrain trigger supplied with an invalid terrain \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2432 std::to_string(line) +
")\n";
2438 "trade_goods trigger supplied with an invalid commodity \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2449 err.
accumulated_errors +=
"is_secondary_power trigger used in an incorrect scope type " +
2451 std::to_string(line) +
")\n";
2466 std::to_string(line) +
")\n";
2472 "has_faction trigger supplied with an invalid rebel type \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2480 err.
accumulated_errors +=
"has_unclaimed_cores trigger used in an incorrect scope type " +
2482 std::to_string(line) +
")\n";
2491 err.
accumulated_errors +=
"have_core_in = this trigger used in an incorrect scope type " +
2493 std::to_string(line) +
")\n";
2500 err.
accumulated_errors +=
"have_core_in = from trigger used in an incorrect scope type " +
2502 std::to_string(line) +
")\n";
2505 }
else if(value.length() == 3) {
2512 err.
accumulated_errors +=
"have_core_in = tag trigger used in an incorrect scope type " +
2514 std::to_string(line) +
")\n";
2520 "have_core_in trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2524 "have_core_in trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2533 err.
accumulated_errors +=
"is_cultural_union = bool trigger used in an incorrect scope type " +
2535 std::to_string(line) +
")\n";
2562 err.
accumulated_errors +=
"is_cultural_union = this trigger used in an incorrect scope type " +
2564 std::to_string(line) +
")\n";
2568 err.
accumulated_errors +=
"is_cultural_union = this trigger used in an incorrect scope type " +
2570 std::to_string(line) +
")\n";
2573 }
else if(value.length() == 3) {
2589 err.
accumulated_errors +=
"is_cultural_union = tag trigger used in an incorrect scope type " +
2591 std::to_string(line) +
")\n";
2597 "is_cultural_union trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2601 "is_cultural_union trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2615 err.
accumulated_errors +=
"can_build_factory trigger used in an incorrect scope type " +
2617 std::to_string(line) +
")\n";
2629 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2641 err.
accumulated_errors +=
"war_exhaustion trigger used in an incorrect scope type " +
2643 std::to_string(line) +
")\n";
2653 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2659 if(
is_integer(v.data(), v.data() + v.length())) {
2667 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2674 "owns trigger given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2683 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2692 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2697 "owns trigger given an invalid value (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2706 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2713 "controls trigger given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2733 err.
accumulated_errors +=
"is_core = this trigger used in an incorrect scope type " +
2735 std::to_string(line) +
")\n";
2743 err.
accumulated_errors +=
"is_core = from trigger used in an incorrect scope type " +
2745 std::to_string(line) +
")\n";
2756 err.
accumulated_errors +=
"is_core = this trigger used in an incorrect scope type " +
2758 std::to_string(line) +
")\n";
2765 err.
accumulated_errors +=
"is_core = from trigger used in an incorrect scope type " +
2767 std::to_string(line) +
")\n";
2776 std::to_string(line) +
")\n";
2779 }
else if(
is_integer(value.data(), value.data() + value.length())) {
2781 auto int_value =
parse_int(value, line, err);
2787 "owns trigger given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2793 std::to_string(line) +
")\n";
2804 "is_core trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2812 "is_core trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2820 "is_core trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2824 "is_core trigger supplied with an invalid argument \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2831 err.
accumulated_errors +=
"num_of_revolts trigger used in an incorrect scope type " +
2833 std::to_string(line) +
")\n";
2842 err.
accumulated_errors +=
"revolt_percentage trigger used in an incorrect scope type " +
2844 std::to_string(line) +
")\n";
2865 err.
accumulated_errors +=
"num_of_cities = this trigger used in an incorrect scope type " +
2867 std::to_string(line) +
")\n";
2875 err.
accumulated_errors +=
"num_of_cities = from trigger used in an incorrect scope type " +
2877 std::to_string(line) +
")\n";
2886 std::to_string(line) +
")\n";
2896 std::to_string(line) +
")\n";
2907 std::to_string(line) +
")\n";
2916 err.
accumulated_errors +=
"num_of_vassals trigger used in an incorrect scope type " +
2918 std::to_string(line) +
")\n";
2939 err.
accumulated_errors +=
"owned_by = this trigger used in an incorrect scope type " +
2941 std::to_string(line) +
")\n";
2949 err.
accumulated_errors +=
"owned_by = from trigger used in an incorrect scope type " +
2951 std::to_string(line) +
")\n";
2954 }
else if(value.length() == 3) {
2961 "owned_by trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2965 "owned_by trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2983 err.
accumulated_errors +=
"owned_by = this trigger used in an incorrect scope type " +
2985 std::to_string(line) +
")\n";
2993 err.
accumulated_errors +=
"owned_by = from trigger used in an incorrect scope type " +
2995 std::to_string(line) +
")\n";
2998 }
else if(value.length() == 3) {
3005 "owned_by trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3009 "owned_by trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3014 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3028 std::to_string(line) +
")\n";
3031 }
else if(value.length() == 3) {
3038 "exists trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3043 "exists trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3058 err.
accumulated_errors +=
"has_country_flag trigger used in an incorrect scope type " +
3060 std::to_string(line) +
")\n";
3067 if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"project_alice")) {
3083 err.
accumulated_errors +=
"continent = this trigger used in an incorrect scope type " +
3085 std::to_string(line) +
")\n";
3093 err.
accumulated_errors +=
"continent = from trigger used in an incorrect scope type " +
3095 std::to_string(line) +
")\n";
3104 "continent trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3113 err.
accumulated_errors +=
"continent = this trigger used in an incorrect scope type " +
3115 std::to_string(line) +
")\n";
3123 err.
accumulated_errors +=
"continent = from trigger used in an incorrect scope type " +
3125 std::to_string(line) +
")\n";
3134 "continent trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3143 err.
accumulated_errors +=
"continent = this trigger used in an incorrect scope type " +
3145 std::to_string(line) +
")\n";
3153 err.
accumulated_errors +=
"continent = from trigger used in an incorrect scope type " +
3155 std::to_string(line) +
")\n";
3164 "continent trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3173 err.
accumulated_errors +=
"continent = this trigger used in an incorrect scope type " +
3175 std::to_string(line) +
")\n";
3183 err.
accumulated_errors +=
"continent = from trigger used in an incorrect scope type " +
3185 std::to_string(line) +
")\n";
3194 "continent trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3200 std::to_string(line) +
")\n";
3221 err.
accumulated_errors +=
"casus_belli = this trigger used in an incorrect scope type " +
3223 std::to_string(line) +
")\n";
3231 err.
accumulated_errors +=
"casus_belli = from trigger used in an incorrect scope type " +
3233 std::to_string(line) +
")\n";
3236 }
else if(value.length() == 3) {
3243 "casus_belli trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3247 "casus_belli trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3253 std::to_string(line) +
")\n";
3275 err.
accumulated_errors +=
"military_access = this trigger used in an incorrect scope type " +
3277 std::to_string(line) +
")\n";
3285 err.
accumulated_errors +=
"military_access = from trigger used in an incorrect scope type " +
3287 std::to_string(line) +
")\n";
3290 }
else if(value.length() == 3) {
3297 "military_access trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3301 "military_access trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3305 err.
accumulated_errors +=
"military_access trigger used in an incorrect scope type " +
3307 std::to_string(line) +
")\n";
3328 err.
accumulated_errors +=
"prestige = this trigger used in an incorrect scope type " +
3330 std::to_string(line) +
")\n";
3338 err.
accumulated_errors +=
"prestige = from trigger used in an incorrect scope type " +
3340 std::to_string(line) +
")\n";
3350 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3367 "has_building trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3374 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"railroad")) {
3377 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"naval_base")) {
3380 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"bank")) {
3383 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"university")) {
3386 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"factory")) {
3389 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"province_selector")) {
3392 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"immigrator")
3393 ||
is_fixed_token_ci(value.data(), value.data() + value.length(),
"immigrator_selector")
3394 ||
is_fixed_token_ci(value.data(), value.data() + value.length(),
"province_immigrator")) {
3403 "has_building trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3409 std::to_string(line) +
")\n";
3420 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3431 std::to_string(line) +
")\n";
3445 err.
accumulated_errors +=
"has_country_modifier trigger used in an incorrect scope type " +
3447 std::to_string(line) +
")\n";
3452 err.
accumulated_errors +=
"has_country_modifier trigger supplied with an invalid modifier \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
3453 std::to_string(line) +
")\n";
3463 err.
accumulated_errors +=
"has_province_modifier trigger used in an incorrect scope type " +
3465 std::to_string(line) +
")\n";
3470 err.
accumulated_errors +=
"has_province_modifier trigger supplied with an invalid modifier \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
3471 std::to_string(line) +
")\n";
3487 std::to_string(line) +
")\n";
3493 "nationalvalue trigger supplied with an invalid modifier \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3506 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3519 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3525 "region trigger not supplied with a state name (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3541 std::to_string(line) +
")\n";
3554 std::to_string(line) +
")\n";
3557 }
else if(value.length() == 3) {
3564 "tag trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3568 "tag trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3584 std::to_string(line) +
")\n";
3593 std::to_string(line) +
")\n";
3596 }
else if(value.length() == 3) {
3602 err.
accumulated_errors +=
"tag trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3605 err.
accumulated_errors +=
"tag trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3621 std::to_string(line) +
")\n";
3630 std::to_string(line) +
")\n";
3633 }
else if(value.length() == 3) {
3639 err.
accumulated_errors +=
"tag trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3642 err.
accumulated_errors +=
"tag trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3646 if(value.length() == 3) {
3652 err.
accumulated_errors +=
"tag trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3655 err.
accumulated_errors +=
"tag trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3675 err.
accumulated_errors +=
"stronger_army_than = this trigger used in an incorrect scope type " +
3677 std::to_string(line) +
")\n";
3686 err.
accumulated_errors +=
"stronger_army_than = from trigger used in an incorrect scope type " +
3688 std::to_string(line) +
")\n";
3691 }
else if(value.length() == 3) {
3698 "stronger_army_than trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3702 "stronger_army_than trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3707 " (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3721 err.
accumulated_errors +=
"neighbour = this trigger used in an incorrect scope type " +
3723 std::to_string(line) +
")\n";
3734 err.
accumulated_errors +=
"neighbour = from trigger used in an incorrect scope type " +
3736 std::to_string(line) +
")\n";
3739 }
else if(value.length() == 3) {
3746 "neighbour trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3750 "neighbour trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3756 std::to_string(line) +
")\n";
3776 err.
accumulated_errors +=
"country_units_in_state = this trigger used in an incorrect scope type " +
3778 std::to_string(line) +
")\n";
3786 err.
accumulated_errors +=
"country_units_in_state = from trigger used in an incorrect scope type " +
3788 std::to_string(line) +
")\n";
3791 }
else if(value.length() == 3) {
3798 "country_units_in_state trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3802 "country_units_in_state trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3805 err.
accumulated_errors +=
"country_units_in_state trigger used in an incorrect scope type " +
3807 std::to_string(line) +
")\n";
3827 err.
accumulated_errors +=
"units_in_province = this trigger used in an incorrect scope type " +
3829 std::to_string(line) +
")\n";
3837 err.
accumulated_errors +=
"units_in_province = from trigger used in an incorrect scope type " +
3839 std::to_string(line) +
")\n";
3842 }
else if(
is_integer(value.data(), value.data() + value.length())) {
3845 }
else if(value.length() == 3) {
3852 "units_in_province trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3856 "units_in_province trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3859 err.
accumulated_errors +=
"units_in_province trigger used in an incorrect scope type " +
3861 std::to_string(line) +
")\n";
3881 err.
accumulated_errors +=
"war_with = this trigger used in an incorrect scope type " +
3883 std::to_string(line) +
")\n";
3891 err.
accumulated_errors +=
"war_with = from trigger used in an incorrect scope type " +
3893 std::to_string(line) +
")\n";
3896 }
else if(value.length() == 3) {
3903 "war_with trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3907 "war_with trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3912 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3947 err.
accumulated_errors +=
"has_national_focus given an invalid focus '" + std::string(value) +
"' (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3956 err.
accumulated_errors +=
"total_amount_of_divisions trigger used in an incorrect scope type " +
3958 std::to_string(line) +
")\n";
3970 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3981 std::to_string(line) +
")\n";
3992 std::to_string(line) +
")\n";
4007 err.
accumulated_errors +=
"ruling_party_ideology trigger used in an incorrect scope type " +
4009 std::to_string(line) +
")\n";
4014 err.
accumulated_errors +=
"ruling_party_ideology trigger supplied with an invalid ideology \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
4015 std::to_string(line) +
")\n";
4029 err.
accumulated_errors +=
"is_ideology_enabled trigger supplied with an invalid ideology \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
4030 std::to_string(line) +
")\n";
4040 err.
accumulated_errors +=
"political_reform_want trigger used in an incorrect scope type " +
4042 std::to_string(line) +
")\n";
4053 err.
accumulated_errors +=
"social_reform_want trigger used in an incorrect scope type " +
4055 std::to_string(line) +
")\n";
4065 err.
accumulated_errors +=
"total_amount_of_ships trigger used in an incorrect scope type " +
4067 std::to_string(line) +
")\n";
4080 std::to_string(line) +
")\n";
4091 std::to_string(line) +
")\n";
4107 err.
accumulated_errors +=
"is_state_religion trigger used in an incorrect scope type " +
4109 std::to_string(line) +
")\n";
4130 err.
accumulated_errors +=
"is_primary_culture = this trigger used in an incorrect scope type " +
4132 std::to_string(line) +
")\n";
4149 err.
accumulated_errors +=
"is_primary_culture = this trigger used in an incorrect scope type " +
4151 std::to_string(line) +
")\n";
4168 err.
accumulated_errors +=
"is_primary_culture = this trigger used in an incorrect scope type " +
4170 std::to_string(line) +
")\n";
4187 err.
accumulated_errors +=
"is_primary_culture = this trigger used in an incorrect scope type " +
4189 std::to_string(line) +
")\n";
4193 err.
accumulated_errors +=
"is_primary_culture = this trigger used in an incorrect scope type " +
4195 std::to_string(line) +
")\n";
4204 err.
accumulated_errors +=
"is_primary_culture (treated as primary_culture or culture) trigger used in an incorrect scope type " +
4221 err.
accumulated_errors +=
"is_primary_culture trigger used in an incorrect scope type " +
4223 std::to_string(line) +
")\n";
4244 err.
accumulated_errors +=
"is_accepted_culture = this trigger used in an incorrect scope type " +
4246 std::to_string(line) +
")\n";
4263 err.
accumulated_errors +=
"is_accepted_culture = this trigger used in an incorrect scope type " +
4265 std::to_string(line) +
")\n";
4282 err.
accumulated_errors +=
"is_accepted_culture = this trigger used in an incorrect scope type " +
4284 std::to_string(line) +
")\n";
4301 err.
accumulated_errors +=
"is_accepted_culture = this trigger used in an incorrect scope type " +
4303 std::to_string(line) +
")\n";
4307 err.
accumulated_errors +=
"is_accepted_culture = this trigger used in an incorrect scope type " +
4309 std::to_string(line) +
")\n";
4316 err.
accumulated_errors +=
"is_accepted_culture (treated as accepted_culture) trigger used in an incorrect scope type " +
4333 err.
accumulated_errors +=
"is_accepted_culture trigger used in an incorrect scope type " +
4335 std::to_string(line) +
")\n";
4350 std::to_string(line) +
")\n";
4371 err.
accumulated_errors +=
"in_sphere = this trigger used in an incorrect scope type " +
4373 std::to_string(line) +
")\n";
4381 err.
accumulated_errors +=
"in_sphere = from trigger used in an incorrect scope type " +
4383 std::to_string(line) +
")\n";
4386 }
else if(value.length() == 3) {
4393 "in_sphere trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4397 "in_sphere trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4403 std::to_string(line) +
")\n";
4425 err.
accumulated_errors +=
"produces trigger supplied with an invalid commodity \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4447 err.
accumulated_errors +=
"has_pop_type trigger supplied with an invalid type name \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4462 std::to_string(line) +
")\n";
4475 err.
accumulated_errors +=
"average_militancy trigger used in an incorrect scope type " +
4477 std::to_string(line) +
")\n";
4491 err.
accumulated_errors +=
"average_consciousness trigger used in an incorrect scope type " +
4493 std::to_string(line) +
")\n";
4507 err.
accumulated_errors +=
"is_next_reform trigger used in an incorrect scope type " +
4509 std::to_string(line) +
")\n";
4520 err.
accumulated_errors +=
"is_next_reform trigger used in an incorrect scope type " +
4522 std::to_string(line) +
")\n";
4527 err.
accumulated_errors +=
"is_next_reform trigger supplied with an invalid issue/reform \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
4528 std::to_string(line) +
")\n";
4536 err.
accumulated_errors +=
"rebel_power_fraction trigger used in an incorrect scope type " +
4538 std::to_string(line) +
")\n";
4550 err.
accumulated_errors +=
"recruited_percentage trigger used in an incorrect scope type " +
4552 std::to_string(line) +
")\n";
4565 err.
accumulated_errors +=
"has_culture_core trigger used in an incorrect scope type " +
4567 std::to_string(line) +
")\n";
4577 std::to_string(line) +
")\n";
4595 std::to_string(line) +
")\n";
4604 err.
accumulated_errors +=
"controlled_by_rebels trigger used in an incorrect scope type " +
4606 std::to_string(line) +
")\n";
4627 err.
accumulated_errors +=
"controlled_by = this trigger used in an incorrect scope type " +
4629 std::to_string(line) +
")\n";
4637 err.
accumulated_errors +=
"controlled_by = from trigger used in an incorrect scope type " +
4639 std::to_string(line) +
")\n";
4642 }
else if(
is_reb(value)) {
4650 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"owner")) {
4653 }
else if(value.length() == 3) {
4660 "controlled_by trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4664 "controlled_by trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4670 std::to_string(line) +
")\n";
4691 err.
accumulated_errors +=
"truce_with = this trigger used in an incorrect scope type " +
4693 std::to_string(line) +
")\n";
4701 err.
accumulated_errors +=
"truce_with = from trigger used in an incorrect scope type " +
4703 std::to_string(line) +
")\n";
4706 }
else if(value.length() == 3) {
4713 "truce_with trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4717 "truce_with trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4723 std::to_string(line) +
")\n";
4744 err.
accumulated_errors +=
"is_sphere_leader_of = this trigger used in an incorrect scope type " +
4746 std::to_string(line) +
")\n";
4754 err.
accumulated_errors +=
"is_sphere_leader_of = from trigger used in an incorrect scope type " +
4756 std::to_string(line) +
")\n";
4759 }
else if(value.length() == 3) {
4765 err.
accumulated_errors +=
"is_sphere_leader_of trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
4766 std::to_string(line) +
")\n";
4769 err.
accumulated_errors +=
"is_sphere_leader_of trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
4770 std::to_string(line) +
")\n";
4774 err.
accumulated_errors +=
"is_sphere_leader_of trigger used in an incorrect scope type " +
4776 std::to_string(line) +
")\n";
4797 err.
accumulated_errors +=
"constructing_cb = this trigger used in an incorrect scope type " +
4799 std::to_string(line) +
")\n";
4807 err.
accumulated_errors +=
"constructing_cb = from trigger used in an incorrect scope type " +
4809 std::to_string(line) +
")\n";
4812 }
else if(value.length() == 3) {
4819 "constructing_cb trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4823 "constructing_cb trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4827 err.
accumulated_errors +=
"constructing_cb trigger used in an incorrect scope type " +
4829 std::to_string(line) +
")\n";
4845 err.
accumulated_errors +=
"vassal_of = this trigger used in an incorrect scope type " +
4853 err.
accumulated_errors +=
"vassal_of = from trigger used in an incorrect scope type " +
4857 }
else if(value.length() == 3) {
4863 err.
accumulated_errors +=
"vassal_of trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4866 err.
accumulated_errors +=
"vassal_of trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4880 err.
accumulated_errors +=
"vassal_of = this trigger used in an incorrect scope type " +
4888 err.
accumulated_errors +=
"vassal_of = from trigger used in an incorrect scope type " +
4892 }
else if(value.length() == 3) {
4898 err.
accumulated_errors +=
"vassal_of trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4901 err.
accumulated_errors +=
"vassal_of trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4927 err.
accumulated_errors +=
"substate_of = this trigger used in an incorrect scope type " +
4929 std::to_string(line) +
")\n";
4937 err.
accumulated_errors +=
"substate_of = from trigger used in an incorrect scope type " +
4939 std::to_string(line) +
")\n";
4942 }
else if(value.length() == 3) {
4949 "substate_of trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4953 "substate_of trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4959 std::to_string(line) +
")\n";
4980 err.
accumulated_errors +=
"is_our_vassal = this trigger used in an incorrect scope type " +
4982 std::to_string(line) +
")\n";
4990 err.
accumulated_errors +=
"is_our_vassal = from trigger used in an incorrect scope type " +
4992 std::to_string(line) +
")\n";
4995 }
else if(value.length() == 3) {
5002 "is_our_vassal trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5006 "is_our_vassal trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5024 err.
accumulated_errors +=
"is_our_vassal = this trigger used in an incorrect scope type " +
5026 std::to_string(line) +
")\n";
5034 err.
accumulated_errors +=
"is_our_vassal = from trigger used in an incorrect scope type " +
5036 std::to_string(line) +
")\n";
5039 }
else if(value.length() == 3) {
5046 "is_our_vassal trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5050 "is_our_vassal trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5056 std::to_string(line) +
")\n";
5077 err.
accumulated_errors +=
"this_culture_union = this trigger used in an incorrect scope type " +
5079 std::to_string(line) +
")\n";
5082 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"this_union")) {
5096 err.
accumulated_errors +=
"this_culture_union = this_union trigger used in an incorrect scope type " +
5098 std::to_string(line) +
")\n";
5106 err.
accumulated_errors +=
"this_culture_union = from trigger used in an incorrect scope type " +
5108 std::to_string(line) +
")\n";
5111 }
else if(value.length() == 3) {
5117 err.
accumulated_errors +=
"this_culture_union trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
5118 std::to_string(line) +
")\n";
5121 err.
accumulated_errors +=
"this_culture_union trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
5122 std::to_string(line) +
")\n";
5126 err.
accumulated_errors +=
"this_culture_union trigger used in an incorrect scope type " +
5128 std::to_string(line) +
")\n";
5149 err.
accumulated_errors +=
"alliance_with = this trigger used in an incorrect scope type " +
5151 std::to_string(line) +
")\n";
5159 err.
accumulated_errors +=
"alliance_with = from trigger used in an incorrect scope type " +
5161 std::to_string(line) +
")\n";
5164 }
else if(value.length() == 3) {
5171 "alliance_with trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5175 "alliance_with trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5181 std::to_string(line) +
")\n";
5203 err.
accumulated_errors +=
"in_default = this trigger used in an incorrect scope type " +
5205 std::to_string(line) +
")\n";
5212 err.
accumulated_errors +=
"in_default = from trigger used in an incorrect scope type " +
5214 std::to_string(line) +
")\n";
5217 }
else if(value.length() == 3) {
5223 err.
accumulated_errors +=
"in_default trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5226 err.
accumulated_errors +=
"in_default trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5252 err.
accumulated_errors +=
"industrial_score = this trigger used in an incorrect scope type " +
5254 std::to_string(line) +
")\n";
5262 err.
accumulated_errors +=
"industrial_score = from trigger used in an incorrect scope type " +
5264 std::to_string(line) +
")\n";
5267 }
else if(!
parsers::is_integer(value.data(), value.data() + value.length()) && value.length() == 3) {
5273 err.
accumulated_errors +=
"industrial_score trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5280 err.
accumulated_errors +=
"industrial_score trigger used in an incorrect scope type " +
5282 std::to_string(line) +
")\n";
5303 err.
accumulated_errors +=
"military_score = this trigger used in an incorrect scope type " +
5305 std::to_string(line) +
")\n";
5313 err.
accumulated_errors +=
"military_score = from trigger used in an incorrect scope type " +
5315 std::to_string(line) +
")\n";
5318 }
else if(!
parsers::is_integer(value.data(), value.data() + value.length()) && value.length() == 3) {
5324 err.
accumulated_errors +=
"military_score trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5331 err.
accumulated_errors +=
"military_score trigger used in an incorrect scope type " +
5333 std::to_string(line) +
")\n";
5339 dcon::stored_trigger_id st;
5340 for(
auto r : it->second) {
5348 err.
accumulated_errors +=
"test trigger found multiple matching possibilities for the name " +
5349 std::string(value) +
" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5358 err.
accumulated_errors +=
"test trigger was unable to find a version of " + std::string(value) +
" that matched the local parameters (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5361 err.
accumulated_errors +=
"test trigger used with an unknown scripted trigger " + std::string(value) +
" (" + err.
file_name +
", line " +
5362 std::to_string(line) +
")\n";
5366 if(value.length() == 3) {
5372 err.
accumulated_errors +=
"is_possible_vassal trigger used in an incorrect scope type " +
5374 std::to_string(line) +
")\n";
5379 err.
accumulated_errors +=
"is_possible_vassal trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
5380 std::to_string(line) +
")\n";
5384 "is_possible_vassal trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5391 err.
accumulated_errors +=
"diplomatic_influence trigger used in an incorrect scope type " +
5393 std::to_string(line) +
")\n";
5395 }
else if(
is_from(value.who)) {
5403 err.
accumulated_errors +=
"diplomatic_influence trigger used in an incorrect scope type " +
5405 std::to_string(line) +
")\n";
5409 }
else if(
is_this(value.who)) {
5417 err.
accumulated_errors +=
"diplomatic_influence trigger used in an incorrect scope type " +
5419 std::to_string(line) +
")\n";
5423 }
else if(value.who.length() == 3) {
5430 err.
accumulated_errors +=
"diplomatic_influence trigger supplied with an invalid tag \"" + std::string(value.who) +
"\" (" + err.
file_name +
", line " +
5431 std::to_string(line) +
")\n";
5434 err.
accumulated_errors +=
"diplomatic_influence trigger supplied with an invalid tag \"" + std::string(value.who) +
"\" (" + err.
file_name +
", line " +
5435 std::to_string(line) +
")\n";
5443 std::to_string(line) +
")\n";
5456 std::to_string(line) +
")\n";
5460 }
else if(
is_from(value.type)) {
5463 std::to_string(line) +
")\n";
5476 std::to_string(line) +
")\n";
5492 "pop_unemployment trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5500 std::to_string(line) +
")\n";
5507 "relation trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5509 }
else if(
is_from(value.who)) {
5516 "relation = from trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5520 }
else if(
is_this(value.who)) {
5529 "relation = this trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5533 }
else if(value.who.length() == 3) {
5541 "relation trigger supplied with an invalid tag \"" + std::string(value.who) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5545 "relation trigger supplied with an invalid tag \"" + std::string(value.who) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5560 "upper_house trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5568 "upper_house trigger supplied with an invalid ideology \"" + std::string(value.ideology) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5587 std::to_string(line) +
")\n";
5593 err.
accumulated_errors +=
"unemployment_by_type trigger supplied with an invalid pop type \"" + std::string(value.type) +
"\" (" + err.
file_name +
", line " +
5594 std::to_string(line) +
")\n";
5602 if(value.province_id != 0) {
5618 "party_loyalty trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5626 err.
accumulated_errors +=
"party_loyalty trigger supplied with an invalid province id " + std::to_string(value.province_id) +
" (" + err.
file_name +
", line " +
5627 std::to_string(line) +
")\n";
5642 "party_loyalty trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5650 "party_loyalty trigger supplied with an invalid ideology \"" + std::string(value.ideology) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5659 "can_build_in_province trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5661 }
else if(value.limit_to_world_greatest_level) {
5663 if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"railroad"))
5666 else if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"naval_base"))
5669 else if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"fort"))
5673 if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"railroad"))
5676 else if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"naval_base"))
5679 else if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"fort"))
5684 std::to_string(line) +
")\n";
5689 if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"railroad"))
5692 else if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"naval_base"))
5695 else if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"fort"))
5699 if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"railroad"))
5702 else if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"naval_base"))
5705 else if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"fort"))
5710 std::to_string(line) +
")\n";
5719 std::to_string(line) +
")\n";
5721 }
else if(value.in_whole_capital_state) {
5722 if(value.limit_to_world_greatest_level)
5729 if(value.limit_to_world_greatest_level)
5741 std::to_string(line) +
")\n";
5743 }
else if(value.in_whole_capital_state) {
5744 if(value.limit_to_world_greatest_level)
5751 if(value.limit_to_world_greatest_level)
5761 if(value.pop_type_list.size() > 1 || value.pop_type_list.size() == 0) {
5763 ", line " + std::to_string(line) +
")\n";
5775 "work_available trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5783 std::to_string(line) +
")\n";
5793 std::to_string(line) +
")\n";
5795 }
else if(!value.opt_) {
5797 std::to_string(line) +
")\n";
5806 std::string str_label{label};
5822 err.
accumulated_errors +=
"named technology trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5840 err.
accumulated_errors +=
"named invention trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5855 "named ideology trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5872 "named pop type trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5883 "named commodity trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5899 "named issue option trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5917 "named issue trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5924 "named issue trigger used with an invalid option name (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5940 "named reform trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5947 "named reform trigger used with an invalid option name (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5952 "unknown key: " + str_label +
" found in trigger(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5958void tr_scope_and(token_generator& gen, error_handler& err, trigger_building_context& context);
5959void tr_scope_or(token_generator& gen, error_handler& err, trigger_building_context& context);
5960void tr_scope_not(token_generator& gen, error_handler& err, trigger_building_context& context);
5967void tr_scope_any_core(token_generator& gen, error_handler& err, trigger_building_context& context);
5968void tr_scope_all_core(token_generator& gen, error_handler& err, trigger_building_context& context);
5969void tr_scope_any_state(token_generator& gen, error_handler& err, trigger_building_context& context);
5970void tr_scope_any_substate(token_generator& gen, error_handler& err, trigger_building_context& context);
5972void tr_scope_any_pop(token_generator& gen, error_handler& err, trigger_building_context& context);
5973void tr_scope_owner(token_generator& gen, error_handler& err, trigger_building_context& context);
5974void tr_scope_controller(token_generator& gen, error_handler& err, trigger_building_context& context);
5975void tr_scope_location(token_generator& gen, error_handler& err, trigger_building_context& context);
5976void tr_scope_country(token_generator& gen, error_handler& err, trigger_building_context& context);
5977void tr_capital_scope(token_generator& gen, error_handler& err, trigger_building_context& context);
5978void tr_scope_this(token_generator& gen, error_handler& err, trigger_building_context& context);
5979void tr_scope_from(token_generator& gen, error_handler& err, trigger_building_context& context);
5980void tr_scope_sea_zone(token_generator& gen, error_handler& err, trigger_building_context& context);
5982void tr_scope_overlord(token_generator& gen, error_handler& err, trigger_building_context& context);
5983void tr_scope_sphere_owner(token_generator& gen, error_handler& err, trigger_building_context& context);
5984void tr_scope_independence(token_generator& gen, error_handler& err, trigger_building_context& context);
5986void tr_crisis_state_scope(token_generator& gen, error_handler& err, trigger_building_context& context);
5987void tr_state_scope(token_generator& gen, error_handler& err, trigger_building_context& context);
5988void tr_scope_variable(std::string_view name, token_generator& gen, error_handler& err, trigger_building_context& context);
5990void tr_scope_any_country(token_generator& gen, error_handler& err, trigger_building_context& context);
5991void tr_scope_all_state(token_generator& gen, error_handler& err, trigger_building_context& context);
5992void tr_scope_all_substate(token_generator& gen, error_handler& err, trigger_building_context& context);
5994void tr_scope_all_pop(token_generator& gen, error_handler& err, trigger_building_context& context);
6002dcon::trigger_key
make_trigger(token_generator& gen, error_handler& err, trigger_building_context& context);
6018dcon::value_modifier_key
make_value_modifier(token_generator& gen, error_handler& err, trigger_building_context& context);
6029 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"state")) {
6031 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"province")) {
6033 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"pop")) {
6035 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"rebel")) {
6037 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"none")) {
6041 "unknown parameter type " + std::string(value) +
" defined for a scripted trigger (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
6045 "parameters for a scripted trigger must be given first (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
6052 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"state")) {
6054 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"province")) {
6056 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"pop")) {
6058 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"rebel")) {
6060 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"none")) {
6064 "unknown parameter type " + std::string(value) +
" defined for a scripted trigger (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
6068 "parameters for a scripted trigger must be given first (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
6075 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"state")) {
6077 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"province")) {
6079 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"pop")) {
6081 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"rebel")) {
6083 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"none")) {
6087 "unknown parameter type " + std::string(value) +
" defined for a scripted trigger (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
6091 "parameters for a scripted trigger must be given first (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
6096void make_stored_trigger(std::string_view tag, token_generator& gen, error_handler& err, scenario_building_context& context);
std::string accumulated_errors
dcon::modifier_id get_province_immigrator_modifier(sys::state &state)
dcon::modifier_id get_province_selector_modifier(sys::state &state)
uint32_t tag_to_int(char first, char second, char third)
uint16_t association_to_trigger_code(association_type a)
bool is_integer(char const *start, char const *end)
void tr_scope_all_core(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_any_substate(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_any_owned_province(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_crisis_state_scope(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_any_core(token_generator &gen, error_handler &err, trigger_building_context &context)
bool is_this(std::string_view value)
bool is_reb(std::string_view value)
dcon::trigger_key make_trigger(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_all_state(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_or(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_owner(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_every_country(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_any_sphere_member(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_all_pop(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_all_substate(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_any_country(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_sea_zone(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_cultural_union(token_generator &gen, error_handler &err, trigger_building_context &context)
bool is_from(std::string_view value)
constexpr bool scope_has_any_all(uint16_t code)
void tr_state_scope(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_not(token_generator &gen, error_handler &err, trigger_building_context &context)
void make_stored_trigger(std::string_view name, token_generator &gen, error_handler &err, scenario_building_context &context)
dcon::value_modifier_key make_value_modifier(token_generator &gen, error_handler &err, trigger_building_context &context)
int32_t simplify_trigger(uint16_t *source)
void tr_scope_variable(std::string_view name, token_generator &gen, error_handler &err, trigger_building_context &context)
bool scope_is_empty(uint16_t const *source)
void tr_scope_and(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_capital_scope(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_overlord(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_any_state(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_any_greater_power(token_generator &gen, error_handler &err, trigger_building_context &context)
bool is_fixed_token_ci(char const *start, char const *end, char const (&t)[N])
uint16_t association_to_bool_code(association_type a)
void tr_scope_this(token_generator &gen, error_handler &err, trigger_building_context &context)
int32_t parse_int(std::string_view content, int32_t line, error_handler &err)
void tr_scope_country(token_generator &gen, error_handler &err, trigger_building_context &context)
bool parse_bool(std::string_view content, int32_t, error_handler &)
uint16_t association_to_le_trigger_code(association_type a)
void tr_scope_controller(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_any_neighbor_province(token_generator &gen, error_handler &err, trigger_building_context &context)
uint16_t invert_association(uint16_t a)
void tr_scope_from(token_generator &gen, error_handler &err, trigger_building_context &context)
float parse_float(std::string_view content, int32_t line, error_handler &err)
void tr_scope_sphere_owner(token_generator &gen, error_handler &err, trigger_building_context &context)
bool scope_has_single_member(uint16_t const *source)
void tr_scope_war_countries(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_any_pop(token_generator &gen, error_handler &err, trigger_building_context &context)
uint32_t parse_uint(std::string_view content, int32_t line, error_handler &err)
std::string slot_contents_to_string(trigger::slot_contents v)
void tr_flashpoint_tag_scope(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_all_war_countries(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_any_neighbor_country(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_all_sphere_member(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_independence(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_location(token_generator &gen, error_handler &err, trigger_building_context &context)
void tr_scope_all_greater_power(token_generator &gen, error_handler &err, trigger_building_context &context)
void invert_trigger(uint16_t *source)
void make_value_modifier_segment(token_generator &gen, error_handler &err, trigger_building_context &context)
dcon::text_key find_or_add_key(sys::state &state, std::string_view key, bool as_unicode)
constexpr uint16_t no_payload
constexpr uint16_t x_provinces_in_variable_region
constexpr uint16_t association_gt
constexpr uint16_t association_le
constexpr uint16_t association_ge
constexpr uint16_t association_lt
constexpr uint16_t x_neighbor_province_scope
constexpr uint16_t association_ne
constexpr uint16_t association_eq
ankerl::unordered_dense::map< std::string, dcon::state_definition_id > map_of_state_names
ankerl::unordered_dense::map< std::string, dcon::culture_group_id > map_of_culture_group_names
ankerl::unordered_dense::map< std::string, dcon::national_focus_id > map_of_national_focuses
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
ankerl::unordered_dense::map< std::string, dcon::reform_id > map_of_reforms
std::vector< dcon::province_id > original_id_to_prov_id_map
ankerl::unordered_dense::map< std::string, dcon::issue_id > map_of_iissues
ankerl::unordered_dense::map< std::string, pending_crime_content > map_of_crimes
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< std::string, dcon::region_id > map_of_region_names
ankerl::unordered_dense::map< std::string, std::vector< saved_stored_condition > > map_of_stored_triggers
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
void finish(scenario_building_context const &)
void main_parameter(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void this_parameter(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void from_parameter(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void finish(trigger_building_context &)
bool in_whole_capital_state
bool limit_to_world_greatest_level
std::string_view building
void finish(trigger_building_context &)
bool limit_to_world_greatest_level
void finish(trigger_building_context &)
bool in_whole_capital_state
bool limit_to_world_greatest_level
void value(association_type t, float v, error_handler &err, int32_t line, trigger_building_context &context)
void finish(trigger_building_context &)
void finish(trigger_building_context &)
void value(association_type t, int32_t v, error_handler &err, int32_t line, trigger_building_context &context)
void finish(trigger_building_context &)
std::string_view ideology
void value(association_type t, float v, error_handler &err, int32_t line, trigger_building_context &context)
dcon::ideology_id ideology_
void ideology(association_type t, std::string_view v, error_handler &err, int32_t line, trigger_building_context &context)
void name(association_type t, std::string_view v, error_handler &err, int32_t line, trigger_building_context &context)
void finish(trigger_building_context &)
void finish(trigger_building_context &)
dcon::ideology_id ideology_
void position(association_type t, std::string_view v, error_handler &err, int32_t line, trigger_building_context &context)
dcon::issue_option_id opt_
void ideology(association_type t, std::string_view v, error_handler &err, int32_t line, trigger_building_context &context)
void finish(trigger_building_context &)
void value(association_type t, float v, error_handler &err, int32_t line, trigger_building_context &context)
void value(association_type t, int32_t v, error_handler &err, int32_t line, trigger_building_context &context)
void finish(trigger_building_context &)
void value(association_type t, float v, error_handler &err, int32_t line, trigger_building_context &context)
void finish(trigger_building_context &)
std::string_view ideology
void finish(trigger_building_context &)
void value(association_type t, float v, error_handler &err, int32_t line, trigger_building_context &context)
void finish(trigger_building_context &)
std::vector< dcon::pop_type_id > pop_type_list
void worker(association_type, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void poor_tax(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void is_accepted_culture(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void any_value(std::string_view label, association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void num_of_allies(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void tech_school(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void empty(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void has_recently_lost_war(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void poor_strata_everyday_needs(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void ruling_party_ideology(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void truce_with(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void political_movement(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void life_rating(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void has_country_modifier(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void substate_of(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void is_state_capital(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void plurality(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void strata(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void controlled_by(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void pop_unemployment(tr_pop_unemployment const &value, error_handler &err, int32_t line, trigger_building_context &context)
void can_build_factory_in_capital_state(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void average_militancy(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void minorities(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void is_cultural_union(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void blockade(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void stronger_army_than(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void has_empty_adjacent_province(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void rich_strata_everyday_needs(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void can_build_factory(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void trade_goods_in_state(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void is_ideology_enabled(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void nationalism(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void rebel_power_fraction(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void have_core_in(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void badboy(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void part_of_sphere(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void total_amount_of_ships(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void cash_reserves(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void is_claim_crisis(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void num_of_revolts(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void has_pop_religion(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void num_of_vassals(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void poor_strata_militancy(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void is_liberation_crisis(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void relation(tr_relation const &value, error_handler &err, int32_t line, trigger_building_context &context)
void world_wars_enabled(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void finish(trigger_building_context &)
void has_cultural_sphere(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void middle_tax(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void has_recent_imigration(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void test(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void militancy(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void is_slave(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void poor_strata_life_needs(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void brigades_compare(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void num_of_cities(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void great_wars_enabled(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void unemployment_by_type(tr_unemployment_by_type const &value, error_handler &err, int32_t line, trigger_building_context &context)
void can_build_in_province(tr_can_build_in_province const &value, error_handler &err, int32_t line, trigger_building_context &context)
void owns(association_type a, std::string_view v, error_handler &err, int32_t line, trigger_building_context &context)
void crisis_exist(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void check_variable(tr_check_variable const &value, error_handler &err, int32_t line, trigger_building_context &context)
void trade_goods(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void civilized(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void in_sphere(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void average_consciousness(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void industrial_score(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void this_culture_union(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void rich_strata_luxury_needs(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void can_nationalize(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void party_position(tr_party_position const &value, error_handler &err, int32_t line, trigger_building_context &context)
void is_overseas(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void religion(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void is_vassal(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void pop_majority_religion(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void everyday_needs(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void constructing_cb(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void party_name(tr_party_name const &value, error_handler &err, int32_t line, trigger_building_context &context)
void unit_has_leader(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void war_exhaustion(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void civilization_progress(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void is_primary_culture(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void is_capital(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void party_loyalty(tr_party_loyalty const &value, error_handler &err, int32_t line, trigger_building_context &context)
void military_access(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void is_colonial(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void has_country_flag(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void vassal_of(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void unit_in_battle(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void units_in_province(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void middle_strata_everyday_needs(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void is_core(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void upper_house(tr_upper_house const &value, error_handler &err, int32_t line, trigger_building_context &context)
void revanchism(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void always(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void constructing_cb_discovered(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void is_independant(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void is_disarmed(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void culture_group(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void constructing_cb_progress(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void rich_strata_militancy(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void money(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void crisis_temperature(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void neighbour(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void num_of_vassals_no_substates(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void can_build_railway_in_capital(tr_can_build_railway_in_capital const &value, error_handler &err, int32_t line, trigger_building_context &context)
void social_movement_strength(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void total_num_of_ports(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void number_of_states(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void total_pops(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void controls(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void is_sphere_leader_of(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void has_leader(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void political_movement_strength(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void is_possible_vassal(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void primary_culture(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void someone_can_form_union_tag(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void literacy(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void alliance_with(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void big_producer(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void culture(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void war_with(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void invention(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void year(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void month(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void exists(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void is_substate(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void ai(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void terrain(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void is_our_vassal(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void administration_spending(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void casus_belli(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void state_id(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void has_factories(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void accepted_culture(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void controlled_by_rebels(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void produces(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void has_national_focus(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void has_pop_type(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void election(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void social_movement(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void has_unclaimed_cores(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void has_empty_adjacent_state(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void colonial_nation(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void pop_majority_ideology(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void province_id(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void num_of_substates(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void luxury_needs(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void in_default(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void work_available(tr_work_available const &value, error_handler &err, int32_t line, trigger_building_context &context)
void province_control_days(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void education_spending(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void has_crime(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void num_of_ports(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void military_score(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void total_sunk_by_us(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void agree_with_ruling_party(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void culture_has_union_tag(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void has_national_minority(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void war(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void rich_tax_above_poor(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void port(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void can_build_fort_in_capital(tr_can_build_fort_in_capital const &value, error_handler &err, int32_t line, trigger_building_context &context)
void factor(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void rich_tax(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void is_greater_power(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void pop_majority_culture(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void middle_strata_life_needs(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void rich_strata_life_needs(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void is_secondary_power(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void can_create_vassals(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void is_mobilised(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void crime_higher_than_education(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void is_coastal(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void owned_by(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void involved_in_crisis(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void country_units_in_state(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void ruling_party(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void is_next_reform(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void has_global_flag(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void consciousness(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void region(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void war_score(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void lost_national(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void national_provinces_occupied(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void constructing_cb_type(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void flashpoint_tension(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void has_building(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void has_pop_culture(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void unemployment(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void mobilisation_size(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void government(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void is_blockaded(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void middle_strata_luxury_needs(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void total_amount_of_divisions(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void diplomatic_influence(tr_diplomatic_influence const &value, error_handler &err, int32_t line, trigger_building_context &context)
void continent(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void poor_strata_luxury_needs(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void has_culture_core(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void has_province_modifier(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void is_state_religion(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void social_reform_want(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void tag(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void nationalvalue(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void has_flashpoint(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void pop_majority_issue(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void social_spending(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void recruited_percentage(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void military_spending(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void is_canal_enabled(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void middle_strata_militancy(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void is_releasable_vassal(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void corruption(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void life_needs(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void rank(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void capital(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void has_faction(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void prestige(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void political_reform_want(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void revolt_percentage(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
trigger::slot_contents this_slot
trigger::slot_contents from_slot
std::vector< uint16_t > compiled_trigger
trigger::slot_contents main_slot
scenario_building_context & outer_context
trigger_building_context(scenario_building_context &outer_context, trigger::slot_contents main_slot, trigger::slot_contents this_slot, trigger::slot_contents from_slot)
void add_float_to_payload(float f)
void add_int32_t_to_payload(int32_t i)
std::optional< float > factor
void years(association_type, float value, error_handler &err, int32_t line, trigger_building_context &context)
void months(association_type, float value, error_handler &err, int32_t line, trigger_building_context &context)
void group(value_modifier_definition const &value, error_handler &err, int32_t line, trigger_building_context &context)
void finish(trigger_building_context &)