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";
2663 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2669 if(
is_integer(v.data(), v.data() + v.length())) {
2677 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2684 "owns trigger given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2693 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2702 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2707 "owns trigger given an invalid value (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2716 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2723 "controls trigger given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2743 err.
accumulated_errors +=
"is_core = this trigger used in an incorrect scope type " +
2745 std::to_string(line) +
")\n";
2753 err.
accumulated_errors +=
"is_core = from trigger used in an incorrect scope type " +
2755 std::to_string(line) +
")\n";
2766 err.
accumulated_errors +=
"is_core = this trigger used in an incorrect scope type " +
2768 std::to_string(line) +
")\n";
2775 err.
accumulated_errors +=
"is_core = from trigger used in an incorrect scope type " +
2777 std::to_string(line) +
")\n";
2786 std::to_string(line) +
")\n";
2789 }
else if(
is_integer(value.data(), value.data() + value.length())) {
2791 auto int_value =
parse_int(value, line, err);
2797 "owns trigger given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2803 std::to_string(line) +
")\n";
2814 "is_core trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2822 "is_core trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2830 "is_core trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2834 "is_core trigger supplied with an invalid argument \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2841 err.
accumulated_errors +=
"num_of_revolts trigger used in an incorrect scope type " +
2843 std::to_string(line) +
")\n";
2852 err.
accumulated_errors +=
"revolt_percentage trigger used in an incorrect scope type " +
2854 std::to_string(line) +
")\n";
2875 err.
accumulated_errors +=
"num_of_cities = this trigger used in an incorrect scope type " +
2877 std::to_string(line) +
")\n";
2885 err.
accumulated_errors +=
"num_of_cities = from trigger used in an incorrect scope type " +
2887 std::to_string(line) +
")\n";
2896 std::to_string(line) +
")\n";
2906 std::to_string(line) +
")\n";
2917 std::to_string(line) +
")\n";
2926 err.
accumulated_errors +=
"num_of_vassals trigger used in an incorrect scope type " +
2928 std::to_string(line) +
")\n";
2949 err.
accumulated_errors +=
"owned_by = this trigger used in an incorrect scope type " +
2951 std::to_string(line) +
")\n";
2959 err.
accumulated_errors +=
"owned_by = from trigger used in an incorrect scope type " +
2961 std::to_string(line) +
")\n";
2964 }
else if(value.length() == 3) {
2971 "owned_by trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2975 "owned_by trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2993 err.
accumulated_errors +=
"owned_by = this trigger used in an incorrect scope type " +
2995 std::to_string(line) +
")\n";
3003 err.
accumulated_errors +=
"owned_by = from trigger used in an incorrect scope type " +
3005 std::to_string(line) +
")\n";
3008 }
else if(value.length() == 3) {
3015 "owned_by trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3019 "owned_by trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3024 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3038 std::to_string(line) +
")\n";
3041 }
else if(value.length() == 3) {
3048 "exists trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3053 "exists trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3068 err.
accumulated_errors +=
"has_country_flag trigger used in an incorrect scope type " +
3070 std::to_string(line) +
")\n";
3077 if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"project_alice")) {
3093 err.
accumulated_errors +=
"continent = this trigger used in an incorrect scope type " +
3095 std::to_string(line) +
")\n";
3103 err.
accumulated_errors +=
"continent = from trigger used in an incorrect scope type " +
3105 std::to_string(line) +
")\n";
3114 "continent trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3123 err.
accumulated_errors +=
"continent = this trigger used in an incorrect scope type " +
3125 std::to_string(line) +
")\n";
3133 err.
accumulated_errors +=
"continent = from trigger used in an incorrect scope type " +
3135 std::to_string(line) +
")\n";
3144 "continent trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3153 err.
accumulated_errors +=
"continent = this trigger used in an incorrect scope type " +
3155 std::to_string(line) +
")\n";
3163 err.
accumulated_errors +=
"continent = from trigger used in an incorrect scope type " +
3165 std::to_string(line) +
")\n";
3174 "continent trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3183 err.
accumulated_errors +=
"continent = this trigger used in an incorrect scope type " +
3185 std::to_string(line) +
")\n";
3193 err.
accumulated_errors +=
"continent = from trigger used in an incorrect scope type " +
3195 std::to_string(line) +
")\n";
3204 "continent trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3210 std::to_string(line) +
")\n";
3231 err.
accumulated_errors +=
"casus_belli = this trigger used in an incorrect scope type " +
3233 std::to_string(line) +
")\n";
3241 err.
accumulated_errors +=
"casus_belli = from trigger used in an incorrect scope type " +
3243 std::to_string(line) +
")\n";
3246 }
else if(value.length() == 3) {
3253 "casus_belli trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3257 "casus_belli trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3263 std::to_string(line) +
")\n";
3285 err.
accumulated_errors +=
"military_access = this trigger used in an incorrect scope type " +
3287 std::to_string(line) +
")\n";
3295 err.
accumulated_errors +=
"military_access = from trigger used in an incorrect scope type " +
3297 std::to_string(line) +
")\n";
3300 }
else if(value.length() == 3) {
3307 "military_access trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3311 "military_access trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3315 err.
accumulated_errors +=
"military_access trigger used in an incorrect scope type " +
3317 std::to_string(line) +
")\n";
3338 err.
accumulated_errors +=
"prestige = this trigger used in an incorrect scope type " +
3340 std::to_string(line) +
")\n";
3348 err.
accumulated_errors +=
"prestige = from trigger used in an incorrect scope type " +
3350 std::to_string(line) +
")\n";
3360 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3377 "has_building trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3384 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"railroad")) {
3387 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"naval_base")) {
3390 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"bank")) {
3393 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"university")) {
3396 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"factory")) {
3399 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"province_selector")) {
3402 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"immigrator")
3403 ||
is_fixed_token_ci(value.data(), value.data() + value.length(),
"immigrator_selector")
3404 ||
is_fixed_token_ci(value.data(), value.data() + value.length(),
"province_immigrator")) {
3413 "has_building trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3419 std::to_string(line) +
")\n";
3430 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3441 std::to_string(line) +
")\n";
3455 err.
accumulated_errors +=
"has_country_modifier trigger used in an incorrect scope type " +
3457 std::to_string(line) +
")\n";
3462 err.
accumulated_errors +=
"has_country_modifier trigger supplied with an invalid modifier \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
3463 std::to_string(line) +
")\n";
3473 err.
accumulated_errors +=
"has_province_modifier trigger used in an incorrect scope type " +
3475 std::to_string(line) +
")\n";
3480 err.
accumulated_errors +=
"has_province_modifier trigger supplied with an invalid modifier \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
3481 std::to_string(line) +
")\n";
3497 std::to_string(line) +
")\n";
3503 "nationalvalue trigger supplied with an invalid modifier \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3516 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3529 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3535 "region trigger not supplied with a state name (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3551 std::to_string(line) +
")\n";
3564 std::to_string(line) +
")\n";
3567 }
else if(value.length() == 3) {
3574 "tag trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3578 "tag trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3594 std::to_string(line) +
")\n";
3603 std::to_string(line) +
")\n";
3606 }
else if(value.length() == 3) {
3612 err.
accumulated_errors +=
"tag trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3615 err.
accumulated_errors +=
"tag trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3631 std::to_string(line) +
")\n";
3640 std::to_string(line) +
")\n";
3643 }
else if(value.length() == 3) {
3649 err.
accumulated_errors +=
"tag trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3652 err.
accumulated_errors +=
"tag trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3656 if(value.length() == 3) {
3662 err.
accumulated_errors +=
"tag trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3665 err.
accumulated_errors +=
"tag trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3685 err.
accumulated_errors +=
"stronger_army_than = this trigger used in an incorrect scope type " +
3687 std::to_string(line) +
")\n";
3696 err.
accumulated_errors +=
"stronger_army_than = from trigger used in an incorrect scope type " +
3698 std::to_string(line) +
")\n";
3701 }
else if(value.length() == 3) {
3708 "stronger_army_than trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3712 "stronger_army_than trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3717 " (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3731 err.
accumulated_errors +=
"neighbour = this trigger used in an incorrect scope type " +
3733 std::to_string(line) +
")\n";
3744 err.
accumulated_errors +=
"neighbour = from trigger used in an incorrect scope type " +
3746 std::to_string(line) +
")\n";
3749 }
else if(value.length() == 3) {
3756 "neighbour trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3760 "neighbour trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3766 std::to_string(line) +
")\n";
3786 err.
accumulated_errors +=
"country_units_in_state = this trigger used in an incorrect scope type " +
3788 std::to_string(line) +
")\n";
3796 err.
accumulated_errors +=
"country_units_in_state = from trigger used in an incorrect scope type " +
3798 std::to_string(line) +
")\n";
3801 }
else if(value.length() == 3) {
3808 "country_units_in_state trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3812 "country_units_in_state trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3815 err.
accumulated_errors +=
"country_units_in_state trigger used in an incorrect scope type " +
3817 std::to_string(line) +
")\n";
3837 err.
accumulated_errors +=
"units_in_province = this trigger used in an incorrect scope type " +
3839 std::to_string(line) +
")\n";
3847 err.
accumulated_errors +=
"units_in_province = from trigger used in an incorrect scope type " +
3849 std::to_string(line) +
")\n";
3852 }
else if(
is_integer(value.data(), value.data() + value.length())) {
3855 }
else if(value.length() == 3) {
3862 "units_in_province trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3866 "units_in_province trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3869 err.
accumulated_errors +=
"units_in_province trigger used in an incorrect scope type " +
3871 std::to_string(line) +
")\n";
3891 err.
accumulated_errors +=
"war_with = this trigger used in an incorrect scope type " +
3893 std::to_string(line) +
")\n";
3901 err.
accumulated_errors +=
"war_with = from trigger used in an incorrect scope type " +
3903 std::to_string(line) +
")\n";
3906 }
else if(value.length() == 3) {
3913 "war_with trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3917 "war_with trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3922 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3957 err.
accumulated_errors +=
"has_national_focus given an invalid focus '" + std::string(value) +
"' (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3966 err.
accumulated_errors +=
"total_amount_of_divisions trigger used in an incorrect scope type " +
3968 std::to_string(line) +
")\n";
3980 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3991 std::to_string(line) +
")\n";
4002 std::to_string(line) +
")\n";
4017 err.
accumulated_errors +=
"ruling_party_ideology trigger used in an incorrect scope type " +
4019 std::to_string(line) +
")\n";
4024 err.
accumulated_errors +=
"ruling_party_ideology trigger supplied with an invalid ideology \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
4025 std::to_string(line) +
")\n";
4039 err.
accumulated_errors +=
"is_ideology_enabled trigger supplied with an invalid ideology \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
4040 std::to_string(line) +
")\n";
4050 err.
accumulated_errors +=
"political_reform_want trigger used in an incorrect scope type " +
4052 std::to_string(line) +
")\n";
4063 err.
accumulated_errors +=
"social_reform_want trigger used in an incorrect scope type " +
4065 std::to_string(line) +
")\n";
4075 err.
accumulated_errors +=
"total_amount_of_ships trigger used in an incorrect scope type " +
4077 std::to_string(line) +
")\n";
4090 std::to_string(line) +
")\n";
4101 std::to_string(line) +
")\n";
4117 err.
accumulated_errors +=
"is_state_religion trigger used in an incorrect scope type " +
4119 std::to_string(line) +
")\n";
4140 err.
accumulated_errors +=
"is_primary_culture = this trigger used in an incorrect scope type " +
4142 std::to_string(line) +
")\n";
4159 err.
accumulated_errors +=
"is_primary_culture = this trigger used in an incorrect scope type " +
4161 std::to_string(line) +
")\n";
4178 err.
accumulated_errors +=
"is_primary_culture = this trigger used in an incorrect scope type " +
4180 std::to_string(line) +
")\n";
4197 err.
accumulated_errors +=
"is_primary_culture = this trigger used in an incorrect scope type " +
4199 std::to_string(line) +
")\n";
4203 err.
accumulated_errors +=
"is_primary_culture = this trigger used in an incorrect scope type " +
4205 std::to_string(line) +
")\n";
4214 err.
accumulated_errors +=
"is_primary_culture (treated as primary_culture or culture) trigger used in an incorrect scope type " +
4231 err.
accumulated_errors +=
"is_primary_culture trigger used in an incorrect scope type " +
4233 std::to_string(line) +
")\n";
4254 err.
accumulated_errors +=
"is_accepted_culture = this trigger used in an incorrect scope type " +
4256 std::to_string(line) +
")\n";
4273 err.
accumulated_errors +=
"is_accepted_culture = this trigger used in an incorrect scope type " +
4275 std::to_string(line) +
")\n";
4292 err.
accumulated_errors +=
"is_accepted_culture = this trigger used in an incorrect scope type " +
4294 std::to_string(line) +
")\n";
4311 err.
accumulated_errors +=
"is_accepted_culture = this trigger used in an incorrect scope type " +
4313 std::to_string(line) +
")\n";
4317 err.
accumulated_errors +=
"is_accepted_culture = this trigger used in an incorrect scope type " +
4319 std::to_string(line) +
")\n";
4326 err.
accumulated_errors +=
"is_accepted_culture (treated as accepted_culture) trigger used in an incorrect scope type " +
4343 err.
accumulated_errors +=
"is_accepted_culture trigger used in an incorrect scope type " +
4345 std::to_string(line) +
")\n";
4360 std::to_string(line) +
")\n";
4381 err.
accumulated_errors +=
"in_sphere = this trigger used in an incorrect scope type " +
4383 std::to_string(line) +
")\n";
4391 err.
accumulated_errors +=
"in_sphere = from trigger used in an incorrect scope type " +
4393 std::to_string(line) +
")\n";
4396 }
else if(value.length() == 3) {
4403 "in_sphere trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4407 "in_sphere trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4413 std::to_string(line) +
")\n";
4435 err.
accumulated_errors +=
"produces trigger supplied with an invalid commodity \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4457 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";
4472 std::to_string(line) +
")\n";
4485 err.
accumulated_errors +=
"average_militancy trigger used in an incorrect scope type " +
4487 std::to_string(line) +
")\n";
4501 err.
accumulated_errors +=
"average_consciousness trigger used in an incorrect scope type " +
4503 std::to_string(line) +
")\n";
4517 err.
accumulated_errors +=
"is_next_reform trigger used in an incorrect scope type " +
4519 std::to_string(line) +
")\n";
4530 err.
accumulated_errors +=
"is_next_reform trigger used in an incorrect scope type " +
4532 std::to_string(line) +
")\n";
4537 err.
accumulated_errors +=
"is_next_reform trigger supplied with an invalid issue/reform \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
4538 std::to_string(line) +
")\n";
4546 err.
accumulated_errors +=
"rebel_power_fraction trigger used in an incorrect scope type " +
4548 std::to_string(line) +
")\n";
4560 err.
accumulated_errors +=
"recruited_percentage trigger used in an incorrect scope type " +
4562 std::to_string(line) +
")\n";
4575 err.
accumulated_errors +=
"has_culture_core trigger used in an incorrect scope type " +
4577 std::to_string(line) +
")\n";
4587 std::to_string(line) +
")\n";
4605 std::to_string(line) +
")\n";
4614 err.
accumulated_errors +=
"controlled_by_rebels trigger used in an incorrect scope type " +
4616 std::to_string(line) +
")\n";
4637 err.
accumulated_errors +=
"controlled_by = this trigger used in an incorrect scope type " +
4639 std::to_string(line) +
")\n";
4647 err.
accumulated_errors +=
"controlled_by = from trigger used in an incorrect scope type " +
4649 std::to_string(line) +
")\n";
4652 }
else if(
is_reb(value)) {
4660 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"owner")) {
4663 }
else if(value.length() == 3) {
4670 "controlled_by trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4674 "controlled_by trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4680 std::to_string(line) +
")\n";
4701 err.
accumulated_errors +=
"truce_with = this trigger used in an incorrect scope type " +
4703 std::to_string(line) +
")\n";
4711 err.
accumulated_errors +=
"truce_with = from trigger used in an incorrect scope type " +
4713 std::to_string(line) +
")\n";
4716 }
else if(value.length() == 3) {
4723 "truce_with trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4727 "truce_with trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4733 std::to_string(line) +
")\n";
4754 err.
accumulated_errors +=
"is_sphere_leader_of = this trigger used in an incorrect scope type " +
4756 std::to_string(line) +
")\n";
4764 err.
accumulated_errors +=
"is_sphere_leader_of = from trigger used in an incorrect scope type " +
4766 std::to_string(line) +
")\n";
4769 }
else if(value.length() == 3) {
4775 err.
accumulated_errors +=
"is_sphere_leader_of trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
4776 std::to_string(line) +
")\n";
4779 err.
accumulated_errors +=
"is_sphere_leader_of trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
4780 std::to_string(line) +
")\n";
4784 err.
accumulated_errors +=
"is_sphere_leader_of trigger used in an incorrect scope type " +
4786 std::to_string(line) +
")\n";
4807 err.
accumulated_errors +=
"constructing_cb = this trigger used in an incorrect scope type " +
4809 std::to_string(line) +
")\n";
4817 err.
accumulated_errors +=
"constructing_cb = from trigger used in an incorrect scope type " +
4819 std::to_string(line) +
")\n";
4822 }
else if(value.length() == 3) {
4829 "constructing_cb trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4833 "constructing_cb trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4837 err.
accumulated_errors +=
"constructing_cb trigger used in an incorrect scope type " +
4839 std::to_string(line) +
")\n";
4855 err.
accumulated_errors +=
"vassal_of = this trigger used in an incorrect scope type " +
4863 err.
accumulated_errors +=
"vassal_of = from trigger used in an incorrect scope type " +
4867 }
else if(value.length() == 3) {
4873 err.
accumulated_errors +=
"vassal_of trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4876 err.
accumulated_errors +=
"vassal_of trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4890 err.
accumulated_errors +=
"vassal_of = this trigger used in an incorrect scope type " +
4898 err.
accumulated_errors +=
"vassal_of = from trigger used in an incorrect scope type " +
4902 }
else if(value.length() == 3) {
4908 err.
accumulated_errors +=
"vassal_of trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4911 err.
accumulated_errors +=
"vassal_of trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4937 err.
accumulated_errors +=
"substate_of = this trigger used in an incorrect scope type " +
4939 std::to_string(line) +
")\n";
4947 err.
accumulated_errors +=
"substate_of = from trigger used in an incorrect scope type " +
4949 std::to_string(line) +
")\n";
4952 }
else if(value.length() == 3) {
4959 "substate_of trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4963 "substate_of trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4969 std::to_string(line) +
")\n";
4990 err.
accumulated_errors +=
"is_our_vassal = this trigger used in an incorrect scope type " +
4992 std::to_string(line) +
")\n";
5000 err.
accumulated_errors +=
"is_our_vassal = from trigger used in an incorrect scope type " +
5002 std::to_string(line) +
")\n";
5005 }
else if(value.length() == 3) {
5012 "is_our_vassal trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5016 "is_our_vassal trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5034 err.
accumulated_errors +=
"is_our_vassal = this trigger used in an incorrect scope type " +
5036 std::to_string(line) +
")\n";
5044 err.
accumulated_errors +=
"is_our_vassal = from trigger used in an incorrect scope type " +
5046 std::to_string(line) +
")\n";
5049 }
else if(value.length() == 3) {
5056 "is_our_vassal trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5060 "is_our_vassal trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5066 std::to_string(line) +
")\n";
5087 err.
accumulated_errors +=
"this_culture_union = this trigger used in an incorrect scope type " +
5089 std::to_string(line) +
")\n";
5092 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"this_union")) {
5106 err.
accumulated_errors +=
"this_culture_union = this_union trigger used in an incorrect scope type " +
5108 std::to_string(line) +
")\n";
5116 err.
accumulated_errors +=
"this_culture_union = from trigger used in an incorrect scope type " +
5118 std::to_string(line) +
")\n";
5121 }
else if(value.length() == 3) {
5127 err.
accumulated_errors +=
"this_culture_union trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
5128 std::to_string(line) +
")\n";
5131 err.
accumulated_errors +=
"this_culture_union trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
5132 std::to_string(line) +
")\n";
5136 err.
accumulated_errors +=
"this_culture_union trigger used in an incorrect scope type " +
5138 std::to_string(line) +
")\n";
5159 err.
accumulated_errors +=
"alliance_with = this trigger used in an incorrect scope type " +
5161 std::to_string(line) +
")\n";
5169 err.
accumulated_errors +=
"alliance_with = from trigger used in an incorrect scope type " +
5171 std::to_string(line) +
")\n";
5174 }
else if(value.length() == 3) {
5181 "alliance_with trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5185 "alliance_with trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5191 std::to_string(line) +
")\n";
5213 err.
accumulated_errors +=
"in_default = this trigger used in an incorrect scope type " +
5215 std::to_string(line) +
")\n";
5222 err.
accumulated_errors +=
"in_default = from trigger used in an incorrect scope type " +
5224 std::to_string(line) +
")\n";
5227 }
else if(value.length() == 3) {
5233 err.
accumulated_errors +=
"in_default trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5236 err.
accumulated_errors +=
"in_default trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5262 err.
accumulated_errors +=
"industrial_score = this trigger used in an incorrect scope type " +
5264 std::to_string(line) +
")\n";
5272 err.
accumulated_errors +=
"industrial_score = from trigger used in an incorrect scope type " +
5274 std::to_string(line) +
")\n";
5277 }
else if(!
parsers::is_integer(value.data(), value.data() + value.length()) && value.length() == 3) {
5283 err.
accumulated_errors +=
"industrial_score trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5290 err.
accumulated_errors +=
"industrial_score trigger used in an incorrect scope type " +
5292 std::to_string(line) +
")\n";
5313 err.
accumulated_errors +=
"military_score = this trigger used in an incorrect scope type " +
5315 std::to_string(line) +
")\n";
5323 err.
accumulated_errors +=
"military_score = from trigger used in an incorrect scope type " +
5325 std::to_string(line) +
")\n";
5328 }
else if(!
parsers::is_integer(value.data(), value.data() + value.length()) && value.length() == 3) {
5334 err.
accumulated_errors +=
"military_score trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5341 err.
accumulated_errors +=
"military_score trigger used in an incorrect scope type " +
5343 std::to_string(line) +
")\n";
5349 dcon::stored_trigger_id st;
5350 for(
auto r : it->second) {
5358 err.
accumulated_errors +=
"test trigger found multiple matching possibilities for the name " +
5359 std::string(value) +
" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5368 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";
5371 err.
accumulated_errors +=
"test trigger used with an unknown scripted trigger " + std::string(value) +
" (" + err.
file_name +
", line " +
5372 std::to_string(line) +
")\n";
5376 if(value.length() == 3) {
5382 err.
accumulated_errors +=
"is_possible_vassal trigger used in an incorrect scope type " +
5384 std::to_string(line) +
")\n";
5389 err.
accumulated_errors +=
"is_possible_vassal trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
5390 std::to_string(line) +
")\n";
5394 "is_possible_vassal trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5401 err.
accumulated_errors +=
"diplomatic_influence trigger used in an incorrect scope type " +
5403 std::to_string(line) +
")\n";
5405 }
else if(
is_from(value.who)) {
5413 err.
accumulated_errors +=
"diplomatic_influence trigger used in an incorrect scope type " +
5415 std::to_string(line) +
")\n";
5419 }
else if(
is_this(value.who)) {
5427 err.
accumulated_errors +=
"diplomatic_influence trigger used in an incorrect scope type " +
5429 std::to_string(line) +
")\n";
5433 }
else if(value.who.length() == 3) {
5440 err.
accumulated_errors +=
"diplomatic_influence trigger supplied with an invalid tag \"" + std::string(value.who) +
"\" (" + err.
file_name +
", line " +
5441 std::to_string(line) +
")\n";
5444 err.
accumulated_errors +=
"diplomatic_influence trigger supplied with an invalid tag \"" + std::string(value.who) +
"\" (" + err.
file_name +
", line " +
5445 std::to_string(line) +
")\n";
5453 std::to_string(line) +
")\n";
5466 std::to_string(line) +
")\n";
5470 }
else if(
is_from(value.type)) {
5473 std::to_string(line) +
")\n";
5486 std::to_string(line) +
")\n";
5502 "pop_unemployment trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5510 std::to_string(line) +
")\n";
5517 "relation trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5519 }
else if(
is_from(value.who)) {
5526 "relation = from trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5530 }
else if(
is_this(value.who)) {
5539 "relation = this trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5543 }
else if(value.who.length() == 3) {
5551 "relation trigger supplied with an invalid tag \"" + std::string(value.who) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5555 "relation trigger supplied with an invalid tag \"" + std::string(value.who) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5570 "upper_house trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5578 "upper_house trigger supplied with an invalid ideology \"" + std::string(value.ideology) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5597 std::to_string(line) +
")\n";
5603 err.
accumulated_errors +=
"unemployment_by_type trigger supplied with an invalid pop type \"" + std::string(value.type) +
"\" (" + err.
file_name +
", line " +
5604 std::to_string(line) +
")\n";
5612 if(value.province_id != 0) {
5628 "party_loyalty trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5636 err.
accumulated_errors +=
"party_loyalty trigger supplied with an invalid province id " + std::to_string(value.province_id) +
" (" + err.
file_name +
", line " +
5637 std::to_string(line) +
")\n";
5652 "party_loyalty trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5660 "party_loyalty trigger supplied with an invalid ideology \"" + std::string(value.ideology) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5669 "can_build_in_province trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5671 }
else if(value.limit_to_world_greatest_level) {
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"))
5683 if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"railroad"))
5686 else if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"naval_base"))
5689 else if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"fort"))
5694 std::to_string(line) +
")\n";
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"))
5709 if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"railroad"))
5712 else if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"naval_base"))
5715 else if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"fort"))
5720 std::to_string(line) +
")\n";
5729 std::to_string(line) +
")\n";
5731 }
else if(value.in_whole_capital_state) {
5732 if(value.limit_to_world_greatest_level)
5739 if(value.limit_to_world_greatest_level)
5751 std::to_string(line) +
")\n";
5753 }
else if(value.in_whole_capital_state) {
5754 if(value.limit_to_world_greatest_level)
5761 if(value.limit_to_world_greatest_level)
5771 if(value.pop_type_list.size() > 1 || value.pop_type_list.size() == 0) {
5773 ", line " + std::to_string(line) +
")\n";
5785 "work_available trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5793 std::to_string(line) +
")\n";
5803 std::to_string(line) +
")\n";
5805 }
else if(!value.opt_) {
5807 std::to_string(line) +
")\n";
5816 std::string str_label{label};
5832 err.
accumulated_errors +=
"named technology trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5850 err.
accumulated_errors +=
"named invention trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5865 "named ideology trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5882 "named pop type trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5893 "named commodity trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5909 "named issue option trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5927 "named issue trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5934 "named issue trigger used with an invalid option name (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5950 "named reform trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5957 "named reform trigger used with an invalid option name (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5962 "unknown key: " + str_label +
" found in trigger(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5968void tr_scope_and(token_generator& gen, error_handler& err, trigger_building_context& context);
5969void tr_scope_or(token_generator& gen, error_handler& err, trigger_building_context& context);
5970void tr_scope_not(token_generator& gen, error_handler& err, trigger_building_context& context);
5977void tr_scope_any_core(token_generator& gen, error_handler& err, trigger_building_context& context);
5978void tr_scope_all_core(token_generator& gen, error_handler& err, trigger_building_context& context);
5979void tr_scope_any_state(token_generator& gen, error_handler& err, trigger_building_context& context);
5980void tr_scope_any_substate(token_generator& gen, error_handler& err, trigger_building_context& context);
5982void tr_scope_any_pop(token_generator& gen, error_handler& err, trigger_building_context& context);
5983void tr_scope_owner(token_generator& gen, error_handler& err, trigger_building_context& context);
5984void tr_scope_controller(token_generator& gen, error_handler& err, trigger_building_context& context);
5985void tr_scope_location(token_generator& gen, error_handler& err, trigger_building_context& context);
5986void tr_scope_country(token_generator& gen, error_handler& err, trigger_building_context& context);
5987void tr_capital_scope(token_generator& gen, error_handler& err, trigger_building_context& context);
5988void tr_scope_this(token_generator& gen, error_handler& err, trigger_building_context& context);
5989void tr_scope_from(token_generator& gen, error_handler& err, trigger_building_context& context);
5990void tr_scope_sea_zone(token_generator& gen, error_handler& err, trigger_building_context& context);
5992void tr_scope_overlord(token_generator& gen, error_handler& err, trigger_building_context& context);
5993void tr_scope_sphere_owner(token_generator& gen, error_handler& err, trigger_building_context& context);
5994void tr_scope_independence(token_generator& gen, error_handler& err, trigger_building_context& context);
5996void tr_crisis_state_scope(token_generator& gen, error_handler& err, trigger_building_context& context);
5997void tr_state_scope(token_generator& gen, error_handler& err, trigger_building_context& context);
5998void tr_scope_variable(std::string_view name, token_generator& gen, error_handler& err, trigger_building_context& context);
6000void tr_scope_any_country(token_generator& gen, error_handler& err, trigger_building_context& context);
6001void tr_scope_all_state(token_generator& gen, error_handler& err, trigger_building_context& context);
6002void tr_scope_all_substate(token_generator& gen, error_handler& err, trigger_building_context& context);
6004void tr_scope_all_pop(token_generator& gen, error_handler& err, trigger_building_context& context);
6012dcon::trigger_key
make_trigger(token_generator& gen, error_handler& err, trigger_building_context& context);
6028dcon::value_modifier_key
make_value_modifier(token_generator& gen, error_handler& err, trigger_building_context& context);
6039 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"state")) {
6041 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"province")) {
6043 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"pop")) {
6045 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"rebel")) {
6047 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"none")) {
6051 "unknown parameter type " + std::string(value) +
" defined for a scripted trigger (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
6055 "parameters for a scripted trigger must be given first (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
6062 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"state")) {
6064 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"province")) {
6066 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"pop")) {
6068 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"rebel")) {
6070 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"none")) {
6074 "unknown parameter type " + std::string(value) +
" defined for a scripted trigger (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
6078 "parameters for a scripted trigger must be given first (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
6085 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"state")) {
6087 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"province")) {
6089 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"pop")) {
6091 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"rebel")) {
6093 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"none")) {
6097 "unknown parameter type " + std::string(value) +
" defined for a scripted trigger (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
6101 "parameters for a scripted trigger must be given first (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
6106void 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 diplo_points(association_type a, float 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 &)
Holds important data about the game world, state, and other data regarding windowing,...