158 return static_cast<uint16_t
>(0x7000) - a;
283 std::string(value) +
" is not a valid pop type name (" + err.
file_name +
" line " + std::to_string(line) +
")\n";
295inline bool is_reb(std::string_view value) {
311 err.
file_name +
", line " + std::to_string(line) +
")\n";
351 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
364 err.
accumulated_errors +=
"involved_in_crisis trigger used in an incorrect scope type " +
366 std::to_string(line) +
")\n";
375 err.
accumulated_errors +=
"has_cultural_sphere trigger used in an incorrect scope type " +
377 std::to_string(line) +
")\n";
390 err.
accumulated_errors +=
"social_movement trigger used in an incorrect scope type " +
392 std::to_string(line) +
")\n";
404 err.
accumulated_errors +=
"political_movement trigger used in an incorrect scope type " +
406 std::to_string(line) +
")\n";
415 err.
accumulated_errors +=
"rich_tax_above_poor trigger used in an incorrect scope type " +
417 std::to_string(line) +
")\n";
429 std::to_string(line) +
")\n";
440 std::to_string(line) +
")\n";
454 std::to_string(line) +
")\n";
463 err.
accumulated_errors +=
"can_nationalize trigger used in an incorrect scope type " +
465 std::to_string(line) +
")\n";
476 std::to_string(line) +
")\n";
486 err.
accumulated_errors +=
"constructing_cb_discovered trigger used in an incorrect scope type " +
488 std::to_string(line) +
")\n";
497 err.
accumulated_errors +=
"colonial_nation trigger used in an incorrect scope type " +
499 std::to_string(line) +
")\n";
510 std::to_string(line) +
")\n";
519 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
533 err.
accumulated_errors +=
"is_releasable_vassal trigger used in an incorrect scope type " +
535 std::to_string(line) +
")\n";
543 err.
accumulated_errors +=
"is_releasable_vassal trigger used in an incorrect scope type " +
545 std::to_string(line) +
")\n";
558 err.
accumulated_errors +=
"someone_can_form_union_tag trigger used in an incorrect scope type " +
560 std::to_string(line) +
")\n";
568 err.
accumulated_errors +=
"someone_can_form_union_tag trigger used in an incorrect scope type " +
570 std::to_string(line) +
")\n";
581 err.
accumulated_errors +=
"is_state_capital trigger used in an incorrect scope type " +
583 std::to_string(line) +
")\n";
598 std::to_string(line) +
")\n";
608 err.
accumulated_errors +=
"has_empty_adjacent_province trigger used in an incorrect scope type " +
610 std::to_string(line) +
")\n";
627 std::to_string(line) +
")\n";
640 err.
accumulated_errors +=
"culture_has_union_tag trigger used in an incorrect scope type " +
642 std::to_string(line) +
")\n";
658 std::to_string(line) +
")\n";
673 err.
accumulated_errors +=
"is_greater_power trigger used in an incorrect scope type " +
675 std::to_string(line) +
")\n";
684 err.
accumulated_errors +=
"can_create_vassals trigger used in an incorrect scope type " +
686 std::to_string(line) +
")\n";
697 err.
accumulated_errors +=
"has_recently_lost_war trigger used in an incorrect scope type " +
709 std::to_string(line) +
")\n";
728 err.
accumulated_errors +=
"crime_higher_than_education trigger used in an incorrect scope type " +
730 std::to_string(line) +
")\n";
748 std::to_string(line) +
")\n";
758 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
774 err.
accumulated_errors +=
"has_recent_imigration trigger used in an incorrect scope type " +
776 std::to_string(line) +
")\n";
787 err.
accumulated_errors +=
"province_control_days trigger used in an incorrect scope type " +
789 std::to_string(line) +
")\n";
798 err.
accumulated_errors +=
"num_of_substates trigger used in an incorrect scope type " +
800 std::to_string(line) +
")\n";
810 err.
accumulated_errors +=
"num_of_vassals_no_substates trigger used in an incorrect scope type " +
812 std::to_string(line) +
")\n";
821 err.
accumulated_errors +=
"number_of_states trigger used in an incorrect scope type " +
823 std::to_string(line) +
")\n";
835 std::to_string(line) +
")\n";
847 err.
accumulated_errors +=
"flashpoint_tension trigger used in an incorrect scope type " +
849 std::to_string(line) +
")\n";
861 std::to_string(line) +
")\n";
873 std::to_string(line) +
")\n";
885 std::to_string(line) +
")\n";
895 err.
accumulated_errors +=
"social_movement_strength trigger used in an incorrect scope type " +
897 std::to_string(line) +
")\n";
907 err.
accumulated_errors +=
"political_movement_strength trigger used in an incorrect scope type " +
909 std::to_string(line) +
")\n";
920 err.
accumulated_errors +=
"total_num_of_ports trigger used in an incorrect scope type " +
922 std::to_string(line) +
")\n";
932 err.
accumulated_errors +=
"agree_with_ruling_party trigger used in an incorrect scope type " +
934 std::to_string(line) +
")\n";
944 err.
accumulated_errors +=
"constructing_cb_progress trigger used in an incorrect scope type " +
946 std::to_string(line) +
")\n";
956 err.
accumulated_errors +=
"civilization_progress trigger used in an incorrect scope type " +
958 std::to_string(line) +
")\n";
975 err.
accumulated_errors +=
"rich_strata_life_needs trigger used in an incorrect scope type " +
977 std::to_string(line) +
")\n";
993 err.
accumulated_errors +=
"rich_strata_everyday_needs trigger used in an incorrect scope type " +
995 std::to_string(line) +
")\n";
1011 err.
accumulated_errors +=
"rich_strata_luxury_needs trigger used in an incorrect scope type " +
1013 std::to_string(line) +
")\n";
1030 err.
accumulated_errors +=
"middle_strata_life_needs trigger used in an incorrect scope type " +
1032 std::to_string(line) +
")\n";
1049 err.
accumulated_errors +=
"middle_strata_everyday_needs trigger used in an incorrect scope type " +
1051 std::to_string(line) +
")\n";
1067 err.
accumulated_errors +=
"middle_strata_luxury_needs trigger used in an incorrect scope type " +
1069 std::to_string(line) +
")\n";
1086 err.
accumulated_errors +=
"poor_strata_life_needs trigger used in an incorrect scope type " +
1088 std::to_string(line) +
")\n";
1104 err.
accumulated_errors +=
"poor_strata_everyday_needs trigger used in an incorrect scope type " +
1106 std::to_string(line) +
")\n";
1122 err.
accumulated_errors +=
"poor_strata_luxury_needs trigger used in an incorrect scope type " +
1124 std::to_string(line) +
")\n";
1138 std::to_string(line) +
")\n";
1155 err.
accumulated_errors +=
"poor_strata_militancy trigger used in an incorrect scope type " +
1157 std::to_string(line) +
")\n";
1173 err.
accumulated_errors +=
"middle_strata_militancy trigger used in an incorrect scope type " +
1175 std::to_string(line) +
")\n";
1191 err.
accumulated_errors +=
"rich_strata_militancy trigger used in an incorrect scope type " +
1193 std::to_string(line) +
")\n";
1210 std::to_string(line) +
")\n";
1226 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1243 std::to_string(line) +
")\n";
1258 err.
accumulated_errors +=
"military_spending trigger used in an incorrect scope type " +
1260 std::to_string(line) +
")\n";
1276 err.
accumulated_errors +=
"administration_spending trigger used in an incorrect scope type " +
1278 std::to_string(line) +
")\n";
1293 err.
accumulated_errors +=
"education_spending trigger used in an incorrect scope type " +
1295 std::to_string(line) +
")\n";
1305 err.
accumulated_errors +=
"national_provinces_occupied trigger used in an incorrect scope type " +
1307 std::to_string(line) +
")\n";
1320 err.
accumulated_errors +=
"social_spending trigger used in an incorrect scope type " +
1322 std::to_string(line) +
")\n";
1334 err.
accumulated_errors +=
"brigades_compare trigger used in an incorrect scope type " +
1336 std::to_string(line) +
")\n";
1345 err.
accumulated_errors +=
"brigades_compare trigger used in an incorrect scope type " +
1347 std::to_string(line) +
")\n";
1351 err.
accumulated_errors +=
"brigades_compare trigger used in an incorrect scope type " +
1353 std::to_string(line) +
")\n";
1365 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1378 std::to_string(line) +
")\n";
1390 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1399 err.
accumulated_errors +=
"mobilisation_size trigger used in an incorrect scope type " +
1401 std::to_string(line) +
")\n";
1412 std::to_string(line) +
")\n";
1419 "province_id trigger given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1437 std::to_string(line) +
")\n";
1454 std::to_string(line) +
")\n";
1460 err.
accumulated_errors +=
"invention trigger supplied with neither a valid technology nor a valid invention "
1461 + std::string(value) +
" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1473 std::to_string(line) +
")\n";
1480 "big_producer trigger supplied with an invalid commodity \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1489 else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"middle"))
1493 "strata trigger given unknown strata (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1498 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1511 std::to_string(line) +
")\n";
1526 err.
accumulated_errors +=
"has_empty_adjacent_state trigger used in an incorrect scope type " +
1528 std::to_string(line) +
")\n";
1540 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1547 "state_id trigger given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1557 std::to_string(line) +
")\n";
1574 std::to_string(line) +
")\n";
1595 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1605 err.
accumulated_errors +=
"is_independant trigger used in an incorrect scope type " +
1607 std::to_string(line) +
")\n";
1624 err.
accumulated_errors +=
"has_national_minority trigger used in an incorrect scope type " +
1626 std::to_string(line) +
")\n";
1642 std::to_string(line) +
")\n";
1648 err.
accumulated_errors +=
"government trigger supplied with an invalid government type \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
1649 std::to_string(line) +
")\n";
1660 err.
accumulated_errors +=
"constructing_cb_type trigger used in an incorrect scope type " +
1662 std::to_string(line) +
")\n";
1668 err.
accumulated_errors +=
"constructing_cb_type trigger supplied with an invalid cb type \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
1669 std::to_string(line) +
")\n";
1680 err.
accumulated_errors +=
"can_build_factory_in_capital_state trigger used in an incorrect scope type " +
1682 std::to_string(line) +
")\n";
1689 ", line " + std::to_string(line) +
")\n";
1697 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1704 "capital trigger given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1717 std::to_string(line) +
")\n";
1724 "tech_school trigger supplied with an invalid school \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1743 err.
accumulated_errors +=
"primary_culture trigger used in an incorrect scope type " +
1748 err.
accumulated_errors +=
"primary_culture = this trigger used in an incorrect scope type " +
1760 err.
accumulated_errors +=
"primary_culture = from trigger used in an incorrect scope type " +
1762 std::to_string(line) +
")\n";
1771 err.
accumulated_errors +=
"primary_culture trigger used in an incorrect scope type " +
1779 "primary_culture trigger supplied with an invalid culture \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1794 std::to_string(line) +
")\n";
1801 "has_crime trigger supplied with an invalid crime \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
1811 err.
accumulated_errors +=
"accepted_culture trigger used in an incorrect scope type " +
1813 std::to_string(line) +
")\n";
1819 err.
accumulated_errors +=
"accepted_culture trigger supplied with an invalid culture \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
1820 std::to_string(line) +
")\n";
1844 err.
accumulated_errors +=
"pop_majority_religion trigger supplied with an invalid religion \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
1845 std::to_string(line) +
")\n";
1858 err.
accumulated_errors +=
"pop_majority_culture trigger used in an incorrect scope type " +
1860 std::to_string(line) +
")\n";
1865 err.
accumulated_errors +=
"pop_majority_culture trigger supplied with an invalid culture \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
1866 std::to_string(line) +
")\n";
1881 err.
accumulated_errors +=
"pop_majority_issue trigger used in an incorrect scope type " +
1883 std::to_string(line) +
")\n";
1888 err.
accumulated_errors +=
"pop_majority_issue trigger supplied with an invalid option name \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
1889 std::to_string(line) +
")\n";
1904 err.
accumulated_errors +=
"pop_majority_ideology trigger used in an incorrect scope type " +
1906 std::to_string(line) +
")\n";
1911 err.
accumulated_errors +=
"pop_majority_ideology trigger supplied with an invalid ideology \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
1912 std::to_string(line) +
")\n";
1923 err.
accumulated_errors +=
"trade_goods_in_state trigger used in an incorrect scope type " +
1925 std::to_string(line) +
")\n";
1930 err.
accumulated_errors +=
"trade_goods_in_state trigger supplied with an invalid commodity \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
1931 std::to_string(line) +
")\n";
1949 std::to_string(line) +
")\n";
1964 std::to_string(line) +
")\n";
1968 err.
accumulated_errors +=
"culture = this trigger used in an incorrect scope type " +
1970 std::to_string(line) +
")\n";
1978 err.
accumulated_errors +=
"culture = from trigger used in an incorrect scope type " +
1980 std::to_string(line) +
")\n";
1983 }
else if(
is_reb(value)) {
1987 std::to_string(line) +
")\n";
2004 std::to_string(line) +
")\n";
2019 std::to_string(line) +
")\n";
2025 "culture trigger supplied with an invalid culture \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2045 err.
accumulated_errors +=
"has_pop_culture = this trigger used in an incorrect scope type " +
2047 std::to_string(line) +
")\n";
2051 err.
accumulated_errors +=
"has_pop_culture = this trigger used in an incorrect scope type " +
2053 std::to_string(line) +
")\n";
2067 err.
accumulated_errors +=
"has_pop_culture trigger used in an incorrect scope type " +
2069 std::to_string(line) +
")\n";
2075 "has_pop_culture trigger supplied with an invalid culture \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2095 err.
accumulated_errors +=
"has_pop_religion = this trigger used in an incorrect scope type " +
2097 std::to_string(line) +
")\n";
2101 err.
accumulated_errors +=
"has_pop_religion = this trigger used in an incorrect scope type " +
2103 std::to_string(line) +
")\n";
2117 err.
accumulated_errors +=
"has_pop_religion trigger used in an incorrect scope type " +
2119 std::to_string(line) +
")\n";
2124 err.
accumulated_errors +=
"has_pop_religion trigger supplied with an invalid religion \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
2125 std::to_string(line) +
")\n";
2140 err.
accumulated_errors +=
"culture_group = this trigger used in an incorrect scope type " +
2142 std::to_string(line) +
")\n";
2153 err.
accumulated_errors +=
"culture_group = this trigger used in an incorrect scope type " +
2155 std::to_string(line) +
")\n";
2166 err.
accumulated_errors +=
"culture_group = this trigger used in an incorrect scope type " +
2168 std::to_string(line) +
")\n";
2179 err.
accumulated_errors +=
"culture_group = this trigger used in an incorrect scope type " +
2181 std::to_string(line) +
")\n";
2185 err.
accumulated_errors +=
"culture_group = this trigger used in an incorrect scope type " +
2187 std::to_string(line) +
")\n";
2199 err.
accumulated_errors +=
"culture_group = from trigger used in an incorrect scope type " +
2201 std::to_string(line) +
")\n";
2205 err.
accumulated_errors +=
"culture_group = from trigger used in an incorrect scope type " +
2207 std::to_string(line) +
")\n";
2210 }
else if(
is_reb(value)) {
2219 err.
accumulated_errors +=
"culture_group = reb trigger used in an incorrect scope type " +
2221 std::to_string(line) +
")\n";
2225 err.
accumulated_errors +=
"culture_group = reb trigger used in an incorrect scope type " +
2227 std::to_string(line) +
")\n";
2243 std::to_string(line) +
")\n";
2248 err.
accumulated_errors +=
"culture_group trigger supplied with an invalid culture group \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
2249 std::to_string(line) +
")\n";
2263 err.
accumulated_errors +=
"religion = this trigger used in an incorrect scope type " +
2265 std::to_string(line) +
")\n";
2276 err.
accumulated_errors +=
"religion = this trigger used in an incorrect scope type " +
2278 std::to_string(line) +
")\n";
2289 err.
accumulated_errors +=
"religion = this trigger used in an incorrect scope type " +
2291 std::to_string(line) +
")\n";
2302 err.
accumulated_errors +=
"religion = this trigger used in an incorrect scope type " +
2304 std::to_string(line) +
")\n";
2308 err.
accumulated_errors +=
"religion = this trigger used in an incorrect scope type " +
2310 std::to_string(line) +
")\n";
2322 err.
accumulated_errors +=
"religion = from trigger used in an incorrect scope type " +
2324 std::to_string(line) +
")\n";
2328 err.
accumulated_errors +=
"religion = from trigger used in an incorrect scope type " +
2330 std::to_string(line) +
")\n";
2333 }
else if(
is_reb(value)) {
2341 err.
accumulated_errors +=
"religion = reb trigger used in an incorrect scope type " +
2343 std::to_string(line) +
")\n";
2347 err.
accumulated_errors +=
"religion = reb trigger used in an incorrect scope type " +
2349 std::to_string(line) +
")\n";
2361 std::to_string(line) +
")\n";
2367 "religion trigger supplied with an invalid religion \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2380 std::to_string(line) +
")\n";
2386 "terrain trigger supplied with an invalid terrain \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2398 std::to_string(line) +
")\n";
2404 "trade_goods trigger supplied with an invalid commodity \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2415 err.
accumulated_errors +=
"is_secondary_power trigger used in an incorrect scope type " +
2417 std::to_string(line) +
")\n";
2432 std::to_string(line) +
")\n";
2438 "has_faction trigger supplied with an invalid rebel type \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2446 err.
accumulated_errors +=
"has_unclaimed_cores trigger used in an incorrect scope type " +
2448 std::to_string(line) +
")\n";
2457 err.
accumulated_errors +=
"have_core_in = this trigger used in an incorrect scope type " +
2459 std::to_string(line) +
")\n";
2466 err.
accumulated_errors +=
"have_core_in = from trigger used in an incorrect scope type " +
2468 std::to_string(line) +
")\n";
2471 }
else if(value.length() == 3) {
2478 err.
accumulated_errors +=
"have_core_in = tag trigger used in an incorrect scope type " +
2480 std::to_string(line) +
")\n";
2486 "have_core_in trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2490 "have_core_in trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2499 err.
accumulated_errors +=
"is_cultural_union = bool trigger used in an incorrect scope type " +
2501 std::to_string(line) +
")\n";
2528 err.
accumulated_errors +=
"is_cultural_union = this trigger used in an incorrect scope type " +
2530 std::to_string(line) +
")\n";
2534 err.
accumulated_errors +=
"is_cultural_union = this trigger used in an incorrect scope type " +
2536 std::to_string(line) +
")\n";
2539 }
else if(value.length() == 3) {
2555 err.
accumulated_errors +=
"is_cultural_union = tag trigger used in an incorrect scope type " +
2557 std::to_string(line) +
")\n";
2563 "is_cultural_union trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2567 "is_cultural_union trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2581 err.
accumulated_errors +=
"can_build_factory trigger used in an incorrect scope type " +
2583 std::to_string(line) +
")\n";
2595 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2607 err.
accumulated_errors +=
"war_exhaustion trigger used in an incorrect scope type " +
2609 std::to_string(line) +
")\n";
2619 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2625 if(
is_integer(v.data(), v.data() + v.length())) {
2633 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2640 "owns trigger given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2649 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2658 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2663 "owns trigger given an invalid value (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2672 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2679 "controls trigger given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2699 err.
accumulated_errors +=
"is_core = this trigger used in an incorrect scope type " +
2701 std::to_string(line) +
")\n";
2709 err.
accumulated_errors +=
"is_core = from trigger used in an incorrect scope type " +
2711 std::to_string(line) +
")\n";
2722 err.
accumulated_errors +=
"is_core = this trigger used in an incorrect scope type " +
2724 std::to_string(line) +
")\n";
2731 err.
accumulated_errors +=
"is_core = from trigger used in an incorrect scope type " +
2733 std::to_string(line) +
")\n";
2742 std::to_string(line) +
")\n";
2745 }
else if(
is_integer(value.data(), value.data() + value.length())) {
2747 auto int_value =
parse_int(value, line, err);
2753 "owns trigger given an invalid province id (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2759 std::to_string(line) +
")\n";
2770 "is_core trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2778 "is_core trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2786 "is_core trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2790 "is_core trigger supplied with an invalid argument \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2797 err.
accumulated_errors +=
"num_of_revolts trigger used in an incorrect scope type " +
2799 std::to_string(line) +
")\n";
2808 err.
accumulated_errors +=
"revolt_percentage trigger used in an incorrect scope type " +
2810 std::to_string(line) +
")\n";
2831 err.
accumulated_errors +=
"num_of_cities = this trigger used in an incorrect scope type " +
2833 std::to_string(line) +
")\n";
2841 err.
accumulated_errors +=
"num_of_cities = from trigger used in an incorrect scope type " +
2843 std::to_string(line) +
")\n";
2852 std::to_string(line) +
")\n";
2862 std::to_string(line) +
")\n";
2873 std::to_string(line) +
")\n";
2882 err.
accumulated_errors +=
"num_of_vassals trigger used in an incorrect scope type " +
2884 std::to_string(line) +
")\n";
2905 err.
accumulated_errors +=
"owned_by = this trigger used in an incorrect scope type " +
2907 std::to_string(line) +
")\n";
2915 err.
accumulated_errors +=
"owned_by = from trigger used in an incorrect scope type " +
2917 std::to_string(line) +
")\n";
2920 }
else if(value.length() == 3) {
2927 "owned_by trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2931 "owned_by trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + 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";
2980 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
2994 std::to_string(line) +
")\n";
2997 }
else if(value.length() == 3) {
3004 "exists trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3009 "exists trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3024 err.
accumulated_errors +=
"has_country_flag trigger used in an incorrect scope type " +
3026 std::to_string(line) +
")\n";
3033 if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"project_alice")) {
3049 err.
accumulated_errors +=
"continent = this trigger used in an incorrect scope type " +
3051 std::to_string(line) +
")\n";
3059 err.
accumulated_errors +=
"continent = from trigger used in an incorrect scope type " +
3061 std::to_string(line) +
")\n";
3070 "continent trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3079 err.
accumulated_errors +=
"continent = this trigger used in an incorrect scope type " +
3081 std::to_string(line) +
")\n";
3089 err.
accumulated_errors +=
"continent = from trigger used in an incorrect scope type " +
3091 std::to_string(line) +
")\n";
3100 "continent trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3109 err.
accumulated_errors +=
"continent = this trigger used in an incorrect scope type " +
3111 std::to_string(line) +
")\n";
3119 err.
accumulated_errors +=
"continent = from trigger used in an incorrect scope type " +
3121 std::to_string(line) +
")\n";
3130 "continent trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3139 err.
accumulated_errors +=
"continent = this trigger used in an incorrect scope type " +
3141 std::to_string(line) +
")\n";
3149 err.
accumulated_errors +=
"continent = from trigger used in an incorrect scope type " +
3151 std::to_string(line) +
")\n";
3160 "continent trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3166 std::to_string(line) +
")\n";
3187 err.
accumulated_errors +=
"casus_belli = this trigger used in an incorrect scope type " +
3189 std::to_string(line) +
")\n";
3197 err.
accumulated_errors +=
"casus_belli = from trigger used in an incorrect scope type " +
3199 std::to_string(line) +
")\n";
3202 }
else if(value.length() == 3) {
3209 "casus_belli trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3213 "casus_belli trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3219 std::to_string(line) +
")\n";
3241 err.
accumulated_errors +=
"military_access = this trigger used in an incorrect scope type " +
3243 std::to_string(line) +
")\n";
3251 err.
accumulated_errors +=
"military_access = from trigger used in an incorrect scope type " +
3253 std::to_string(line) +
")\n";
3256 }
else if(value.length() == 3) {
3263 "military_access trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3267 "military_access trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3271 err.
accumulated_errors +=
"military_access trigger used in an incorrect scope type " +
3273 std::to_string(line) +
")\n";
3294 err.
accumulated_errors +=
"prestige = this trigger used in an incorrect scope type " +
3296 std::to_string(line) +
")\n";
3304 err.
accumulated_errors +=
"prestige = from trigger used in an incorrect scope type " +
3306 std::to_string(line) +
")\n";
3316 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3333 "has_building trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3340 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"railroad")) {
3343 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"naval_base")) {
3346 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"bank")) {
3349 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"university")) {
3352 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"factory")) {
3355 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"province_selector")) {
3358 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"immigrator")
3359 ||
is_fixed_token_ci(value.data(), value.data() + value.length(),
"immigrator_selector")
3360 ||
is_fixed_token_ci(value.data(), value.data() + value.length(),
"province_immigrator")) {
3369 "has_building trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3375 std::to_string(line) +
")\n";
3386 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3397 std::to_string(line) +
")\n";
3411 err.
accumulated_errors +=
"has_country_modifier trigger used in an incorrect scope type " +
3413 std::to_string(line) +
")\n";
3418 err.
accumulated_errors +=
"has_country_modifier trigger supplied with an invalid modifier \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
3419 std::to_string(line) +
")\n";
3429 err.
accumulated_errors +=
"has_province_modifier trigger used in an incorrect scope type " +
3431 std::to_string(line) +
")\n";
3436 err.
accumulated_errors +=
"has_province_modifier trigger supplied with an invalid modifier \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
3437 std::to_string(line) +
")\n";
3453 std::to_string(line) +
")\n";
3459 "nationalvalue trigger supplied with an invalid modifier \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3472 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3485 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3491 "region trigger not supplied with a state name (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3507 std::to_string(line) +
")\n";
3520 std::to_string(line) +
")\n";
3523 }
else if(value.length() == 3) {
3530 "tag trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3534 "tag trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3550 std::to_string(line) +
")\n";
3559 std::to_string(line) +
")\n";
3562 }
else if(value.length() == 3) {
3568 err.
accumulated_errors +=
"tag trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3571 err.
accumulated_errors +=
"tag trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3587 std::to_string(line) +
")\n";
3596 std::to_string(line) +
")\n";
3599 }
else if(value.length() == 3) {
3605 err.
accumulated_errors +=
"tag trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3608 err.
accumulated_errors +=
"tag trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3612 if(value.length() == 3) {
3618 err.
accumulated_errors +=
"tag trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3621 err.
accumulated_errors +=
"tag trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3641 err.
accumulated_errors +=
"stronger_army_than = this trigger used in an incorrect scope type " +
3643 std::to_string(line) +
")\n";
3652 err.
accumulated_errors +=
"stronger_army_than = from trigger used in an incorrect scope type " +
3654 std::to_string(line) +
")\n";
3657 }
else if(value.length() == 3) {
3664 "stronger_army_than trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3668 "stronger_army_than trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3673 " (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3687 err.
accumulated_errors +=
"neighbour = this trigger used in an incorrect scope type " +
3689 std::to_string(line) +
")\n";
3700 err.
accumulated_errors +=
"neighbour = from trigger used in an incorrect scope type " +
3702 std::to_string(line) +
")\n";
3705 }
else if(value.length() == 3) {
3712 "neighbour trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3716 "neighbour trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3722 std::to_string(line) +
")\n";
3742 err.
accumulated_errors +=
"country_units_in_state = this trigger used in an incorrect scope type " +
3744 std::to_string(line) +
")\n";
3752 err.
accumulated_errors +=
"country_units_in_state = from trigger used in an incorrect scope type " +
3754 std::to_string(line) +
")\n";
3757 }
else if(value.length() == 3) {
3764 "country_units_in_state trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3768 "country_units_in_state trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3771 err.
accumulated_errors +=
"country_units_in_state trigger used in an incorrect scope type " +
3773 std::to_string(line) +
")\n";
3793 err.
accumulated_errors +=
"units_in_province = this trigger used in an incorrect scope type " +
3795 std::to_string(line) +
")\n";
3803 err.
accumulated_errors +=
"units_in_province = from trigger used in an incorrect scope type " +
3805 std::to_string(line) +
")\n";
3808 }
else if(
is_integer(value.data(), value.data() + value.length())) {
3811 }
else if(value.length() == 3) {
3818 "units_in_province trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3822 "units_in_province trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3825 err.
accumulated_errors +=
"units_in_province trigger used in an incorrect scope type " +
3827 std::to_string(line) +
")\n";
3847 err.
accumulated_errors +=
"war_with = this trigger used in an incorrect scope type " +
3849 std::to_string(line) +
")\n";
3857 err.
accumulated_errors +=
"war_with = from trigger used in an incorrect scope type " +
3859 std::to_string(line) +
")\n";
3862 }
else if(value.length() == 3) {
3869 "war_with trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3873 "war_with trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3878 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3913 err.
accumulated_errors +=
"has_national_focus given an invalid focus '" + std::string(value) +
"' (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3922 err.
accumulated_errors +=
"total_amount_of_divisions trigger used in an incorrect scope type " +
3924 std::to_string(line) +
")\n";
3936 "(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
3947 std::to_string(line) +
")\n";
3958 std::to_string(line) +
")\n";
3973 err.
accumulated_errors +=
"ruling_party_ideology trigger used in an incorrect scope type " +
3975 std::to_string(line) +
")\n";
3980 err.
accumulated_errors +=
"ruling_party_ideology trigger supplied with an invalid ideology \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
3981 std::to_string(line) +
")\n";
3995 err.
accumulated_errors +=
"is_ideology_enabled trigger supplied with an invalid ideology \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
3996 std::to_string(line) +
")\n";
4006 err.
accumulated_errors +=
"political_reform_want trigger used in an incorrect scope type " +
4008 std::to_string(line) +
")\n";
4019 err.
accumulated_errors +=
"social_reform_want trigger used in an incorrect scope type " +
4021 std::to_string(line) +
")\n";
4031 err.
accumulated_errors +=
"total_amount_of_ships trigger used in an incorrect scope type " +
4033 std::to_string(line) +
")\n";
4046 std::to_string(line) +
")\n";
4057 std::to_string(line) +
")\n";
4073 err.
accumulated_errors +=
"is_state_religion trigger used in an incorrect scope type " +
4075 std::to_string(line) +
")\n";
4096 err.
accumulated_errors +=
"is_primary_culture = this trigger used in an incorrect scope type " +
4098 std::to_string(line) +
")\n";
4115 err.
accumulated_errors +=
"is_primary_culture = this trigger used in an incorrect scope type " +
4117 std::to_string(line) +
")\n";
4134 err.
accumulated_errors +=
"is_primary_culture = this trigger used in an incorrect scope type " +
4136 std::to_string(line) +
")\n";
4153 err.
accumulated_errors +=
"is_primary_culture = this trigger used in an incorrect scope type " +
4155 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";
4170 err.
accumulated_errors +=
"is_primary_culture (treated as primary_culture or culture) trigger used in an incorrect scope type " +
4187 err.
accumulated_errors +=
"is_primary_culture trigger used in an incorrect scope type " +
4189 std::to_string(line) +
")\n";
4210 err.
accumulated_errors +=
"is_accepted_culture = this trigger used in an incorrect scope type " +
4212 std::to_string(line) +
")\n";
4229 err.
accumulated_errors +=
"is_accepted_culture = this trigger used in an incorrect scope type " +
4231 std::to_string(line) +
")\n";
4248 err.
accumulated_errors +=
"is_accepted_culture = this trigger used in an incorrect scope type " +
4250 std::to_string(line) +
")\n";
4267 err.
accumulated_errors +=
"is_accepted_culture = this trigger used in an incorrect scope type " +
4269 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";
4282 err.
accumulated_errors +=
"is_accepted_culture (treated as accepted_culture) trigger used in an incorrect scope type " +
4299 err.
accumulated_errors +=
"is_accepted_culture trigger used in an incorrect scope type " +
4301 std::to_string(line) +
")\n";
4316 std::to_string(line) +
")\n";
4337 err.
accumulated_errors +=
"in_sphere = this trigger used in an incorrect scope type " +
4339 std::to_string(line) +
")\n";
4347 err.
accumulated_errors +=
"in_sphere = from trigger used in an incorrect scope type " +
4349 std::to_string(line) +
")\n";
4352 }
else if(value.length() == 3) {
4359 "in_sphere trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4363 "in_sphere trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4369 std::to_string(line) +
")\n";
4391 err.
accumulated_errors +=
"produces trigger supplied with an invalid commodity \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4413 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";
4428 std::to_string(line) +
")\n";
4441 err.
accumulated_errors +=
"average_militancy trigger used in an incorrect scope type " +
4443 std::to_string(line) +
")\n";
4457 err.
accumulated_errors +=
"average_consciousness trigger used in an incorrect scope type " +
4459 std::to_string(line) +
")\n";
4473 err.
accumulated_errors +=
"is_next_reform trigger used in an incorrect scope type " +
4475 std::to_string(line) +
")\n";
4486 err.
accumulated_errors +=
"is_next_reform trigger used in an incorrect scope type " +
4488 std::to_string(line) +
")\n";
4493 err.
accumulated_errors +=
"is_next_reform trigger supplied with an invalid issue/reform \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
4494 std::to_string(line) +
")\n";
4502 err.
accumulated_errors +=
"rebel_power_fraction trigger used in an incorrect scope type " +
4504 std::to_string(line) +
")\n";
4516 err.
accumulated_errors +=
"recruited_percentage trigger used in an incorrect scope type " +
4518 std::to_string(line) +
")\n";
4531 err.
accumulated_errors +=
"has_culture_core trigger used in an incorrect scope type " +
4533 std::to_string(line) +
")\n";
4543 std::to_string(line) +
")\n";
4561 std::to_string(line) +
")\n";
4570 err.
accumulated_errors +=
"controlled_by_rebels trigger used in an incorrect scope type " +
4572 std::to_string(line) +
")\n";
4593 err.
accumulated_errors +=
"controlled_by = this trigger used in an incorrect scope type " +
4595 std::to_string(line) +
")\n";
4603 err.
accumulated_errors +=
"controlled_by = from trigger used in an incorrect scope type " +
4605 std::to_string(line) +
")\n";
4608 }
else if(
is_reb(value)) {
4616 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"owner")) {
4619 }
else if(value.length() == 3) {
4626 "controlled_by trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4630 "controlled_by trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4636 std::to_string(line) +
")\n";
4657 err.
accumulated_errors +=
"truce_with = this trigger used in an incorrect scope type " +
4659 std::to_string(line) +
")\n";
4667 err.
accumulated_errors +=
"truce_with = from trigger used in an incorrect scope type " +
4669 std::to_string(line) +
")\n";
4672 }
else if(value.length() == 3) {
4679 "truce_with trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4683 "truce_with trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4689 std::to_string(line) +
")\n";
4710 err.
accumulated_errors +=
"is_sphere_leader_of = this trigger used in an incorrect scope type " +
4712 std::to_string(line) +
")\n";
4720 err.
accumulated_errors +=
"is_sphere_leader_of = from trigger used in an incorrect scope type " +
4722 std::to_string(line) +
")\n";
4725 }
else if(value.length() == 3) {
4731 err.
accumulated_errors +=
"is_sphere_leader_of trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
4732 std::to_string(line) +
")\n";
4735 err.
accumulated_errors +=
"is_sphere_leader_of trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
4736 std::to_string(line) +
")\n";
4740 err.
accumulated_errors +=
"is_sphere_leader_of trigger used in an incorrect scope type " +
4742 std::to_string(line) +
")\n";
4763 err.
accumulated_errors +=
"constructing_cb = this trigger used in an incorrect scope type " +
4765 std::to_string(line) +
")\n";
4773 err.
accumulated_errors +=
"constructing_cb = from trigger used in an incorrect scope type " +
4775 std::to_string(line) +
")\n";
4778 }
else if(value.length() == 3) {
4785 "constructing_cb trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4789 "constructing_cb trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4793 err.
accumulated_errors +=
"constructing_cb trigger used in an incorrect scope type " +
4795 std::to_string(line) +
")\n";
4811 err.
accumulated_errors +=
"vassal_of = this trigger used in an incorrect scope type " +
4819 err.
accumulated_errors +=
"vassal_of = from trigger used in an incorrect scope type " +
4823 }
else if(value.length() == 3) {
4829 err.
accumulated_errors +=
"vassal_of trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4832 err.
accumulated_errors +=
"vassal_of trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4846 err.
accumulated_errors +=
"vassal_of = this trigger used in an incorrect scope type " +
4854 err.
accumulated_errors +=
"vassal_of = from trigger used in an incorrect scope type " +
4858 }
else if(value.length() == 3) {
4864 err.
accumulated_errors +=
"vassal_of trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4867 err.
accumulated_errors +=
"vassal_of trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4893 err.
accumulated_errors +=
"substate_of = this trigger used in an incorrect scope type " +
4895 std::to_string(line) +
")\n";
4903 err.
accumulated_errors +=
"substate_of = from trigger used in an incorrect scope type " +
4905 std::to_string(line) +
")\n";
4908 }
else if(value.length() == 3) {
4915 "substate_of trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4919 "substate_of trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4925 std::to_string(line) +
")\n";
4946 err.
accumulated_errors +=
"is_our_vassal = this trigger used in an incorrect scope type " +
4948 std::to_string(line) +
")\n";
4956 err.
accumulated_errors +=
"is_our_vassal = from trigger used in an incorrect scope type " +
4958 std::to_string(line) +
")\n";
4961 }
else if(value.length() == 3) {
4968 "is_our_vassal trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
4972 "is_our_vassal trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + 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";
5022 std::to_string(line) +
")\n";
5043 err.
accumulated_errors +=
"this_culture_union = this trigger used in an incorrect scope type " +
5045 std::to_string(line) +
")\n";
5048 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.length(),
"this_union")) {
5062 err.
accumulated_errors +=
"this_culture_union = this_union trigger used in an incorrect scope type " +
5064 std::to_string(line) +
")\n";
5072 err.
accumulated_errors +=
"this_culture_union = from trigger used in an incorrect scope type " +
5074 std::to_string(line) +
")\n";
5077 }
else if(value.length() == 3) {
5083 err.
accumulated_errors +=
"this_culture_union trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
5084 std::to_string(line) +
")\n";
5087 err.
accumulated_errors +=
"this_culture_union trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
5088 std::to_string(line) +
")\n";
5092 err.
accumulated_errors +=
"this_culture_union trigger used in an incorrect scope type " +
5094 std::to_string(line) +
")\n";
5115 err.
accumulated_errors +=
"alliance_with = this trigger used in an incorrect scope type " +
5117 std::to_string(line) +
")\n";
5125 err.
accumulated_errors +=
"alliance_with = from trigger used in an incorrect scope type " +
5127 std::to_string(line) +
")\n";
5130 }
else if(value.length() == 3) {
5137 "alliance_with trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5141 "alliance_with trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5147 std::to_string(line) +
")\n";
5169 err.
accumulated_errors +=
"in_default = this trigger used in an incorrect scope type " +
5171 std::to_string(line) +
")\n";
5178 err.
accumulated_errors +=
"in_default = from trigger used in an incorrect scope type " +
5180 std::to_string(line) +
")\n";
5183 }
else if(value.length() == 3) {
5189 err.
accumulated_errors +=
"in_default trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5192 err.
accumulated_errors +=
"in_default trigger supplied with an invalid value \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5218 err.
accumulated_errors +=
"industrial_score = this trigger used in an incorrect scope type " +
5220 std::to_string(line) +
")\n";
5228 err.
accumulated_errors +=
"industrial_score = from trigger used in an incorrect scope type " +
5230 std::to_string(line) +
")\n";
5233 }
else if(!
parsers::is_integer(value.data(), value.data() + value.length()) && value.length() == 3) {
5239 err.
accumulated_errors +=
"industrial_score trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5246 err.
accumulated_errors +=
"industrial_score trigger used in an incorrect scope type " +
5248 std::to_string(line) +
")\n";
5269 err.
accumulated_errors +=
"military_score = this trigger used in an incorrect scope type " +
5271 std::to_string(line) +
")\n";
5279 err.
accumulated_errors +=
"military_score = from trigger used in an incorrect scope type " +
5281 std::to_string(line) +
")\n";
5284 }
else if(!
parsers::is_integer(value.data(), value.data() + value.length()) && value.length() == 3) {
5290 err.
accumulated_errors +=
"military_score trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5297 err.
accumulated_errors +=
"military_score trigger used in an incorrect scope type " +
5299 std::to_string(line) +
")\n";
5305 dcon::stored_trigger_id st;
5306 for(
auto r : it->second) {
5314 err.
accumulated_errors +=
"test trigger found multiple matching possibilities for the name " +
5315 std::string(value) +
" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5324 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";
5327 err.
accumulated_errors +=
"test trigger used with an unknown scripted trigger " + std::string(value) +
" (" + err.
file_name +
", line " +
5328 std::to_string(line) +
")\n";
5332 if(value.length() == 3) {
5338 err.
accumulated_errors +=
"is_possible_vassal trigger used in an incorrect scope type " +
5340 std::to_string(line) +
")\n";
5345 err.
accumulated_errors +=
"is_possible_vassal trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " +
5346 std::to_string(line) +
")\n";
5350 "is_possible_vassal trigger supplied with an invalid tag \"" + std::string(value) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5357 err.
accumulated_errors +=
"diplomatic_influence trigger used in an incorrect scope type " +
5359 std::to_string(line) +
")\n";
5361 }
else if(
is_from(value.who)) {
5369 err.
accumulated_errors +=
"diplomatic_influence trigger used in an incorrect scope type " +
5371 std::to_string(line) +
")\n";
5375 }
else if(
is_this(value.who)) {
5383 err.
accumulated_errors +=
"diplomatic_influence trigger used in an incorrect scope type " +
5385 std::to_string(line) +
")\n";
5389 }
else if(value.who.length() == 3) {
5396 err.
accumulated_errors +=
"diplomatic_influence trigger supplied with an invalid tag \"" + std::string(value.who) +
"\" (" + err.
file_name +
", line " +
5397 std::to_string(line) +
")\n";
5400 err.
accumulated_errors +=
"diplomatic_influence trigger supplied with an invalid tag \"" + std::string(value.who) +
"\" (" + err.
file_name +
", line " +
5401 std::to_string(line) +
")\n";
5409 std::to_string(line) +
")\n";
5422 std::to_string(line) +
")\n";
5426 }
else if(
is_from(value.type)) {
5429 std::to_string(line) +
")\n";
5442 std::to_string(line) +
")\n";
5458 "pop_unemployment trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5466 std::to_string(line) +
")\n";
5473 "relation trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5475 }
else if(
is_from(value.who)) {
5482 "relation = from trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5486 }
else if(
is_this(value.who)) {
5495 "relation = this trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5499 }
else if(value.who.length() == 3) {
5507 "relation trigger supplied with an invalid tag \"" + std::string(value.who) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5511 "relation trigger supplied with an invalid tag \"" + std::string(value.who) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5526 "upper_house trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5534 "upper_house trigger supplied with an invalid ideology \"" + std::string(value.ideology) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5553 std::to_string(line) +
")\n";
5559 err.
accumulated_errors +=
"unemployment_by_type trigger supplied with an invalid pop type \"" + std::string(value.type) +
"\" (" + err.
file_name +
", line " +
5560 std::to_string(line) +
")\n";
5568 if(value.province_id != 0) {
5584 "party_loyalty trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5592 err.
accumulated_errors +=
"party_loyalty trigger supplied with an invalid province id " + std::to_string(value.province_id) +
" (" + err.
file_name +
", line " +
5593 std::to_string(line) +
")\n";
5608 "party_loyalty trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5616 "party_loyalty trigger supplied with an invalid ideology \"" + std::string(value.ideology) +
"\" (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5625 "can_build_in_province trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5627 }
else if(value.limit_to_world_greatest_level) {
5629 if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"railroad"))
5632 else if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"naval_base"))
5635 else if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"fort"))
5639 if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"railroad"))
5642 else if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"naval_base"))
5645 else if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"fort"))
5650 std::to_string(line) +
")\n";
5655 if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"railroad"))
5658 else if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"naval_base"))
5661 else if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"fort"))
5665 if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"railroad"))
5668 else if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"naval_base"))
5671 else if(
is_fixed_token_ci(value.building.data(), value.building.data() + value.building.length(),
"fort"))
5676 std::to_string(line) +
")\n";
5685 std::to_string(line) +
")\n";
5687 }
else if(value.in_whole_capital_state) {
5688 if(value.limit_to_world_greatest_level)
5695 if(value.limit_to_world_greatest_level)
5707 std::to_string(line) +
")\n";
5709 }
else if(value.in_whole_capital_state) {
5710 if(value.limit_to_world_greatest_level)
5717 if(value.limit_to_world_greatest_level)
5727 if(value.pop_type_list.size() > 1 || value.pop_type_list.size() == 0) {
5729 ", line " + std::to_string(line) +
")\n";
5741 "work_available trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5749 std::string str_label{label};
5765 err.
accumulated_errors +=
"named technology trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5783 err.
accumulated_errors +=
"named invention trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5798 "named ideology trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5815 "named pop type trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5826 "named commodity trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5842 "named issue option trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5860 "named issue trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5867 "named issue trigger used with an invalid option name (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5883 "named reform trigger used in an invalid context (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5890 "named reform trigger used with an invalid option name (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5895 "unknown key: " + str_label +
" found in trigger(" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5901void tr_scope_and(token_generator& gen, error_handler& err, trigger_building_context& context);
5902void tr_scope_or(token_generator& gen, error_handler& err, trigger_building_context& context);
5903void tr_scope_not(token_generator& gen, error_handler& err, trigger_building_context& context);
5910void tr_scope_any_core(token_generator& gen, error_handler& err, trigger_building_context& context);
5911void tr_scope_all_core(token_generator& gen, error_handler& err, trigger_building_context& context);
5912void tr_scope_any_state(token_generator& gen, error_handler& err, trigger_building_context& context);
5913void tr_scope_any_substate(token_generator& gen, error_handler& err, trigger_building_context& context);
5915void tr_scope_any_pop(token_generator& gen, error_handler& err, trigger_building_context& context);
5916void tr_scope_owner(token_generator& gen, error_handler& err, trigger_building_context& context);
5917void tr_scope_controller(token_generator& gen, error_handler& err, trigger_building_context& context);
5918void tr_scope_location(token_generator& gen, error_handler& err, trigger_building_context& context);
5919void tr_scope_country(token_generator& gen, error_handler& err, trigger_building_context& context);
5920void tr_capital_scope(token_generator& gen, error_handler& err, trigger_building_context& context);
5921void tr_scope_this(token_generator& gen, error_handler& err, trigger_building_context& context);
5922void tr_scope_from(token_generator& gen, error_handler& err, trigger_building_context& context);
5923void tr_scope_sea_zone(token_generator& gen, error_handler& err, trigger_building_context& context);
5925void tr_scope_overlord(token_generator& gen, error_handler& err, trigger_building_context& context);
5926void tr_scope_sphere_owner(token_generator& gen, error_handler& err, trigger_building_context& context);
5927void tr_scope_independence(token_generator& gen, error_handler& err, trigger_building_context& context);
5929void tr_crisis_state_scope(token_generator& gen, error_handler& err, trigger_building_context& context);
5930void tr_state_scope(token_generator& gen, error_handler& err, trigger_building_context& context);
5931void tr_scope_variable(std::string_view name, token_generator& gen, error_handler& err, trigger_building_context& context);
5933void tr_scope_any_country(token_generator& gen, error_handler& err, trigger_building_context& context);
5934void tr_scope_all_state(token_generator& gen, error_handler& err, trigger_building_context& context);
5935void tr_scope_all_substate(token_generator& gen, error_handler& err, trigger_building_context& context);
5937void tr_scope_all_pop(token_generator& gen, error_handler& err, trigger_building_context& context);
5945dcon::trigger_key
make_trigger(token_generator& gen, error_handler& err, trigger_building_context& context);
5961dcon::value_modifier_key
make_value_modifier(token_generator& gen, error_handler& err, trigger_building_context& context);
5972 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"state")) {
5974 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"province")) {
5976 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"pop")) {
5978 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"rebel")) {
5980 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"none")) {
5984 "unknown parameter type " + std::string(value) +
" defined for a scripted trigger (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5988 "parameters for a scripted trigger must be given first (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
5995 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"state")) {
5997 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"province")) {
5999 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"pop")) {
6001 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"rebel")) {
6003 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"none")) {
6007 "unknown parameter type " + std::string(value) +
" defined for a scripted trigger (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
6011 "parameters for a scripted trigger must be given first (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
6018 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"state")) {
6020 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"province")) {
6022 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"pop")) {
6024 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"rebel")) {
6026 }
else if(
is_fixed_token_ci(value.data(), value.data() + value.size(),
"none")) {
6030 "unknown parameter type " + std::string(value) +
" defined for a scripted trigger (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
6034 "parameters for a scripted trigger must be given first (" + err.
file_name +
", line " + std::to_string(line) +
")\n";
6039void 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)
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)
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 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 unit_has_leader(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void war_exhaustion(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void civilization_progress(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void is_primary_culture(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void is_capital(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void party_loyalty(tr_party_loyalty const &value, error_handler &err, int32_t line, trigger_building_context &context)
void military_access(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void is_colonial(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void has_country_flag(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void vassal_of(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void unit_in_battle(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void units_in_province(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void middle_strata_everyday_needs(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void is_core(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void upper_house(tr_upper_house const &value, error_handler &err, int32_t line, trigger_building_context &context)
void revanchism(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void always(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void constructing_cb_discovered(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void is_independant(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void is_disarmed(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void culture_group(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void constructing_cb_progress(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void rich_strata_militancy(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void money(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void crisis_temperature(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void neighbour(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void num_of_vassals_no_substates(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void can_build_railway_in_capital(tr_can_build_railway_in_capital const &value, error_handler &err, int32_t line, trigger_building_context &context)
void social_movement_strength(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void total_num_of_ports(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void number_of_states(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void total_pops(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void controls(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void is_sphere_leader_of(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void has_leader(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void political_movement_strength(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void is_possible_vassal(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void primary_culture(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void someone_can_form_union_tag(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void literacy(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void alliance_with(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void big_producer(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void culture(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void war_with(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void invention(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void year(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void month(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void exists(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void is_substate(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void ai(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void terrain(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void is_our_vassal(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void administration_spending(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void casus_belli(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void state_id(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void has_factories(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void accepted_culture(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void controlled_by_rebels(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void produces(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void has_national_focus(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void has_pop_type(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void election(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void social_movement(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void has_unclaimed_cores(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void has_empty_adjacent_state(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void colonial_nation(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void pop_majority_ideology(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void province_id(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void num_of_substates(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void luxury_needs(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void in_default(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void work_available(tr_work_available const &value, error_handler &err, int32_t line, trigger_building_context &context)
void province_control_days(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void education_spending(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void has_crime(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void num_of_ports(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void military_score(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void total_sunk_by_us(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void agree_with_ruling_party(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void culture_has_union_tag(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void has_national_minority(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void war(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void rich_tax_above_poor(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void port(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void can_build_fort_in_capital(tr_can_build_fort_in_capital const &value, error_handler &err, int32_t line, trigger_building_context &context)
void factor(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void rich_tax(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void is_greater_power(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void pop_majority_culture(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void middle_strata_life_needs(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void rich_strata_life_needs(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void is_secondary_power(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void can_create_vassals(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void is_mobilised(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void crime_higher_than_education(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void is_coastal(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void owned_by(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void involved_in_crisis(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void country_units_in_state(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void ruling_party(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void is_next_reform(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void has_global_flag(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void consciousness(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void region(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void war_score(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void lost_national(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void national_provinces_occupied(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void constructing_cb_type(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void flashpoint_tension(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void has_building(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void has_pop_culture(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void unemployment(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void mobilisation_size(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void government(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void is_blockaded(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void middle_strata_luxury_needs(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void total_amount_of_divisions(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void diplomatic_influence(tr_diplomatic_influence const &value, error_handler &err, int32_t line, trigger_building_context &context)
void continent(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void poor_strata_luxury_needs(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void has_culture_core(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void has_province_modifier(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void is_state_religion(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void social_reform_want(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void tag(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void nationalvalue(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void has_flashpoint(association_type a, bool value, error_handler &err, int32_t line, trigger_building_context &context)
void pop_majority_issue(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void social_spending(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void recruited_percentage(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void military_spending(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void is_canal_enabled(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void middle_strata_militancy(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void is_releasable_vassal(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void corruption(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void life_needs(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void rank(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void capital(association_type a, int32_t value, error_handler &err, int32_t line, trigger_building_context &context)
void has_faction(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void prestige(association_type a, std::string_view value, error_handler &err, int32_t line, trigger_building_context &context)
void political_reform_want(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
void revolt_percentage(association_type a, float value, error_handler &err, int32_t line, trigger_building_context &context)
trigger::slot_contents this_slot
trigger::slot_contents from_slot
std::vector< uint16_t > compiled_trigger
trigger::slot_contents main_slot
scenario_building_context & outer_context
trigger_building_context(scenario_building_context &outer_context, trigger::slot_contents main_slot, trigger::slot_contents this_slot, trigger::slot_contents from_slot)
void add_float_to_payload(float f)
void add_int32_t_to_payload(int32_t i)
std::optional< float > factor
void years(association_type, float value, error_handler &err, int32_t line, trigger_building_context &context)
void months(association_type, float value, error_handler &err, int32_t line, trigger_building_context &context)
void group(value_modifier_definition const &value, error_handler &err, int32_t line, trigger_building_context &context)
void finish(trigger_building_context &)