@@ -1801,6 +1801,7 @@ bool ConditionManager::setup_conditions(DefinitionManager const& definition_mana
1801
1801
" brigades_compare" ,
1802
1802
_parse_condition_node_value_callback<fixed_point_t , COUNTRY>,
1803
1803
// TODO - what does this compare against? current scope vs this scope, or a previous/outer current country scope?
1804
+ // brigades_compare first checks if there is a country in THIS scope, if not, then it checks for FROM
1804
1805
_execute_condition_node_unimplemented
1805
1806
);
1806
1807
ret &= add_condition (
@@ -1922,6 +1923,11 @@ bool ConditionManager::setup_conditions(DefinitionManager const& definition_mana
1922
1923
)
1923
1924
)
1924
1925
);
1926
+ ret &= add_condition (
1927
+ " constructing_cb" ,
1928
+ _parse_condition_node_value_callback<CountryDefinition const *, COUNTRY | THIS | FROM>,
1929
+ _execute_condition_node_unimplemented
1930
+ );
1925
1931
ret &= add_condition (
1926
1932
" constructing_cb_progress" ,
1927
1933
_parse_condition_node_value_callback<fixed_point_t , COUNTRY>,
@@ -2097,11 +2103,6 @@ bool ConditionManager::setup_conditions(DefinitionManager const& definition_mana
2097
2103
_parse_condition_node_value_callback<bool >,
2098
2104
_execute_condition_node_unimplemented
2099
2105
);
2100
- ret &= add_condition (
2101
- " have_core_in" ,
2102
- _parse_condition_node_value_callback<CountryDefinition const *, COUNTRY | THIS | FROM>,
2103
- _execute_condition_node_unimplemented
2104
- );
2105
2106
ret &= add_condition (
2106
2107
" has_country_flag" ,
2107
2108
_parse_condition_node_value_callback<std::string, COUNTRY | PROVINCE>,
@@ -2158,6 +2159,8 @@ bool ConditionManager::setup_conditions(DefinitionManager const& definition_mana
2158
2159
_execute_condition_node_unimplemented
2159
2160
);
2160
2161
ret &= add_condition (
2162
+ // checks if the country has lost a war in the last 5 years (losing = making a concession offer,
2163
+ // even giving white peace (but clicking on the "offer" tab) counts as losing)
2161
2164
" has_recently_lost_war" ,
2162
2165
_parse_condition_node_value_callback<bool , COUNTRY>,
2163
2166
_execute_condition_node_unimplemented
@@ -2226,6 +2229,12 @@ bool ConditionManager::setup_conditions(DefinitionManager const& definition_mana
2226
2229
_parse_condition_node_value_callback<bool , COUNTRY>,
2227
2230
_execute_condition_node_unimplemented
2228
2231
);
2232
+ ret &= add_condition (
2233
+ // TODO - Unused trigger, but is recognized as a valid trigger (does it ever return true?)
2234
+ " is_influence_crisis" ,
2235
+ _parse_condition_node_value_callback<bool , COUNTRY>,
2236
+ _execute_condition_node_unimplemented
2237
+ );
2229
2238
ret &= add_condition (
2230
2239
" is_cultural_union" ,
2231
2240
_parse_condition_node_value_callback<
@@ -2767,6 +2776,7 @@ bool ConditionManager::setup_conditions(DefinitionManager const& definition_mana
2767
2776
_execute_condition_node_unimplemented
2768
2777
);
2769
2778
// Shows up in allow decision tooltips but is always false
2779
+ // TODO - "unit_has_leader = no" is the same as "unit_has_leader = yes"
2770
2780
// ret &= add_condition("unit_has_leader", BOOLEAN, COUNTRY);
2771
2781
ret &= add_condition (
2772
2782
" unit_in_battle" ,
@@ -2812,6 +2822,12 @@ bool ConditionManager::setup_conditions(DefinitionManager const& definition_mana
2812
2822
_parse_condition_node_value_callback<CountryDefinition const *, COUNTRY | THIS | FROM>,
2813
2823
_execute_condition_node_unimplemented
2814
2824
);
2825
+ // TODO - Undocumented, only seen used in PDM and Victoria 1.02 as "someone_can_form_union_tag = FROM", recognized by the game engine as valid
2826
+ ret &= add_condition (
2827
+ " someone_can_form_union_tag" ,
2828
+ _parse_condition_node_value_callback<CountryDefinition const *, COUNTRY | THIS | FROM>,
2829
+ _execute_condition_node_unimplemented
2830
+ );
2815
2831
2816
2832
/* State Scope Conditions */
2817
2833
ret &= add_condition (
@@ -2909,6 +2925,7 @@ bool ConditionManager::setup_conditions(DefinitionManager const& definition_mana
2909
2925
_parse_condition_node_value_callback<bool , PROVINCE>,
2910
2926
_execute_condition_node_unimplemented
2911
2927
);
2928
+ // TODO - Usage returns false always - warn about it?
2912
2929
ret &= add_condition (
2913
2930
" has_province_flag" ,
2914
2931
_parse_condition_node_value_callback<std::string, PROVINCE>,
@@ -3325,6 +3342,99 @@ bool ConditionManager::setup_conditions(DefinitionManager const& definition_mana
3325
3342
);
3326
3343
}
3327
3344
3345
+ /* Newspaper conditions */
3346
+ ret &= add_condition (
3347
+ " tags_eq" ,
3348
+ _parse_condition_node_unimplemented,
3349
+ _execute_condition_node_unimplemented
3350
+ );
3351
+ ret &= add_condition (
3352
+ " values_eq" ,
3353
+ _parse_condition_node_unimplemented,
3354
+ _execute_condition_node_unimplemented
3355
+ );
3356
+ ret &= add_condition (
3357
+ " strings_eq" ,
3358
+ _parse_condition_node_unimplemented,
3359
+ _execute_condition_node_unimplemented
3360
+ );
3361
+ ret &= add_condition (
3362
+ " dates_eq" ,
3363
+ _parse_condition_node_unimplemented,
3364
+ _execute_condition_node_unimplemented
3365
+ );
3366
+ ret &= add_condition (
3367
+ " tags_greater" ,
3368
+ _parse_condition_node_unimplemented,
3369
+ _execute_condition_node_unimplemented
3370
+ );
3371
+ ret &= add_condition (
3372
+ " values_greater" ,
3373
+ _parse_condition_node_unimplemented,
3374
+ _execute_condition_node_unimplemented
3375
+ );
3376
+ ret &= add_condition (
3377
+ " strings_greater" ,
3378
+ _parse_condition_node_unimplemented,
3379
+ _execute_condition_node_unimplemented
3380
+ );
3381
+ ret &= add_condition (
3382
+ " dates_greater" ,
3383
+ _parse_condition_node_unimplemented,
3384
+ _execute_condition_node_unimplemented
3385
+ );
3386
+ ret &= add_condition (
3387
+ " tags_match" ,
3388
+ _parse_condition_node_unimplemented,
3389
+ _execute_condition_node_unimplemented
3390
+ );
3391
+ ret &= add_condition (
3392
+ " values_match" ,
3393
+ _parse_condition_node_unimplemented,
3394
+ _execute_condition_node_unimplemented
3395
+ );
3396
+ ret &= add_condition (
3397
+ " strings_match" ,
3398
+ _parse_condition_node_unimplemented,
3399
+ _execute_condition_node_unimplemented
3400
+ );
3401
+ ret &= add_condition (
3402
+ " dates_match" ,
3403
+ _parse_condition_node_unimplemented,
3404
+ _execute_condition_node_unimplemented
3405
+ );
3406
+ ret &= add_condition (
3407
+ " tags_contains" ,
3408
+ _parse_condition_node_unimplemented,
3409
+ _execute_condition_node_unimplemented
3410
+ );
3411
+ ret &= add_condition (
3412
+ " values_contains" ,
3413
+ _parse_condition_node_unimplemented,
3414
+ _execute_condition_node_unimplemented
3415
+ );
3416
+ ret &= add_condition (
3417
+ " strings_contains" ,
3418
+ _parse_condition_node_unimplemented,
3419
+ _execute_condition_node_unimplemented
3420
+ );
3421
+ ret &= add_condition (
3422
+ " dates_contains" ,
3423
+ _parse_condition_node_unimplemented,
3424
+ _execute_condition_node_unimplemented
3425
+ );
3426
+ ret &= add_condition (
3427
+ " length_greater" ,
3428
+ _parse_condition_node_unimplemented,
3429
+ _execute_condition_node_unimplemented
3430
+ );
3431
+ // Amount printed, NOTE: Seems to be buggy when used on decisions and events
3432
+ ret &= add_condition (
3433
+ " news_printing_count" ,
3434
+ _parse_condition_node_unimplemented,
3435
+ _execute_condition_node_unimplemented
3436
+ );
3437
+
3328
3438
if (
3329
3439
add_condition (
3330
3440
" root condition" ,
0 commit comments