Project Alice
Loading...
Searching...
No Matches
gui_trigger_tooltips.cpp
Go to the documentation of this file.
2#include "dcon_generated.hpp"
3#include "system_state.hpp"
4#include "text.hpp"
6#include "triggers.hpp"
7
8namespace ui {
9
10namespace trigger_tooltip {
11
12inline uint32_t ui_count_subtriggers(sys::state& ws, uint16_t const* source) {
13 uint32_t count = 0;
15 auto const source_size = 1 + trigger::get_trigger_scope_payload_size(source);
16 auto sub_units_start = source + 2 + trigger::trigger_scope_data_payload(source[0]);
17 while(sub_units_start < source + source_size) {
18 if(ws.user_settings.spoilers) {
19 ++count;
20 } else {
21 switch(source[0] & trigger::code_mask) {
22 case trigger::has_country_flag:
23 case trigger::has_global_flag:
24 break;
25 default:
26 ++count;
27 break;
28 }
29 }
30 sub_units_start += 1 + trigger::get_trigger_payload_size(sub_units_start);
31 }
32 }
33 return count;
34}
35
36inline std::string_view cmp_code_to_fixed_ui(uint16_t code) {
37 switch(code & trigger::association_mask) {
39 return "cmp_eq";
41 return "cmp_le";
43 return "cmp_lt";
45 return "cmp_ge";
47 return "cmp_gt";
49 return "cmp_ne";
50 }
51 return "cmp_eq";
52}
53
54inline std::string_view cmp_has_code_to_fixed_ui(uint16_t code) {
55 switch(code & trigger::association_mask) {
57 return "cmp_has_eq";
59 return "cmp_has_le";
61 return "cmp_has_lt";
63 return "cmp_has_ge";
65 return "cmp_has_gt";
67 return "cmp_has_ne";
68 }
69 return "cmp_has_eq";
70}
71
72inline std::string_view any_all_code_to_fixed_ui(uint16_t code) {
74 return "any_of_the_following";
75 else
76 return "all_of_the_following";
77}
78
79inline std::string_view every_any_code_to_fixed_ui(uint16_t code) {
81 return "any";
82 else
83 return "every";
84}
85
86void display_with_comparison(uint16_t trigger_code, text::substitution left_label, text::substitution value, sys::state& ws,
87 text::layout_base& layout, text::layout_box& box) {
88
89 text::add_to_layout_box(ws, layout, box, left_label, text::text_color::white);
90 text::add_space_to_layout_box(ws, layout, box);
93 text::add_space_to_layout_box(ws, layout, box);
94 text::add_to_layout_box(ws, layout, box, value, text::text_color::white);
95}
96
97void display_with_has_comparison(uint16_t trigger_code, text::substitution left_label, text::substitution value, sys::state& ws,
98 text::layout_base& layout, text::layout_box& box) {
99
100 text::add_to_layout_box(ws, layout, box, left_label, text::text_color::white);
101 text::add_space_to_layout_box(ws, layout, box);
104 text::add_space_to_layout_box(ws, layout, box);
105 text::add_to_layout_box(ws, layout, box, value, text::text_color::white);
106}
107
108void display_with_comparison(uint16_t trigger_code, text::substitution value, sys::state& ws, text::layout_base& layout,
109 text::layout_box& box) {
110
113 text::add_space_to_layout_box(ws, layout, box);
114 text::add_to_layout_box(ws, layout, box, value, text::text_color::white);
115}
116
117void display_with_has_comparison(uint16_t trigger_code, text::substitution value, sys::state& ws, text::layout_base& layout,
118 text::layout_box& box) {
119
122 text::add_space_to_layout_box(ws, layout, box);
123 text::add_to_layout_box(ws, layout, box, value, text::text_color::white);
124}
125
126void make_trigger_description(sys::state& ws, text::layout_base& layout, uint16_t const* tval, int32_t primary_slot,
127 int32_t this_slot, int32_t from_slot, int32_t indentation, bool show_condition);
128
129inline constexpr int32_t indentation_amount = 15;
130
131inline void display_subtriggers(uint16_t const* source, sys::state& ws, text::layout_base& layout, int32_t primary_slot,
132 int32_t this_slot, int32_t from_slot, int32_t indentation, bool show_condition) {
133
134 auto const source_size = 1 + trigger::get_trigger_payload_size(source);
135 auto sub_units_start = source + 2 + trigger::trigger_scope_data_payload(source[0]);
136 while(sub_units_start < source + source_size) {
137 make_trigger_description(ws, layout, sub_units_start, primary_slot, this_slot, from_slot, indentation, show_condition);
138 sub_units_start += 1 + trigger::get_trigger_payload_size(sub_units_start);
139 }
140}
141
142#define TRIGGER_DISPLAY_PARAMS \
143 uint16_t const *tval, sys::state &ws, text::layout_base &layout, int32_t primary_slot, int32_t this_slot, int32_t from_slot, \
144 int32_t indentation, bool show_condition
145
147
149
151 if(show_condition) {
152 auto r = trigger::evaluate(ws, tval, primary_slot, this_slot, from_slot);
153 if(r) {
155 text::add_space_to_layout_box(ws, layout, box);
156 } else {
158 text::add_space_to_layout_box(ws, layout, box);
159 }
160 } else {
161 text::add_to_layout_box(ws, layout, box, std::string_view("•"), text::text_color::white);
162 text::add_space_to_layout_box(ws, layout, box);
163 }
164}
165
167 auto st_count = ui_count_subtriggers(ws, tval);
168 if(st_count > 1) {
169 auto box = text::open_layout_box(layout, indentation);
170 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
172 text::close_layout_box(layout, box);
173 }
174 display_subtriggers(tval, ws, layout, primary_slot, this_slot, from_slot, indentation + (st_count > 1 ? indentation_amount : 0),
175 show_condition);
176}
178 {
179 auto box = text::open_layout_box(layout, indentation);
180 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
182 text::add_space_to_layout_box(ws, layout, box);
183 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "neighboring_province"));
184 text::close_layout_box(layout, box);
185 }
186 auto st_count = ui_count_subtriggers(ws, tval);
187 if(st_count > 1) {
188 auto box = text::open_layout_box(layout, indentation + indentation_amount);
190 text::close_layout_box(layout, box);
191 }
192 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
193}
195
196 {
197 auto box = text::open_layout_box(layout, indentation);
198 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
200 text::add_space_to_layout_box(ws, layout, box);
201 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "neighboring_province"));
202 text::close_layout_box(layout, box);
203 }
204
205 auto st_count = ui_count_subtriggers(ws, tval);
206 if(st_count > 1) {
207 auto box = text::open_layout_box(layout, indentation + indentation_amount);
209 text::close_layout_box(layout, box);
210 }
211
212 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
213}
215 {
216 auto box = text::open_layout_box(layout, indentation);
217 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
219 text::add_space_to_layout_box(ws, layout, box);
220 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "neighboring_nation"));
221 text::close_layout_box(layout, box);
222 }
223
224 if(ui_count_subtriggers(ws, tval) > 1) {
225 auto box = text::open_layout_box(layout, indentation + indentation_amount);
227 text::close_layout_box(layout, box);
228 }
229
230 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
231}
233 {
234 auto box = text::open_layout_box(layout, indentation);
235 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
237 text::add_space_to_layout_box(ws, layout, box);
238 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "neighboring_nation"));
239 text::close_layout_box(layout, box);
240 }
241
242 if(ui_count_subtriggers(ws, tval) > 1) {
243 auto box = text::open_layout_box(layout, indentation + indentation_amount);
245 text::close_layout_box(layout, box);
246 }
247
248 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
249}
251 {
252 auto box = text::open_layout_box(layout, indentation);
253 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
255 text::add_space_to_layout_box(ws, layout, box);
256 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "nation_at_war_against"));
257 text::close_layout_box(layout, box);
258 }
259
260 if(ui_count_subtriggers(ws, tval) > 1) {
261 auto box = text::open_layout_box(layout, indentation + indentation_amount);
263 text::close_layout_box(layout, box);
264 }
265
266 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
267}
269 {
270 auto box = text::open_layout_box(layout, indentation);
271 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
273 text::add_space_to_layout_box(ws, layout, box);
274 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "nation_at_war_against"));
275 text::close_layout_box(layout, box);
276 }
277
278 if(ui_count_subtriggers(ws, tval) > 1) {
279 auto box = text::open_layout_box(layout, indentation + indentation_amount);
281 text::close_layout_box(layout, box);
282 }
283
284 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
285}
287 {
288 auto box = text::open_layout_box(layout, indentation);
289 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
291 text::add_space_to_layout_box(ws, layout, box);
292 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "great_power"));
293 text::close_layout_box(layout, box);
294 }
295
296 if(ui_count_subtriggers(ws, tval) > 1) {
297 auto box = text::open_layout_box(layout, indentation + indentation_amount);
299 text::close_layout_box(layout, box);
300 }
301
302 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
303}
305 {
306 auto box = text::open_layout_box(layout, indentation);
307 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
309 text::add_space_to_layout_box(ws, layout, box);
310 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "nation"));
311 text::close_layout_box(layout, box);
312 }
313
314 if(ui_count_subtriggers(ws, tval) > 1) {
315 auto box = text::open_layout_box(layout, indentation + indentation_amount);
317 text::close_layout_box(layout, box);
318 }
319
320 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
321}
323 {
324 auto box = text::open_layout_box(layout, indentation);
325 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
327 text::add_space_to_layout_box(ws, layout, box);
328 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "owned_province"));
329 text::add_space_to_layout_box(ws, layout, box);
330 text::add_to_layout_box(ws, layout, box,
331 primary_slot != -1 ? text::get_dynamic_state_name(ws, trigger::to_state(primary_slot))
332 : text::produce_simple_string(ws, "singular_state"));
333 text::close_layout_box(layout, box);
334 }
335
336 if(ui_count_subtriggers(ws, tval) > 1) {
337 auto box = text::open_layout_box(layout, indentation + indentation_amount);
339 text::close_layout_box(layout, box);
340 }
341
342 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
343}
345 {
346 auto box = text::open_layout_box(layout, indentation);
347 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
349 text::add_space_to_layout_box(ws, layout, box);
350 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "owned_province"));
351 text::add_space_to_layout_box(ws, layout, box);
352 text::add_to_layout_box(ws, layout, box,
353 primary_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(primary_slot)))
354 : text::produce_simple_string(ws, "singular_nation"));
355 text::close_layout_box(layout, box);
356 }
357
358 if(ui_count_subtriggers(ws, tval) > 1) {
359 auto box = text::open_layout_box(layout, indentation + indentation_amount);
361 text::close_layout_box(layout, box);
362 }
363
364 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
365}
367 {
368 auto box = text::open_layout_box(layout, indentation);
369 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
371 text::add_space_to_layout_box(ws, layout, box);
372 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "core_in"));
373 text::add_space_to_layout_box(ws, layout, box);
374 text::add_to_layout_box(ws, layout, box,
375 primary_slot != -1 ? text::produce_simple_string(ws, ws.world.province_get_name(trigger::to_prov(primary_slot)))
376 : text::produce_simple_string(ws, "singular_province"));
377 text::close_layout_box(layout, box);
378 }
379
380 if(ui_count_subtriggers(ws, tval) > 1) {
381 auto box = text::open_layout_box(layout, indentation + indentation_amount);
383 text::close_layout_box(layout, box);
384 }
385
386 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
387}
389 {
390 auto box = text::open_layout_box(layout, indentation);
391 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
393 text::add_space_to_layout_box(ws, layout, box);
394 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "core_of"));
395 text::add_space_to_layout_box(ws, layout, box);
396 text::add_to_layout_box(ws, layout, box,
397 primary_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(primary_slot)))
398 : text::produce_simple_string(ws, "singular_nation"));
399 text::close_layout_box(layout, box);
400 }
401
402 if(ui_count_subtriggers(ws, tval) > 1) {
403 auto box = text::open_layout_box(layout, indentation + indentation_amount);
405 text::close_layout_box(layout, box);
406 }
407
408 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
409}
411 {
412 auto box = text::open_layout_box(layout, indentation);
413 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
415 text::add_space_to_layout_box(ws, layout, box);
416 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "state_of"));
417 text::add_space_to_layout_box(ws, layout, box);
418 text::add_to_layout_box(ws, layout, box,
419 primary_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(primary_slot)))
420 : text::produce_simple_string(ws, "singular_nation"));
421 text::close_layout_box(layout, box);
422 }
423
424 if(ui_count_subtriggers(ws, tval) > 1) {
425 auto box = text::open_layout_box(layout, indentation + indentation_amount);
427 text::close_layout_box(layout, box);
428 }
429
430 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
431}
433 {
434 auto box = text::open_layout_box(layout, indentation);
435 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
437 text::add_space_to_layout_box(ws, layout, box);
438 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "substate_of"));
439 text::add_space_to_layout_box(ws, layout, box);
440 text::add_to_layout_box(ws, layout, box,
441 primary_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(primary_slot)))
442 : text::produce_simple_string(ws, "singular_nation"));
443 text::close_layout_box(layout, box);
444 }
445
446 if(ui_count_subtriggers(ws, tval) > 1) {
447 auto box = text::open_layout_box(layout, indentation + indentation_amount);
449 text::close_layout_box(layout, box);
450 }
451
452 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
453}
455 {
456 auto box = text::open_layout_box(layout, indentation);
457 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
459 text::add_space_to_layout_box(ws, layout, box);
460 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "nation_in_sphere"));
461 text::add_space_to_layout_box(ws, layout, box);
462 text::add_to_layout_box(ws, layout, box,
463 primary_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(primary_slot)))
464 : text::produce_simple_string(ws, "singular_nation"));
465 text::close_layout_box(layout, box);
466 }
467
468 if(ui_count_subtriggers(ws, tval) > 1) {
469 auto box = text::open_layout_box(layout, indentation + indentation_amount);
471 text::close_layout_box(layout, box);
472 }
473
474 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
475}
477 {
478 auto box = text::open_layout_box(layout, indentation);
479 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
481 text::add_space_to_layout_box(ws, layout, box);
482 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pop"));
483 text::close_layout_box(layout, box);
484 }
485
486 if(ui_count_subtriggers(ws, tval) > 1) {
487 auto box = text::open_layout_box(layout, indentation + indentation_amount);
489 text::close_layout_box(layout, box);
490 }
491
492 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
493}
495 {
496 auto box = text::open_layout_box(layout, indentation);
497 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
499 text::add_space_to_layout_box(ws, layout, box);
500 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pop"));
501 text::close_layout_box(layout, box);
502 }
503
504 if(ui_count_subtriggers(ws, tval) > 1) {
505 auto box = text::open_layout_box(layout, indentation + indentation_amount);
507 text::close_layout_box(layout, box);
508 }
509
510 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
511}
513 {
514 auto box = text::open_layout_box(layout, indentation);
515 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
517 text::add_space_to_layout_box(ws, layout, box);
518 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pop"));
519 text::close_layout_box(layout, box);
520 }
521
522 if(ui_count_subtriggers(ws, tval) > 1) {
523 auto box = text::open_layout_box(layout, indentation + indentation_amount);
525 text::close_layout_box(layout, box);
526 }
527
528 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
529}
531 auto region = trigger::payload(*(tval + 2)).state_id;
532
533 {
534 auto box = text::open_layout_box(layout, indentation);
535 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
537 text::add_space_to_layout_box(ws, layout, box);
538 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "province_in"));
539 text::add_space_to_layout_box(ws, layout, box);
540 text::add_to_layout_box(ws, layout, box, region);
541 text::close_layout_box(layout, box);
542 }
543
544 if(ui_count_subtriggers(ws, tval) > 1) {
545 auto box = text::open_layout_box(layout, indentation + indentation_amount);
547 text::close_layout_box(layout, box);
548 }
549
550 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
551}
553 auto region = trigger::payload(*(tval + 2)).reg_id;
554
555 {
556 auto box = text::open_layout_box(layout, indentation);
557 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
559 text::add_space_to_layout_box(ws, layout, box);
560 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "province_in"));
561 text::add_space_to_layout_box(ws, layout, box);
562 text::add_to_layout_box(ws, layout, box, ws.world.region_get_name(region));
563 text::close_layout_box(layout, box);
564 }
565
566 if(ui_count_subtriggers(ws, tval) > 1) {
567 auto box = text::open_layout_box(layout, indentation + indentation_amount);
569 text::close_layout_box(layout, box);
570 }
571
572 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
573}
575 {
576 auto box = text::open_layout_box(layout, indentation);
577 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
578 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "owner_of"));
579 text::add_space_to_layout_box(ws, layout, box);
580 text::add_to_layout_box(ws, layout, box,
581 primary_slot != -1 ? text::get_dynamic_state_name(ws, trigger::to_state(primary_slot))
582 : text::produce_simple_string(ws, "singular_state"));
583 text::close_layout_box(layout, box);
584 }
585
586 if(ui_count_subtriggers(ws, tval) > 1) {
587 auto box = text::open_layout_box(layout, indentation + indentation_amount);
589 text::close_layout_box(layout, box);
590 }
591
592 display_subtriggers(tval, ws, layout,
593 primary_slot != -1
594 ? trigger::to_generic(ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(primary_slot)))
595 : -1,
596 this_slot, from_slot, indentation + indentation_amount, show_condition && primary_slot != -1);
597}
599 {
600 auto box = text::open_layout_box(layout, indentation);
601 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
602 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "owner_of"));
603 text::add_space_to_layout_box(ws, layout, box);
604 text::add_to_layout_box(ws, layout, box,
605 primary_slot != -1 ? text::produce_simple_string(ws, ws.world.province_get_name(trigger::to_prov(primary_slot)))
606 : text::produce_simple_string(ws, "singular_province"));
607 text::close_layout_box(layout, box);
608 }
609
610 if(ui_count_subtriggers(ws, tval) > 1) {
611 auto box = text::open_layout_box(layout, indentation + indentation_amount);
613 text::close_layout_box(layout, box);
614 }
615
616 display_subtriggers(tval, ws, layout,
617 primary_slot != -1
618 ? trigger::to_generic(ws.world.province_get_nation_from_province_ownership(trigger::to_prov(primary_slot)))
619 : -1,
620 this_slot, from_slot, indentation + indentation_amount, show_condition && primary_slot != -1);
621}
623 {
624 auto box = text::open_layout_box(layout, indentation);
625 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
626 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "controller_of"));
627 text::add_space_to_layout_box(ws, layout, box);
628 text::add_to_layout_box(ws, layout, box,
629 primary_slot != -1 ? text::produce_simple_string(ws, ws.world.province_get_name(trigger::to_prov(primary_slot)))
630 : text::produce_simple_string(ws, "singular_province"));
631 text::close_layout_box(layout, box);
632 }
633
634 if(ui_count_subtriggers(ws, tval) > 1) {
635 auto box = text::open_layout_box(layout, indentation + indentation_amount);
637 text::close_layout_box(layout, box);
638 }
639
640 display_subtriggers(tval, ws, layout,
641 primary_slot != -1 ? trigger::to_generic(ws.world.province_get_nation_from_province_control(trigger::to_prov(primary_slot)))
642 : -1,
643 this_slot, from_slot, indentation + indentation_amount, show_condition && primary_slot != -1);
644}
646 {
647 auto box = text::open_layout_box(layout, indentation);
648 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
649 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "location_of_pop"));
650 text::close_layout_box(layout, box);
651 }
652
653 if(ui_count_subtriggers(ws, tval) > 1) {
654 auto box = text::open_layout_box(layout, indentation + indentation_amount);
656 text::close_layout_box(layout, box);
657 }
658
659 auto loc =
660 primary_slot != -1 ? trigger::to_generic(ws.world.pop_get_province_from_pop_location(trigger::to_pop(primary_slot))) : -1;
661 display_subtriggers(tval, ws, layout, loc, this_slot, from_slot, indentation + indentation_amount,
662 show_condition && primary_slot != -1);
663}
665 {
666 auto box = text::open_layout_box(layout, indentation);
667 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
668 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "owner_of"));
669 text::add_space_to_layout_box(ws, layout, box);
670 text::add_to_layout_box(ws, layout, box,
671 primary_slot != -1 ? text::get_dynamic_state_name(ws, trigger::to_state(primary_slot))
672 : text::produce_simple_string(ws, "singular_state"));
673 text::close_layout_box(layout, box);
674 }
675
676 if(ui_count_subtriggers(ws, tval) > 1) {
677 auto box = text::open_layout_box(layout, indentation + indentation_amount);
679 text::close_layout_box(layout, box);
680 }
681
682 display_subtriggers(tval, ws, layout,
683 primary_slot != -1
684 ? trigger::to_generic(ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(primary_slot)))
685 : -1,
686 this_slot, from_slot, indentation + indentation_amount, show_condition && primary_slot != -1);
687}
689 {
690 auto box = text::open_layout_box(layout, indentation);
691 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
692 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "nation_of_pop"));
693 text::close_layout_box(layout, box);
694 }
695
696 if(ui_count_subtriggers(ws, tval) > 1) {
697 auto box = text::open_layout_box(layout, indentation + indentation_amount);
699 text::close_layout_box(layout, box);
700 }
701
702 display_subtriggers(tval, ws, layout,
703 primary_slot != -1 ? trigger::to_generic(nations::owner_of_pop(ws, trigger::to_pop(primary_slot))) : -1, this_slot,
704 from_slot, indentation + indentation_amount, show_condition && primary_slot != -1);
705}
707 {
708 auto box = text::open_layout_box(layout, indentation);
709 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
710 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "capital_of"));
711 text::add_space_to_layout_box(ws, layout, box);
712 text::add_to_layout_box(ws, layout, box,
713 primary_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(primary_slot)))) : text::produce_simple_string(ws, "singular_nation"));
714 text::close_layout_box(layout, box);
715 }
716
717 if(ui_count_subtriggers(ws, tval) > 1) {
718 auto box = text::open_layout_box(layout, indentation + indentation_amount);
720 text::close_layout_box(layout, box);
721 }
722
723 auto loc = primary_slot != -1 ? trigger::to_generic(ws.world.nation_get_capital(ws.world.province_get_nation_from_province_ownership(trigger::to_prov(primary_slot)))) : -1;
724 display_subtriggers(tval, ws, layout, loc, this_slot, from_slot, indentation + indentation_amount, show_condition && primary_slot != -1);
725}
727 {
728 auto box = text::open_layout_box(layout, indentation);
729 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
730 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "capital_of"));
731 text::add_space_to_layout_box(ws, layout, box);
732 text::add_to_layout_box(ws, layout, box,
733 primary_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, nations::owner_of_pop(ws, trigger::to_pop(primary_slot)))) : text::produce_simple_string(ws, "singular_nation"));
734 text::close_layout_box(layout, box);
735 }
736
737 if(ui_count_subtriggers(ws, tval) > 1) {
738 auto box = text::open_layout_box(layout, indentation + indentation_amount);
740 text::close_layout_box(layout, box);
741 }
742
743 auto loc = primary_slot != -1 ? trigger::to_generic(ws.world.nation_get_capital(nations::owner_of_pop(ws, trigger::to_pop(primary_slot)))) : -1;
744 display_subtriggers(tval, ws, layout, loc, this_slot, from_slot, indentation + indentation_amount, show_condition && primary_slot != -1);
745}
747 {
748 auto box = text::open_layout_box(layout, indentation);
749 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
750 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "capital_of"));
751 text::add_space_to_layout_box(ws, layout, box);
752 text::add_to_layout_box(ws, layout, box,
753 primary_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(primary_slot)))
754 : text::produce_simple_string(ws, "singular_nation"));
755 text::close_layout_box(layout, box);
756 }
757
758 if(ui_count_subtriggers(ws, tval) > 1) {
759 auto box = text::open_layout_box(layout, indentation + indentation_amount);
761 text::close_layout_box(layout, box);
762 }
763
764 auto loc = primary_slot != -1 ? trigger::to_generic(ws.world.nation_get_capital(trigger::to_nation(primary_slot))) : -1;
765 display_subtriggers(tval, ws, layout, loc, this_slot, from_slot, indentation + indentation_amount,
766 show_condition && primary_slot != -1);
767}
769 {
770 auto box = text::open_layout_box(layout, indentation);
771 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
772 text::add_to_layout_box(ws, layout, box,
773 this_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(this_slot)))
774 : text::produce_simple_string(ws, "this_nation"));
775 text::close_layout_box(layout, box);
776 }
777
778 if(ui_count_subtriggers(ws, tval) > 1) {
779 auto box = text::open_layout_box(layout, indentation + indentation_amount);
781 text::close_layout_box(layout, box);
782 }
783
784 display_subtriggers(tval, ws, layout, this_slot, this_slot, from_slot, indentation + indentation_amount, this_slot != -1);
785}
787 {
788 auto box = text::open_layout_box(layout, indentation);
789 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
790 text::add_to_layout_box(ws, layout, box,
791 this_slot != -1 ? text::get_dynamic_state_name(ws, trigger::to_state(this_slot))
792 : text::produce_simple_string(ws, "this_state"));
793 text::close_layout_box(layout, box);
794 }
795
796 if(ui_count_subtriggers(ws, tval) > 1) {
797 auto box = text::open_layout_box(layout, indentation + indentation_amount);
799 text::close_layout_box(layout, box);
800 }
801
802 display_subtriggers(tval, ws, layout, this_slot, this_slot, from_slot, indentation + indentation_amount, this_slot != -1);
803}
805 {
806 auto box = text::open_layout_box(layout, indentation);
807 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
808 text::add_to_layout_box(ws, layout, box,
809 this_slot != -1 ? text::produce_simple_string(ws, ws.world.province_get_name(trigger::to_prov(this_slot)))
810 : text::produce_simple_string(ws, "this_province"));
811 text::close_layout_box(layout, box);
812 }
813
814 if(ui_count_subtriggers(ws, tval) > 1) {
815 auto box = text::open_layout_box(layout, indentation + indentation_amount);
817 text::close_layout_box(layout, box);
818 }
819
820 display_subtriggers(tval, ws, layout, this_slot, this_slot, from_slot, indentation + indentation_amount, this_slot != -1);
821}
823 {
824 auto box = text::open_layout_box(layout, indentation);
825 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
826 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop"));
827 text::close_layout_box(layout, box);
828 }
829
830 if(ui_count_subtriggers(ws, tval) > 1) {
831 auto box = text::open_layout_box(layout, indentation + indentation_amount);
833 text::close_layout_box(layout, box);
834 }
835
836 display_subtriggers(tval, ws, layout, this_slot, this_slot, from_slot, indentation + indentation_amount, this_slot != -1);
837}
839 {
840 auto box = text::open_layout_box(layout, indentation);
841 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
842 text::add_to_layout_box(ws, layout, box,
843 from_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(from_slot)))
844 : text::produce_simple_string(ws, "from_nation"));
845 text::close_layout_box(layout, box);
846 }
847
848 if(ui_count_subtriggers(ws, tval) > 1) {
849 auto box = text::open_layout_box(layout, indentation + indentation_amount);
851 text::close_layout_box(layout, box);
852 }
853
854 display_subtriggers(tval, ws, layout, from_slot, this_slot, from_slot, indentation + indentation_amount, from_slot != -1);
855}
857 {
858 auto box = text::open_layout_box(layout, indentation);
859 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
860 text::add_to_layout_box(ws, layout, box,
861 from_slot != -1 ? text::get_dynamic_state_name(ws, trigger::to_state(from_slot))
862 : text::produce_simple_string(ws, "from_state"));
863 text::close_layout_box(layout, box);
864 }
865
866 if(ui_count_subtriggers(ws, tval) > 1) {
867 auto box = text::open_layout_box(layout, indentation + indentation_amount);
869 text::close_layout_box(layout, box);
870 }
871
872 display_subtriggers(tval, ws, layout, from_slot, this_slot, from_slot, indentation + indentation_amount, from_slot != -1);
873}
875 {
876 auto box = text::open_layout_box(layout, indentation);
877 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
878 text::add_to_layout_box(ws, layout, box,
879 from_slot != -1 ? text::produce_simple_string(ws, ws.world.province_get_name(trigger::to_prov(from_slot)))
880 : text::produce_simple_string(ws, "from_province"));
881 text::close_layout_box(layout, box);
882 }
883
884 if(ui_count_subtriggers(ws, tval) > 1) {
885 auto box = text::open_layout_box(layout, indentation + indentation_amount);
887 text::close_layout_box(layout, box);
888 }
889
890 display_subtriggers(tval, ws, layout, from_slot, this_slot, from_slot, indentation + indentation_amount, from_slot != -1);
891}
893 {
894 auto box = text::open_layout_box(layout, indentation);
895 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
896 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_pop"));
897 text::close_layout_box(layout, box);
898 }
899
900 if(ui_count_subtriggers(ws, tval) > 1) {
901 auto box = text::open_layout_box(layout, indentation + indentation_amount);
903 text::close_layout_box(layout, box);
904 }
905
906 display_subtriggers(tval, ws, layout, from_slot, this_slot, from_slot, indentation + indentation_amount, from_slot != -1);
907}
909 {
910 auto box = text::open_layout_box(layout, indentation);
911 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
912 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "adjacent_sea"));
913 text::close_layout_box(layout, box);
914 }
915
916 if(ui_count_subtriggers(ws, tval) > 1) {
917 auto box = text::open_layout_box(layout, indentation + indentation_amount);
919 text::close_layout_box(layout, box);
920 }
921
922 auto sea_zone = primary_slot != -1 ? [&ws](int32_t p_slot) {
923 auto pid = fatten(ws.world, trigger::to_prov(p_slot));
924 for(auto adj : pid.get_province_adjacency()) {
925 if(adj.get_connected_provinces(0).id.index() >= ws.province_definitions.first_sea_province.index()) {
926 return adj.get_connected_provinces(0).id;
927 } else if(adj.get_connected_provinces(1).id.index() >= ws.province_definitions.first_sea_province.index()) {
928 return adj.get_connected_provinces(1).id;
929 }
930 }
931 return dcon::province_id{};
932 }(primary_slot)
933 : dcon::province_id{};
934
935 if(sea_zone) {
936 display_subtriggers(tval, ws, layout, trigger::to_generic(sea_zone), this_slot, from_slot, indentation + indentation_amount,
937 show_condition);
938 } else {
939 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
940 }
941}
943 auto prim_culture =
944 primary_slot != -1 ? ws.world.nation_get_primary_culture(trigger::to_nation(primary_slot)) : dcon::culture_id{};
945 auto cg = ws.world.culture_get_group_from_culture_group_membership(prim_culture);
946
947 {
948 auto box = text::open_layout_box(layout, indentation);
949 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
950 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "cultural_union_of"));
951 text::add_space_to_layout_box(ws, layout, box);
952 text::add_to_layout_box(ws, layout, box,
953 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
954 : text::produce_simple_string(ws, "singular_nation"));
955 text::close_layout_box(layout, box);
956 }
957
958 if(ui_count_subtriggers(ws, tval) > 1) {
959 auto box = text::open_layout_box(layout, indentation + indentation_amount);
961 text::close_layout_box(layout, box);
962 }
963
964 auto union_tag = ws.world.culture_group_get_identity_from_cultural_union_of(cg);
965 auto group_holder = ws.world.national_identity_get_nation_from_identity_holder(union_tag);
966
967 display_subtriggers(tval, ws, layout, trigger::to_generic(group_holder), this_slot, from_slot, indentation + indentation_amount,
968 show_condition);
969}
971 {
972 auto box = text::open_layout_box(layout, indentation);
973 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
974 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "overlord_of"));
975 text::add_space_to_layout_box(ws, layout, box);
976 text::add_to_layout_box(ws, layout, box,
977 primary_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(primary_slot)))
978 : text::produce_simple_string(ws, "singular_nation"));
979 text::close_layout_box(layout, box);
980 }
981
982 if(ui_count_subtriggers(ws, tval) > 1) {
983 auto box = text::open_layout_box(layout, indentation + indentation_amount);
985 text::close_layout_box(layout, box);
986 }
987
988 auto olr = ws.world.nation_get_overlord_as_subject(trigger::to_nation(primary_slot));
989 display_subtriggers(tval, ws, layout, trigger::to_generic(ws.world.overlord_get_ruler(olr)), this_slot, from_slot,
990 indentation + indentation_amount, show_condition && primary_slot != -1);
991}
993 {
994 auto box = text::open_layout_box(layout, indentation);
995 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
996 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "sphere_leader_of"));
997 text::add_space_to_layout_box(ws, layout, box);
998 text::add_to_layout_box(ws, layout, box,
999 primary_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(primary_slot)))
1000 : text::produce_simple_string(ws, "singular_nation"));
1001 text::close_layout_box(layout, box);
1002 }
1003
1004 if(ui_count_subtriggers(ws, tval) > 1) {
1005 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1007 text::close_layout_box(layout, box);
1008 }
1009
1010 display_subtriggers(tval, ws, layout,
1011 primary_slot != -1 ? trigger::to_generic(ws.world.nation_get_in_sphere_of((trigger::to_nation(primary_slot)))) : -1,
1012 this_slot, from_slot, indentation + indentation_amount, show_condition && primary_slot != -1);
1013}
1015 auto rtag =
1016 from_slot != -1 ? ws.world.rebel_faction_get_defection_target(trigger::to_rebel(from_slot)) : dcon::national_identity_id{};
1017 auto r_holder = ws.world.national_identity_get_nation_from_identity_holder(rtag);
1018
1019 {
1020 auto box = text::open_layout_box(layout, indentation);
1021 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1022 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "reb_independence_nation"));
1023 text::close_layout_box(layout, box);
1024 }
1025
1026 if(ui_count_subtriggers(ws, tval) > 1) {
1027 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1029 text::close_layout_box(layout, box);
1030 }
1031
1032 display_subtriggers(tval, ws, layout, r_holder ? trigger::to_generic(r_holder) : -1, this_slot, from_slot,
1033 indentation + indentation_amount, show_condition && bool(r_holder));
1034}
1036 auto ctag = ws.world.state_instance_get_flashpoint_tag(trigger::to_state(primary_slot));
1037 auto fp_nation = ws.world.national_identity_get_nation_from_identity_holder(ctag);
1038
1039 {
1040 auto box = text::open_layout_box(layout, indentation);
1041 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1042 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "flashpoint_nation"));
1043 text::close_layout_box(layout, box);
1044 }
1045
1046 if(ui_count_subtriggers(ws, tval) > 1) {
1047 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1049 text::close_layout_box(layout, box);
1050 }
1051
1052 display_subtriggers(tval, ws, layout, fp_nation ? trigger::to_generic(fp_nation) : -1, this_slot, from_slot,
1053 indentation + indentation_amount, show_condition && bool(fp_nation));
1054}
1056 {
1057 auto box = text::open_layout_box(layout, indentation);
1058 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1059 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "crisis_state"));
1060 text::close_layout_box(layout, box);
1061 }
1062
1063 if(ui_count_subtriggers(ws, tval) > 1) {
1064 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1066 text::close_layout_box(layout, box);
1067 }
1068
1069 auto cstate = ws.crisis_state ? trigger::to_generic(ws.crisis_state) : -1;
1070 display_subtriggers(tval, ws, layout, cstate, this_slot, from_slot, indentation + indentation_amount,
1071 show_condition && cstate != -1);
1072}
1074 {
1075 auto box = text::open_layout_box(layout, indentation);
1076 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1077 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "containing_state"));
1078 text::add_space_to_layout_box(ws, layout, box);
1079 text::add_to_layout_box(ws, layout, box,
1080 primary_slot != -1 ? text::produce_simple_string(ws, ws.world.province_get_name(trigger::to_prov(primary_slot)))
1081 : text::produce_simple_string(ws, "singular_province"));
1082 text::close_layout_box(layout, box);
1083 }
1084
1085 if(ui_count_subtriggers(ws, tval) > 1) {
1086 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1088 text::close_layout_box(layout, box);
1089 }
1090
1091 auto st =
1092 primary_slot != -1 ? ws.world.province_get_state_membership(trigger::to_prov(primary_slot)) : dcon::state_instance_id{};
1093
1094 display_subtriggers(tval, ws, layout, st ? trigger::to_generic(st) : -1, this_slot, from_slot, indentation + indentation_amount,
1095 show_condition && st);
1096}
1098 {
1099 auto box = text::open_layout_box(layout, indentation);
1100 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1101 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "containing_state"));
1102 text::add_space_to_layout_box(ws, layout, box);
1103 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "singular_pop"));
1104 text::close_layout_box(layout, box);
1105 }
1106
1107 if(ui_count_subtriggers(ws, tval) > 1) {
1108 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1110 text::close_layout_box(layout, box);
1111 }
1112
1113 auto st = primary_slot != -1 ? ws.world.province_get_state_membership(
1114 ws.world.pop_get_province_from_pop_location(trigger::to_pop(primary_slot)))
1115 : dcon::state_instance_id{};
1116
1117 display_subtriggers(tval, ws, layout, st ? trigger::to_generic(st) : -1, this_slot, from_slot, indentation + indentation_amount,
1118 show_condition && st);
1119}
1121 auto tag = trigger::payload(tval[2]).tag_id;
1122 auto tag_holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
1123
1124 {
1125 auto box = text::open_layout_box(layout, indentation);
1126 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1127 text::add_to_layout_box(ws, layout, box,
1129 tag_holder ? text::get_name(ws, tag_holder) : ws.world.national_identity_get_name(tag)));
1130 text::close_layout_box(layout, box);
1131 }
1132
1133 if(ui_count_subtriggers(ws, tval) > 1) {
1134 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1136 text::close_layout_box(layout, box);
1137 }
1138
1139 display_subtriggers(tval, ws, layout, tag_holder ? trigger::to_generic(tag_holder) : -1, this_slot, from_slot,
1140 indentation + indentation_amount, show_condition && tag_holder);
1141}
1143 auto p = trigger::payload(tval[2]).prov_id;
1144
1145 {
1146 auto box = text::open_layout_box(layout, indentation);
1147 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1148 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, ws.world.province_get_name(p)));
1149 text::close_layout_box(layout, box);
1150 }
1151
1152 if(ui_count_subtriggers(ws, tval) > 1) {
1153 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1155 text::close_layout_box(layout, box);
1156 }
1157
1158 display_subtriggers(tval, ws, layout, trigger::to_generic(p), this_slot, from_slot, indentation + indentation_amount,
1159 show_condition);
1160}
1162 if(ui_count_subtriggers(ws, tval) > 1) {
1163 auto box = text::open_layout_box(layout, indentation);
1165 text::close_layout_box(layout, box);
1166 }
1167 display_subtriggers(tval, ws, layout, primary_slot, this_slot, from_slot, indentation + indentation_amount, show_condition);
1168}
1170 {
1171 auto box = text::open_layout_box(layout, indentation);
1172 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1173 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "owner_of"));
1174 text::add_space_to_layout_box(ws, layout, box);
1175 text::add_to_layout_box(ws, layout, box,
1176 primary_slot != -1 ? text::produce_simple_string(ws, ws.world.province_get_name(trigger::to_prov(primary_slot)))
1177 : text::produce_simple_string(ws, "singular_province"));
1178 text::close_layout_box(layout, box);
1179 }
1180
1181 if(ui_count_subtriggers(ws, tval) > 1) {
1182 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1184 text::close_layout_box(layout, box);
1185 }
1186
1187 display_subtriggers(tval, ws, layout,
1188 primary_slot != -1
1189 ? trigger::to_generic(ws.world.province_get_nation_from_province_ownership(trigger::to_prov(primary_slot)))
1190 : -1,
1191 this_slot, from_slot, indentation + indentation_amount, show_condition && primary_slot != -1);
1192}
1194 auto cultures = primary_slot != -1 ? ws.world.pop_get_culture(trigger::to_pop(primary_slot)) : dcon::culture_id{};
1195 auto cg = ws.world.culture_get_group_from_culture_group_membership(cultures);
1196 auto union_tags = ws.world.culture_group_get_identity_from_cultural_union_of(cg);
1197 auto group_holders = ws.world.national_identity_get_nation_from_identity_holder(union_tags);
1198
1199 {
1200 auto box = text::open_layout_box(layout, indentation);
1201 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1202 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "cultural_union_of"));
1203 text::add_space_to_layout_box(ws, layout, box);
1204 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "singular_pop"));
1205 text::close_layout_box(layout, box);
1206 }
1207 if(ui_count_subtriggers(ws, tval) > 1) {
1208 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1210 text::close_layout_box(layout, box);
1211 }
1212
1213 display_subtriggers(tval, ws, layout, group_holders ? trigger::to_generic(group_holders) : -1, this_slot, from_slot,
1214 indentation + indentation_amount, show_condition && bool(group_holders));
1215}
1216
1218 auto box = text::open_layout_box(layout, indentation);
1219 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1220 display_with_comparison(tval[0], text::produce_simple_string(ws, "year"), int32_t(tval[1]), ws, layout, box);
1221 text::close_layout_box(layout, box);
1222}
1224 auto box = text::open_layout_box(layout, indentation);
1225 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1226 display_with_comparison(tval[0], text::produce_simple_string(ws, "month"), int32_t(tval[1]), ws, layout, box);
1227 text::close_layout_box(layout, box);
1228}
1229
1231 auto box = text::open_layout_box(layout, indentation);
1232 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1233 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_port"), ws, layout, box);
1234 text::close_layout_box(layout, box);
1235}
1237 auto box = text::open_layout_box(layout, indentation);
1238 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1239 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_rank"), int32_t(tval[1]), ws, layout, box);
1240 text::close_layout_box(layout, box);
1241}
1243 auto tech = trigger::payload(tval[1]).tech_id;
1244
1245 auto box = text::open_layout_box(layout, indentation);
1246 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1247 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "att_technology"), ws, layout, box);
1248 text::add_space_to_layout_box(ws, layout, box);
1249 text::add_to_layout_box(ws, layout, box, ws.world.technology_get_name(tech));
1250 text::close_layout_box(layout, box);
1251}
1253 auto tech = trigger::payload(tval[1]).invt_id;
1254
1255 auto box = text::open_layout_box(layout, indentation);
1256 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1257 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "invention"), ws, layout, box);
1258 text::add_space_to_layout_box(ws, layout, box);
1259 text::add_to_layout_box(ws, layout, box, ws.world.invention_get_name(tech));
1260 text::close_layout_box(layout, box);
1261}
1262
1264 auto box = text::open_layout_box(layout, indentation);
1265 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1267 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "meets_the_conditions_of"), text::text_color::white);
1268 } else {
1269 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "does_not_meet_the_conditions_of"), text::text_color::white);
1270 }
1271 auto sid = trigger::payload(tval[1]).str_id;
1272 text::add_to_layout_box(ws, layout, box, ws.world.stored_trigger_get_name(sid));
1273 text::close_layout_box(layout, box);
1274
1275 auto k = ws.world.stored_trigger_get_function(sid);
1276 trigger_tooltip::make_trigger_description(ws, layout, ws.trigger_data.data() + ws.trigger_data_indices[k.index() + 1],
1277 primary_slot, this_slot, from_slot, indentation + indentation_amount, show_condition);
1278}
1279
1281 auto box = text::open_layout_box(layout, indentation);
1282 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1283 display_with_comparison(tval[0], text::produce_simple_string(ws, "strata"), text::produce_simple_string(ws, "rich"), ws, layout,
1284 box);
1285 text::close_layout_box(layout, box);
1286}
1288 auto box = text::open_layout_box(layout, indentation);
1289 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1291 layout, box);
1292 text::close_layout_box(layout, box);
1293}
1295 auto box = text::open_layout_box(layout, indentation);
1296 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1297 display_with_comparison(tval[0], text::produce_simple_string(ws, "strata"), text::produce_simple_string(ws, "poor"), ws, layout,
1298 box);
1299 text::close_layout_box(layout, box);
1300}
1302 auto box = text::open_layout_box(layout, indentation);
1303 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1304 display_with_comparison(tval[0], text::produce_simple_string(ws, "life_rating"),
1305 int32_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
1306 text::close_layout_box(layout, box);
1307}
1309 auto box = text::open_layout_box(layout, indentation);
1310 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1311 display_with_comparison(tval[0], text::produce_simple_string(ws, "minimum_state_life_rating"),
1312 int32_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
1313 text::close_layout_box(layout, box);
1314}
1316 auto box = text::open_layout_box(layout, indentation);
1317 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1318 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "an_empty_adj_prov"), ws, layout, box);
1319 text::close_layout_box(layout, box);
1320}
1322 auto box = text::open_layout_box(layout, indentation);
1323 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1324 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "an_empty_adj_prov"), ws, layout, box);
1325 text::close_layout_box(layout, box);
1326}
1328 auto it = (tval[0] & trigger::association_mask) == trigger::association_eq
1329 ? ws.lookup_key(std::string_view("belongs_to_same_state"))
1330 : ws.lookup_key(std::string_view("does_not_belong_to_same_state"));
1331 if(it) {
1334
1335 auto box = text::open_layout_box(layout, indentation);
1336 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1337 text::add_to_layout_box(ws, layout, box, it, map);
1338 text::close_layout_box(layout, box);
1339 }
1340}
1342 auto it = (tval[0] & trigger::association_mask) == trigger::association_eq
1343 ? ws.lookup_key(std::string_view("contains_blank"))
1344 : ws.lookup_key(std::string_view("does_not_contain_blank"));
1345 if(it) {
1348
1349 auto box = text::open_layout_box(layout, indentation);
1350 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1351 text::add_to_layout_box(ws, layout, box, it, map);
1352 text::close_layout_box(layout, box);
1353 }
1354}
1356 auto box = text::open_layout_box(layout, indentation);
1357 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1358 display_with_comparison(tval[0], text::produce_simple_string(ws, "pop_savings"),
1359 text::fp_three_places{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
1360 text::add_space_to_layout_box(ws, layout, box);
1361 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "times_target_needs_spending"));
1362 text::close_layout_box(layout, box);
1363}
1365 auto box = text::open_layout_box(layout, indentation);
1366 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1367 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
1368 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
1369 text::close_layout_box(layout, box);
1370}
1372 auto box = text::open_layout_box(layout, indentation);
1373 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1374 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
1375 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
1376 text::close_layout_box(layout, box);
1377}
1379 auto box = text::open_layout_box(layout, indentation);
1380 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1381 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
1382 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
1383 text::close_layout_box(layout, box);
1384}
1386 auto box = text::open_layout_box(layout, indentation);
1387 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1388 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
1389 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
1390 text::close_layout_box(layout, box);
1391}
1393 auto box = text::open_layout_box(layout, indentation);
1394 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1396 ws, layout, box);
1397 text::close_layout_box(layout, box);
1398}
1400 auto box = text::open_layout_box(layout, indentation);
1401 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1402 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_slave_state"), ws, layout, box);
1403 text::close_layout_box(layout, box);
1404}
1406 auto box = text::open_layout_box(layout, indentation);
1407 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1408 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_slave_state"), ws, layout, box);
1409 text::close_layout_box(layout, box);
1410}
1412 auto box = text::open_layout_box(layout, indentation);
1413 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1414 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_slave"), ws, layout, box);
1415 text::close_layout_box(layout, box);
1416}
1418 auto box = text::open_layout_box(layout, indentation);
1419 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1420 display_with_comparison(tval[0], text::produce_simple_string(ws, "an_independent_nation"), ws, layout, box);
1421 text::close_layout_box(layout, box);
1422}
1424 auto box = text::open_layout_box(layout, indentation);
1425 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1426 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "non_prim_culture_pops"), ws, layout, box);
1427 text::close_layout_box(layout, box);
1428}
1430 auto box = text::open_layout_box(layout, indentation);
1431 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1432 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "non_prim_culture_pops"), ws, layout, box);
1433 text::close_layout_box(layout, box);
1434}
1436 auto box = text::open_layout_box(layout, indentation);
1437 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1438 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "non_prim_culture_pops"), ws, layout, box);
1439 text::close_layout_box(layout, box);
1440}
1442 auto gov = trigger::payload(tval[1]).gov_id;
1443 auto box = text::open_layout_box(layout, indentation);
1444 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1445 display_with_comparison(tval[0], text::produce_simple_string(ws, "government"),
1446 text::produce_simple_string(ws, ws.world.government_type_get_name(gov)), ws, layout, box);
1447 text::close_layout_box(layout, box);
1448}
1450 auto gov = trigger::payload(tval[1]).gov_id;
1451 auto box = text::open_layout_box(layout, indentation);
1452 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1453 display_with_comparison(tval[0], text::produce_simple_string(ws, "government"),
1454 text::produce_simple_string(ws, ws.world.government_type_get_name(gov)), ws, layout, box);
1455 text::close_layout_box(layout, box);
1456}
1458 auto prov = trigger::payload(tval[1]).prov_id;
1459 auto box = text::open_layout_box(layout, indentation);
1460 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1462 text::produce_simple_string(ws, ws.world.province_get_name(prov)), ws, layout, box);
1463 text::close_layout_box(layout, box);
1464}
1466 auto t = trigger::payload(tval[1]).mod_id;
1467 auto box = text::open_layout_box(layout, indentation);
1468 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1469 display_with_comparison(tval[0], text::produce_simple_string(ws, "technology_school"),
1470 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
1471 text::close_layout_box(layout, box);
1472}
1474 auto t = trigger::payload(tval[1]).cul_id;
1475 auto box = text::open_layout_box(layout, indentation);
1476 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1477 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
1478 text::produce_simple_string(ws, ws.world.culture_get_name(t)), ws, layout, box);
1479 text::close_layout_box(layout, box);
1480}
1482 auto t = trigger::payload(tval[1]).cul_id;
1483 auto box = text::open_layout_box(layout, indentation);
1484 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1485 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture_pop"),
1486 text::produce_simple_string(ws, ws.world.culture_get_name(t)), ws, layout, box);
1487 text::close_layout_box(layout, box);
1488}
1489
1491 auto box = text::open_layout_box(layout, indentation);
1492 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1493
1494 std::string sub;
1495 if(from_slot != -1)
1496 sub = text::produce_simple_string(ws, ws.world.nation_get_primary_culture(trigger::to_nation(from_slot)).get_name());
1497 else
1498 sub = text::produce_simple_string(ws, "from_nation");
1499 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"), sub, ws, layout, box);
1500 text::close_layout_box(layout, box);
1501}
1502
1504 auto box = text::open_layout_box(layout, indentation);
1505 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1506
1507 std::string sub;
1508 if(from_slot != -1)
1509 sub = text::produce_simple_string(ws, ws.world.nation_get_primary_culture(ws.world.province_get_nation_from_province_ownership(trigger::to_prov(from_slot))).get_name());
1510 else
1511 sub = text::produce_simple_string(ws, "from_nation");
1512 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"), sub, ws, layout, box);
1513 text::close_layout_box(layout, box);
1514}
1515
1517 auto t = trigger::payload(tval[1]).cul_id;
1518 auto box = text::open_layout_box(layout, indentation);
1519 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1520 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(t)),
1521 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
1522 text::close_layout_box(layout, box);
1523}
1525 auto t = trigger::payload(tval[1]).cul_id;
1526 auto box = text::open_layout_box(layout, indentation);
1527 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1529 text::produce_simple_string(ws, ws.world.culture_get_name(t)), ws, layout, box);
1530 text::close_layout_box(layout, box);
1531}
1533 auto t = trigger::payload(tval[1]).cul_id;
1534 auto box = text::open_layout_box(layout, indentation);
1535 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1536 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
1537 text::produce_simple_string(ws, ws.world.culture_get_name(t)), ws, layout, box);
1538 text::close_layout_box(layout, box);
1539}
1541 auto t = trigger::payload(tval[1]).cul_id;
1542 auto box = text::open_layout_box(layout, indentation);
1543 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1544 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
1545 text::produce_simple_string(ws, ws.world.culture_get_name(t)), ws, layout, box);
1546 text::close_layout_box(layout, box);
1547}
1549 auto t = trigger::payload(tval[1]).cul_id;
1550 auto box = text::open_layout_box(layout, indentation);
1551 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1552 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(t)),
1553 text::produce_simple_string(ws, "a_primary_or_accepted"), ws, layout, box);
1554 text::close_layout_box(layout, box);
1555}
1557 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_primary_culture(trigger::to_rebel(from_slot)) : dcon::culture_id{};
1558
1559 auto box = text::open_layout_box(layout, indentation);
1560 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1562 rc ? text::produce_simple_string(ws, ws.world.culture_get_name(rc)) : text::produce_simple_string(ws, "rebel_culture"), ws,
1563 layout, box);
1564}
1566 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_primary_culture(trigger::to_rebel(from_slot)) : dcon::culture_id{};
1567
1568 auto box = text::open_layout_box(layout, indentation);
1569 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1570 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
1571 rc ? text::produce_simple_string(ws, ws.world.culture_get_name(rc)) : text::produce_simple_string(ws, "rebel_culture"), ws,
1572 layout, box);
1573 text::close_layout_box(layout, box);
1574}
1576 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_primary_culture(trigger::to_rebel(from_slot)) : dcon::culture_id{};
1577
1578 auto box = text::open_layout_box(layout, indentation);
1579 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1580 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
1581 rc ? text::produce_simple_string(ws, ws.world.culture_get_name(rc)) : text::produce_simple_string(ws, "rebel_culture"), ws,
1582 layout, box);
1583 text::close_layout_box(layout, box);
1584}
1586 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_primary_culture(trigger::to_rebel(from_slot)) : dcon::culture_id{};
1587
1588 auto box = text::open_layout_box(layout, indentation);
1589 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1591 rc ? text::produce_simple_string(ws, ws.world.culture_get_name(rc)) : text::produce_simple_string(ws, "rebel_culture"),
1592 text::produce_simple_string(ws, "a_primary_or_accepted"), ws, layout, box);
1593 text::close_layout_box(layout, box);
1594}
1596 auto box = text::open_layout_box(layout, indentation);
1597 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1599 text::produce_simple_string(ws, "this_nation_prim_culture"), ws, layout, box);
1600 text::close_layout_box(layout, box);
1601}
1603 auto box = text::open_layout_box(layout, indentation);
1604 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1606 text::produce_simple_string(ws, "from_nation_prim_culture"), ws, layout, box);
1607 text::close_layout_box(layout, box);
1608}
1610 auto box = text::open_layout_box(layout, indentation);
1611 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1613 text::produce_simple_string(ws, "this_nation_prim_culture"), ws, layout, box);
1614 text::close_layout_box(layout, box);
1615}
1617 auto box = text::open_layout_box(layout, indentation);
1618 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1620 text::produce_simple_string(ws, "this_nation_prim_culture"), ws, layout, box);
1621 text::close_layout_box(layout, box);
1622}
1624 auto box = text::open_layout_box(layout, indentation);
1625 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1627 text::produce_simple_string(ws, "this_nation_prim_culture"), ws, layout, box);
1628 text::close_layout_box(layout, box);
1629}
1631 auto cg = trigger::payload(tval[1]).culgrp_id;
1632 auto box = text::open_layout_box(layout, indentation);
1633 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1634 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture_group"),
1635 text::produce_simple_string(ws, ws.world.culture_group_get_name(cg)), ws, layout, box);
1636 text::close_layout_box(layout, box);
1637}
1639 auto cg = trigger::payload(tval[1]).culgrp_id;
1640 auto box = text::open_layout_box(layout, indentation);
1641 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1642 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1643 text::produce_simple_string(ws, ws.world.culture_group_get_name(cg)), ws, layout, box);
1644 text::close_layout_box(layout, box);
1645}
1647 auto cg = trigger::payload(tval[1]).culgrp_id;
1648 auto box = text::open_layout_box(layout, indentation);
1649 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1650 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture_group"),
1651 text::produce_simple_string(ws, ws.world.culture_group_get_name(cg)), ws, layout, box);
1652 text::close_layout_box(layout, box);
1653}
1655 auto cg = trigger::payload(tval[1]).culgrp_id;
1656 auto box = text::open_layout_box(layout, indentation);
1657 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1658 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture_group"),
1659 text::produce_simple_string(ws, ws.world.culture_group_get_name(cg)), ws, layout, box);
1660 text::close_layout_box(layout, box);
1661}
1663 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_primary_culture(trigger::to_rebel(from_slot)) : dcon::culture_id{};
1664 auto rg = ws.world.culture_get_group_from_culture_group_membership(rc);
1665
1666 auto box = text::open_layout_box(layout, indentation);
1667 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1668 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1669 rg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(rg))
1670 : text::produce_simple_string(ws, "rebel_culture_group"),
1671 ws, layout, box);
1672 text::close_layout_box(layout, box);
1673}
1675 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_primary_culture(trigger::to_rebel(from_slot)) : dcon::culture_id{};
1676 auto rg = ws.world.culture_get_group_from_culture_group_membership(rc);
1677
1678 auto box = text::open_layout_box(layout, indentation);
1679 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1680 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1681 rg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(rg))
1682 : text::produce_simple_string(ws, "rebel_culture_group"),
1683 ws, layout, box);
1684 text::close_layout_box(layout, box);
1685}
1687 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)) : dcon::culture_id{};
1688 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1689
1690 auto box = text::open_layout_box(layout, indentation);
1691 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1692 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1693 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1694 : text::produce_simple_string(ws, "this_nation_culture_group"),
1695 ws, layout, box);
1696 text::close_layout_box(layout, box);
1697}
1699 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)) : dcon::culture_id{};
1700 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1701
1702 auto box = text::open_layout_box(layout, indentation);
1703 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1704 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1705 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1706 : text::produce_simple_string(ws, "this_nation_culture_group"),
1707 ws, layout, box);
1708 text::close_layout_box(layout, box);
1709}
1711 auto rc = from_slot != -1 ? ws.world.nation_get_primary_culture(trigger::to_nation(from_slot)) : dcon::culture_id{};
1712 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1713
1714 auto box = text::open_layout_box(layout, indentation);
1715 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1716 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1717 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1718 : text::produce_simple_string(ws, "from_nation_culture_group"),
1719 ws, layout, box);
1720 text::close_layout_box(layout, box);
1721}
1723 auto rc = from_slot != -1 ? ws.world.nation_get_primary_culture(trigger::to_nation(from_slot)) : dcon::culture_id{};
1724 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1725
1726 auto box = text::open_layout_box(layout, indentation);
1727 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1728 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1729 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1730 : text::produce_simple_string(ws, "from_nation_culture_group"),
1731 ws, layout, box);
1732 text::close_layout_box(layout, box);
1733}
1735 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(
1736 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)))
1737 : dcon::culture_id{};
1738 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1739
1740 auto box = text::open_layout_box(layout, indentation);
1741 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1742 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1743 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1744 : text::produce_simple_string(ws, "this_province_culture_group"),
1745 ws, layout, box);
1746 text::close_layout_box(layout, box);
1747}
1749 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(
1750 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)))
1751 : dcon::culture_id{};
1752 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1753
1754 auto box = text::open_layout_box(layout, indentation);
1755 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1756 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1757 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1758 : text::produce_simple_string(ws, "this_province_culture_group"),
1759 ws, layout, box);
1760 text::close_layout_box(layout, box);
1761}
1763 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(
1764 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)))
1765 : dcon::culture_id{};
1766 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1767
1768 auto box = text::open_layout_box(layout, indentation);
1769 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1770 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1771 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1772 : text::produce_simple_string(ws, "this_state_culture_group"),
1773 ws, layout, box);
1774 text::close_layout_box(layout, box);
1775}
1777 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(
1778 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)))
1779 : dcon::culture_id{};
1780 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1781
1782 auto box = text::open_layout_box(layout, indentation);
1783 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1784 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1785 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1786 : text::produce_simple_string(ws, "this_state_culture_group"),
1787 ws, layout, box);
1788 text::close_layout_box(layout, box);
1789}
1791 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(nations::owner_of_pop(ws, trigger::to_pop(this_slot)))
1792 : dcon::culture_id{};
1793 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1794
1795 auto box = text::open_layout_box(layout, indentation);
1796 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1797 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1798 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1799 : text::produce_simple_string(ws, "this_pop_culture_group"),
1800 ws, layout, box);
1801 text::close_layout_box(layout, box);
1802}
1804 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(nations::owner_of_pop(ws, trigger::to_pop(this_slot)))
1805 : dcon::culture_id{};
1806 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1807
1808 auto box = text::open_layout_box(layout, indentation);
1809 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1810 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1811 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1812 : text::produce_simple_string(ws, "this_pop_culture_group"),
1813 ws, layout, box);
1814 text::close_layout_box(layout, box);
1815}
1817 auto t = trigger::payload(tval[1]).rel_id;
1818 auto box = text::open_layout_box(layout, indentation);
1819 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1821 text::produce_simple_string(ws, ws.world.religion_get_name(t)), ws, layout, box);
1822 text::close_layout_box(layout, box);
1823}
1825 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_religion(trigger::to_rebel(from_slot)) : dcon::religion_id{};
1826 auto box = text::open_layout_box(layout, indentation);
1827 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1829 rc ? text::produce_simple_string(ws, ws.world.religion_get_name(rc)) : text::produce_simple_string(ws, "rebel_religion"),
1830 ws, layout, box);
1831 text::close_layout_box(layout, box);
1832}
1834 auto rc = from_slot != -1 ? ws.world.nation_get_religion(trigger::to_nation(from_slot)) : dcon::religion_id{};
1835 auto box = text::open_layout_box(layout, indentation);
1836 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1838 rc ? text::produce_simple_string(ws, ws.world.religion_get_name(rc))
1839 : text::produce_simple_string(ws, "from_nation_religion"),
1840 ws, layout, box);
1841 text::close_layout_box(layout, box);
1842}
1844 auto rc = this_slot != -1 ? ws.world.nation_get_religion(trigger::to_nation(this_slot)) : dcon::religion_id{};
1845 auto box = text::open_layout_box(layout, indentation);
1846 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1848 rc ? text::produce_simple_string(ws, ws.world.religion_get_name(rc))
1849 : text::produce_simple_string(ws, "this_nation_religion"),
1850 ws, layout, box);
1851 text::close_layout_box(layout, box);
1852}
1854 auto rc = this_slot != -1 ? ws.world.nation_get_religion(
1855 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)))
1856 : dcon::religion_id{};
1857 auto box = text::open_layout_box(layout, indentation);
1858 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1860 rc ? text::produce_simple_string(ws, ws.world.religion_get_name(rc))
1861 : text::produce_simple_string(ws, "this_state_religion"),
1862 ws, layout, box);
1863 text::close_layout_box(layout, box);
1864}
1866 auto rc = this_slot != -1
1867 ? ws.world.nation_get_religion(ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)))
1868 : dcon::religion_id{};
1869 auto box = text::open_layout_box(layout, indentation);
1870 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1872 rc ? text::produce_simple_string(ws, ws.world.religion_get_name(rc))
1873 : text::produce_simple_string(ws, "this_province_religion"),
1874 ws, layout, box);
1875 text::close_layout_box(layout, box);
1876}
1878 auto rc =
1879 this_slot != -1 ? ws.world.nation_get_religion(nations::owner_of_pop(ws, trigger::to_pop(this_slot))) : dcon::religion_id{};
1880 auto box = text::open_layout_box(layout, indentation);
1881 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1883 rc ? text::produce_simple_string(ws, ws.world.religion_get_name(rc)) : text::produce_simple_string(ws, "this_pop_religion"),
1884 ws, layout, box);
1885 text::close_layout_box(layout, box);
1886}
1888 auto t = trigger::payload(tval[1]).mod_id;
1889 auto box = text::open_layout_box(layout, indentation);
1890 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1891 display_with_comparison(tval[0], text::produce_simple_string(ws, "province_terrain"),
1892 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
1893 text::close_layout_box(layout, box);
1894}
1896 auto t = trigger::payload(tval[1]).mod_id;
1897 auto box = text::open_layout_box(layout, indentation);
1898 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1899 display_with_comparison(tval[0], text::produce_simple_string(ws, "province_terrain"),
1900 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
1901 text::close_layout_box(layout, box);
1902}
1904 auto t = trigger::payload(tval[1]).com_id;
1905 auto box = text::open_layout_box(layout, indentation);
1906 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1907 display_with_comparison(tval[0], text::produce_simple_string(ws, "rgo_production"),
1908 text::produce_simple_string(ws, ws.world.commodity_get_name(t)), ws, layout, box);
1909 text::close_layout_box(layout, box);
1910}
1911
1913 auto box = text::open_layout_box(layout, indentation);
1914 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1915 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_secondary_power"), ws, layout, box);
1916 text::close_layout_box(layout, box);
1917}
1919 auto box = text::open_layout_box(layout, indentation);
1920 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1921 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_secondary_power"), ws, layout, box);
1922 text::close_layout_box(layout, box);
1923}
1925 auto t = trigger::payload(tval[1]).reb_id;
1926 auto box = text::open_layout_box(layout, indentation);
1927 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1928 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.rebel_type_get_name(t)),
1929 text::produce_simple_string(ws, "an_active_rebel"), ws, layout, box);
1930 text::close_layout_box(layout, box);
1931}
1933 auto t = trigger::payload(tval[1]).reb_id;
1934 auto box = text::open_layout_box(layout, indentation);
1935 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1936 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_member_of"), ws, layout, box);
1937 text::add_space_to_layout_box(ws, layout, box);
1938 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, ws.world.rebel_type_get_name(t)));
1939 text::close_layout_box(layout, box);
1940}
1942 auto box = text::open_layout_box(layout, indentation);
1943 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1944 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "unclaimed_cores"), ws, layout, box);
1945 text::close_layout_box(layout, box);
1946}
1948 auto box = text::open_layout_box(layout, indentation);
1949 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1950 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_cultural_union"), ws, layout, box);
1951 text::close_layout_box(layout, box);
1952}
1954 auto box = text::open_layout_box(layout, indentation);
1955 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1956 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_pop"),
1957 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
1958 text::close_layout_box(layout, box);
1959}
1961 auto box = text::open_layout_box(layout, indentation);
1962 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1963 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_pop"),
1964 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
1965 text::close_layout_box(layout, box);
1966}
1968 auto box = text::open_layout_box(layout, indentation);
1969 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1970 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
1971 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
1972 text::close_layout_box(layout, box);
1973}
1975 auto box = text::open_layout_box(layout, indentation);
1976 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1977 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
1978 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
1979 text::close_layout_box(layout, box);
1980}
1982 auto box = text::open_layout_box(layout, indentation);
1983 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1984 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
1985 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
1986 text::close_layout_box(layout, box);
1987}
1989 auto box = text::open_layout_box(layout, indentation);
1990 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1991 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
1992 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
1993 text::close_layout_box(layout, box);
1994}
1996 auto box = text::open_layout_box(layout, indentation);
1997 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1998 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
1999 text::produce_simple_string(ws, "the_rebel_ind_nation"), ws, layout, box);
2000 text::close_layout_box(layout, box);
2001}
2003 auto tag = trigger::payload(tval[1]).tag_id;
2004 auto holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
2005 auto box = text::open_layout_box(layout, indentation);
2006 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2007 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
2008 text::produce_simple_string(ws, holder ? text::get_name(ws, holder) : ws.world.national_identity_get_name(tag)), ws,
2009 layout, box);
2010 text::close_layout_box(layout, box);
2011}
2013 auto tag = trigger::payload(tval[1]).tag_id;
2014 auto holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
2015 auto box = text::open_layout_box(layout, indentation);
2016 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2017 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
2018 text::produce_simple_string(ws, holder ? text::get_name(ws, holder) : ws.world.national_identity_get_name(tag)), ws,
2019 layout, box);
2020 text::close_layout_box(layout, box);
2021}
2023 auto tag = trigger::payload(tval[1]).tag_id;
2024 auto holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
2025 auto box = text::open_layout_box(layout, indentation);
2026 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2027 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
2028 text::produce_simple_string(ws, holder ? text::get_name(ws, holder) : ws.world.national_identity_get_name(tag)), ws,
2029 layout, box);
2030 text::close_layout_box(layout, box);
2031}
2033 auto tag = trigger::payload(tval[1]).tag_id;
2034 auto holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
2035 auto box = text::open_layout_box(layout, indentation);
2036 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2037 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
2038 text::produce_simple_string(ws, holder ? text::get_name(ws, holder) : ws.world.national_identity_get_name(tag)), ws,
2039 layout, box);
2040 text::close_layout_box(layout, box);
2041}
2043 auto tag = trigger::payload(tval[1]).tag_id;
2044 auto holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
2045 auto box = text::open_layout_box(layout, indentation);
2046 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2047 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
2048 text::produce_simple_string(ws, holder ? text::get_name(ws, holder) : ws.world.national_identity_get_name(tag)), ws,
2049 layout, box);
2050 text::close_layout_box(layout, box);
2051}
2053 auto tag = trigger::payload(tval[1]).tag_id;
2054 auto holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
2055 auto box = text::open_layout_box(layout, indentation);
2056 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_core_ob"), ws, layout, box);
2057 text::add_space_to_layout_box(ws, layout, box);
2058 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, holder ? text::get_name(ws, holder) : ws.world.national_identity_get_name(tag)));
2059 text::close_layout_box(layout, box);
2060}
2062 auto box = text::open_layout_box(layout, indentation);
2063 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_core_ob"), ws, layout, box);
2064 text::add_space_to_layout_box(ws, layout, box);
2065 text::add_to_layout_box(ws, layout, box, this_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(this_slot))) : text::produce_simple_string(ws, "this_nation"));
2066 text::close_layout_box(layout, box);
2067}
2069 auto box = text::open_layout_box(layout, indentation);
2070 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_core_ob"), ws, layout, box);
2071 text::add_space_to_layout_box(ws, layout, box);
2072 text::add_to_layout_box(ws, layout, box, from_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(from_slot))) : text::produce_simple_string(ws, "from_nation"));
2073 text::close_layout_box(layout, box);
2074}
2075
2077 auto box = text::open_layout_box(layout, indentation);
2078 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2079 text::add_to_layout_box(ws, layout, box,
2081 ? "capitalists_can_build"
2082 : "capitalists_cannot_build"));
2083 text::close_layout_box(layout, box);
2084}
2086 auto box = text::open_layout_box(layout, indentation);
2087 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2088 text::add_to_layout_box(ws, layout, box,
2090 ? "capitalists_can_build"
2091 : "capitalists_cannot_build"));
2092 text::close_layout_box(layout, box);
2093}
2095 auto box = text::open_layout_box(layout, indentation);
2096 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2097 text::add_to_layout_box(ws, layout, box,
2099 ? "capitalists_can_build"
2100 : "capitalists_cannot_build"));
2101 text::close_layout_box(layout, box);
2102}
2104 auto box = text::open_layout_box(layout, indentation);
2105 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2106 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war"), ws, layout, box);
2107 text::close_layout_box(layout, box);
2108}
2110 auto box = text::open_layout_box(layout, indentation);
2111 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2112 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war"), ws, layout, box);
2113 text::close_layout_box(layout, box);
2114}
2116 auto box = text::open_layout_box(layout, indentation);
2117 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2118 display_with_comparison(tval[0], text::produce_simple_string(ws, "war_exhaustion"),
2119 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2120 text::close_layout_box(layout, box);
2121}
2123 auto box = text::open_layout_box(layout, indentation);
2124 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2125 display_with_comparison(tval[0], text::produce_simple_string(ws, "war_exhaustion"),
2126 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2127 text::close_layout_box(layout, box);
2128}
2130 auto box = text::open_layout_box(layout, indentation);
2131 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2132 display_with_comparison(tval[0], text::produce_simple_string(ws, "war_exhaustion"),
2133 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2134 text::close_layout_box(layout, box);
2135}
2137 auto box = text::open_layout_box(layout, indentation);
2138 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2139 display_with_comparison(tval[0], text::produce_simple_string(ws, "total_blockade"),
2140 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2141 text::close_layout_box(layout, box);
2142}
2144 auto p = trigger::payload(tval[1]).prov_id;
2145
2146 auto box = text::open_layout_box(layout, indentation);
2147 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2148 text::add_to_layout_box(ws, layout, box,
2150 (tval[0] & trigger::association_mask) == trigger::association_eq ? "owns" : "does_not_own"));
2151 text::add_space_to_layout_box(ws, layout, box);
2152 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, ws.world.province_get_name(p)));
2153 text::close_layout_box(layout, box);
2154}
2156 auto p = trigger::payload(tval[1]).prov_id;
2157
2158 auto box = text::open_layout_box(layout, indentation);
2159 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2160 text::add_to_layout_box(ws, layout, box,
2162 (tval[0] & trigger::association_mask) == trigger::association_eq ? "controls" : "does_not_control"));
2163 text::add_space_to_layout_box(ws, layout, box);
2164 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, ws.world.province_get_name(p)));
2165 text::close_layout_box(layout, box);
2166}
2168 auto box = text::open_layout_box(layout, indentation);
2169 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2170 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_core_in"), ws, layout, box);
2171 text::add_space_to_layout_box(ws, layout, box);
2172 text::add_to_layout_box(ws, layout, box,
2173 text::produce_simple_string(ws, ws.world.province_get_name(trigger::payload(tval[1]).prov_id)));
2174 text::close_layout_box(layout, box);
2175}
2177 auto box = text::open_layout_box(layout, indentation);
2178 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2179 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2180 text::add_space_to_layout_box(ws, layout, box);
2181 if(this_slot != -1)
2182 text::add_to_layout_box(ws, layout, box, text::get_name(ws, trigger::to_nation(this_slot)));
2183 else
2184 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2185 text::close_layout_box(layout, box);
2186}
2188 auto box = text::open_layout_box(layout, indentation);
2189 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2190 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2191 text::add_space_to_layout_box(ws, layout, box);
2192 if(this_slot != -1)
2193 text::add_to_layout_box(ws, layout, box,
2194 text::get_name(ws, ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))));
2195 else
2196 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2197 text::close_layout_box(layout, box);
2198}
2200 auto box = text::open_layout_box(layout, indentation);
2201 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2202 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2203 text::add_space_to_layout_box(ws, layout, box);
2204 if(this_slot != -1)
2205 text::add_to_layout_box(ws, layout, box,
2206 text::get_name(ws, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))));
2207 else
2208 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2209 text::close_layout_box(layout, box);
2210}
2212 auto box = text::open_layout_box(layout, indentation);
2213 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2214 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2215 text::add_space_to_layout_box(ws, layout, box);
2216 if(this_slot != -1)
2217 text::add_to_layout_box(ws, layout, box, text::get_name(ws, nations::owner_of_pop(ws, trigger::to_pop(this_slot))));
2218 else
2219 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2220 text::close_layout_box(layout, box);
2221}
2223 auto box = text::open_layout_box(layout, indentation);
2224 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2225 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2226 text::add_space_to_layout_box(ws, layout, box);
2227 if(from_slot != -1)
2228 text::add_to_layout_box(ws, layout, box, text::get_name(ws, trigger::to_nation(from_slot)));
2229 else
2230 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2231 text::close_layout_box(layout, box);
2232}
2234 auto box = text::open_layout_box(layout, indentation);
2235 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2236 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2237 text::add_space_to_layout_box(ws, layout, box);
2238 if(from_slot != -1) {
2239 auto tg = ws.world.rebel_faction_get_defection_target(trigger::to_rebel(from_slot));
2240 auto h = ws.world.national_identity_get_nation_from_identity_holder(tg);
2241 text::add_to_layout_box(ws, layout, box, h ? text::get_name(ws, h) : ws.world.national_identity_get_name(tg));
2242 } else
2243 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "the_rebel_ind_nation"));
2244 text::close_layout_box(layout, box);
2245}
2247 auto tg = trigger::payload(tval[1]).tag_id;
2248 auto h = ws.world.national_identity_get_nation_from_identity_holder(tg);
2249
2250 auto box = text::open_layout_box(layout, indentation);
2251 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2252 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2253 text::add_space_to_layout_box(ws, layout, box);
2254 text::add_to_layout_box(ws, layout, box, h ? text::get_name(ws,h) : ws.world.national_identity_get_name(tg));
2255 text::close_layout_box(layout, box);
2256}
2258 auto tg = trigger::payload(tval[1]).tag_id;
2259 auto h = ws.world.national_identity_get_nation_from_identity_holder(tg);
2260
2261 auto box = text::open_layout_box(layout, indentation);
2262 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2263 display_with_comparison(tval[0], text::produce_simple_string(ws, "located_in_a_core_of"), ws, layout, box);
2264 text::add_space_to_layout_box(ws, layout, box);
2265 text::add_to_layout_box(ws, layout, box, h ? text::get_name(ws, h) : ws.world.national_identity_get_name(tg));
2266 text::close_layout_box(layout, box);
2267}
2269 auto box = text::open_layout_box(layout, indentation);
2270 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2271 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of_owner"), ws, layout, box);
2272 text::close_layout_box(layout, box);
2273}
2275 auto box = text::open_layout_box(layout, indentation);
2276 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2277 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_of_reb_control"), int64_t(tval[1]), ws, layout, box);
2278 text::close_layout_box(layout, box);
2279}
2281 auto box = text::open_layout_box(layout, indentation);
2282 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2283 display_with_comparison(tval[0], text::produce_simple_string(ws, "percentage_reb_control"),
2284 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2285 text::close_layout_box(layout, box);
2286}
2288 auto box = text::open_layout_box(layout, indentation);
2289 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2290 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_owned_provinces"), int64_t(tval[1]), ws, layout, box);
2291 text::close_layout_box(layout, box);
2292}
2294 auto box = text::open_layout_box(layout, indentation);
2295 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2296 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_owned_provinces"),
2297 text::produce_simple_string(ws, "num_provinces_owned_by"), ws, layout, box);
2298 text::add_space_to_layout_box(ws, layout, box);
2299 text::add_to_layout_box(ws, layout, box,
2300 from_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(from_slot)))
2301 : text::produce_simple_string(ws, "from_nation"));
2302 text::close_layout_box(layout, box);
2303}
2305 auto box = text::open_layout_box(layout, indentation);
2306 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2307 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_owned_provinces"),
2308 text::produce_simple_string(ws, "num_provinces_owned_by"), ws, layout, box);
2309 text::add_space_to_layout_box(ws, layout, box);
2310 text::add_to_layout_box(ws, layout, box,
2311 this_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(this_slot)))
2312 : text::produce_simple_string(ws, "this_nation"));
2313 text::close_layout_box(layout, box);
2314}
2316 auto box = text::open_layout_box(layout, indentation);
2317 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2318 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_owned_provinces"),
2319 text::produce_simple_string(ws, "num_provinces_owned_by"), ws, layout, box);
2320 text::add_space_to_layout_box(ws, layout, box);
2321 text::add_to_layout_box(ws, layout, box,
2322 this_slot != -1
2324 text::get_name(ws, ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))
2325 : text::produce_simple_string(ws, "this_nation"));
2326 text::close_layout_box(layout, box);
2327}
2329 auto box = text::open_layout_box(layout, indentation);
2330 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2331 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_owned_provinces"),
2332 text::produce_simple_string(ws, "num_provinces_owned_by"), ws, layout, box);
2333 text::add_space_to_layout_box(ws, layout, box);
2334 text::add_to_layout_box(ws, layout, box,
2335 this_slot != -1
2337 text::get_name(ws, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))
2338 : text::produce_simple_string(ws, "this_nation"));
2339 text::close_layout_box(layout, box);
2340}
2342 auto box = text::open_layout_box(layout, indentation);
2343 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2344 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_owned_provinces"),
2345 text::produce_simple_string(ws, "num_provinces_owned_by"), ws, layout, box);
2346 text::add_space_to_layout_box(ws, layout, box);
2347 text::add_to_layout_box(ws, layout, box,
2348 this_slot != -1
2350 : text::produce_simple_string(ws, "this_nation"));
2351 text::close_layout_box(layout, box);
2352}
2354 auto box = text::open_layout_box(layout, indentation);
2355 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2356 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_of_ports_connected"), int64_t(tval[1]), ws, layout, box);
2357 text::close_layout_box(layout, box);
2358}
2360 auto box = text::open_layout_box(layout, indentation);
2361 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2362 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_of_allies"), int64_t(tval[1]), ws, layout, box);
2363 text::close_layout_box(layout, box);
2364}
2366 auto box = text::open_layout_box(layout, indentation);
2367 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2368 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_of_vassals"), int64_t(tval[1]), ws, layout, box);
2369 text::close_layout_box(layout, box);
2370}
2372 auto box = text::open_layout_box(layout, indentation);
2373 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2374 display_with_comparison(tval[0], text::produce_simple_string(ws, "owned_by"), ws, layout, box);
2375 text::add_space_to_layout_box(ws, layout, box);
2376 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
2377 text::close_layout_box(layout, box);
2378}
2380 auto box = text::open_layout_box(layout, indentation);
2381 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2382 display_with_comparison(tval[0], text::produce_simple_string(ws, "owned_by"), ws, layout, box);
2383 text::add_space_to_layout_box(ws, layout, box);
2384 if(this_slot != -1)
2385 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2386 else
2387 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2388 text::close_layout_box(layout, box);
2389}
2391 auto box = text::open_layout_box(layout, indentation);
2392 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2393 display_with_comparison(tval[0], text::produce_simple_string(ws, "owned_by"), ws, layout, box);
2394 text::add_space_to_layout_box(ws, layout, box);
2395 if(from_slot != -1)
2396 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2397 else
2398 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2399 text::close_layout_box(layout, box);
2400}
2402 auto box = text::open_layout_box(layout, indentation);
2403 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2404 display_with_comparison(tval[0], text::produce_simple_string(ws, "owned_by"), ws, layout, box);
2405 text::add_space_to_layout_box(ws, layout, box);
2406 if(this_slot != -1)
2407 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
2408 else
2409 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2410 text::close_layout_box(layout, box);
2411}
2413 auto box = text::open_layout_box(layout, indentation);
2414 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2415 display_with_comparison(tval[0], text::produce_simple_string(ws, "owned_by"), ws, layout, box);
2416 text::add_space_to_layout_box(ws, layout, box);
2417 if(this_slot != -1)
2418 text::add_to_layout_box(ws, layout, box,
2419 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
2420 else
2421 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2422 text::close_layout_box(layout, box);
2423}
2425 auto box = text::open_layout_box(layout, indentation);
2426 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2427 display_with_comparison(tval[0], text::produce_simple_string(ws, "owned_by"), ws, layout, box);
2428 text::add_space_to_layout_box(ws, layout, box);
2429 if(this_slot != -1)
2430 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
2431 else
2432 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2433 text::close_layout_box(layout, box);
2434}
2436 auto box = text::open_layout_box(layout, indentation);
2437 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2438 text::add_to_layout_box(ws, layout, box,
2440 (tval[0] & trigger::association_mask) == trigger::association_eq ? "exists" : "does_not_exist"));
2441 text::close_layout_box(layout, box);
2442}
2444 auto box = text::open_layout_box(layout, indentation);
2445 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2446 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
2447 text::add_space_to_layout_box(ws, layout, box);
2448 text::add_to_layout_box(ws, layout, box,
2450 (tval[0] & trigger::association_mask) == trigger::association_eq ? "exists" : "does_not_exist"));
2451 text::close_layout_box(layout, box);
2452}
2454 if(ws.user_settings.spoilers) {
2455 auto box = text::open_layout_box(layout, indentation);
2456 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2458 text::produce_simple_string(ws, ws.national_definitions.flag_variable_names[trigger::payload(tval[1]).natf_id]),
2459 text::produce_simple_string(ws, "att_set"), ws, layout, box);
2460 text::close_layout_box(layout, box);
2461 }
2462}
2464 auto t = trigger::payload(tval[1]).mod_id;
2465 auto box = text::open_layout_box(layout, indentation);
2466 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2467 display_with_comparison(tval[0], text::produce_simple_string(ws, "continent"),
2468 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
2469 text::close_layout_box(layout, box);
2470}
2472 auto t = trigger::payload(tval[1]).mod_id;
2473 auto box = text::open_layout_box(layout, indentation);
2474 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2475 display_with_comparison(tval[0], text::produce_simple_string(ws, "continent"),
2476 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
2477 text::close_layout_box(layout, box);
2478}
2480 auto t = trigger::payload(tval[1]).mod_id;
2481 auto box = text::open_layout_box(layout, indentation);
2482 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2483 display_with_comparison(tval[0], text::produce_simple_string(ws, "continent"),
2484 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
2485 text::close_layout_box(layout, box);
2486}
2488 auto t = trigger::payload(tval[1]).mod_id;
2489 auto box = text::open_layout_box(layout, indentation);
2490 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2491 display_with_comparison(tval[0], text::produce_simple_string(ws, "continent"),
2492 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
2493 text::close_layout_box(layout, box);
2494}
2496 auto box = text::open_layout_box(layout, indentation);
2497 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2498 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2499 text::add_space_to_layout_box(ws, layout, box);
2500 if(this_slot != -1)
2501 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2502 else
2503 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2504 text::close_layout_box(layout, box);
2505}
2507 auto box = text::open_layout_box(layout, indentation);
2508 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2509 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2510 text::add_space_to_layout_box(ws, layout, box);
2511 if(this_slot != -1)
2512 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2513 else
2514 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2515 text::close_layout_box(layout, box);
2516}
2518 auto box = text::open_layout_box(layout, indentation);
2519 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2520 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2521 text::add_space_to_layout_box(ws, layout, box);
2522 if(this_slot != -1)
2523 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2524 else
2525 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2526 text::close_layout_box(layout, box);
2527}
2529 auto box = text::open_layout_box(layout, indentation);
2530 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2531 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2532 text::add_space_to_layout_box(ws, layout, box);
2533 if(this_slot != -1)
2534 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2535 else
2536 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2537 text::close_layout_box(layout, box);
2538}
2540 auto box = text::open_layout_box(layout, indentation);
2541 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2542 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2543 text::add_space_to_layout_box(ws, layout, box);
2544 if(from_slot != -1)
2545 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2546 else
2547 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2548 text::close_layout_box(layout, box);
2549}
2551 auto box = text::open_layout_box(layout, indentation);
2552 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2553 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2554 text::add_space_to_layout_box(ws, layout, box);
2555 if(from_slot != -1)
2556 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2557 else
2558 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2559 text::close_layout_box(layout, box);
2560}
2562 auto box = text::open_layout_box(layout, indentation);
2563 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2564 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2565 text::add_space_to_layout_box(ws, layout, box);
2566 if(from_slot != -1)
2567 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2568 else
2569 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2570 text::close_layout_box(layout, box);
2571}
2573 auto box = text::open_layout_box(layout, indentation);
2574 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2575 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2576 text::add_space_to_layout_box(ws, layout, box);
2577 if(from_slot != -1)
2578 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2579 else
2580 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2581 text::close_layout_box(layout, box);
2582}
2584 auto box = text::open_layout_box(layout, indentation);
2585 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2586 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_casus_belli_against"), ws, layout, box);
2587 text::add_space_to_layout_box(ws, layout, box);
2588 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
2589 text::close_layout_box(layout, box);
2590}
2592 auto box = text::open_layout_box(layout, indentation);
2593 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2594 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_casus_belli_against"), ws, layout, box);
2595 text::add_space_to_layout_box(ws, layout, box);
2596 if(from_slot != -1)
2597 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2598 else
2599 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2600 text::close_layout_box(layout, box);
2601}
2603 auto box = text::open_layout_box(layout, indentation);
2604 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2605 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_casus_belli_against"), ws, layout, box);
2606 text::add_space_to_layout_box(ws, layout, box);
2607 if(this_slot != -1)
2608 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2609 else
2610 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2611 text::close_layout_box(layout, box);
2612}
2614 auto box = text::open_layout_box(layout, indentation);
2615 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2616 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_casus_belli_against"), ws, layout, box);
2617 text::add_space_to_layout_box(ws, layout, box);
2618 if(this_slot != -1)
2619 text::add_to_layout_box(ws, layout, box,
2620 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
2621 else
2622 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2623 text::close_layout_box(layout, box);
2624}
2626 auto box = text::open_layout_box(layout, indentation);
2627 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2628 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_casus_belli_against"), ws, layout, box);
2629 text::add_space_to_layout_box(ws, layout, box);
2630 if(this_slot != -1)
2631 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
2632 else
2633 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2634 text::close_layout_box(layout, box);
2635}
2637 auto box = text::open_layout_box(layout, indentation);
2638 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2639 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_casus_belli_against"), ws, layout, box);
2640 text::add_space_to_layout_box(ws, layout, box);
2641 if(this_slot != -1)
2642 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
2643 else
2644 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2645 text::close_layout_box(layout, box);
2646}
2648 auto box = text::open_layout_box(layout, indentation);
2649 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2650 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "military_access_with"), ws, layout, box);
2651 text::add_space_to_layout_box(ws, layout, box);
2652 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
2653 text::close_layout_box(layout, box);
2654}
2656 auto box = text::open_layout_box(layout, indentation);
2657 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2658 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "military_access_with"), ws, layout, box);
2659 text::add_space_to_layout_box(ws, layout, box);
2660 if(from_slot != -1)
2661 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2662 else
2663 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2664 text::close_layout_box(layout, box);
2665}
2667 auto box = text::open_layout_box(layout, indentation);
2668 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2669 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "military_access_with"), ws, layout, box);
2670 text::add_space_to_layout_box(ws, layout, box);
2671 if(this_slot != -1)
2672 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2673 else
2674 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2675 text::close_layout_box(layout, box);
2676}
2678 auto box = text::open_layout_box(layout, indentation);
2679 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2680 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "military_access_with"), ws, layout, box);
2681 text::add_space_to_layout_box(ws, layout, box);
2682 if(this_slot != -1)
2683 text::add_to_layout_box(ws, layout, box,
2684 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
2685 else
2686 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2687 text::close_layout_box(layout, box);
2688}
2690 auto box = text::open_layout_box(layout, indentation);
2691 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2692 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "military_access_with"), ws, layout, box);
2693 text::add_space_to_layout_box(ws, layout, box);
2694 if(this_slot != -1)
2695 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
2696 else
2697 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2698 text::close_layout_box(layout, box);
2699}
2701 auto box = text::open_layout_box(layout, indentation);
2702 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2703 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "military_access_with"), ws, layout, box);
2704 text::add_space_to_layout_box(ws, layout, box);
2705 if(this_slot != -1)
2706 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
2707 else
2708 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2709 text::close_layout_box(layout, box);
2710}
2712 auto box = text::open_layout_box(layout, indentation);
2713 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2715 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2716 text::close_layout_box(layout, box);
2717}
2719 auto box = text::open_layout_box(layout, indentation);
2720 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2721 display_with_comparison(tval[0], text::produce_simple_string(ws, "prestige"), text::produce_simple_string(ws, "prestige_of"),
2722 ws, layout, box);
2723 text::add_space_to_layout_box(ws, layout, box);
2724 if(from_slot != -1)
2725 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2726 else
2727 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2728 text::close_layout_box(layout, box);
2729}
2731 auto box = text::open_layout_box(layout, indentation);
2732 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2733 display_with_comparison(tval[0], text::produce_simple_string(ws, "prestige"), text::produce_simple_string(ws, "prestige_of"),
2734 ws, layout, box);
2735 text::add_space_to_layout_box(ws, layout, box);
2736 if(this_slot != -1)
2737 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2738 else
2739 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2740 text::close_layout_box(layout, box);
2741}
2743 auto box = text::open_layout_box(layout, indentation);
2744 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2745 display_with_comparison(tval[0], text::produce_simple_string(ws, "prestige"), text::produce_simple_string(ws, "prestige_of"),
2746 ws, layout, box);
2747 text::add_space_to_layout_box(ws, layout, box);
2748 if(this_slot != -1)
2749 text::add_to_layout_box(ws, layout, box,
2750 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
2751 else
2752 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2753 text::close_layout_box(layout, box);
2754}
2756 auto box = text::open_layout_box(layout, indentation);
2757 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2758 display_with_comparison(tval[0], text::produce_simple_string(ws, "prestige"), text::produce_simple_string(ws, "prestige_of"),
2759 ws, layout, box);
2760 text::add_space_to_layout_box(ws, layout, box);
2761 if(this_slot != -1)
2762 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
2763 else
2764 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2765 text::close_layout_box(layout, box);
2766}
2768 auto box = text::open_layout_box(layout, indentation);
2769 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2770 display_with_comparison(tval[0], text::produce_simple_string(ws, "prestige"), text::produce_simple_string(ws, "prestige_of"),
2771 ws, layout, box);
2772 text::add_space_to_layout_box(ws, layout, box);
2773 if(this_slot != -1)
2774 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
2775 else
2776 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2777 text::close_layout_box(layout, box);
2778}
2780 auto box = text::open_layout_box(layout, indentation);
2781 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2783 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2784 text::close_layout_box(layout, box);
2785}
2787 auto box = text::open_layout_box(layout, indentation);
2788 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2789 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_fort"), ws, layout, box);
2790 text::close_layout_box(layout, box);
2791}
2793 auto box = text::open_layout_box(layout, indentation);
2794 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2795 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_railroad"), ws, layout, box);
2796 text::close_layout_box(layout, box);
2797}
2799 auto box = text::open_layout_box(layout, indentation);
2800 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2801 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_naval_base"), ws, layout, box);
2802 text::close_layout_box(layout, box);
2803}
2804
2806 auto box = text::open_layout_box(layout, indentation);
2807 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2808 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_factory"), ws, layout, box);
2809 text::close_layout_box(layout, box);
2810}
2812 auto box = text::open_layout_box(layout, indentation);
2813 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2815 text::produce_simple_string(ws, ws.world.factory_type_get_name(trigger::payload(tval[1]).fac_id)), ws, layout, box);
2816 text::close_layout_box(layout, box);
2817}
2819 auto box = text::open_layout_box(layout, indentation);
2820 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2822 text::produce_simple_string(ws, ws.world.factory_type_get_name(trigger::payload(tval[1]).fac_id)), ws, layout, box);
2823 text::close_layout_box(layout, box);
2824}
2826 auto box = text::open_layout_box(layout, indentation);
2827 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2828 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_factory"), ws, layout, box);
2829 text::close_layout_box(layout, box);
2830}
2832 auto box = text::open_layout_box(layout, indentation);
2833 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2834 display_with_comparison(tval[0], text::produce_simple_string(ws, "empty"), ws, layout, box);
2835 text::close_layout_box(layout, box);
2836}
2838 auto box = text::open_layout_box(layout, indentation);
2839 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2840 display_with_comparison(tval[0], text::produce_simple_string(ws, "blockaded"), ws, layout, box);
2841 text::close_layout_box(layout, box);
2842}
2844 auto box = text::open_layout_box(layout, indentation);
2845 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2846 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "national_modifier"), ws, layout, box);
2847 text::add_space_to_layout_box(ws, layout, box);
2848 text::add_to_layout_box(ws, layout, box, ws.world.modifier_get_name(trigger::payload(tval[1]).mod_id));
2849 text::close_layout_box(layout, box);
2850}
2852 auto box = text::open_layout_box(layout, indentation);
2853 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2854 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "national_modifier"), ws, layout, box);
2855 text::add_space_to_layout_box(ws, layout, box);
2856 text::add_to_layout_box(ws, layout, box, ws.world.modifier_get_name(trigger::payload(tval[1]).mod_id));
2857 text::close_layout_box(layout, box);
2858}
2860 auto box = text::open_layout_box(layout, indentation);
2861 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2862 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "provincial_modifier"), ws, layout, box);
2863 text::add_space_to_layout_box(ws, layout, box);
2864 text::add_to_layout_box(ws, layout, box, ws.world.modifier_get_name(trigger::payload(tval[1]).mod_id));
2865 text::close_layout_box(layout, box);
2866}
2868 auto box = text::open_layout_box(layout, indentation);
2869 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2870 display_with_comparison(tval[0], text::produce_simple_string(ws, "part_of"), ws, layout, box);
2871 text::add_space_to_layout_box(ws, layout, box);
2872 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).state_id);
2873 text::close_layout_box(layout, box);
2874}
2876 auto box = text::open_layout_box(layout, indentation);
2877 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2878 display_with_comparison(tval[0], text::produce_simple_string(ws, "part_of"), ws, layout, box);
2879 text::add_space_to_layout_box(ws, layout, box);
2880 text::add_to_layout_box(ws, layout, box, ws.world.region_get_name(trigger::payload(tval[1]).reg_id));
2881 text::close_layout_box(layout, box);
2882}
2884 auto box = text::open_layout_box(layout, indentation);
2885 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2886 display_with_comparison(tval[0], text::produce_simple_string(ws, "the_owner_of_region"), ws, layout, box);
2887 text::add_space_to_layout_box(ws, layout, box);
2888 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).state_id);
2889 text::close_layout_box(layout, box);
2890}
2892 auto box = text::open_layout_box(layout, indentation);
2893 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2894 display_with_comparison(tval[0], text::produce_simple_string(ws, "the_owner_of_region"), ws, layout, box);
2895 text::add_space_to_layout_box(ws, layout, box);
2896 text::add_to_layout_box(ws, layout, box, ws.world.region_get_name(trigger::payload(tval[1]).reg_id));
2897 text::close_layout_box(layout, box);
2898}
2900 auto box = text::open_layout_box(layout, indentation);
2901 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2902 display_with_comparison(tval[0], text::produce_simple_string(ws, "located_in"), ws, layout, box);
2903 text::add_space_to_layout_box(ws, layout, box);
2904 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).state_id);
2905 text::close_layout_box(layout, box);
2906}
2908 auto box = text::open_layout_box(layout, indentation);
2909 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2910 display_with_comparison(tval[0], text::produce_simple_string(ws, "located_in"), ws, layout, box);
2911 text::add_space_to_layout_box(ws, layout, box);
2912 text::add_to_layout_box(ws, layout, box, ws.world.region_get_name(trigger::payload(tval[1]).reg_id));
2913 text::close_layout_box(layout, box);
2914}
2916 auto box = text::open_layout_box(layout, indentation);
2917 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2918 display_with_comparison(tval[0], trigger::payload(tval[1]).tag_id, ws, layout, box);
2919 text::close_layout_box(layout, box);
2920}
2922 auto box = text::open_layout_box(layout, indentation);
2923 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2924 if(this_slot != -1)
2925 display_with_comparison(tval[0], trigger::to_nation(this_slot), ws, layout, box);
2926 else
2927 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
2928 text::close_layout_box(layout, box);
2929}
2931 auto box = text::open_layout_box(layout, indentation);
2932 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2933 if(this_slot != -1)
2934 display_with_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)), ws,
2935 layout, box);
2936 else
2937 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
2938 text::close_layout_box(layout, box);
2939}
2941 auto box = text::open_layout_box(layout, indentation);
2942 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2943 if(from_slot != -1)
2944 display_with_comparison(tval[0], trigger::to_nation(from_slot), ws, layout, box);
2945 else
2946 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"), ws, layout, box);
2947 text::close_layout_box(layout, box);
2948}
2950 auto box = text::open_layout_box(layout, indentation);
2951 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2952 if(from_slot != -1)
2953 display_with_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(from_slot)), ws,
2954 layout, box);
2955 else
2956 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"), ws, layout, box);
2957 text::close_layout_box(layout, box);
2958}
2960 auto box = text::open_layout_box(layout, indentation);
2961 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2962 display_with_comparison(tval[0], text::produce_simple_string(ws, "owner"), trigger::payload(tval[1]).tag_id, ws, layout, box);
2963 text::close_layout_box(layout, box);
2964}
2966 auto box = text::open_layout_box(layout, indentation);
2967 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2968 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_border_with"), ws, layout, box);
2969 text::add_space_to_layout_box(ws, layout, box);
2970 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
2971 text::close_layout_box(layout, box);
2972}
2974 auto box = text::open_layout_box(layout, indentation);
2975 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2976 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_border_with"), ws, layout, box);
2977 text::add_space_to_layout_box(ws, layout, box);
2978 if(this_slot != -1)
2979 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2980 else
2981 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2982 text::close_layout_box(layout, box);
2983}
2985 auto box = text::open_layout_box(layout, indentation);
2986 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2987 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_border_with"), ws, layout, box);
2988 text::add_space_to_layout_box(ws, layout, box);
2989 if(from_slot != -1)
2990 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2991 else
2992 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2993 text::close_layout_box(layout, box);
2994}
2996 auto box = text::open_layout_box(layout, indentation);
2997 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2998 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_border_with"), ws, layout, box);
2999 text::add_space_to_layout_box(ws, layout, box);
3000 if(this_slot != -1)
3001 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
3002 else
3003 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3004 text::close_layout_box(layout, box);
3005}
3007 auto box = text::open_layout_box(layout, indentation);
3008 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3009 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_border_with"), ws, layout, box);
3010 text::add_space_to_layout_box(ws, layout, box);
3011 if(from_slot != -1)
3012 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(from_slot)));
3013 else
3014 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
3015 text::close_layout_box(layout, box);
3016}
3017
3019 auto box = text::open_layout_box(layout, indentation);
3020 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3021 if(from_slot != -1)
3022 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
3023 else
3024 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
3025 text::add_space_to_layout_box(ws, layout, box);
3026 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_state"), int64_t(tval[1]), ws, layout, box);
3027 text::close_layout_box(layout, box);
3028}
3030 auto box = text::open_layout_box(layout, indentation);
3031 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3032 if(this_slot != -1)
3033 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
3034 else
3035 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3036 text::add_space_to_layout_box(ws, layout, box);
3037 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_state"), int64_t(tval[1]), ws, layout, box);
3038 text::close_layout_box(layout, box);
3039}
3041 auto box = text::open_layout_box(layout, indentation);
3042 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3043 if(this_slot != -1)
3044 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
3045 else
3046 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3047 text::add_space_to_layout_box(ws, layout, box);
3048 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_state"), int64_t(tval[1]), ws, layout, box);
3049 text::close_layout_box(layout, box);
3050}
3052 auto box = text::open_layout_box(layout, indentation);
3053 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3054 if(this_slot != -1)
3055 text::add_to_layout_box(ws, layout, box,
3056 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
3057 else
3058 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3059 text::add_space_to_layout_box(ws, layout, box);
3060 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_state"), int64_t(tval[1]), ws, layout, box);
3061 text::close_layout_box(layout, box);
3062}
3064 auto box = text::open_layout_box(layout, indentation);
3065 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3066 if(this_slot != -1)
3067 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
3068 else
3069 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3070 text::add_space_to_layout_box(ws, layout, box);
3071 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_state"), int64_t(tval[1]), ws, layout, box);
3072 text::close_layout_box(layout, box);
3073}
3075 auto box = text::open_layout_box(layout, indentation);
3076 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3077 text::add_to_layout_box(ws, layout, box, ws.world.national_identity_get_nation_from_identity_holder(trigger::payload(tval[1]).tag_id));
3078 text::add_space_to_layout_box(ws, layout, box);
3079 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_state"), ws, layout, box);
3080 text::close_layout_box(layout, box);
3081}
3082
3084 auto box = text::open_layout_box(layout, indentation);
3085 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3086 display_with_comparison(tval[0], text::produce_simple_string(ws, "units_in_province"), int64_t(tval[1]), ws, layout, box);
3087 text::close_layout_box(layout, box);
3088}
3090 auto box = text::open_layout_box(layout, indentation);
3091 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3092 text::add_to_layout_box(ws, layout, box, ws.world.national_identity_get_nation_from_identity_holder(trigger::payload(tval[1]).tag_id));
3093 text::add_space_to_layout_box(ws, layout, box);
3094 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_province"), ws, layout, box);
3095 text::close_layout_box(layout, box);
3096}
3098 auto box = text::open_layout_box(layout, indentation);
3099 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3100 if(from_slot != -1)
3101 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
3102 else
3103 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
3104 text::add_space_to_layout_box(ws, layout, box);
3105 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_province"), int64_t(tval[1]), ws, layout, box);
3106 text::close_layout_box(layout, box);
3107}
3109 auto box = text::open_layout_box(layout, indentation);
3110 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3111 if(this_slot != -1)
3112 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
3113 else
3114 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3115 text::add_space_to_layout_box(ws, layout, box);
3116 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_province"), int64_t(tval[1]), ws, layout, box);
3117 text::close_layout_box(layout, box);
3118}
3120 auto box = text::open_layout_box(layout, indentation);
3121 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3122 if(this_slot != -1)
3123 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
3124 else
3125 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3126 text::add_space_to_layout_box(ws, layout, box);
3127 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_province"), int64_t(tval[1]), ws, layout, box);
3128 text::close_layout_box(layout, box);
3129}
3131 auto box = text::open_layout_box(layout, indentation);
3132 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3133 if(this_slot != -1)
3134 text::add_to_layout_box(ws, layout, box,
3135 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
3136 else
3137 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3138 text::add_space_to_layout_box(ws, layout, box);
3139 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_province"), int64_t(tval[1]), ws, layout, box);
3140 text::close_layout_box(layout, box);
3141}
3143 auto box = text::open_layout_box(layout, indentation);
3144 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3145 if(this_slot != -1)
3146 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
3147 else
3148 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3149 text::add_space_to_layout_box(ws, layout, box);
3150 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_province"), int64_t(tval[1]), ws, layout, box);
3151 text::close_layout_box(layout, box);
3152}
3154 auto box = text::open_layout_box(layout, indentation);
3155 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3156 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war_against"), ws, layout, box);
3157 text::add_space_to_layout_box(ws, layout, box);
3158 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
3159 text::close_layout_box(layout, box);
3160}
3162 auto box = text::open_layout_box(layout, indentation);
3163 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3164 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war_against"), ws, layout, box);
3165 text::add_space_to_layout_box(ws, layout, box);
3166 if(from_slot != -1)
3167 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
3168 else
3169 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
3170 text::close_layout_box(layout, box);
3171}
3173 auto box = text::open_layout_box(layout, indentation);
3174 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3175 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war_against"), ws, layout, box);
3176 text::add_space_to_layout_box(ws, layout, box);
3177 if(this_slot != -1)
3178 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
3179 else
3180 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3181 text::close_layout_box(layout, box);
3182}
3184 auto box = text::open_layout_box(layout, indentation);
3185 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3186 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war_against"), ws, layout, box);
3187 text::add_space_to_layout_box(ws, layout, box);
3188 if(this_slot != -1)
3189 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
3190 else
3191 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3192 text::close_layout_box(layout, box);
3193}
3195 auto box = text::open_layout_box(layout, indentation);
3196 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3197 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war_against"), ws, layout, box);
3198 text::add_space_to_layout_box(ws, layout, box);
3199 if(this_slot != -1)
3200 text::add_to_layout_box(ws, layout, box,
3201 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
3202 else
3203 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3204 text::close_layout_box(layout, box);
3205}
3207 auto box = text::open_layout_box(layout, indentation);
3208 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3209 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war_against"), ws, layout, box);
3210 text::add_space_to_layout_box(ws, layout, box);
3211 if(this_slot != -1)
3212 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
3213 else
3214 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3215 text::close_layout_box(layout, box);
3216}
3218 auto box = text::open_layout_box(layout, indentation);
3219 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3220 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "an_ongoing_battle"), ws, layout, box);
3221 text::close_layout_box(layout, box);
3222}
3224 auto box = text::open_layout_box(layout, indentation);
3225 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3226 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "an_assigned_leader"), ws, layout, box);
3227 text::close_layout_box(layout, box);
3228}
3230 auto box = text::open_layout_box(layout, indentation);
3231 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3232 display_with_comparison(tval[0], text::produce_simple_string(ws, "has_national_focus"),
3233 text::produce_simple_string(ws, ws.world.national_focus_get_name(trigger::payload(tval[1]).nf_id)), ws, layout, box);
3234 text::close_layout_box(layout, box);
3235}
3237 auto box = text::open_layout_box(layout, indentation);
3238 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3239 display_with_comparison(tval[0], text::produce_simple_string(ws, "has_national_focus"),
3240 text::produce_simple_string(ws, ws.world.national_focus_get_name(trigger::payload(tval[1]).nf_id)), ws, layout, box);
3241 text::close_layout_box(layout, box);
3242}
3244 auto box = text::open_layout_box(layout, indentation);
3245 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3246 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_of_divisions"), int64_t(tval[1]), ws, layout, box);
3247 text::close_layout_box(layout, box);
3248}
3250 auto box = text::open_layout_box(layout, indentation);
3251 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3253 text::fp_currency{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3254 text::close_layout_box(layout, box);
3255}
3257 auto box = text::open_layout_box(layout, indentation);
3258 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3259 display_with_comparison(tval[0], text::produce_simple_string(ws, "o_treasury"),
3260 text::fp_currency{ trigger::read_float_from_payload(tval + 1) }, ws, layout, box);
3261 text::close_layout_box(layout, box);
3262}
3264 auto box = text::open_layout_box(layout, indentation);
3265 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3266 display_with_comparison(tval[0], text::produce_simple_string(ws, "percentage_unowned_cores"),
3267 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3268 text::close_layout_box(layout, box);
3269}
3271 auto box = text::open_layout_box(layout, indentation);
3272 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3273 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal"), ws, layout, box);
3274 text::close_layout_box(layout, box);
3275}
3277 auto box = text::open_layout_box(layout, indentation);
3278 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3279 display_with_comparison(tval[0], text::produce_simple_string(ws, "ruling_party_ideology"),
3280 text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id)), ws, layout, box);
3281 text::close_layout_box(layout, box);
3282}
3284 auto box = text::open_layout_box(layout, indentation);
3285 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3286 display_with_comparison(tval[0], text::produce_simple_string(ws, "ruling_party"),
3287 text::produce_simple_string(ws, ws.world.political_party_get_name(trigger::payload(tval[1]).par_id)), ws, layout, box);
3288 text::close_layout_box(layout, box);
3289}
3291 auto box = text::open_layout_box(layout, indentation);
3292 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3293 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id)),
3294 text::produce_simple_string(ws, "enabled"), ws, layout, box);
3295 text::close_layout_box(layout, box);
3296}
3298 auto box = text::open_layout_box(layout, indentation);
3299 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3300 display_with_comparison(tval[0], text::produce_simple_string(ws, "political_reform_desire"),
3301 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3302 text::close_layout_box(layout, box);
3303}
3305 auto box = text::open_layout_box(layout, indentation);
3306 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3307 display_with_comparison(tval[0], text::produce_simple_string(ws, "political_reform_desire"),
3308 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3309 text::close_layout_box(layout, box);
3310}
3312 auto box = text::open_layout_box(layout, indentation);
3313 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3314 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_reform_desire"),
3315 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3316 text::close_layout_box(layout, box);
3317}
3319 auto box = text::open_layout_box(layout, indentation);
3320 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3321 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_reform_desire"),
3322 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3323 text::close_layout_box(layout, box);
3324}
3326 auto box = text::open_layout_box(layout, indentation);
3327 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3328 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_of_ships"), int64_t(tval[1]), ws, layout, box);
3329 text::close_layout_box(layout, box);
3330}
3332 auto box = text::open_layout_box(layout, indentation);
3333 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3334 display_with_comparison(tval[0], text::produce_simple_string(ws, "plurality"),
3335 text::fp_percentage{trigger::read_float_from_payload(tval + 1) / 10000.0f}, ws, layout, box);
3336 text::close_layout_box(layout, box);
3337}
3339 auto box = text::open_layout_box(layout, indentation);
3340 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3341 display_with_comparison(tval[0], text::produce_simple_string(ws, "plurality_pop"),
3342 text::fp_percentage{ trigger::read_float_from_payload(tval + 1) / 10000.0f }, ws, layout, box);
3343 text::close_layout_box(layout, box);
3344}
3346 auto box = text::open_layout_box(layout, indentation);
3347 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3348 display_with_comparison(tval[0], text::produce_simple_string(ws, "crime_percent"),
3349 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3350 text::close_layout_box(layout, box);
3351}
3353 auto box = text::open_layout_box(layout, indentation);
3354 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3355 display_with_comparison(tval[0], text::produce_simple_string(ws, "member_of_nat_religion"), ws, layout, box);
3356 text::close_layout_box(layout, box);
3357}
3359 auto box = text::open_layout_box(layout, indentation);
3360 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3361 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
3362 text::produce_simple_string(ws, "dominant_religion"), ws, layout, box);
3363 text::close_layout_box(layout, box);
3364}
3366 auto box = text::open_layout_box(layout, indentation);
3367 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3368 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
3369 text::produce_simple_string(ws, "dominant_religion"), ws, layout, box);
3370 text::close_layout_box(layout, box);
3371}
3373 auto box = text::open_layout_box(layout, indentation);
3374 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3376 text::produce_simple_string(ws, "owner_primary_culture"), ws, layout, box);
3377 text::close_layout_box(layout, box);
3378}
3380 auto box = text::open_layout_box(layout, indentation);
3381 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3382 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3383 text::produce_simple_string(ws, "owner_primary_culture"), ws, layout, box);
3384 text::close_layout_box(layout, box);
3385}
3387 auto box = text::open_layout_box(layout, indentation);
3388 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3389 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3390 text::produce_simple_string(ws, "owner_primary_culture"), ws, layout, box);
3391 text::close_layout_box(layout, box);
3392}
3394 auto box = text::open_layout_box(layout, indentation);
3395 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3396 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3397 text::produce_simple_string(ws, "this_pop_culture"), ws, layout, box);
3398 text::close_layout_box(layout, box);
3399}
3401 auto box = text::open_layout_box(layout, indentation);
3402 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3403 if(this_slot != -1)
3404 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3406 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))),
3407 ws, layout, box);
3408 else
3409 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3410 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3411 text::close_layout_box(layout, box);
3412}
3414 auto box = text::open_layout_box(layout, indentation);
3415 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3416 if(this_slot != -1)
3417 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3419 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3420 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
3421 ws, layout, box);
3422 else
3423 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3424 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3425 text::close_layout_box(layout, box);
3426}
3428 auto box = text::open_layout_box(layout, indentation);
3429 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3430 if(this_slot != -1)
3431 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3432 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3433 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3434 ws, layout, box);
3435 else
3436 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3437 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3438 text::close_layout_box(layout, box);
3439}
3441 auto box = text::open_layout_box(layout, indentation);
3442 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3443 if(this_slot != -1)
3444 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3446 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))),
3447 ws, layout, box);
3448 else
3449 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3450 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3451 text::close_layout_box(layout, box);
3452}
3454 auto box = text::open_layout_box(layout, indentation);
3455 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3456 if(this_slot != -1)
3457 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3458 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3459 nations::owner_of_pop(ws, trigger::to_pop(this_slot))))),
3460 ws, layout, box);
3461 else
3462 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3463 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3464 text::close_layout_box(layout, box);
3465}
3467 auto box = text::open_layout_box(layout, indentation);
3468 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3469 if(this_slot != -1)
3470 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3472 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3473 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
3474 ws, layout, box);
3475 else
3476 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3477 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3478 text::close_layout_box(layout, box);
3479}
3481 auto box = text::open_layout_box(layout, indentation);
3482 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3483 if(this_slot != -1)
3484 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3485 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3486 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3487 ws, layout, box);
3488 else
3489 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3490 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3491 text::close_layout_box(layout, box);
3492}
3494 auto box = text::open_layout_box(layout, indentation);
3495 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3496 if(this_slot != -1)
3497 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3499 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))),
3500 ws, layout, box);
3501 else
3502 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3503 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3504 text::close_layout_box(layout, box);
3505}
3507 auto box = text::open_layout_box(layout, indentation);
3508 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3509 if(this_slot != -1)
3510 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3511 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3512 nations::owner_of_pop(ws, trigger::to_pop(this_slot))))),
3513 ws, layout, box);
3514 else
3515 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3516 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3517 text::close_layout_box(layout, box);
3518}
3520 auto box = text::open_layout_box(layout, indentation);
3521 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3522 if(this_slot != -1)
3523 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3525 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3526 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
3527 ws, layout, box);
3528 else
3529 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3530 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3531 text::close_layout_box(layout, box);
3532}
3534 auto box = text::open_layout_box(layout, indentation);
3535 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3536 if(this_slot != -1)
3537 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3538 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3539 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3540 ws, layout, box);
3541 else
3542 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3543 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3544 text::close_layout_box(layout, box);
3545}
3547 auto box = text::open_layout_box(layout, indentation);
3548 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3549 if(this_slot != -1)
3552 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))),
3553 ws, layout, box);
3554 else
3556 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3557 text::close_layout_box(layout, box);
3558}
3560 auto box = text::open_layout_box(layout, indentation);
3561 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3562 if(this_slot != -1)
3564 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3565 nations::owner_of_pop(ws, trigger::to_pop(this_slot))))),
3566 ws, layout, box);
3567 else
3569 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3570 text::close_layout_box(layout, box);
3571}
3573 auto box = text::open_layout_box(layout, indentation);
3574 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3575 if(this_slot != -1)
3578 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3579 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
3580 ws, layout, box);
3581 else
3583 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3584 text::close_layout_box(layout, box);
3585}
3587 auto box = text::open_layout_box(layout, indentation);
3588 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3589 if(this_slot != -1)
3591 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3592 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3593 ws, layout, box);
3594 else
3596 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3597 text::close_layout_box(layout, box);
3598}
3599
3600
3602 auto box = text::open_layout_box(layout, indentation);
3603 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3604 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_pop_culture"),
3605 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3606 text::close_layout_box(layout, box);
3607}
3609 auto box = text::open_layout_box(layout, indentation);
3610 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3611 if(this_slot != -1)
3613 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))), text::produce_simple_string(ws, "an_accepted_culture"),
3614 ws, layout, box);
3615 else
3616 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3617 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3618 text::close_layout_box(layout, box);
3619}
3621 auto box = text::open_layout_box(layout, indentation);
3622 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3623 if(this_slot != -1)
3625 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3626 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))), text::produce_simple_string(ws, "an_accepted_culture"),
3627 ws, layout, box);
3628 else
3629 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3630 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3631 text::close_layout_box(layout, box);
3632}
3634 auto box = text::open_layout_box(layout, indentation);
3635 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3636 if(this_slot != -1)
3637 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3638 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3639 text::produce_simple_string(ws, "an_accepted_culture"),
3640 ws, layout, box);
3641 else
3642 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3643 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3644 text::close_layout_box(layout, box);
3645}
3647 auto box = text::open_layout_box(layout, indentation);
3648 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3649 if(this_slot != -1)
3651 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))),
3652 text::produce_simple_string(ws, "an_accepted_culture"),
3653 ws, layout, box);
3654 else
3655 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3656 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3657 text::close_layout_box(layout, box);
3658}
3660 auto box = text::open_layout_box(layout, indentation);
3661 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3662 if(this_slot != -1)
3663 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3664 nations::owner_of_pop(ws, trigger::to_pop(this_slot))))),
3665 text::produce_simple_string(ws, "this_nation_primary_culture"),
3666 ws, layout, box);
3667 else
3668 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3669 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3670 text::close_layout_box(layout, box);
3671}
3673 auto box = text::open_layout_box(layout, indentation);
3674 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3675 if(this_slot != -1)
3677 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3678 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
3679 text::produce_simple_string(ws, "an_accepted_culture"),
3680 ws, layout, box);
3681 else
3682 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3683 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3684 text::close_layout_box(layout, box);
3685}
3687 auto box = text::open_layout_box(layout, indentation);
3688 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3689 if(this_slot != -1)
3690 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3691 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3692 text::produce_simple_string(ws, "an_accepted_culture"),
3693 ws, layout, box);
3694 else
3695 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3696 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3697 text::close_layout_box(layout, box);
3698}
3700 auto box = text::open_layout_box(layout, indentation);
3701 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3702 if(this_slot != -1)
3704 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))),
3705 text::produce_simple_string(ws, "an_accepted_culture"),
3706 ws, layout, box);
3707 else
3708 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3709 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3710 text::close_layout_box(layout, box);
3711}
3713 auto box = text::open_layout_box(layout, indentation);
3714 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3715 if(this_slot != -1)
3716 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3717 nations::owner_of_pop(ws, trigger::to_pop(this_slot))))),
3718 text::produce_simple_string(ws, "an_accepted_culture"),
3719 ws, layout, box);
3720 else
3721 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3722 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3723 text::close_layout_box(layout, box);
3724}
3726 auto box = text::open_layout_box(layout, indentation);
3727 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3728 if(this_slot != -1)
3730 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3731 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
3732 text::produce_simple_string(ws, "an_accepted_culture"),
3733 ws, layout, box);
3734 else
3735 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3736 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3737 text::close_layout_box(layout, box);
3738}
3740 auto box = text::open_layout_box(layout, indentation);
3741 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3742 if(this_slot != -1)
3743 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3744 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3745 text::produce_simple_string(ws, "an_accepted_culture"),
3746 ws, layout, box);
3747 else
3748 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3749 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3750 text::close_layout_box(layout, box);
3751}
3753 auto box = text::open_layout_box(layout, indentation);
3754 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3755
3756 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_pop_culture"),
3757 text::produce_simple_string(ws, "this_nation_accepted_culture"),
3758 ws, layout, box);
3759
3760 text::close_layout_box(layout, box);
3761}
3763 auto box = text::open_layout_box(layout, indentation);
3764 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3765
3766 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_pop_culture"),
3767 text::produce_simple_string(ws, "this_nation_accepted_culture"),
3768 ws, layout, box);
3769
3770 text::close_layout_box(layout, box);
3771}
3773 auto box = text::open_layout_box(layout, indentation);
3774 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3775
3776 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_pop_culture"),
3777 text::produce_simple_string(ws, "this_nation_accepted_culture"),
3778 ws, layout, box);
3779
3780 text::close_layout_box(layout, box);
3781}
3783 auto box = text::open_layout_box(layout, indentation);
3784 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3785
3786 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_pop_culture"),
3787 text::produce_simple_string(ws, "this_nation_accepted_culture"),
3788 ws, layout, box);
3789
3790 text::close_layout_box(layout, box);
3791}
3792
3794 auto box = text::open_layout_box(layout, indentation);
3795 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3796 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture"), text::produce_simple_string(ws, "an_accepted_culture"), ws,
3797 layout, box);
3798 text::close_layout_box(layout, box);
3799}
3801 auto box = text::open_layout_box(layout, indentation);
3802 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3803 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3804 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3805 text::close_layout_box(layout, box);
3806}
3808 auto box = text::open_layout_box(layout, indentation);
3809 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3810 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3811 text::produce_simple_string(ws, "an_accepted"), ws, layout, box);
3812 text::close_layout_box(layout, box);
3813}
3815 auto box = text::open_layout_box(layout, indentation);
3816 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3817 display_with_comparison(tval[0], text::produce_simple_string(ws, "coastal"), ws, layout, box);
3818 text::close_layout_box(layout, box);
3819}
3821 auto box = text::open_layout_box(layout, indentation);
3822 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3823 display_with_comparison(tval[0], text::produce_simple_string(ws, "coastal"), ws, layout, box);
3824 text::close_layout_box(layout, box);
3825}
3827 auto box = text::open_layout_box(layout, indentation);
3828 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3829 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere_of"), ws, layout, box);
3830 text::add_space_to_layout_box(ws, layout, box);
3831 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
3832 text::close_layout_box(layout, box);
3833}
3835 auto box = text::open_layout_box(layout, indentation);
3836 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3837 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere_of"), ws, layout, box);
3838 text::add_space_to_layout_box(ws, layout, box);
3839 if(from_slot != -1)
3840 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
3841 else
3842 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
3843 text::close_layout_box(layout, box);
3844}
3846 auto box = text::open_layout_box(layout, indentation);
3847 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3848 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere_of"), ws, layout, box);
3849 text::add_space_to_layout_box(ws, layout, box);
3850 if(this_slot != -1)
3851 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
3852 else
3853 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3854 text::close_layout_box(layout, box);
3855}
3857 auto box = text::open_layout_box(layout, indentation);
3858 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3859 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere_of"), ws, layout, box);
3860 text::add_space_to_layout_box(ws, layout, box);
3861 if(this_slot != -1)
3862 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
3863 else
3864 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3865 text::close_layout_box(layout, box);
3866}
3868 auto box = text::open_layout_box(layout, indentation);
3869 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3870 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere_of"), ws, layout, box);
3871 text::add_space_to_layout_box(ws, layout, box);
3872 if(this_slot != -1)
3873 text::add_to_layout_box(ws, layout, box,
3874 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
3875 else
3876 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3877 text::close_layout_box(layout, box);
3878}
3880 auto box = text::open_layout_box(layout, indentation);
3881 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3882 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere_of"), ws, layout, box);
3883 text::add_space_to_layout_box(ws, layout, box);
3884 if(this_slot != -1)
3885 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
3886 else
3887 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3888 text::close_layout_box(layout, box);
3889}
3891 auto box = text::open_layout_box(layout, indentation);
3892 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3893 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_producer_of"), ws, layout, box);
3894 text::add_space_to_layout_box(ws, layout, box);
3895 text::add_to_layout_box(ws, layout, box, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id));
3896 text::close_layout_box(layout, box);
3897}
3899 auto box = text::open_layout_box(layout, indentation);
3900 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3901 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_producer_of"), ws, layout, box);
3902 text::add_space_to_layout_box(ws, layout, box);
3903 text::add_to_layout_box(ws, layout, box, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id));
3904 text::close_layout_box(layout, box);
3905}
3907 auto box = text::open_layout_box(layout, indentation);
3908 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3909 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_producer_of"), ws, layout, box);
3910 text::add_space_to_layout_box(ws, layout, box);
3911 text::add_to_layout_box(ws, layout, box, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id));
3912 text::close_layout_box(layout, box);
3913}
3914
3916 auto box = text::open_layout_box(layout, indentation);
3917 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3918 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_producer_of"), ws, layout, box);
3919 text::add_space_to_layout_box(ws, layout, box);
3920 text::add_to_layout_box(ws, layout, box, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id));
3921 text::close_layout_box(layout, box);
3922}
3924 auto box = text::open_layout_box(layout, indentation);
3925 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3926 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
3927 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3928 text::close_layout_box(layout, box);
3929}
3931 auto box = text::open_layout_box(layout, indentation);
3932 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3933 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
3934 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3935 text::close_layout_box(layout, box);
3936}
3938 auto box = text::open_layout_box(layout, indentation);
3939 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3940 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
3941 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3942 text::close_layout_box(layout, box);
3943}
3945 auto box = text::open_layout_box(layout, indentation);
3946 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3947 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
3948 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3949 text::close_layout_box(layout, box);
3950}
3952 auto box = text::open_layout_box(layout, indentation);
3953 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3954 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
3955 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3956 text::close_layout_box(layout, box);
3957}
3959 auto box = text::open_layout_box(layout, indentation);
3960 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3961 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
3962 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3963 text::close_layout_box(layout, box);
3964}
3966 auto box = text::open_layout_box(layout, indentation);
3967 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3968 display_with_comparison(tval[0], text::produce_simple_string(ws, "next_reform"),
3969 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id)), ws, layout, box);
3970 text::close_layout_box(layout, box);
3971}
3973 auto box = text::open_layout_box(layout, indentation);
3974 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3975 display_with_comparison(tval[0], text::produce_simple_string(ws, "next_reform"),
3976 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id)), ws, layout, box);
3977 text::close_layout_box(layout, box);
3978}
3980 auto box = text::open_layout_box(layout, indentation);
3981 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3982 display_with_comparison(tval[0], text::produce_simple_string(ws, "next_reform"),
3983 text::produce_simple_string(ws, ws.world.reform_option_get_name(trigger::payload(tval[1]).ropt_id)), ws, layout, box);
3984 text::close_layout_box(layout, box);
3985}
3987 auto box = text::open_layout_box(layout, indentation);
3988 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3989 display_with_comparison(tval[0], text::produce_simple_string(ws, "next_reform"),
3990 text::produce_simple_string(ws, ws.world.reform_option_get_name(trigger::payload(tval[1]).ropt_id)), ws, layout, box);
3991 text::close_layout_box(layout, box);
3992}
3994 auto box = text::open_layout_box(layout, indentation);
3995 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3996 text::add_to_layout_box(ws, layout, box,
3997 text::produce_simple_string(ws, (tval[0] & trigger::association_mask) == trigger::association_eq ? "never" : "always"));
3998 text::close_layout_box(layout, box);
3999}
4001 auto box = text::open_layout_box(layout, indentation);
4002 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4003 display_with_comparison(tval[0], text::produce_simple_string(ws, "percentage_recruited"),
4004 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
4005 text::close_layout_box(layout, box);
4006}
4008 auto box = text::open_layout_box(layout, indentation);
4009 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4010 display_with_comparison(tval[0], text::produce_simple_string(ws, "percentage_recruited"),
4011 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
4012 text::close_layout_box(layout, box);
4013}
4015 auto box = text::open_layout_box(layout, indentation);
4016 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4017 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_cultural_core_prov"), ws, layout, box);
4018 text::close_layout_box(layout, box);
4019}
4021 auto box = text::open_layout_box(layout, indentation);
4022 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4023 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_cultural_core_prov"), ws, layout, box);
4024 text::close_layout_box(layout, box);
4025}
4027 auto box = text::open_layout_box(layout, indentation);
4028 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4029 display_with_comparison(tval[0], text::produce_simple_string(ws, "nationalism"), int64_t(tval[1]), ws, layout, box);
4030 text::close_layout_box(layout, box);
4031}
4033 auto box = text::open_layout_box(layout, indentation);
4034 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4035 display_with_comparison(tval[0], text::produce_simple_string(ws, "overseas"), ws, layout, box);
4036 text::close_layout_box(layout, box);
4037}
4039 auto box = text::open_layout_box(layout, indentation);
4040 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4041 display_with_comparison(tval[0], text::produce_simple_string(ws, "overseas_pop"), ws, layout, box);
4042 text::close_layout_box(layout, box);
4043}
4045 auto box = text::open_layout_box(layout, indentation);
4046 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4047 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by_rebel"), ws, layout, box);
4048 text::close_layout_box(layout, box);
4049}
4051 auto box = text::open_layout_box(layout, indentation);
4052 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4053 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4054 text::add_space_to_layout_box(ws, layout, box);
4055 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4056 text::close_layout_box(layout, box);
4057}
4059 auto box = text::open_layout_box(layout, indentation);
4060 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4061 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4062 text::add_space_to_layout_box(ws, layout, box);
4063 if(from_slot != -1)
4064 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4065 else
4066 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4067 text::close_layout_box(layout, box);
4068}
4070 auto box = text::open_layout_box(layout, indentation);
4071 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4072 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4073 text::add_space_to_layout_box(ws, layout, box);
4074 if(this_slot != -1)
4075 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4076 else
4077 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4078 text::close_layout_box(layout, box);
4079}
4081 auto box = text::open_layout_box(layout, indentation);
4082 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4083 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4084 text::add_space_to_layout_box(ws, layout, box);
4085 if(this_slot != -1)
4086 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4087 else
4088 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4089 text::close_layout_box(layout, box);
4090}
4092 auto box = text::open_layout_box(layout, indentation);
4093 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4094 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4095 text::add_space_to_layout_box(ws, layout, box);
4096 if(this_slot != -1)
4097 text::add_to_layout_box(ws, layout, box,
4098 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4099 else
4100 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4101 text::close_layout_box(layout, box);
4102}
4104 auto box = text::open_layout_box(layout, indentation);
4105 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4106 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4107 text::add_space_to_layout_box(ws, layout, box);
4108 if(this_slot != -1)
4109 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4110 else
4111 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4112 text::close_layout_box(layout, box);
4113}
4115 auto box = text::open_layout_box(layout, indentation);
4116 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4117 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4118 text::add_space_to_layout_box(ws, layout, box);
4119 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "owner"));
4120 text::close_layout_box(layout, box);
4121}
4123 auto box = text::open_layout_box(layout, indentation);
4124 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4125 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by_rebel"), ws, layout, box);
4126 text::close_layout_box(layout, box);
4127}
4129 auto box = text::open_layout_box(layout, indentation);
4130 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4131 display_with_comparison(tval[0], text::produce_simple_string(ws, std::string("canal_") + std::to_string(tval[1])),
4132 text::produce_simple_string(ws, "enabled"), ws, layout, box);
4133 text::close_layout_box(layout, box);
4134}
4136 auto box = text::open_layout_box(layout, indentation);
4137 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4138 display_with_comparison(tval[0], text::produce_simple_string(ws, "loc_state_capital"), ws, layout, box);
4139 text::close_layout_box(layout, box);
4140}
4142 auto box = text::open_layout_box(layout, indentation);
4143 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4144 display_with_comparison(tval[0], text::produce_simple_string(ws, "state_capital"), ws, layout, box);
4145 text::close_layout_box(layout, box);
4146}
4148 auto box = text::open_layout_box(layout, indentation);
4149 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4150 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_truce_with"), ws, layout, box);
4151 text::add_space_to_layout_box(ws, layout, box);
4152 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4153 text::close_layout_box(layout, box);
4154}
4156 auto box = text::open_layout_box(layout, indentation);
4157 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4158 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_truce_with"), ws, layout, box);
4159 text::add_space_to_layout_box(ws, layout, box);
4160 if(from_slot != -1)
4161 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4162 else
4163 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4164 text::close_layout_box(layout, box);
4165}
4167 auto box = text::open_layout_box(layout, indentation);
4168 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4169 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_truce_with"), ws, layout, box);
4170 text::add_space_to_layout_box(ws, layout, box);
4171 if(this_slot != -1)
4172 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4173 else
4174 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4175 text::close_layout_box(layout, box);
4176}
4178 auto box = text::open_layout_box(layout, indentation);
4179 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4180 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_truce_with"), ws, layout, box);
4181 text::add_space_to_layout_box(ws, layout, box);
4182 if(this_slot != -1)
4183 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4184 else
4185 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4186 text::close_layout_box(layout, box);
4187}
4189 auto box = text::open_layout_box(layout, indentation);
4190 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4191 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_truce_with"), ws, layout, box);
4192 text::add_space_to_layout_box(ws, layout, box);
4193 if(this_slot != -1)
4194 text::add_to_layout_box(ws, layout, box,
4195 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4196 else
4197 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4198 text::close_layout_box(layout, box);
4199}
4201 auto box = text::open_layout_box(layout, indentation);
4202 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4203 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_truce_with"), ws, layout, box);
4204 text::add_space_to_layout_box(ws, layout, box);
4205 if(this_slot != -1)
4206 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4207 else
4208 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4209 text::close_layout_box(layout, box);
4210}
4212 auto box = text::open_layout_box(layout, indentation);
4213 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4214 display_with_comparison(tval[0], text::produce_simple_string(ws, "att_population"),
4215 int64_t(trigger::read_float_from_payload(tval + 1)), ws, layout, box);
4216 text::close_layout_box(layout, box);
4217}
4219 auto box = text::open_layout_box(layout, indentation);
4220 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4221 display_with_comparison(tval[0], text::produce_simple_string(ws, "att_population"),
4222 int64_t(trigger::read_float_from_payload(tval + 1)), ws, layout, box);
4223 text::close_layout_box(layout, box);
4224}
4226 auto box = text::open_layout_box(layout, indentation);
4227 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4228 display_with_comparison(tval[0], text::produce_simple_string(ws, "att_population"),
4229 int64_t(trigger::read_float_from_payload(tval + 1)), ws, layout, box);
4230 text::close_layout_box(layout, box);
4231}
4233 auto box = text::open_layout_box(layout, indentation);
4234 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4235 display_with_comparison(tval[0], text::produce_simple_string(ws, "att_population"),
4236 int64_t(trigger::read_float_from_payload(tval + 1)), ws, layout, box);
4237 text::close_layout_box(layout, box);
4238}
4240 auto box = text::open_layout_box(layout, indentation);
4241 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4242 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_of_type"), ws, layout, box);
4243 text::add_space_to_layout_box(ws, layout, box);
4244 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
4245 text::close_layout_box(layout, box);
4246}
4248 auto box = text::open_layout_box(layout, indentation);
4249 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4250 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_of_type"), ws, layout, box);
4251 text::add_space_to_layout_box(ws, layout, box);
4252 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
4253 text::close_layout_box(layout, box);
4254}
4256 auto box = text::open_layout_box(layout, indentation);
4257 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4258 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_of_type"), ws, layout, box);
4259 text::add_space_to_layout_box(ws, layout, box);
4260 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
4261 text::close_layout_box(layout, box);
4262}
4264 auto box = text::open_layout_box(layout, indentation);
4265 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4266 display_with_comparison(tval[0], text::produce_simple_string(ws, "of_type_plain"), ws, layout, box);
4267 text::add_space_to_layout_box(ws, layout, box);
4268 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
4269 text::close_layout_box(layout, box);
4270}
4272 auto box = text::open_layout_box(layout, indentation);
4273 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4274 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "an_empty_adj_prov"), ws, layout, box);
4275 text::close_layout_box(layout, box);
4276}
4278 auto box = text::open_layout_box(layout, indentation);
4279 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4280 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_leader_named"), ws, layout, box);
4281 text::add_space_to_layout_box(ws, layout, box);
4282 text::add_to_layout_box(ws, layout, box, ws.to_string_view(dcon::unit_name_id(dcon::unit_name_id::value_base_t(trigger::read_int32_t_from_payload(tval + 1)))));
4283 text::close_layout_box(layout, box);
4284}
4286 auto box = text::open_layout_box(layout, indentation);
4287 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4288 display_with_comparison(tval[0], text::produce_simple_string(ws, "ai_controlled"), ws, layout, box);
4289 text::close_layout_box(layout, box);
4290}
4292 auto box = text::open_layout_box(layout, indentation);
4293 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4294 display_with_comparison(tval[0], text::produce_simple_string(ws, "able_to_create_vassals"), ws, layout, box);
4295 text::close_layout_box(layout, box);
4296}
4298 auto box = text::open_layout_box(layout, indentation);
4299 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4300 display_with_comparison(tval[0], trigger::payload(tval[1]).tag_id, text::produce_simple_string(ws, "a_possible_vassal"), ws,
4301 layout, box);
4302 text::close_layout_box(layout, box);
4303}
4305 auto box = text::open_layout_box(layout, indentation);
4306 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4307 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.province_get_name(trigger::payload(tval[1]).prov_id)),
4308 ws, layout, box);
4309 text::close_layout_box(layout, box);
4310}
4312 auto box = text::open_layout_box(layout, indentation);
4313 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4314 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4315 text::add_space_to_layout_box(ws, layout, box);
4316 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4317 text::close_layout_box(layout, box);
4318}
4320 auto box = text::open_layout_box(layout, indentation);
4321 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4322 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4323 text::add_space_to_layout_box(ws, layout, box);
4324 if(from_slot != -1)
4325 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4326 else
4327 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4328 text::close_layout_box(layout, box);
4329}
4331 auto box = text::open_layout_box(layout, indentation);
4332 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4333 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4334 text::add_space_to_layout_box(ws, layout, box);
4335 if(this_slot != -1)
4336 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4337 else
4338 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4339 text::close_layout_box(layout, box);
4340}
4342 auto box = text::open_layout_box(layout, indentation);
4343 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4344 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4345 text::add_space_to_layout_box(ws, layout, box);
4346 if(this_slot != -1)
4347 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4348 else
4349 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4350 text::close_layout_box(layout, box);
4351}
4353 auto box = text::open_layout_box(layout, indentation);
4354 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4355 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4356 text::add_space_to_layout_box(ws, layout, box);
4357 if(this_slot != -1)
4358 text::add_to_layout_box(ws, layout, box,
4359 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4360 else
4361 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4362 text::close_layout_box(layout, box);
4363}
4365 auto box = text::open_layout_box(layout, indentation);
4366 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4367 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4368 text::add_space_to_layout_box(ws, layout, box);
4369 if(this_slot != -1)
4370 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4371 else
4372 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4373 text::close_layout_box(layout, box);
4374}
4375
4376
4378 auto box = text::open_layout_box(layout, indentation);
4379 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4380 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
4381 text::add_space_to_layout_box(ws, layout, box);
4382 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4383 text::add_space_to_layout_box(ws, layout, box);
4384 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4385 text::close_layout_box(layout, box);
4386}
4388 auto box = text::open_layout_box(layout, indentation);
4389 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4390 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
4391 text::add_space_to_layout_box(ws, layout, box);
4392 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4393 text::add_space_to_layout_box(ws, layout, box);
4394 if(from_slot != -1)
4395 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4396 else
4397 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4398 text::close_layout_box(layout, box);
4399}
4401 auto box = text::open_layout_box(layout, indentation);
4402 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4403 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
4404 text::add_space_to_layout_box(ws, layout, box);
4405 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4406 text::add_space_to_layout_box(ws, layout, box);
4407 if(this_slot != -1)
4408 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4409 else
4410 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4411 text::close_layout_box(layout, box);
4412}
4414 auto box = text::open_layout_box(layout, indentation);
4415 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4416 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
4417 text::add_space_to_layout_box(ws, layout, box);
4418 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4419 text::add_space_to_layout_box(ws, layout, box);
4420 if(this_slot != -1)
4421 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4422 else
4423 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4424 text::close_layout_box(layout, box);
4425}
4427 auto box = text::open_layout_box(layout, indentation);
4428 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4429 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
4430 text::add_space_to_layout_box(ws, layout, box);
4431 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4432 text::add_space_to_layout_box(ws, layout, box);
4433 if(this_slot != -1)
4434 text::add_to_layout_box(ws, layout, box,
4435 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4436 else
4437 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4438 text::close_layout_box(layout, box);
4439}
4441 auto box = text::open_layout_box(layout, indentation);
4442 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4443 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
4444 text::add_space_to_layout_box(ws, layout, box);
4445 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4446 text::add_space_to_layout_box(ws, layout, box);
4447 if(this_slot != -1)
4448 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4449 else
4450 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4451 text::close_layout_box(layout, box);
4452}
4453
4455 auto box = text::open_layout_box(layout, indentation);
4456 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4457 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate_of"), ws, layout, box);
4458 text::add_space_to_layout_box(ws, layout, box);
4459 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4460 text::close_layout_box(layout, box);
4461}
4463 auto box = text::open_layout_box(layout, indentation);
4464 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4465 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate_of"), ws, layout, box);
4466 text::add_space_to_layout_box(ws, layout, box);
4467 if(from_slot != -1)
4468 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4469 else
4470 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4471 text::close_layout_box(layout, box);
4472}
4474 auto box = text::open_layout_box(layout, indentation);
4475 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4476 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate_of"), ws, layout, box);
4477 text::add_space_to_layout_box(ws, layout, box);
4478 if(this_slot != -1)
4479 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4480 else
4481 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4482 text::close_layout_box(layout, box);
4483}
4485 auto box = text::open_layout_box(layout, indentation);
4486 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4487 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate_of"), ws, layout, box);
4488 text::add_space_to_layout_box(ws, layout, box);
4489 if(this_slot != -1)
4490 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4491 else
4492 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4493 text::close_layout_box(layout, box);
4494}
4496 auto box = text::open_layout_box(layout, indentation);
4497 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4498 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate_of"), ws, layout, box);
4499 text::add_space_to_layout_box(ws, layout, box);
4500 if(this_slot != -1)
4501 text::add_to_layout_box(ws, layout, box,
4502 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4503 else
4504 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4505 text::close_layout_box(layout, box);
4506}
4508 auto box = text::open_layout_box(layout, indentation);
4509 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4510 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate_of"), ws, layout, box);
4511 text::add_space_to_layout_box(ws, layout, box);
4512 if(this_slot != -1)
4513 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4514 else
4515 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4516 text::close_layout_box(layout, box);
4517}
4519 auto box = text::open_layout_box(layout, indentation);
4520 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4521 display_with_comparison(tval[0], text::produce_simple_string(ws, "allied_to"), ws, layout, box);
4522 text::add_space_to_layout_box(ws, layout, box);
4523 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4524 text::close_layout_box(layout, box);
4525}
4527 auto box = text::open_layout_box(layout, indentation);
4528 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4529 display_with_comparison(tval[0], text::produce_simple_string(ws, "allied_to"), ws, layout, box);
4530 text::add_space_to_layout_box(ws, layout, box);
4531 if(from_slot != -1)
4532 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4533 else
4534 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4535 text::close_layout_box(layout, box);
4536}
4538 auto box = text::open_layout_box(layout, indentation);
4539 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4540 display_with_comparison(tval[0], text::produce_simple_string(ws, "allied_to"), ws, layout, box);
4541 text::add_space_to_layout_box(ws, layout, box);
4542 if(this_slot != -1)
4543 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4544 else
4545 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4546 text::close_layout_box(layout, box);
4547}
4549 auto box = text::open_layout_box(layout, indentation);
4550 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4551 display_with_comparison(tval[0], text::produce_simple_string(ws, "allied_to"), ws, layout, box);
4552 text::add_space_to_layout_box(ws, layout, box);
4553 if(this_slot != -1)
4554 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4555 else
4556 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4557 text::close_layout_box(layout, box);
4558}
4560 auto box = text::open_layout_box(layout, indentation);
4561 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4562 display_with_comparison(tval[0], text::produce_simple_string(ws, "allied_to"), ws, layout, box);
4563 text::add_space_to_layout_box(ws, layout, box);
4564 if(this_slot != -1)
4565 text::add_to_layout_box(ws, layout, box,
4566 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4567 else
4568 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4569 text::close_layout_box(layout, box);
4570}
4572 auto box = text::open_layout_box(layout, indentation);
4573 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4574 display_with_comparison(tval[0], text::produce_simple_string(ws, "allied_to"), ws, layout, box);
4575 text::add_space_to_layout_box(ws, layout, box);
4576 if(this_slot != -1)
4577 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4578 else
4579 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4580 text::close_layout_box(layout, box);
4581}
4584 auto box = text::open_layout_box(layout, indentation);
4585 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4586 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "has_recently_lost_war"));
4587 text::close_layout_box(layout, box);
4588 } else {
4589 auto box = text::open_layout_box(layout, indentation);
4590 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4591 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "has_not_recently_lost_war"));
4592 text::close_layout_box(layout, box);
4593 }
4594}
4596 auto box = text::open_layout_box(layout, indentation);
4597 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4598 display_with_comparison(tval[0], text::produce_simple_string(ws, "mobilized"), ws, layout, box);
4599 text::close_layout_box(layout, box);
4600}
4602 auto box = text::open_layout_box(layout, indentation);
4603 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4604 display_with_comparison(tval[0], text::produce_simple_string(ws, "mobilization_size"),
4605 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
4606 text::close_layout_box(layout, box);
4607}
4609 auto box = text::open_layout_box(layout, indentation);
4610 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4611 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
4612 text::produce_simple_string(ws, "greater_than_edu_spending"), ws, layout, box);
4613 text::close_layout_box(layout, box);
4614}
4616 auto box = text::open_layout_box(layout, indentation);
4617 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4618 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
4619 text::produce_simple_string(ws, "greater_than_edu_spending"), ws, layout, box);
4620 text::close_layout_box(layout, box);
4621}
4623 auto box = text::open_layout_box(layout, indentation);
4624 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4625 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
4626 text::produce_simple_string(ws, "greater_than_edu_spending"), ws, layout, box);
4627 text::close_layout_box(layout, box);
4628}
4630 auto box = text::open_layout_box(layout, indentation);
4631 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4632 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
4633 text::produce_simple_string(ws, "greater_than_edu_spending"), ws, layout, box);
4634 text::close_layout_box(layout, box);
4635}
4637 auto box = text::open_layout_box(layout, indentation);
4638 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4639 display_with_comparison(tval[0], text::produce_simple_string(ws, "support_for_rp"),
4640 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
4641 text::close_layout_box(layout, box);
4642}
4644 auto box = text::open_layout_box(layout, indentation);
4645 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4646 display_with_comparison(tval[0], text::produce_simple_string(ws, "colonial"), ws, layout, box);
4647 text::close_layout_box(layout, box);
4648}
4650 auto box = text::open_layout_box(layout, indentation);
4651 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4652 display_with_comparison(tval[0], text::produce_simple_string(ws, "colonial"), ws, layout, box);
4653 text::close_layout_box(layout, box);
4654}
4656 auto box = text::open_layout_box(layout, indentation);
4657 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4658 display_with_comparison(tval[0], text::produce_simple_string(ws, "colonial_pop"), ws, layout, box);
4659 text::close_layout_box(layout, box);
4660}
4662 auto box = text::open_layout_box(layout, indentation);
4663 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4664 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_factory"), ws, layout, box);
4665 text::close_layout_box(layout, box);
4666}
4668 auto box = text::open_layout_box(layout, indentation);
4669 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4670 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_factory"), ws, layout, box);
4671 text::close_layout_box(layout, box);
4672}
4674 auto box = text::open_layout_box(layout, indentation);
4675 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4676 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_bnkrpt"), ws, layout, box);
4677 text::close_layout_box(layout, box);
4678}
4680 auto box = text::open_layout_box(layout, indentation);
4681 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4682 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_default_to"), ws, layout, box);
4683 text::add_space_to_layout_box(ws, layout, box);
4684 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4685 text::close_layout_box(layout, box);
4686}
4688 auto box = text::open_layout_box(layout, indentation);
4689 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4690 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_default_to"), ws, layout, box);
4691 text::add_space_to_layout_box(ws, layout, box);
4692 if(from_slot != -1)
4693 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4694 else
4695 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4696 text::close_layout_box(layout, box);
4697}
4699 auto box = text::open_layout_box(layout, indentation);
4700 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4701 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_default_to"), ws, layout, box);
4702 text::add_space_to_layout_box(ws, layout, box);
4703 if(this_slot != -1)
4704 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4705 else
4706 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4707 text::close_layout_box(layout, box);
4708}
4710 auto box = text::open_layout_box(layout, indentation);
4711 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4712 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_default_to"), ws, layout, box);
4713 text::add_space_to_layout_box(ws, layout, box);
4714 if(this_slot != -1)
4715 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4716 else
4717 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4718 text::close_layout_box(layout, box);
4719}
4721 auto box = text::open_layout_box(layout, indentation);
4722 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4723 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_default_to"), ws, layout, box);
4724 text::add_space_to_layout_box(ws, layout, box);
4725 if(this_slot != -1)
4726 text::add_to_layout_box(ws, layout, box,
4727 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4728 else
4729 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4730 text::close_layout_box(layout, box);
4731}
4733 auto box = text::open_layout_box(layout, indentation);
4734 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4735 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_default_to"), ws, layout, box);
4736 text::add_space_to_layout_box(ws, layout, box);
4737 if(this_slot != -1)
4738 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4739 else
4740 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4741 text::close_layout_box(layout, box);
4742}
4744 auto box = text::open_layout_box(layout, indentation);
4745 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4746 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_of_ports"), int64_t(tval[1]), ws, layout, box);
4747 text::close_layout_box(layout, box);
4748}
4750 auto box = text::open_layout_box(layout, indentation);
4751 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4752
4754 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
4755 else
4756 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
4757
4758 text::close_layout_box(layout, box);
4759}
4761 auto box = text::open_layout_box(layout, indentation);
4762 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4763 display_with_comparison(tval[0], text::produce_simple_string(ws, "holding_an_election"), ws, layout, box);
4764 text::close_layout_box(layout, box);
4765}
4767 if(ws.user_settings.spoilers) {
4768 auto box = text::open_layout_box(layout, indentation);
4769 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4771 text::produce_simple_string(ws, ws.national_definitions.global_flag_variable_names[trigger::payload(tval[1]).glob_id]),
4772 text::produce_simple_string(ws, "set_globally"), ws, layout, box);
4773 text::close_layout_box(layout, box);
4774 }
4775}
4777 auto box = text::open_layout_box(layout, indentation);
4778 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4779 display_with_comparison(tval[0], text::produce_simple_string(ws, "capital"), ws, layout, box);
4780 text::close_layout_box(layout, box);
4781}
4783 auto box = text::open_layout_box(layout, indentation);
4784 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4785 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_value"),
4786 text::produce_simple_string(ws, ws.world.modifier_get_name(trigger::payload(tval[1]).mod_id)), ws, layout, box);
4787 text::close_layout_box(layout, box);
4788}
4790 auto box = text::open_layout_box(layout, indentation);
4791 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4792 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_value"),
4793 text::produce_simple_string(ws, ws.world.modifier_get_name(trigger::payload(tval[1]).mod_id)), ws, layout, box);
4794 text::close_layout_box(layout, box);
4795}
4797 auto box = text::open_layout_box(layout, indentation);
4798 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4799 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_value"),
4800 text::produce_simple_string(ws, ws.world.modifier_get_name(trigger::payload(tval[1]).mod_id)), ws, layout, box);
4801 text::close_layout_box(layout, box);
4802}
4804 auto box = text::open_layout_box(layout, indentation);
4805 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4806 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4807 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
4808 text::close_layout_box(layout, box);
4809}
4811 auto box = text::open_layout_box(layout, indentation);
4812 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4813 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4814 text::produce_simple_string(ws, "industrial_score_of"), ws, layout, box);
4815 text::add_space_to_layout_box(ws, layout, box);
4816 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4817 text::close_layout_box(layout, box);
4818}
4820 auto box = text::open_layout_box(layout, indentation);
4821 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4822 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4823 text::produce_simple_string(ws, "industrial_score_of"), ws, layout, box);
4824 text::add_space_to_layout_box(ws, layout, box);
4825 if(from_slot != -1)
4826 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4827 else
4828 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4829 text::close_layout_box(layout, box);
4830}
4832 auto box = text::open_layout_box(layout, indentation);
4833 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4834 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4835 text::produce_simple_string(ws, "industrial_score_of"), ws, layout, box);
4836 text::add_space_to_layout_box(ws, layout, box);
4837 if(this_slot != -1)
4838 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4839 else
4840 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4841 text::close_layout_box(layout, box);
4842}
4844 auto box = text::open_layout_box(layout, indentation);
4845 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4846 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4847 text::produce_simple_string(ws, "industrial_score_of"), ws, layout, box);
4848 text::add_space_to_layout_box(ws, layout, box);
4849 if(this_slot != -1)
4850 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4851 else
4852 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4853 text::close_layout_box(layout, box);
4854}
4856 auto box = text::open_layout_box(layout, indentation);
4857 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4858 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4859 text::produce_simple_string(ws, "industrial_score_of"), ws, layout, box);
4860 text::add_space_to_layout_box(ws, layout, box);
4861 if(this_slot != -1)
4862 text::add_to_layout_box(ws, layout, box,
4863 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4864 else
4865 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4866 text::close_layout_box(layout, box);
4867}
4869 auto box = text::open_layout_box(layout, indentation);
4870 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4871 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4872 text::produce_simple_string(ws, "industrial_score_of"), ws, layout, box);
4873 text::add_space_to_layout_box(ws, layout, box);
4874 if(this_slot != -1)
4875 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4876 else
4877 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4878 text::close_layout_box(layout, box);
4879}
4881 auto box = text::open_layout_box(layout, indentation);
4882 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4883 display_with_comparison(tval[0], text::produce_simple_string(ws, "military_score"),
4884 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
4885 text::close_layout_box(layout, box);
4886}
4888 auto box = text::open_layout_box(layout, indentation);
4889 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4890 display_with_comparison(tval[0], text::produce_simple_string(ws, "military_score"),
4891 text::produce_simple_string(ws, "military_score_of"), ws, layout, box);
4892 text::add_space_to_layout_box(ws, layout, box);
4893 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4894 text::close_layout_box(layout, box);
4895}
4897 auto box = text::open_layout_box(layout, indentation);
4898 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4899 display_with_comparison(tval[0], text::produce_simple_string(ws, "military_score"),
4900 text::produce_simple_string(ws, "military_score_of"), ws, layout, box);
4901 text::add_space_to_layout_box(ws, layout, box);
4902 if(from_slot != -1)
4903 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4904 else
4905 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4906 text::close_layout_box(layout, box);
4907}
4909 auto box = text::open_layout_box(layout, indentation);
4910 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4911 display_with_comparison(tval[0], text::produce_simple_string(ws, "military_score"),
4912 text::produce_simple_string(ws, "military_score_of"), ws, layout, box);
4913 text::add_space_to_layout_box(ws, layout, box);
4914 if(this_slot != -1)
4915 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4916 else
4917 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4918 text::close_layout_box(layout, box);
4919}
4921 auto box = text::open_layout_box(layout, indentation);
4922 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4923 display_with_comparison(tval[0], text::produce_simple_string(ws, "military_score"),
4924 text::produce_simple_string(ws, "military_score_of"), ws, layout, box);
4925 text::add_space_to_layout_box(ws, layout, box);
4926 if(this_slot != -1)
4927 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4928 else
4929 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4930 text::close_layout_box(layout, box);
4931}
4933 auto box = text::open_layout_box(layout, indentation);
4934 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4935 display_with_comparison(tval[0], text::produce_simple_string(ws, "military_score"),
4936 text::produce_simple_string(ws, "military_score_of"), ws, layout, box);
4937 text::add_space_to_layout_box(ws, layout, box);
4938 if(this_slot != -1)
4939 text::add_to_layout_box(ws, layout, box,
4940 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4941 else
4942 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4943 text::close_layout_box(layout, box);
4944}
4946 auto box = text::open_layout_box(layout, indentation);
4947 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4948 display_with_comparison(tval[0], text::produce_simple_string(ws, "military_score"),
4949 text::produce_simple_string(ws, "military_score_of"), ws, layout, box);
4950 text::add_space_to_layout_box(ws, layout, box);
4951 if(this_slot != -1)
4952 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4953 else
4954 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4955 text::close_layout_box(layout, box);
4956}
4958 auto box = text::open_layout_box(layout, indentation);
4959 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4960 display_with_comparison(tval[0], text::produce_simple_string(ws, "civilized"), ws, layout, box);
4961 text::close_layout_box(layout, box);
4962}
4964 auto box = text::open_layout_box(layout, indentation);
4965 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4966 display_with_comparison(tval[0], text::produce_simple_string(ws, "civilized"), ws, layout, box);
4967 text::close_layout_box(layout, box);
4968}
4970 auto box = text::open_layout_box(layout, indentation);
4971 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4972 display_with_comparison(tval[0], text::produce_simple_string(ws, "civilized"), ws, layout, box);
4973 text::close_layout_box(layout, box);
4974}
4976 auto box = text::open_layout_box(layout, indentation);
4977 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4978 display_with_comparison(tval[0], text::produce_simple_string(ws, "percent_occupied"),
4979 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
4980 text::close_layout_box(layout, box);
4981}
4983 auto box = text::open_layout_box(layout, indentation);
4984 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4985 display_with_comparison(tval[0], text::produce_simple_string(ws, "great_power"), ws, layout, box);
4986 text::close_layout_box(layout, box);
4987}
4989 auto box = text::open_layout_box(layout, indentation);
4990 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4991 display_with_comparison(tval[0], text::produce_simple_string(ws, "great_power"), ws, layout, box);
4992 text::close_layout_box(layout, box);
4993}
4995 auto box = text::open_layout_box(layout, indentation);
4996 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4997 display_with_comparison(tval[0], text::produce_simple_string(ws, "great_power"), ws, layout, box);
4998 text::close_layout_box(layout, box);
4999}
5001 auto box = text::open_layout_box(layout, indentation);
5002 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5004 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5005 text::close_layout_box(layout, box);
5006}
5008 auto box = text::open_layout_box(layout, indentation);
5009 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5010 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_tax"),
5011 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5012 text::close_layout_box(layout, box);
5013}
5015 auto box = text::open_layout_box(layout, indentation);
5016 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5018 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5019 text::close_layout_box(layout, box);
5020}
5022 auto box = text::open_layout_box(layout, indentation);
5023 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5024 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_spending"),
5025 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5026 text::close_layout_box(layout, box);
5027}
5029 auto box = text::open_layout_box(layout, indentation);
5030 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5031 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_spending"),
5032 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5033 text::close_layout_box(layout, box);
5034}
5036 auto box = text::open_layout_box(layout, indentation);
5037 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5038 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_spending"),
5039 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5040 text::close_layout_box(layout, box);
5041}
5043 auto box = text::open_layout_box(layout, indentation);
5044 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5045 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_spending"),
5046 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5047 text::close_layout_box(layout, box);
5048}
5050 auto box = text::open_layout_box(layout, indentation);
5051 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5052 display_with_comparison(tval[0], text::produce_simple_string(ws, "mil_spending"),
5053 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5054 text::close_layout_box(layout, box);
5055}
5057 auto box = text::open_layout_box(layout, indentation);
5058 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5059 display_with_comparison(tval[0], text::produce_simple_string(ws, "mil_spending"),
5060 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5061 text::close_layout_box(layout, box);
5062}
5064 auto box = text::open_layout_box(layout, indentation);
5065 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5066 display_with_comparison(tval[0], text::produce_simple_string(ws, "mil_spending"),
5067 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5068 text::close_layout_box(layout, box);
5069}
5071 auto box = text::open_layout_box(layout, indentation);
5072 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5073 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
5074 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5075 text::close_layout_box(layout, box);
5076}
5078 auto box = text::open_layout_box(layout, indentation);
5079 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5080 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
5081 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5082 text::close_layout_box(layout, box);
5083}
5085 auto box = text::open_layout_box(layout, indentation);
5086 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5087 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
5088 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5089 text::close_layout_box(layout, box);
5090}
5092 auto box = text::open_layout_box(layout, indentation);
5093 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5094 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
5095 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5096 text::close_layout_box(layout, box);
5097}
5099 auto box = text::open_layout_box(layout, indentation);
5100 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5101 display_with_comparison(tval[0], text::produce_simple_string(ws, "edu_spending"),
5102 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5103 text::close_layout_box(layout, box);
5104}
5106 auto box = text::open_layout_box(layout, indentation);
5107 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5108 display_with_comparison(tval[0], text::produce_simple_string(ws, "edu_spending"),
5109 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5110 text::close_layout_box(layout, box);
5111}
5113 auto box = text::open_layout_box(layout, indentation);
5114 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5115 display_with_comparison(tval[0], text::produce_simple_string(ws, "edu_spending"),
5116 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5117 text::close_layout_box(layout, box);
5118}
5120 auto box = text::open_layout_box(layout, indentation);
5121 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5122 display_with_comparison(tval[0], text::produce_simple_string(ws, "edu_spending"),
5123 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5124 text::close_layout_box(layout, box);
5125}
5127 auto box = text::open_layout_box(layout, indentation);
5128 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5129 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "colonies"), ws, layout, box);
5130 text::close_layout_box(layout, box);
5131}
5133 auto box = text::open_layout_box(layout, indentation);
5134 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5135 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_religion"),
5136 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
5137 text::close_layout_box(layout, box);
5138}
5140 auto box = text::open_layout_box(layout, indentation);
5141 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5142
5143 if(this_slot != -1)
5144 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_religion"),
5145 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.nation_get_religion(trigger::to_nation(this_slot)))), ws, layout, box);
5146 else
5147 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_religion"), text::produce_simple_string(ws, "same_rel_as_this"), ws, layout, box);
5148 text::close_layout_box(layout, box);
5149}
5151 auto box = text::open_layout_box(layout, indentation);
5152 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5153 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_religion"),
5154 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
5155 text::close_layout_box(layout, box);
5156}
5158 auto box = text::open_layout_box(layout, indentation);
5159 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5160 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_religion"),
5161 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
5162 text::close_layout_box(layout, box);
5163}
5165 auto box = text::open_layout_box(layout, indentation);
5166 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5167 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
5168 text::produce_simple_string(ws, ws.world.culture_get_name(trigger::payload(tval[1]).cul_id)), ws, layout, box);
5169 text::close_layout_box(layout, box);
5170}
5172 auto box = text::open_layout_box(layout, indentation);
5173 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5174 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
5175 text::produce_simple_string(ws, ws.world.culture_get_name(trigger::payload(tval[1]).cul_id)), ws, layout, box);
5176 text::close_layout_box(layout, box);
5177}
5179 auto box = text::open_layout_box(layout, indentation);
5180 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5181 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
5182 text::produce_simple_string(ws, ws.world.culture_get_name(trigger::payload(tval[1]).cul_id)), ws, layout, box);
5183 text::close_layout_box(layout, box);
5184}
5186 auto box = text::open_layout_box(layout, indentation);
5187 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5188 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_issue"),
5189 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id)), ws, layout, box);
5190 text::close_layout_box(layout, box);
5191}
5193 auto box = text::open_layout_box(layout, indentation);
5194 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5195 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_issue"),
5196 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id)), ws, layout, box);
5197 text::close_layout_box(layout, box);
5198}
5200 auto box = text::open_layout_box(layout, indentation);
5201 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5202 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_issue"),
5203 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id)), ws, layout, box);
5204 text::close_layout_box(layout, box);
5205}
5207 auto box = text::open_layout_box(layout, indentation);
5208 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5209 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_issue"),
5210 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id)), ws, layout, box);
5211 text::close_layout_box(layout, box);
5212}
5214 auto box = text::open_layout_box(layout, indentation);
5215 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5216 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_ideology"),
5217 text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id)), ws, layout, box);
5218 text::close_layout_box(layout, box);
5219}
5221 auto box = text::open_layout_box(layout, indentation);
5222 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5223 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_ideology"),
5224 text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id)), ws, layout, box);
5225 text::close_layout_box(layout, box);
5226}
5228 auto box = text::open_layout_box(layout, indentation);
5229 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5230 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_ideology"),
5231 text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id)), ws, layout, box);
5232 text::close_layout_box(layout, box);
5233}
5235 auto box = text::open_layout_box(layout, indentation);
5236 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5237 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_ideology"),
5238 text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id)), ws, layout, box);
5239 text::close_layout_box(layout, box);
5240}
5242 auto box = text::open_layout_box(layout, indentation);
5243 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5244 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_militancy"),
5245 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5246 text::close_layout_box(layout, box);
5247}
5249 auto box = text::open_layout_box(layout, indentation);
5250 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5251 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_militancy"),
5252 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5253 text::close_layout_box(layout, box);
5254}
5256 auto box = text::open_layout_box(layout, indentation);
5257 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5258 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_militancy"),
5259 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5260 text::close_layout_box(layout, box);
5261}
5263 auto box = text::open_layout_box(layout, indentation);
5264 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5265 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_militancy"),
5266 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5267 text::close_layout_box(layout, box);
5268}
5270 auto box = text::open_layout_box(layout, indentation);
5271 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5272 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_militancy"),
5273 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5274 text::close_layout_box(layout, box);
5275}
5277 auto box = text::open_layout_box(layout, indentation);
5278 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5279 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_militancy"),
5280 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5281 text::close_layout_box(layout, box);
5282}
5284 auto box = text::open_layout_box(layout, indentation);
5285 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5286 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_militancy"),
5287 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5288 text::close_layout_box(layout, box);
5289}
5291 auto box = text::open_layout_box(layout, indentation);
5292 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5293 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_militancy"),
5294 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5295 text::close_layout_box(layout, box);
5296}
5298 auto box = text::open_layout_box(layout, indentation);
5299 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5300 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_militancy"),
5301 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5302 text::close_layout_box(layout, box);
5303}
5305 auto box = text::open_layout_box(layout, indentation);
5306 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5307 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_militancy"),
5308 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5309 text::close_layout_box(layout, box);
5310}
5312 auto box = text::open_layout_box(layout, indentation);
5313 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5314 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_militancy"),
5315 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5316 text::close_layout_box(layout, box);
5317}
5319 auto box = text::open_layout_box(layout, indentation);
5320 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5321 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_militancy"),
5322 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5323 text::close_layout_box(layout, box);
5324}
5326 auto box = text::open_layout_box(layout, indentation);
5327 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5328 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_tax"), text::produce_simple_string(ws, "gt_poor_tax"),
5329 ws, layout, box);
5330 text::close_layout_box(layout, box);
5331}
5333 auto box = text::open_layout_box(layout, indentation);
5334 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5335 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_cultural_union"), ws, layout, box);
5336 text::close_layout_box(layout, box);
5337}
5339 auto box = text::open_layout_box(layout, indentation);
5340 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5341 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_cultural_union"), ws, layout, box);
5342 text::close_layout_box(layout, box);
5343}
5345 auto box = text::open_layout_box(layout, indentation);
5346 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5347 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"), trigger::payload(tval[1]).tag_id, ws,
5348 layout, box);
5349 text::close_layout_box(layout, box);
5350}
5352 auto box = text::open_layout_box(layout, indentation);
5353 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5354 if(from_slot != -1)
5355 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"), trigger::to_nation(from_slot), ws, layout,
5356 box);
5357 else
5358 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5359 text::produce_simple_string(ws, "from_nation"), ws, layout, box);
5360 text::close_layout_box(layout, box);
5361}
5363 auto box = text::open_layout_box(layout, indentation);
5364 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5365 if(this_slot != -1)
5366 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"), trigger::to_nation(this_slot), ws, layout,
5367 box);
5368 else
5369 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5370 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5371 text::close_layout_box(layout, box);
5372}
5374 auto box = text::open_layout_box(layout, indentation);
5375 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5376 if(this_slot != -1)
5377 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5378 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)), ws, layout, box);
5379 else
5380 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5381 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5382 text::close_layout_box(layout, box);
5383}
5385 auto box = text::open_layout_box(layout, indentation);
5386 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5387 if(this_slot != -1)
5388 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5389 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)), ws, layout, box);
5390 else
5391 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5392 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5393 text::close_layout_box(layout, box);
5394}
5396 auto box = text::open_layout_box(layout, indentation);
5397 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5398 if(this_slot != -1)
5399 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5400 nations::owner_of_pop(ws, trigger::to_pop(this_slot)), ws, layout, box);
5401 else
5402 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5403 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5404 text::close_layout_box(layout, box);
5405}
5407 auto box = text::open_layout_box(layout, indentation);
5408 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5409 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_cultural_union"), ws, layout, box);
5410 text::add_space_to_layout_box(ws, layout, box);
5411 if(this_slot != -1)
5412 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
5413 else
5414 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5415 text::close_layout_box(layout, box);
5416}
5418 auto box = text::open_layout_box(layout, indentation);
5419 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5420 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_cultural_union"), ws, layout, box);
5421 text::add_space_to_layout_box(ws, layout, box);
5422 if(this_slot != -1)
5423 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
5424 else
5425 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5426 text::close_layout_box(layout, box);
5427}
5429 auto box = text::open_layout_box(layout, indentation);
5430 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5431 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_cultural_union"), ws, layout, box);
5432 text::add_space_to_layout_box(ws, layout, box);
5433 if(this_slot != -1)
5434 text::add_to_layout_box(ws, layout, box,
5435 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
5436 else
5437 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5438 text::close_layout_box(layout, box);
5439}
5441 auto box = text::open_layout_box(layout, indentation);
5442 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5443 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_cultural_union"), ws, layout, box);
5444 text::add_space_to_layout_box(ws, layout, box);
5445 if(this_slot != -1)
5446 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
5447 else
5448 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5449 text::close_layout_box(layout, box);
5450}
5452 auto box = text::open_layout_box(layout, indentation);
5453 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5454 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "non_accepted_pops"), ws, layout, box);
5455 text::close_layout_box(layout, box);
5456}
5458 auto box = text::open_layout_box(layout, indentation);
5459 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5460 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "non_accepted_pops"), ws, layout, box);
5461 text::close_layout_box(layout, box);
5462}
5464 auto box = text::open_layout_box(layout, indentation);
5465 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5466 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "non_accepted_pops"), ws, layout, box);
5467 text::close_layout_box(layout, box);
5468}
5470 auto box = text::open_layout_box(layout, indentation);
5471 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5472 display_with_comparison(tval[0], text::produce_simple_string(ws, "revanchism"),
5473 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5474 text::close_layout_box(layout, box);
5475}
5477 auto box = text::open_layout_box(layout, indentation);
5478 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5479 display_with_comparison(tval[0], text::produce_simple_string(ws, "revanchism"),
5480 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5481 text::close_layout_box(layout, box);
5482}
5484 auto box = text::open_layout_box(layout, indentation);
5485 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5486 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "crime"), ws, layout, box);
5487 text::close_layout_box(layout, box);
5488}
5490 auto box = text::open_layout_box(layout, indentation);
5491 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5492 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_substates"), int64_t(tval[1]), ws, layout, box);
5493 text::close_layout_box(layout, box);
5494}
5496 auto box = text::open_layout_box(layout, indentation);
5497 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5498 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_vassals_no_substates"), int64_t(tval[1]), ws, layout,
5499 box);
5500 text::close_layout_box(layout, box);
5501}
5503 auto box = text::open_layout_box(layout, indentation);
5504 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5506 text::produce_simple_string(ws, "num_regiments"),
5507 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5508 text::add_space_to_layout_box(ws, layout, box);
5509 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
5510 text::close_layout_box(layout, box);
5511}
5513 auto box = text::open_layout_box(layout, indentation);
5514 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5516 text::produce_simple_string(ws, "num_regiments"),
5517 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5518 text::add_space_to_layout_box(ws, layout, box);
5519 if(this_slot != -1)
5520 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
5521 else
5522 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5523 text::close_layout_box(layout, box);
5524}
5526 auto box = text::open_layout_box(layout, indentation);
5527 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5529 text::produce_simple_string(ws, "num_regiments"),
5530 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5531 text::add_space_to_layout_box(ws, layout, box);
5532 if(this_slot != -1)
5533 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
5534 else
5535 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5536 text::close_layout_box(layout, box);
5537}
5539 auto box = text::open_layout_box(layout, indentation);
5540 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5542 text::produce_simple_string(ws, "num_regiments"),
5543 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5544 text::add_space_to_layout_box(ws, layout, box);
5545 if(this_slot != -1)
5546 text::add_to_layout_box(ws, layout, box, ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
5547 else
5548 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5549 text::close_layout_box(layout, box);
5550}
5552 auto box = text::open_layout_box(layout, indentation);
5553 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5555 text::produce_simple_string(ws, "num_regiments"),
5556 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5557 text::add_space_to_layout_box(ws, layout, box);
5558 if(this_slot != -1)
5559 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
5560 else
5561 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5562 text::close_layout_box(layout, box);
5563}
5565 auto box = text::open_layout_box(layout, indentation);
5566 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5568 text::produce_simple_string(ws, "num_regiments"),
5569 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5570 text::add_space_to_layout_box(ws, layout, box);
5571 if(from_slot != -1)
5572 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
5573 else
5574 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
5575 text::close_layout_box(layout, box);
5576}
5578 auto box = text::open_layout_box(layout, indentation);
5579 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5581 text::produce_simple_string(ws, "num_regiments"),
5582 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5583 text::add_space_to_layout_box(ws, layout, box);
5584 if(from_slot != -1)
5585 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(from_slot)));
5586 else
5587 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
5588 text::close_layout_box(layout, box);
5589}
5591 auto factor = trigger::read_float_from_payload(tval + 1);
5594 auto factor_str = text::resolve_string_substitution(ws, "times_num_regiments_of", s);
5595
5596 auto box = text::open_layout_box(layout, indentation);
5597 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5598 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_regiments"),
5599 factor_str, ws, layout, box);
5600 text::add_space_to_layout_box(ws, layout, box);
5601 if(this_slot != -1)
5602 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
5603 else
5604 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5605 text::close_layout_box(layout, box);
5606}
5608 auto factor = trigger::read_float_from_payload(tval + 1);
5611 auto factor_str = text::resolve_string_substitution(ws, "times_num_regiments_of", s);
5612
5613 auto box = text::open_layout_box(layout, indentation);
5614 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5615 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_regiments"),
5616 factor_str, ws, layout, box);
5617 text::add_space_to_layout_box(ws, layout, box);
5618 if(from_slot != -1)
5619 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
5620 else
5621 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
5622 text::close_layout_box(layout, box);
5623}
5625 auto factor = trigger::read_float_from_payload(tval + 1);
5628 auto factor_str = text::resolve_string_substitution(ws, "times_num_regiments_of", s);
5629
5630 auto box = text::open_layout_box(layout, indentation);
5631 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5632 display_with_comparison(tval[0], text::produce_simple_string(ws, "owner_num_regiments"),
5633 factor_str, ws, layout, box);
5634 text::add_space_to_layout_box(ws, layout, box);
5635 if(this_slot != -1)
5636 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
5637 else
5638 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5639 text::close_layout_box(layout, box);
5640}
5642 auto factor = trigger::read_float_from_payload(tval + 1);
5645 auto factor_str = text::resolve_string_substitution(ws, "times_num_regiments_of", s);
5646
5647 auto box = text::open_layout_box(layout, indentation);
5648 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5649 display_with_comparison(tval[0], text::produce_simple_string(ws, "owner_num_regiments"),
5650 factor_str, ws, layout, box);
5651 text::add_space_to_layout_box(ws, layout, box);
5652 if(from_slot != -1)
5653 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
5654 else
5655 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
5656 text::close_layout_box(layout, box);
5657}
5659 auto box = text::open_layout_box(layout, indentation);
5660 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5661 display_with_comparison(tval[0], text::produce_simple_string(ws, "fabricating_on"), ws, layout, box);
5662 text::add_space_to_layout_box(ws, layout, box);
5663 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
5664 text::close_layout_box(layout, box);
5665}
5667 auto box = text::open_layout_box(layout, indentation);
5668 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5669 display_with_comparison(tval[0], text::produce_simple_string(ws, "fabricating_on"), ws, layout, box);
5670 text::add_space_to_layout_box(ws, layout, box);
5671 if(from_slot != -1)
5672 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
5673 else
5674 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
5675 text::close_layout_box(layout, box);
5676}
5678 auto box = text::open_layout_box(layout, indentation);
5679 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5680 display_with_comparison(tval[0], text::produce_simple_string(ws, "fabricating_on"), ws, layout, box);
5681 text::add_space_to_layout_box(ws, layout, box);
5682 if(this_slot != -1)
5683 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
5684 else
5685 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5686 text::close_layout_box(layout, box);
5687}
5689 auto box = text::open_layout_box(layout, indentation);
5690 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5691 display_with_comparison(tval[0], text::produce_simple_string(ws, "fabricating_on"), ws, layout, box);
5692 text::add_space_to_layout_box(ws, layout, box);
5693 if(this_slot != -1)
5694 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
5695 else
5696 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5697 text::close_layout_box(layout, box);
5698}
5700 auto box = text::open_layout_box(layout, indentation);
5701 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5702 display_with_comparison(tval[0], text::produce_simple_string(ws, "fabricating_on"), ws, layout, box);
5703 text::add_space_to_layout_box(ws, layout, box);
5704 if(this_slot != -1)
5705 text::add_to_layout_box(ws, layout, box,
5706 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
5707 else
5708 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5709 text::close_layout_box(layout, box);
5710}
5712 auto box = text::open_layout_box(layout, indentation);
5713 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5714 display_with_comparison(tval[0], text::produce_simple_string(ws, "fabricating_on"), ws, layout, box);
5715 text::add_space_to_layout_box(ws, layout, box);
5716 if(this_slot != -1)
5717 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
5718 else
5719 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5720 text::close_layout_box(layout, box);
5721}
5723 auto box = text::open_layout_box(layout, indentation);
5724 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5726 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "cb_discovered"));
5727 else
5728 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "cb_not_discovered"));
5729 text::close_layout_box(layout, box);
5730}
5732 auto box = text::open_layout_box(layout, indentation);
5733 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5734 display_with_comparison(tval[0], text::produce_simple_string(ws, "cb_progress"),
5735 text::fp_percentage{trigger::read_float_from_payload(tval + 1) / 100.0f}, ws, layout, box);
5736 text::close_layout_box(layout, box);
5737}
5739 auto box = text::open_layout_box(layout, indentation);
5740 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5741 display_with_comparison(tval[0], text::produce_simple_string(ws, "civ_progress"),
5742 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5743 text::close_layout_box(layout, box);
5744}
5746 auto box = text::open_layout_box(layout, indentation);
5747 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5748 display_with_comparison(tval[0], text::produce_simple_string(ws, "constructing_a"), ws, layout, box);
5749 text::add_space_to_layout_box(ws, layout, box);
5750 text::add_to_layout_box(ws, layout, box, ws.world.cb_type_get_name(trigger::payload(tval[1]).cb_id));
5751 text::add_space_to_layout_box(ws, layout, box);
5752 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "casus_belli"));
5753 text::close_layout_box(layout, box);
5754}
5756 auto box = text::open_layout_box(layout, indentation);
5757 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5758 display_with_has_comparison(tval[0], trigger::payload(tval[1]).tag_id, ws, layout, box);
5759 text::add_space_to_layout_box(ws, layout, box);
5760 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5761 text::close_layout_box(layout, box);
5762}
5764 auto box = text::open_layout_box(layout, indentation);
5765 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5766 if(from_slot != -1)
5767 display_with_has_comparison(tval[0], trigger::to_nation(from_slot), ws, layout, box);
5768 else
5769 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "from_nation"), ws, layout, box);
5770 text::add_space_to_layout_box(ws, layout, box);
5771 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5772 text::close_layout_box(layout, box);
5773}
5775 auto box = text::open_layout_box(layout, indentation);
5776 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5777 if(this_slot != -1)
5778 display_with_has_comparison(tval[0], trigger::to_nation(this_slot), ws, layout, box);
5779 else
5780 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5781 text::add_space_to_layout_box(ws, layout, box);
5782 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5783 text::close_layout_box(layout, box);
5784}
5786 auto box = text::open_layout_box(layout, indentation);
5787 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5788 if(this_slot != -1)
5789 display_with_has_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)), ws,
5790 layout, box);
5791 else
5792 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5793 text::add_space_to_layout_box(ws, layout, box);
5794 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5795 text::close_layout_box(layout, box);
5796}
5798 auto box = text::open_layout_box(layout, indentation);
5799 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5800 if(this_slot != -1)
5801 display_with_has_comparison(tval[0], ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)),
5802 ws, layout, box);
5803 else
5804 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5805 text::add_space_to_layout_box(ws, layout, box);
5806 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5807 text::close_layout_box(layout, box);
5808}
5810 auto box = text::open_layout_box(layout, indentation);
5811 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5812 if(this_slot != -1)
5813 display_with_has_comparison(tval[0], nations::owner_of_pop(ws, trigger::to_pop(this_slot)), ws, layout, box);
5814 else
5815 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5816 text::add_space_to_layout_box(ws, layout, box);
5817 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5818 text::close_layout_box(layout, box);
5819}
5820
5821
5823 auto box = text::open_layout_box(layout, indentation);
5824 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5825 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
5826 text::add_space_to_layout_box(ws, layout, box);
5827 display_with_has_comparison(tval[0], trigger::payload(tval[1]).tag_id, ws, layout, box);
5828 text::add_space_to_layout_box(ws, layout, box);
5829 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5830 text::close_layout_box(layout, box);
5831}
5833 auto box = text::open_layout_box(layout, indentation);
5834 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5835 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
5836 text::add_space_to_layout_box(ws, layout, box);
5837 if(from_slot != -1)
5838 display_with_has_comparison(tval[0], trigger::to_nation(from_slot), ws, layout, box);
5839 else
5840 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "from_nation"), ws, layout, box);
5841 text::add_space_to_layout_box(ws, layout, box);
5842 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5843 text::close_layout_box(layout, box);
5844}
5846 auto box = text::open_layout_box(layout, indentation);
5847 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5848 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
5849 text::add_space_to_layout_box(ws, layout, box);
5850 if(this_slot != -1)
5851 display_with_has_comparison(tval[0], trigger::to_nation(this_slot), ws, layout, box);
5852 else
5853 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5854 text::add_space_to_layout_box(ws, layout, box);
5855 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5856 text::close_layout_box(layout, box);
5857}
5859 auto box = text::open_layout_box(layout, indentation);
5860 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5861 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
5862 text::add_space_to_layout_box(ws, layout, box);
5863 if(this_slot != -1)
5864 display_with_has_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)), ws,
5865 layout, box);
5866 else
5867 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5868 text::add_space_to_layout_box(ws, layout, box);
5869 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5870 text::close_layout_box(layout, box);
5871}
5873 auto box = text::open_layout_box(layout, indentation);
5874 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5875 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
5876 text::add_space_to_layout_box(ws, layout, box);
5877 if(this_slot != -1)
5878 display_with_has_comparison(tval[0], ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)),
5879 ws, layout, box);
5880 else
5881 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5882 text::add_space_to_layout_box(ws, layout, box);
5883 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5884 text::close_layout_box(layout, box);
5885}
5887 auto box = text::open_layout_box(layout, indentation);
5888 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5889 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
5890 text::add_space_to_layout_box(ws, layout, box);
5891 if(this_slot != -1)
5892 display_with_has_comparison(tval[0], nations::owner_of_pop(ws, trigger::to_pop(this_slot)), ws, layout, box);
5893 else
5894 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5895 text::add_space_to_layout_box(ws, layout, box);
5896 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5897 text::close_layout_box(layout, box);
5898}
5899
5901 auto box = text::open_layout_box(layout, indentation);
5902 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5903 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate"), ws, layout, box);
5904 text::close_layout_box(layout, box);
5905}
5907 auto box = text::open_layout_box(layout, indentation);
5908 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5910 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "gw_enabled"));
5911 else
5912 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "gw_not_enabled"));
5913 text::close_layout_box(layout, box);
5914}
5916 auto box = text::open_layout_box(layout, indentation);
5917 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5919 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "can_perform_nationalization"));
5920 else
5921 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "cannot_perform_nationalization"));
5922 text::close_layout_box(layout, box);
5923}
5925 auto box = text::open_layout_box(layout, indentation);
5926 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5927 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere"), ws, layout, box);
5928 text::close_layout_box(layout, box);
5929}
5931 auto box = text::open_layout_box(layout, indentation);
5932 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5933 display_with_comparison(tval[0], text::produce_simple_string(ws, "sphere_leader_of"), ws, layout, box);
5934 text::add_space_to_layout_box(ws, layout, box);
5935 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
5936 text::close_layout_box(layout, box);
5937}
5939 auto box = text::open_layout_box(layout, indentation);
5940 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5941 display_with_comparison(tval[0], text::produce_simple_string(ws, "sphere_leader_of"), ws, layout, box);
5942 text::add_space_to_layout_box(ws, layout, box);
5943 if(from_slot != -1)
5944 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
5945 else
5946 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
5947 text::close_layout_box(layout, box);
5948}
5950 auto box = text::open_layout_box(layout, indentation);
5951 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5952 display_with_comparison(tval[0], text::produce_simple_string(ws, "sphere_leader_of"), ws, layout, box);
5953 text::add_space_to_layout_box(ws, layout, box);
5954 if(this_slot != -1)
5955 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
5956 else
5957 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5958 text::close_layout_box(layout, box);
5959}
5961 auto box = text::open_layout_box(layout, indentation);
5962 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5963 display_with_comparison(tval[0], text::produce_simple_string(ws, "sphere_leader_of"), ws, layout, box);
5964 text::add_space_to_layout_box(ws, layout, box);
5965 if(this_slot != -1)
5966 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
5967 else
5968 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5969 text::close_layout_box(layout, box);
5970}
5972 auto box = text::open_layout_box(layout, indentation);
5973 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5974 display_with_comparison(tval[0], text::produce_simple_string(ws, "sphere_leader_of"), ws, layout, box);
5975 text::add_space_to_layout_box(ws, layout, box);
5976 if(this_slot != -1)
5977 text::add_to_layout_box(ws, layout, box,
5978 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
5979 else
5980 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5981 text::close_layout_box(layout, box);
5982}
5984 auto box = text::open_layout_box(layout, indentation);
5985 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5986 display_with_comparison(tval[0], text::produce_simple_string(ws, "sphere_leader_of"), ws, layout, box);
5987 text::add_space_to_layout_box(ws, layout, box);
5988 if(this_slot != -1)
5989 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
5990 else
5991 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5992 text::close_layout_box(layout, box);
5993}
5995 auto box = text::open_layout_box(layout, indentation);
5996 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5997 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_states"), int64_t(tval[1]), ws, layout, box);
5998 text::close_layout_box(layout, box);
5999}
6001 // stub for apparently unused trigger
6002 auto box = text::open_layout_box(layout, indentation);
6003 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6005 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6006 else
6007 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6008 text::close_layout_box(layout, box);
6009}
6011 auto box = text::open_layout_box(layout, indentation);
6012 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6013 if(from_slot != -1)
6014 display_with_comparison(tval[0], trigger::to_nation(from_slot), text::produce_simple_string(ws, "a_releasable_vassal"), ws,
6015 layout, box);
6016 else
6017 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"),
6018 text::produce_simple_string(ws, "a_releasable_vassal"), ws, layout, box);
6019 text::close_layout_box(layout, box);
6020}
6022 auto box = text::open_layout_box(layout, indentation);
6023 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6024 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_releasable_vassal"), ws, layout, box);
6025 text::close_layout_box(layout, box);
6026}
6028 auto box = text::open_layout_box(layout, indentation);
6029 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6030 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "recent_immigration"), ws, layout, box);
6031 text::close_layout_box(layout, box);
6032}
6034 auto box = text::open_layout_box(layout, indentation);
6035 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6036 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_control_days"), int64_t(tval[1]), ws, layout, box);
6037 text::close_layout_box(layout, box);
6038}
6040 auto box = text::open_layout_box(layout, indentation);
6041 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6042 display_with_comparison(tval[0], text::produce_simple_string(ws, "disarmed"), ws, layout, box);
6043 text::close_layout_box(layout, box);
6044}
6046 auto box = text::open_layout_box(layout, indentation);
6047 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6048 display_with_comparison(tval[0], text::produce_simple_string(ws, "disarmed_pop"), ws, layout, box);
6049 text::close_layout_box(layout, box);
6050}
6052 // stub: used only rarely in ai chances and would be expensive to test
6053 auto box = text::open_layout_box(layout, indentation);
6054 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6056 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6057 else
6058 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6059 text::close_layout_box(layout, box);
6060}
6062 // stub: apparently unused
6063 auto box = text::open_layout_box(layout, indentation);
6064 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6066 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6067 else
6068 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6069 text::close_layout_box(layout, box);
6070}
6072 // stub: apparently unused
6073 auto box = text::open_layout_box(layout, indentation);
6074 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6076 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6077 else
6078 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6079 text::close_layout_box(layout, box);
6080}
6082 auto box = text::open_layout_box(layout, indentation);
6083 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6084 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_mov_support"),
6085 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6086 text::close_layout_box(layout, box);
6087}
6089 auto box = text::open_layout_box(layout, indentation);
6090 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6091 display_with_comparison(tval[0], text::produce_simple_string(ws, "political_mov_support"),
6092 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6093 text::close_layout_box(layout, box);
6094}
6096 // stub: virtually unused
6097 auto box = text::open_layout_box(layout, indentation);
6098 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6100 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6101 else
6102 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6103 text::close_layout_box(layout, box);
6104}
6106 auto box = text::open_layout_box(layout, indentation);
6107 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6108 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_member_of_social_mov"), ws, layout, box);
6109 text::close_layout_box(layout, box);
6110}
6112 auto box = text::open_layout_box(layout, indentation);
6113 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6114 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_member_of_political_mov"), ws, layout, box);
6115 text::close_layout_box(layout, box);
6116}
6118 // stub: implementation unclear
6119 auto box = text::open_layout_box(layout, indentation);
6120 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6122 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6123 else
6124 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6125 text::close_layout_box(layout, box);
6126}
6128 // stub: implementation unclear
6129 auto box = text::open_layout_box(layout, indentation);
6130 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6132 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6133 else
6134 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6135 text::close_layout_box(layout, box);
6136}
6138 auto box = text::open_layout_box(layout, indentation);
6139 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6140 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "cultural_sphere_members"), ws, layout, box);
6141 text::close_layout_box(layout, box);
6142}
6144 auto box = text::open_layout_box(layout, indentation);
6145 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6147 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "ww_enabled"));
6148 else
6149 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "ww_not_enabled"));
6150 text::close_layout_box(layout, box);
6151}
6153 auto box = text::open_layout_box(layout, indentation);
6154 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6155 if(this_slot != -1)
6157 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.pop_get_culture(trigger::to_pop(this_slot)))), ws,
6158 layout, box);
6159 else
6161 text::produce_simple_string(ws, "this_pop_culture"), ws, layout, box);
6162 text::close_layout_box(layout, box);
6163}
6165 auto box = text::open_layout_box(layout, indentation);
6166 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6167 if(this_slot != -1) {
6169 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.pop_get_culture(trigger::to_pop(this_slot)))), ws,
6170 layout, box);
6171 text::add_space_to_layout_box(ws, layout, box);
6172 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6173 } else {
6174 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_with"), ws, layout, box);
6175 text::add_space_to_layout_box(ws, layout, box);
6176 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_culture"));
6177 }
6178 text::close_layout_box(layout, box);
6179}
6181 auto box = text::open_layout_box(layout, indentation);
6182 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6183 if(this_slot != -1) {
6185 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.pop_get_culture(trigger::to_pop(this_slot)))), ws,
6186 layout, box);
6187 text::add_space_to_layout_box(ws, layout, box);
6188 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6189 } else {
6190 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_with"), ws, layout, box);
6191 text::add_space_to_layout_box(ws, layout, box);
6192 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_culture"));
6193 }
6194 text::close_layout_box(layout, box);
6195}
6197 auto box = text::open_layout_box(layout, indentation);
6198 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6199 if(this_slot != -1) {
6201 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.pop_get_culture(trigger::to_pop(this_slot)))), ws,
6202 layout, box);
6203 text::add_space_to_layout_box(ws, layout, box);
6204 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6205 } else {
6206 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_with"), ws, layout, box);
6207 text::add_space_to_layout_box(ws, layout, box);
6208 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_culture"));
6209 }
6210 text::close_layout_box(layout, box);
6211}
6213 auto box = text::open_layout_box(layout, indentation);
6214 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6216 text::produce_simple_string(ws, ws.world.culture_get_name(trigger::payload(tval[1]).cul_id)), ws, layout, box);
6217 text::close_layout_box(layout, box);
6218}
6220 auto box = text::open_layout_box(layout, indentation);
6221 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6223 text::produce_simple_string(ws, ws.world.culture_get_name(trigger::payload(tval[1]).cul_id)), ws, layout, box);
6224 text::add_space_to_layout_box(ws, layout, box);
6225 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6226 text::close_layout_box(layout, box);
6227}
6229 auto box = text::open_layout_box(layout, indentation);
6230 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6232 text::produce_simple_string(ws, ws.world.culture_get_name(trigger::payload(tval[1]).cul_id)), ws, layout, box);
6233 text::add_space_to_layout_box(ws, layout, box);
6234 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6235 text::close_layout_box(layout, box);
6236}
6238 auto box = text::open_layout_box(layout, indentation);
6239 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6241 text::produce_simple_string(ws, ws.world.culture_get_name(trigger::payload(tval[1]).cul_id)), ws, layout, box);
6242 text::add_space_to_layout_box(ws, layout, box);
6243 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6244 text::close_layout_box(layout, box);
6245}
6247 auto box = text::open_layout_box(layout, indentation);
6248 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6250 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
6251 text::close_layout_box(layout, box);
6252}
6254 auto box = text::open_layout_box(layout, indentation);
6255 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6256 if(this_slot != -1) {
6258 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.pop_get_religion(trigger::to_pop(this_slot)))), ws,
6259 layout, box);
6260 text::add_space_to_layout_box(ws, layout, box);
6261 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6262 } else {
6263 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_with"), ws, layout, box);
6264 text::add_space_to_layout_box(ws, layout, box);
6265 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_religion"));
6266 }
6267 text::close_layout_box(layout, box);
6268}
6270 auto box = text::open_layout_box(layout, indentation);
6271 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6272 if(this_slot != -1) {
6274 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.pop_get_religion(trigger::to_pop(this_slot)))), ws,
6275 layout, box);
6276 text::add_space_to_layout_box(ws, layout, box);
6277 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6278 } else {
6279 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_with"), ws, layout, box);
6280 text::add_space_to_layout_box(ws, layout, box);
6281 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_religion"));
6282 }
6283 text::close_layout_box(layout, box);
6284}
6286 auto box = text::open_layout_box(layout, indentation);
6287 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6288 if(this_slot != -1) {
6290 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.pop_get_religion(trigger::to_pop(this_slot)))), ws,
6291 layout, box);
6292 text::add_space_to_layout_box(ws, layout, box);
6293 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6294 } else {
6295 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_with"), ws, layout, box);
6296 text::add_space_to_layout_box(ws, layout, box);
6297 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_religion"));
6298 }
6299 text::close_layout_box(layout, box);
6300}
6302 auto box = text::open_layout_box(layout, indentation);
6303 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6305 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
6306 text::close_layout_box(layout, box);
6307}
6309 auto box = text::open_layout_box(layout, indentation);
6310 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6312 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
6313 text::add_space_to_layout_box(ws, layout, box);
6314 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6315 text::close_layout_box(layout, box);
6316}
6318 auto box = text::open_layout_box(layout, indentation);
6319 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6321 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
6322 text::add_space_to_layout_box(ws, layout, box);
6323 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6324 text::close_layout_box(layout, box);
6325}
6327 auto box = text::open_layout_box(layout, indentation);
6328 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6330 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
6331 text::add_space_to_layout_box(ws, layout, box);
6332 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6333 text::close_layout_box(layout, box);
6334}
6336 auto box = text::open_layout_box(layout, indentation);
6337 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6338 display_with_comparison(tval[0], text::produce_simple_string(ws, "life_needs_satisfaction"),
6339 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6340 text::close_layout_box(layout, box);
6341}
6343 auto box = text::open_layout_box(layout, indentation);
6344 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6345 display_with_comparison(tval[0], text::produce_simple_string(ws, "everyday_needs_satisfaction"),
6346 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6347 text::close_layout_box(layout, box);
6348}
6350 auto box = text::open_layout_box(layout, indentation);
6351 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6352 display_with_comparison(tval[0], text::produce_simple_string(ws, "luxury_needs_satisfaction"),
6353 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6354 text::close_layout_box(layout, box);
6355}
6357 auto box = text::open_layout_box(layout, indentation);
6358 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6359 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
6360 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6361 text::close_layout_box(layout, box);
6362}
6364 auto box = text::open_layout_box(layout, indentation);
6365 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6366 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
6367 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6368 text::close_layout_box(layout, box);
6369}
6371 auto box = text::open_layout_box(layout, indentation);
6372 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6373 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
6374 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6375 text::close_layout_box(layout, box);
6376}
6378 auto box = text::open_layout_box(layout, indentation);
6379 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6380 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
6381 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6382 text::close_layout_box(layout, box);
6383}
6385 auto box = text::open_layout_box(layout, indentation);
6386 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6388 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6389 text::close_layout_box(layout, box);
6390}
6392 auto box = text::open_layout_box(layout, indentation);
6393 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6395 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6396 text::close_layout_box(layout, box);
6397}
6399 auto box = text::open_layout_box(layout, indentation);
6400 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6402 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6403 text::close_layout_box(layout, box);
6404}
6406 auto box = text::open_layout_box(layout, indentation);
6407 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6409 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6410 text::close_layout_box(layout, box);
6411}
6413 auto box = text::open_layout_box(layout, indentation);
6414 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6415 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
6416 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6417 text::close_layout_box(layout, box);
6418}
6420 auto box = text::open_layout_box(layout, indentation);
6421 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6422 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
6423 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6424 text::close_layout_box(layout, box);
6425}
6427 auto box = text::open_layout_box(layout, indentation);
6428 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6429 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
6430 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6431 text::close_layout_box(layout, box);
6432}
6434 auto box = text::open_layout_box(layout, indentation);
6435 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6436 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
6437 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6438 text::close_layout_box(layout, box);
6439}
6441 auto box = text::open_layout_box(layout, indentation);
6442 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6443 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id)),
6444 text::produce_simple_string(ws, "present_in_state"), ws, layout, box);
6445 text::close_layout_box(layout, box);
6446}
6448 auto box = text::open_layout_box(layout, indentation);
6449 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6450 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id)),
6451 text::produce_simple_string(ws, "present_in_state"), ws, layout, box);
6452 text::close_layout_box(layout, box);
6453}
6455 auto box = text::open_layout_box(layout, indentation);
6456 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6457 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "flashpoint"), ws, layout, box);
6458 text::close_layout_box(layout, box);
6459}
6461 auto box = text::open_layout_box(layout, indentation);
6462 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6463 display_with_comparison(tval[0], text::produce_simple_string(ws, "flashpoint_tension"),
6464 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6465 text::close_layout_box(layout, box);
6466}
6468 auto box = text::open_layout_box(layout, indentation);
6469 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6470 display_with_comparison(tval[0], text::produce_simple_string(ws, "there"), text::produce_simple_string(ws, "an_ongoing_crisis"),
6471 ws, layout, box);
6472 text::close_layout_box(layout, box);
6473}
6475 auto box = text::open_layout_box(layout, indentation);
6476 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6477 display_with_comparison(tval[0], text::produce_simple_string(ws, "current_crisis"),
6478 text::produce_simple_string(ws, "liberation_crisis"), ws, layout, box);
6479 text::close_layout_box(layout, box);
6480}
6482 auto box = text::open_layout_box(layout, indentation);
6483 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6484 display_with_comparison(tval[0], text::produce_simple_string(ws, "current_crisis"),
6485 text::produce_simple_string(ws, "claim_crisis"), ws, layout, box);
6486 text::close_layout_box(layout, box);
6487}
6489 auto box = text::open_layout_box(layout, indentation);
6490 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6491 display_with_comparison(tval[0], text::produce_simple_string(ws, "crisis_temperature_plain"),
6492 int64_t(trigger::read_float_from_payload(tval + 1)), ws, layout, box);
6493 text::close_layout_box(layout, box);
6494}
6496 auto box = text::open_layout_box(layout, indentation);
6497 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6498 display_with_comparison(tval[0], text::produce_simple_string(ws, "involved_in_crisis"), ws, layout, box);
6499 text::close_layout_box(layout, box);
6500}
6502 auto box = text::open_layout_box(layout, indentation);
6503 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6504 display_with_comparison(tval[0], text::produce_simple_string(ws, "involved_in_crisis"), ws, layout, box);
6505 text::close_layout_box(layout, box);
6506}
6508 auto box = text::open_layout_box(layout, indentation);
6509 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6510 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_life_needs_satisfaction"),
6511 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6512 text::close_layout_box(layout, box);
6513}
6515 auto box = text::open_layout_box(layout, indentation);
6516 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6517 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_life_needs_satisfaction"),
6518 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6519 text::close_layout_box(layout, box);
6520}
6522 auto box = text::open_layout_box(layout, indentation);
6523 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6524 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_life_needs_satisfaction"),
6525 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6526 text::close_layout_box(layout, box);
6527}
6529 auto box = text::open_layout_box(layout, indentation);
6530 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6531 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_life_needs_satisfaction"),
6532 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6533 text::close_layout_box(layout, box);
6534}
6536 auto box = text::open_layout_box(layout, indentation);
6537 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6538 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_everyday_needs_satisfaction"),
6539 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6540 text::close_layout_box(layout, box);
6541}
6543 auto box = text::open_layout_box(layout, indentation);
6544 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6545 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_everyday_needs_satisfaction"),
6546 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6547 text::close_layout_box(layout, box);
6548}
6550 auto box = text::open_layout_box(layout, indentation);
6551 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6552 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_everyday_needs_satisfaction"),
6553 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6554 text::close_layout_box(layout, box);
6555}
6557 auto box = text::open_layout_box(layout, indentation);
6558 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6559 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_everyday_needs_satisfaction"),
6560 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6561 text::close_layout_box(layout, box);
6562}
6564 auto box = text::open_layout_box(layout, indentation);
6565 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6566 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_luxury_needs_satisfaction"),
6567 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6568 text::close_layout_box(layout, box);
6569}
6571 auto box = text::open_layout_box(layout, indentation);
6572 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6573 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_luxury_needs_satisfaction"),
6574 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6575 text::close_layout_box(layout, box);
6576}
6578 auto box = text::open_layout_box(layout, indentation);
6579 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6580 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_luxury_needs_satisfaction"),
6581 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6582 text::close_layout_box(layout, box);
6583}
6585 auto box = text::open_layout_box(layout, indentation);
6586 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6587 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_luxury_needs_satisfaction"),
6588 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6589 text::close_layout_box(layout, box);
6590}
6592 auto box = text::open_layout_box(layout, indentation);
6593 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6594 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_life_needs_satisfaction"),
6595 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6596 text::close_layout_box(layout, box);
6597}
6599 auto box = text::open_layout_box(layout, indentation);
6600 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6601 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_life_needs_satisfaction"),
6602 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6603 text::close_layout_box(layout, box);
6604}
6606 auto box = text::open_layout_box(layout, indentation);
6607 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6608 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_life_needs_satisfaction"),
6609 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6610 text::close_layout_box(layout, box);
6611}
6613 auto box = text::open_layout_box(layout, indentation);
6614 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6615 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_life_needs_satisfaction"),
6616 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6617 text::close_layout_box(layout, box);
6618}
6620 auto box = text::open_layout_box(layout, indentation);
6621 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6622 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_everyday_needs_satisfaction"),
6623 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6624 text::close_layout_box(layout, box);
6625}
6627 auto box = text::open_layout_box(layout, indentation);
6628 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6629 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_everyday_needs_satisfaction"),
6630 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6631 text::close_layout_box(layout, box);
6632}
6634 auto box = text::open_layout_box(layout, indentation);
6635 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6636 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_everyday_needs_satisfaction"),
6637 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6638 text::close_layout_box(layout, box);
6639}
6641 auto box = text::open_layout_box(layout, indentation);
6642 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6643 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_everyday_needs_satisfaction"),
6644 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6645 text::close_layout_box(layout, box);
6646}
6648 auto box = text::open_layout_box(layout, indentation);
6649 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6650 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_luxury_needs_satisfaction"),
6651 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6652 text::close_layout_box(layout, box);
6653}
6655 auto box = text::open_layout_box(layout, indentation);
6656 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6657 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_luxury_needs_satisfaction"),
6658 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6659 text::close_layout_box(layout, box);
6660}
6662 auto box = text::open_layout_box(layout, indentation);
6663 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6664 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_luxury_needs_satisfaction"),
6665 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6666 text::close_layout_box(layout, box);
6667}
6669 auto box = text::open_layout_box(layout, indentation);
6670 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6671 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_luxury_needs_satisfaction"),
6672 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6673 text::close_layout_box(layout, box);
6674}
6676 auto box = text::open_layout_box(layout, indentation);
6677 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6678 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_life_needs_satisfaction"),
6679 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6680 text::close_layout_box(layout, box);
6681}
6683 auto box = text::open_layout_box(layout, indentation);
6684 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6685 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_life_needs_satisfaction"),
6686 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6687 text::close_layout_box(layout, box);
6688}
6690 auto box = text::open_layout_box(layout, indentation);
6691 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6692 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_life_needs_satisfaction"),
6693 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6694 text::close_layout_box(layout, box);
6695}
6697 auto box = text::open_layout_box(layout, indentation);
6698 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6699 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_life_needs_satisfaction"),
6700 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6701 text::close_layout_box(layout, box);
6702}
6704 auto box = text::open_layout_box(layout, indentation);
6705 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6706 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_everyday_needs_satisfaction"),
6707 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6708 text::close_layout_box(layout, box);
6709}
6711 auto box = text::open_layout_box(layout, indentation);
6712 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6713 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_everyday_needs_satisfaction"),
6714 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6715 text::close_layout_box(layout, box);
6716}
6718 auto box = text::open_layout_box(layout, indentation);
6719 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6720 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_everyday_needs_satisfaction"),
6721 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6722 text::close_layout_box(layout, box);
6723}
6725 auto box = text::open_layout_box(layout, indentation);
6726 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6727 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_everyday_needs_satisfaction"),
6728 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6729 text::close_layout_box(layout, box);
6730}
6732 auto box = text::open_layout_box(layout, indentation);
6733 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6734 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_luxury_needs_satisfaction"),
6735 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6736 text::close_layout_box(layout, box);
6737}
6739 auto box = text::open_layout_box(layout, indentation);
6740 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6741 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_luxury_needs_satisfaction"),
6742 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6743 text::close_layout_box(layout, box);
6744}
6746 auto box = text::open_layout_box(layout, indentation);
6747 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6748 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_luxury_needs_satisfaction"),
6749 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6750 text::close_layout_box(layout, box);
6751}
6753 auto box = text::open_layout_box(layout, indentation);
6754 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6755 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_luxury_needs_satisfaction"),
6756 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6757 text::close_layout_box(layout, box);
6758}
6760 auto box = text::open_layout_box(layout, indentation);
6761 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6762 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "dip_influence_over"));
6763 text::add_space_to_layout_box(ws, layout, box);
6764 display_with_comparison(tval[0], trigger::payload(tval[2]).tag_id, int64_t(tval[1]), ws, layout, box);
6765 text::close_layout_box(layout, box);
6766}
6768 auto box = text::open_layout_box(layout, indentation);
6769 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6770 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "dip_influence_over"));
6771 text::add_space_to_layout_box(ws, layout, box);
6772 if(this_slot != -1)
6773 display_with_comparison(tval[0], trigger::to_nation(this_slot), int64_t(tval[1]), ws, layout, box);
6774 else
6775 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), int64_t(tval[1]), ws, layout, box);
6776 text::close_layout_box(layout, box);
6777}
6779 auto box = text::open_layout_box(layout, indentation);
6780 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6781 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "dip_influence_over"));
6782 text::add_space_to_layout_box(ws, layout, box);
6783 if(this_slot != -1)
6784 display_with_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)),
6785 int64_t(tval[1]), ws, layout, box);
6786 else
6787 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), int64_t(tval[1]), ws, layout, box);
6788 text::close_layout_box(layout, box);
6789}
6791 auto box = text::open_layout_box(layout, indentation);
6792 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6793 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "dip_influence_over"));
6794 text::add_space_to_layout_box(ws, layout, box);
6795 if(from_slot != -1)
6796 display_with_comparison(tval[0], trigger::to_nation(from_slot), int64_t(tval[1]), ws, layout, box);
6797 else
6798 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"), int64_t(tval[1]), ws, layout, box);
6799 text::close_layout_box(layout, box);
6800}
6802 auto box = text::open_layout_box(layout, indentation);
6803 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6804 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "dip_influence_over"));
6805 text::add_space_to_layout_box(ws, layout, box);
6806 if(from_slot != -1)
6807 display_with_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(from_slot)),
6808 int64_t(tval[1]), ws, layout, box);
6809 else
6810 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"), int64_t(tval[1]), ws, layout, box);
6811 text::close_layout_box(layout, box);
6812}
6814 auto box = text::open_layout_box(layout, indentation);
6815 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6816 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[3]).popt_id));
6817 text::add_space_to_layout_box(ws, layout, box);
6818 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6819 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6820 text::close_layout_box(layout, box);
6821}
6823 auto box = text::open_layout_box(layout, indentation);
6824 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6825 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[3]).popt_id));
6826 text::add_space_to_layout_box(ws, layout, box);
6827 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6828 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6829 text::close_layout_box(layout, box);
6830}
6832 auto box = text::open_layout_box(layout, indentation);
6833 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6834 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[3]).popt_id));
6835 text::add_space_to_layout_box(ws, layout, box);
6836 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6837 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6838 text::close_layout_box(layout, box);
6839}
6841 auto box = text::open_layout_box(layout, indentation);
6842 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6843 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6844 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6845 text::close_layout_box(layout, box);
6846}
6848 auto box = text::open_layout_box(layout, indentation);
6849 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6850 if(this_slot != -1)
6851 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(ws.world.pop_get_poptype(trigger::to_pop(this_slot))));
6852 else
6853 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_type"));
6854 text::add_space_to_layout_box(ws, layout, box);
6855 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6856 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6857 text::close_layout_box(layout, box);
6858}
6860 auto box = text::open_layout_box(layout, indentation);
6861 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6862 if(this_slot != -1)
6863 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(ws.world.pop_get_poptype(trigger::to_pop(this_slot))));
6864 else
6865 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_type"));
6866 text::add_space_to_layout_box(ws, layout, box);
6867 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6868 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6869 text::close_layout_box(layout, box);
6870}
6872 auto box = text::open_layout_box(layout, indentation);
6873 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6874 if(this_slot != -1)
6875 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(ws.world.pop_get_poptype(trigger::to_pop(this_slot))));
6876 else
6877 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_type"));
6878 text::add_space_to_layout_box(ws, layout, box);
6879 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6880 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6881 text::close_layout_box(layout, box);
6882}
6884 auto box = text::open_layout_box(layout, indentation);
6885 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6886 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "relationship_with"));
6887 text::add_space_to_layout_box(ws, layout, box);
6888 display_with_comparison(tval[0], trigger::payload(tval[2]).tag_id, int64_t(trigger::payload(tval[1]).signed_value), ws, layout,
6889 box);
6890 text::close_layout_box(layout, box);
6891}
6893 auto box = text::open_layout_box(layout, indentation);
6894 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6895 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "relationship_with"));
6896 text::add_space_to_layout_box(ws, layout, box);
6897 if(this_slot != -1)
6898 display_with_comparison(tval[0], trigger::to_nation(this_slot), int64_t(trigger::payload(tval[1]).signed_value), ws, layout,
6899 box);
6900 else
6901 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"),
6902 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6903 text::close_layout_box(layout, box);
6904}
6906 auto box = text::open_layout_box(layout, indentation);
6907 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6908 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "relationship_with"));
6909 text::add_space_to_layout_box(ws, layout, box);
6910 if(this_slot != -1)
6911 display_with_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)),
6912 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6913 else
6914 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"),
6915 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6916 text::close_layout_box(layout, box);
6917}
6919 auto box = text::open_layout_box(layout, indentation);
6920 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6921 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "relationship_with"));
6922 text::add_space_to_layout_box(ws, layout, box);
6923 if(this_slot != -1)
6925 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6926 else
6927 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"),
6928 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6929 text::close_layout_box(layout, box);
6930}
6932 auto box = text::open_layout_box(layout, indentation);
6933 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6934 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "relationship_with"));
6935 text::add_space_to_layout_box(ws, layout, box);
6936 if(from_slot != -1)
6937 display_with_comparison(tval[0], trigger::to_nation(from_slot), int64_t(trigger::payload(tval[1]).signed_value), ws, layout,
6938 box);
6939 else
6940 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"),
6941 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6942 text::close_layout_box(layout, box);
6943}
6945 auto box = text::open_layout_box(layout, indentation);
6946 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6947 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "relationship_with"));
6948 text::add_space_to_layout_box(ws, layout, box);
6949 if(from_slot != -1)
6950 display_with_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(from_slot)),
6951 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6952 else
6953 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"),
6954 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6955 text::close_layout_box(layout, box);
6956}
6958 auto box = text::open_layout_box(layout, indentation);
6959 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6961 text::produce_simple_string(ws, ws.national_definitions.variable_names[trigger::payload(tval[3]).natv_id]),
6962 text::fp_two_places{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6963 text::close_layout_box(layout, box);
6964}
6966 auto box = text::open_layout_box(layout, indentation);
6967 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6968 text::add_to_layout_box(ws, layout, box,
6969 text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[3]).ideo_id)));
6970 text::add_space_to_layout_box(ws, layout, box);
6971 display_with_comparison(tval[0], text::produce_simple_string(ws, "support_in_uh"),
6972 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6973 text::close_layout_box(layout, box);
6974}
6976 auto box = text::open_layout_box(layout, indentation);
6977 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6978 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[3]).popt_id));
6979 text::add_space_to_layout_box(ws, layout, box);
6980 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6981 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6982 text::close_layout_box(layout, box);
6983}
6985 auto box = text::open_layout_box(layout, indentation);
6986 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6987 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[3]).popt_id));
6988 text::add_space_to_layout_box(ws, layout, box);
6989 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6990 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6991 text::close_layout_box(layout, box);
6992}
6994 auto box = text::open_layout_box(layout, indentation);
6995 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6996 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[3]).popt_id));
6997 text::add_space_to_layout_box(ws, layout, box);
6998 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6999 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
7000 text::close_layout_box(layout, box);
7001}
7003 auto box = text::open_layout_box(layout, indentation);
7004 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7005 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[3]).popt_id));
7006 text::add_space_to_layout_box(ws, layout, box);
7007 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment_in_state"),
7008 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
7009 text::close_layout_box(layout, box);
7010}
7012 auto box = text::open_layout_box(layout, indentation);
7013 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7014
7015 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[3]).ideo_id));
7016 text::add_space_to_layout_box(ws, layout, box);
7017 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "support_in"));
7018 text::add_space_to_layout_box(ws, layout, box);
7019 display_with_comparison(tval[0], trigger::payload(tval[1]).prov_id, int64_t(trigger::payload(tval[2]).signed_value), ws, layout,
7020 box);
7021 text::close_layout_box(layout, box);
7022}
7024 auto box = text::open_layout_box(layout, indentation);
7025 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7026
7027 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[3]).ideo_id));
7028 text::add_space_to_layout_box(ws, layout, box);
7029 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "support_in"));
7030 text::add_space_to_layout_box(ws, layout, box);
7031 display_with_comparison(tval[0], trigger::payload(tval[1]).prov_id, int64_t(trigger::payload(tval[2]).signed_value), ws, layout,
7032 box);
7033 text::close_layout_box(layout, box);
7034}
7036 auto box = text::open_layout_box(layout, indentation);
7037 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7038
7039 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[3]).ideo_id));
7040 text::add_space_to_layout_box(ws, layout, box);
7041 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "support_in"));
7042 text::add_space_to_layout_box(ws, layout, box);
7043 display_with_comparison(tval[0], trigger::payload(tval[1]).prov_id, int64_t(trigger::payload(tval[2]).signed_value), ws, layout,
7044 box);
7045 text::close_layout_box(layout, box);
7046}
7048 auto box = text::open_layout_box(layout, indentation);
7049 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7050
7051 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[3]).ideo_id));
7052 text::add_space_to_layout_box(ws, layout, box);
7053 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "support_in"));
7054 text::add_space_to_layout_box(ws, layout, box);
7055 display_with_comparison(tval[0], trigger::payload(tval[1]).prov_id, int64_t(trigger::payload(tval[2]).signed_value), ws, layout,
7056 box);
7057 text::close_layout_box(layout, box);
7058}
7060 auto box = text::open_layout_box(layout, indentation);
7061 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7062
7063 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[2]).ideo_id));
7064 text::add_space_to_layout_box(ws, layout, box);
7065 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "support_in"));
7066 text::add_space_to_layout_box(ws, layout, box);
7067 if(from_slot != -1)
7068 display_with_comparison(tval[0], trigger::to_prov(from_slot), int64_t(trigger::payload(tval[1]).signed_value), ws, layout,
7069 box);
7070 else
7071 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_province"),
7072 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
7073 text::close_layout_box(layout, box);
7074}
7076 auto box = text::open_layout_box(layout, indentation);
7077 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7078
7079 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[2]).ideo_id));
7080 text::add_space_to_layout_box(ws, layout, box);
7081 display_with_comparison(tval[0], text::produce_simple_string(ws, "support"), int64_t(trigger::payload(tval[1]).signed_value),
7082 ws, layout, box);
7083 text::close_layout_box(layout, box);
7084}
7086 auto box = text::open_layout_box(layout, indentation);
7087 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7088
7089 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[2]).ideo_id));
7090 text::add_space_to_layout_box(ws, layout, box);
7091 display_with_comparison(tval[0], text::produce_simple_string(ws, "support"), int64_t(trigger::payload(tval[1]).signed_value),
7092 ws, layout, box);
7093 text::close_layout_box(layout, box);
7094}
7096 auto box = text::open_layout_box(layout, indentation);
7097 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7098
7099 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[2]).ideo_id));
7100 text::add_space_to_layout_box(ws, layout, box);
7101 display_with_comparison(tval[0], text::produce_simple_string(ws, "support"), int64_t(trigger::payload(tval[1]).signed_value),
7102 ws, layout, box);
7103 text::close_layout_box(layout, box);
7104}
7106 auto box = text::open_layout_box(layout, indentation);
7107 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7108 if(from_slot != -1)
7109 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
7110 else
7111 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
7112 text::add_space_to_layout_box(ws, layout, box);
7113 text::add_to_layout_box(ws, layout, box,
7115 ? "can_build_railroad_here"
7116 : "cannot_build_railroad_here"));
7117 text::close_layout_box(layout, box);
7118}
7120 auto box = text::open_layout_box(layout, indentation);
7121 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7122 if(from_slot != -1)
7123 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
7124 else
7125 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
7126 text::add_space_to_layout_box(ws, layout, box);
7127 text::add_to_layout_box(ws, layout, box,
7129 ? "can_build_railroad_here"
7130 : "cannot_build_railroad_here"));
7131 text::close_layout_box(layout, box);
7132}
7134 auto box = text::open_layout_box(layout, indentation);
7135 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7136 if(this_slot != -1)
7137 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
7138 else
7139 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
7140 text::add_space_to_layout_box(ws, layout, box);
7141 text::add_to_layout_box(ws, layout, box,
7143 ? "can_build_railroad_here"
7144 : "cannot_build_railroad_here"));
7145 text::close_layout_box(layout, box);
7146}
7148 auto box = text::open_layout_box(layout, indentation);
7149 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7150 if(this_slot != -1)
7151 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
7152 else
7153 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
7154 text::add_space_to_layout_box(ws, layout, box);
7155 text::add_to_layout_box(ws, layout, box,
7157 ? "can_build_railroad_here"
7158 : "cannot_build_railroad_here"));
7159 text::close_layout_box(layout, box);
7160}
7162 auto box = text::open_layout_box(layout, indentation);
7163 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7164 if(from_slot != -1)
7165 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
7166 else
7167 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
7168 text::add_space_to_layout_box(ws, layout, box);
7169 text::add_to_layout_box(ws, layout, box,
7171 (tval[0] & trigger::association_mask) == trigger::association_eq ? "can_build_fort_here" : "cannot_build_fort_here"));
7172 text::close_layout_box(layout, box);
7173}
7175 auto box = text::open_layout_box(layout, indentation);
7176 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7177 if(from_slot != -1)
7178 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
7179 else
7180 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
7181 text::add_space_to_layout_box(ws, layout, box);
7182 text::add_to_layout_box(ws, layout, box,
7184 (tval[0] & trigger::association_mask) == trigger::association_eq ? "can_build_fort_here" : "cannot_build_fort_here"));
7185 text::close_layout_box(layout, box);
7186}
7188 auto box = text::open_layout_box(layout, indentation);
7189 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7190 if(this_slot != -1)
7191 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
7192 else
7193 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
7194 text::add_space_to_layout_box(ws, layout, box);
7195 text::add_to_layout_box(ws, layout, box,
7197 (tval[0] & trigger::association_mask) == trigger::association_eq ? "can_build_fort_here" : "cannot_build_fort_here"));
7198 text::close_layout_box(layout, box);
7199}
7201 auto box = text::open_layout_box(layout, indentation);
7202 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7203 if(this_slot != -1)
7204 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
7205 else
7206 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
7207 text::add_space_to_layout_box(ws, layout, box);
7208 text::add_to_layout_box(ws, layout, box,
7210 (tval[0] & trigger::association_mask) == trigger::association_eq ? "can_build_fort_here" : "cannot_build_fort_here"));
7211 text::close_layout_box(layout, box);
7212}
7214 auto box = text::open_layout_box(layout, indentation);
7215 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7216 if(from_slot != -1)
7217 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
7218 else
7219 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
7220 text::add_space_to_layout_box(ws, layout, box);
7221 text::add_to_layout_box(ws, layout, box,
7223 ? "can_build_naval_base_here"
7224 : "cannot_build_naval_base_here"));
7225 text::close_layout_box(layout, box);
7226}
7228 auto box = text::open_layout_box(layout, indentation);
7229 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7230 if(from_slot != -1)
7231 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
7232 else
7233 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
7234 text::add_space_to_layout_box(ws, layout, box);
7235 text::add_to_layout_box(ws, layout, box,
7237 ? "can_build_naval_base_here"
7238 : "cannot_build_naval_base_here"));
7239 text::close_layout_box(layout, box);
7240}
7242 auto box = text::open_layout_box(layout, indentation);
7243 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7244 if(this_slot != -1)
7245 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
7246 else
7247 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
7248 text::add_space_to_layout_box(ws, layout, box);
7249 text::add_to_layout_box(ws, layout, box,
7251 ? "can_build_naval_base_here"
7252 : "cannot_build_naval_base_here"));
7253 text::close_layout_box(layout, box);
7254}
7256 auto box = text::open_layout_box(layout, indentation);
7257 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7258 if(this_slot != -1)
7259 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
7260 else
7261 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
7262 text::add_space_to_layout_box(ws, layout, box);
7263 text::add_to_layout_box(ws, layout, box,
7265 ? "can_build_naval_base_here"
7266 : "cannot_build_naval_base_here"));
7267 text::close_layout_box(layout, box);
7268}
7270 // stub: virtually unused
7271 auto box = text::open_layout_box(layout, indentation);
7272 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7274 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7275 else
7276 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7277 text::close_layout_box(layout, box);
7278}
7280 // stub: virtually unused
7281 auto box = text::open_layout_box(layout, indentation);
7282 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7284 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7285 else
7286 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7287 text::close_layout_box(layout, box);
7288}
7290 // stub: virtually unused
7291 auto box = text::open_layout_box(layout, indentation);
7292 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7294 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7295 else
7296 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7297 text::close_layout_box(layout, box);
7298}
7300 // stub: virtually unused
7301 auto box = text::open_layout_box(layout, indentation);
7302 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7304 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7305 else
7306 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7307 text::close_layout_box(layout, box);
7308}
7310 // stub: virtually unused
7311 auto box = text::open_layout_box(layout, indentation);
7312 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7314 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7315 else
7316 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7317 text::close_layout_box(layout, box);
7318}
7320 // stub: virtually unused
7321 auto box = text::open_layout_box(layout, indentation);
7322 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7324 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7325 else
7326 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7327 text::close_layout_box(layout, box);
7328}
7330 // stub: virtually unused
7331 auto box = text::open_layout_box(layout, indentation);
7332 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7334 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7335 else
7336 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7337 text::close_layout_box(layout, box);
7338}
7340 // stub: virtually unused
7341 auto box = text::open_layout_box(layout, indentation);
7342 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7344 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7345 else
7346 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7347 text::close_layout_box(layout, box);
7348}
7350 auto box = text::open_layout_box(layout, indentation);
7351 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7352 display_with_comparison(tval[0], text::produce_simple_string(ws, "work"), text::produce_simple_string(ws, "available_for"), ws,
7353 layout, box);
7354 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
7355 text::add_space_to_layout_box(ws, layout, box);
7356 text::close_layout_box(layout, box);
7357}
7359 auto box = text::open_layout_box(layout, indentation);
7360 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7361 display_with_comparison(tval[0], text::produce_simple_string(ws, "work"), text::produce_simple_string(ws, "available_for"), ws,
7362 layout, box);
7363 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
7364 text::add_space_to_layout_box(ws, layout, box);
7365 text::close_layout_box(layout, box);
7366}
7368 auto box = text::open_layout_box(layout, indentation);
7369 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7370 display_with_comparison(tval[0], text::produce_simple_string(ws, "work"), text::produce_simple_string(ws, "available_for"), ws,
7371 layout, box);
7372 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
7373 text::add_space_to_layout_box(ws, layout, box);
7374 text::close_layout_box(layout, box);
7375}
7377 auto box = text::open_layout_box(layout, indentation);
7378 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7379 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id));
7380 text::add_space_to_layout_box(ws, layout, box);
7382 text::fp_percentage{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7383 text::close_layout_box(layout, box);
7384}
7386 auto box = text::open_layout_box(layout, indentation);
7387 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7388 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id));
7389 text::add_space_to_layout_box(ws, layout, box);
7391 text::fp_percentage{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7392 text::close_layout_box(layout, box);
7393}
7395 auto box = text::open_layout_box(layout, indentation);
7396 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7397 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id));
7398 text::add_space_to_layout_box(ws, layout, box);
7400 text::fp_percentage{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7401 text::close_layout_box(layout, box);
7402}
7404 auto box = text::open_layout_box(layout, indentation);
7405 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7406 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id));
7407 text::add_space_to_layout_box(ws, layout, box);
7409 text::fp_percentage{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7410 text::close_layout_box(layout, box);
7411}
7413 auto box = text::open_layout_box(layout, indentation);
7414 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7415 text::add_to_layout_box(ws, layout, box, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id));
7416 text::add_space_to_layout_box(ws, layout, box);
7418 text::fp_percentage{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7419 text::close_layout_box(layout, box);
7420}
7422 auto box = text::open_layout_box(layout, indentation);
7423 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7424 text::add_to_layout_box(ws, layout, box, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id));
7425 text::add_space_to_layout_box(ws, layout, box);
7427 text::fp_percentage{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7428 text::close_layout_box(layout, box);
7429}
7431 auto box = text::open_layout_box(layout, indentation);
7432 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7433 text::add_to_layout_box(ws, layout, box, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id));
7434 text::add_space_to_layout_box(ws, layout, box);
7436 text::fp_percentage{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7437 text::close_layout_box(layout, box);
7438}
7440 auto box = text::open_layout_box(layout, indentation);
7441 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7442 text::add_to_layout_box(ws, layout, box, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id));
7443 text::add_space_to_layout_box(ws, layout, box);
7445 text::fp_percentage{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7446 text::close_layout_box(layout, box);
7447}
7449 auto box = text::open_layout_box(layout, indentation);
7450 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7451 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.issue_get_name(trigger::payload(tval[1]).iss_id)),
7452 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[2]).opt_id)), ws, layout, box);
7453 text::close_layout_box(layout, box);
7454}
7456 auto box = text::open_layout_box(layout, indentation);
7457 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7458 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.issue_get_name(trigger::payload(tval[1]).iss_id)),
7459 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[2]).opt_id)), ws, layout, box);
7460 text::close_layout_box(layout, box);
7461}
7463 auto box = text::open_layout_box(layout, indentation);
7464 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7465 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.issue_get_name(trigger::payload(tval[1]).iss_id)),
7466 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[2]).opt_id)), ws, layout, box);
7467 text::close_layout_box(layout, box);
7468}
7470 auto box = text::open_layout_box(layout, indentation);
7471 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7472 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.issue_get_name(trigger::payload(tval[1]).iss_id)),
7473 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[2]).opt_id)), ws, layout, box);
7474 text::close_layout_box(layout, box);
7475}
7477 auto box = text::open_layout_box(layout, indentation);
7478 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7479 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.reform_get_name(trigger::payload(tval[1]).ref_id)),
7480 text::produce_simple_string(ws, ws.world.reform_option_get_name(trigger::payload(tval[2]).ropt_id)), ws, layout, box);
7481 text::close_layout_box(layout, box);
7482}
7484 auto box = text::open_layout_box(layout, indentation);
7485 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7486 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.reform_get_name(trigger::payload(tval[1]).ref_id)),
7487 text::produce_simple_string(ws, ws.world.reform_option_get_name(trigger::payload(tval[2]).ropt_id)), ws, layout, box);
7488 text::close_layout_box(layout, box);
7489}
7491 auto box = text::open_layout_box(layout, indentation);
7492 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7493 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.reform_get_name(trigger::payload(tval[1]).ref_id)),
7494 text::produce_simple_string(ws, ws.world.reform_option_get_name(trigger::payload(tval[2]).ropt_id)), ws, layout, box);
7495 text::close_layout_box(layout, box);
7496}
7498 auto box = text::open_layout_box(layout, indentation);
7499 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7500 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.reform_get_name(trigger::payload(tval[1]).ref_id)),
7501 text::produce_simple_string(ws, ws.world.reform_option_get_name(trigger::payload(tval[2]).ropt_id)), ws, layout, box);
7502 text::close_layout_box(layout, box);
7503}
7505 auto box = text::open_layout_box(layout, indentation);
7506 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7507 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
7508 text::add_space_to_layout_box(ws, layout, box);
7509 display_with_comparison(tval[0], text::produce_simple_string(ws, "percentage"),
7511 text::close_layout_box(layout, box);
7512}
7514 auto box = text::open_layout_box(layout, indentation);
7515 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7516 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
7517 text::add_space_to_layout_box(ws, layout, box);
7518 display_with_comparison(tval[0], text::produce_simple_string(ws, "percentage"),
7520 text::close_layout_box(layout, box);
7521}
7523 auto box = text::open_layout_box(layout, indentation);
7524 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7525 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
7526 text::add_space_to_layout_box(ws, layout, box);
7527 display_with_comparison(tval[0], text::produce_simple_string(ws, "percentage"),
7529 text::close_layout_box(layout, box);
7530}
7532 auto box = text::open_layout_box(layout, indentation);
7533 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7534 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
7535 text::add_space_to_layout_box(ws, layout, box);
7536 display_with_comparison(tval[0], text::produce_simple_string(ws, "province_percentage"),
7538 text::close_layout_box(layout, box);
7539}
7541 auto box = text::open_layout_box(layout, indentation);
7542 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7543 text::add_to_layout_box(ws, layout, box, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id));
7544 text::add_space_to_layout_box(ws, layout, box);
7545 display_with_comparison(tval[0], text::produce_simple_string(ws, "stockpile"),
7546 text::fp_one_place{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7547 text::close_layout_box(layout, box);
7548}
7550 auto box = text::open_layout_box(layout, indentation);
7551 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7552 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7553 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
7554 text::close_layout_box(layout, box);
7555}
7557 auto box = text::open_layout_box(layout, indentation);
7558 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7559 if(from_slot != -1)
7560 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7562 ws.world.religion_get_name(ws.world.rebel_faction_get_religion(trigger::to_rebel(from_slot)))),
7563 ws, layout, box);
7564 else
7565 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7566 text::produce_simple_string(ws, "rebel_religion"), ws, layout, box);
7567 text::close_layout_box(layout, box);
7568}
7570 auto box = text::open_layout_box(layout, indentation);
7571 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7572 if(from_slot != -1)
7573 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7574 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.nation_get_religion(trigger::to_nation(from_slot)))),
7575 ws, layout, box);
7576 else
7577 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7578 text::produce_simple_string(ws, "from_nat_religion"), ws, layout, box);
7579 text::close_layout_box(layout, box);
7580}
7582 auto box = text::open_layout_box(layout, indentation);
7583 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7584 if(this_slot != -1)
7585 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7586 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.nation_get_religion(trigger::to_nation(this_slot)))),
7587 ws, layout, box);
7588 else
7589 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7590 text::produce_simple_string(ws, "this_nat_religion"), ws, layout, box);
7591 text::close_layout_box(layout, box);
7592}
7594 auto box = text::open_layout_box(layout, indentation);
7595 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7596 if(this_slot != -1)
7597 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7599 ws.world.religion_get_name(ws.world.nation_get_religion(
7600 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
7601 ws, layout, box);
7602 else
7603 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7604 text::produce_simple_string(ws, "this_nat_religion"), ws, layout, box);
7605 text::close_layout_box(layout, box);
7606}
7608 auto box = text::open_layout_box(layout, indentation);
7609 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7610 if(this_slot != -1)
7611 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7612 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.nation_get_religion(
7613 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
7614 ws, layout, box);
7615 else
7616 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7617 text::produce_simple_string(ws, "this_nat_religion"), ws, layout, box);
7618 text::close_layout_box(layout, box);
7619}
7621 auto box = text::open_layout_box(layout, indentation);
7622 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7623 if(this_slot != -1)
7624 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7626 ws.world.religion_get_name(ws.world.nation_get_religion(nations::owner_of_pop(ws, trigger::to_pop(this_slot))))),
7627 ws, layout, box);
7628 else
7629 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7630 text::produce_simple_string(ws, "this_nat_religion"), ws, layout, box);
7631 text::close_layout_box(layout, box);
7632}
7633
7635 auto box = text::open_layout_box(layout, indentation);
7636 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7637 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "tt_a_bank"), ws, layout, box);
7638 text::close_layout_box(layout, box);
7639}
7641 auto box = text::open_layout_box(layout, indentation);
7642 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7643 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "tt_a_university"), ws, layout, box);
7644 text::close_layout_box(layout, box);
7645}
7646
7647constexpr inline void (*trigger_functions[])(TRIGGER_DISPLAY_PARAMS) = {
7648 tf_none,
7649 tf_year, // constexpr inline uint16_t year = 0x0001;
7650 tf_month, // constexpr inline uint16_t month = 0x0002;
7651 tf_port, // constexpr inline uint16_t port = 0x0003;
7652 tf_rank, // constexpr inline uint16_t rank = 0x0004;
7653 tf_technology, // constexpr inline uint16_t technology = 0x0005;
7654 tf_strata_rich, // constexpr inline uint16_t strata_rich = 0x0006;
7655 tf_life_rating_province, // constexpr inline uint16_t life_rating_province = 0x0007;
7656 tf_life_rating_state, // constexpr inline uint16_t life_rating_state = 0x0008;
7657 tf_has_empty_adjacent_state_province, // constexpr inline uint16_t has_empty_adjacent_state_province = 0x0009;
7658 tf_has_empty_adjacent_state_state, // constexpr inline uint16_t has_empty_adjacent_state_state = 0x000A;
7659 tf_state_id_province, // constexpr inline uint16_t state_id_province = 0x000B;
7660 tf_state_id_state, // constexpr inline uint16_t state_id_state = 0x000C;
7661 tf_cash_reserves, // constexpr inline uint16_t cash_reserves = 0x000D;
7662 tf_unemployment_nation, // constexpr inline uint16_t unemployment_nation = 0x000E;
7663 tf_unemployment_state, // constexpr inline uint16_t unemployment_state = 0x000F;
7664 tf_unemployment_province, // constexpr inline uint16_t unemployment_province = 0x0010;
7665 tf_unemployment_pop, // constexpr inline uint16_t unemployment_pop = 0x0011;
7666 tf_is_slave_nation, // constexpr inline uint16_t is_slave_nation = 0x0012;
7667 tf_is_slave_state, // constexpr inline uint16_t is_slave_state = 0x0013;
7668 tf_is_slave_province, // constexpr inline uint16_t is_slave_province = 0x0014;
7669 tf_is_slave_pop, // constexpr inline uint16_t is_slave_pop = 0x0015;
7670 tf_is_independant, // constexpr inline uint16_t is_independant = 0x0016;
7671 tf_has_national_minority_province, // constexpr inline uint16_t has_national_minority_province = 0x0017;
7672 tf_has_national_minority_state, // constexpr inline uint16_t has_national_minority_state = 0x0018;
7673 tf_has_national_minority_nation, // constexpr inline uint16_t has_national_minority_nation = 0x0019;
7674 tf_government_nation, // constexpr inline uint16_t government_nation = 0x001A;
7675 tf_government_pop, // constexpr inline uint16_t government_pop = 0x001B;
7676 tf_capital, // constexpr inline uint16_t capital = 0x001C;
7677 tf_tech_school, // constexpr inline uint16_t tech_school = 0x001D;
7678 tf_primary_culture, // constexpr inline uint16_t primary_culture = 0x001E;
7679 tf_accepted_culture, // constexpr inline uint16_t accepted_culture = 0x001F;
7680 tf_culture_pop, // constexpr inline uint16_t culture_pop = 0x0020;
7681 tf_culture_state, // constexpr inline uint16_t culture_state = 0x0021;
7682 tf_culture_province, // constexpr inline uint16_t culture_province = 0x0022;
7683 tf_culture_nation, // constexpr inline uint16_t culture_nation = 0x0023;
7684 tf_culture_pop_reb, // constexpr inline uint16_t culture_pop_reb = 0x0024;
7685 tf_culture_state_reb, // constexpr inline uint16_t culture_state_reb = 0x0025;
7686 tf_culture_province_reb, // constexpr inline uint16_t culture_province_reb = 0x0026;
7687 tf_culture_nation_reb, // constexpr inline uint16_t culture_nation_reb = 0x0027;
7688 tf_culture_from_nation, // constexpr inline uint16_t culture_from_nation = 0x0028;
7689 tf_culture_this_nation, // constexpr inline uint16_t culture_this_nation = 0x0029;
7690 tf_culture_this_state, // constexpr inline uint16_t culture_this_state = 0x002A;
7691 tf_culture_this_pop, // constexpr inline uint16_t culture_this_pop = 0x002B;
7692 tf_culture_this_province, // constexpr inline uint16_t culture_this_province = 0x002C;
7693 tf_culture_group_nation, // constexpr inline uint16_t culture_group_nation = 0x002D;
7694 tf_culture_group_pop, // constexpr inline uint16_t culture_group_pop = 0x002E;
7695 tf_culture_group_reb_nation, // constexpr inline uint16_t culture_group_reb_nation = 0x002F;
7696 tf_culture_group_reb_pop, // constexpr inline uint16_t culture_group_reb_pop = 0x0030;
7697 tf_culture_group_nation_from_nation, // constexpr inline uint16_t culture_group_nation_from_nation = 0x0031;
7698 tf_culture_group_pop_from_nation, // constexpr inline uint16_t culture_group_pop_from_nation = 0x0032;
7699 tf_culture_group_nation_this_nation, // constexpr inline uint16_t culture_group_nation_this_nation = 0x0033;
7700 tf_culture_group_pop_this_nation, // constexpr inline uint16_t culture_group_pop_this_nation = 0x0034;
7701 tf_culture_group_nation_this_province, // constexpr inline uint16_t culture_group_nation_this_province = 0x0035;
7702 tf_culture_group_pop_this_province, // constexpr inline uint16_t culture_group_pop_this_province = 0x0036;
7703 tf_culture_group_nation_this_state, // constexpr inline uint16_t culture_group_nation_this_state = 0x0037;
7704 tf_culture_group_pop_this_state, // constexpr inline uint16_t culture_group_pop_this_state = 0x0038;
7705 tf_culture_group_nation_this_pop, // constexpr inline uint16_t culture_group_nation_this_pop = 0x0039;
7706 tf_culture_group_pop_this_pop, // constexpr inline uint16_t culture_group_pop_this_pop = 0x003A;
7707 tf_religion, // constexpr inline uint16_t religion = 0x003B;
7708 tf_religion_reb, // constexpr inline uint16_t religion_reb = 0x003C;
7709 tf_religion_from_nation, // constexpr inline uint16_t religion_from_nation = 0x003D;
7710 tf_religion_this_nation, // constexpr inline uint16_t religion_this_nation = 0x003E;
7711 tf_religion_this_state, // constexpr inline uint16_t religion_this_state = 0x003F;
7712 tf_religion_this_province, // constexpr inline uint16_t religion_this_province = 0x0040;
7713 tf_religion_this_pop, // constexpr inline uint16_t religion_this_pop = 0x0041;
7714 tf_terrain_province, // constexpr inline uint16_t terrain_province = 0x0042;
7715 tf_terrain_pop, // constexpr inline uint16_t terrain_pop = 0x0043;
7716 tf_trade_goods, // constexpr inline uint16_t trade_goods = 0x0044;
7717 tf_is_secondary_power_pop, // constexpr inline uint16_t is_secondary_power_pop = 0x0045;
7718 tf_is_secondary_power_nation, // constexpr inline uint16_t is_secondary_power_nation = 0x0046;
7719 tf_has_faction_nation, // constexpr inline uint16_t has_faction_nation = 0x0047;
7720 tf_has_faction_pop, // constexpr inline uint16_t has_faction_pop = 0x0048;
7721 tf_has_unclaimed_cores, // constexpr inline uint16_t has_unclaimed_cores = 0x0049;
7722 tf_is_cultural_union_bool, // constexpr inline uint16_t is_cultural_union_bool = 0x004A;
7723 tf_is_cultural_union_this_self_pop, // constexpr inline uint16_t is_cultural_union_this_self_pop = 0x004B;
7724 tf_is_cultural_union_this_pop, // constexpr inline uint16_t is_cultural_union_this_pop = 0x004C;
7725 tf_is_cultural_union_this_state, // constexpr inline uint16_t is_cultural_union_this_state = 0x004D;
7726 tf_is_cultural_union_this_province, // constexpr inline uint16_t is_cultural_union_this_province = 0x004E;
7727 tf_is_cultural_union_this_nation, // constexpr inline uint16_t is_cultural_union_this_nation = 0x004F;
7728 tf_is_cultural_union_this_rebel, // constexpr inline uint16_t is_cultural_union_this_rebel = 0x0050;
7729 tf_is_cultural_union_tag_nation, // constexpr inline uint16_t is_cultural_union_tag_nation = 0x0051;
7730 tf_is_cultural_union_tag_this_pop, // constexpr inline uint16_t is_cultural_union_tag_this_pop = 0x0052;
7731 tf_is_cultural_union_tag_this_state, // constexpr inline uint16_t is_cultural_union_tag_this_state = 0x0053;
7732 tf_is_cultural_union_tag_this_province, // constexpr inline uint16_t is_cultural_union_tag_this_province = 0x0054;
7733 tf_is_cultural_union_tag_this_nation, // constexpr inline uint16_t is_cultural_union_tag_this_nation = 0x0055;
7734 tf_can_build_factory_pop, // constexpr inline uint16_t can_build_factory_pop = 0x0056;
7735 tf_war_pop, // constexpr inline uint16_t war_pop = 0x0057;
7736 tf_war_nation, // constexpr inline uint16_t war_nation = 0x0058;
7737 tf_war_exhaustion_nation, // constexpr inline uint16_t war_exhaustion_nation = 0x0059;
7738 tf_blockade, // constexpr inline uint16_t blockade = 0x005A;
7739 tf_owns, // constexpr inline uint16_t owns = 0x005B;
7740 tf_controls, // constexpr inline uint16_t controls = 0x005C;
7741 tf_is_core_integer, // constexpr inline uint16_t is_core_integer = 0x005D;
7742 tf_is_core_this_nation, // constexpr inline uint16_t is_core_this_nation = 0x005E;
7743 tf_is_core_this_state, // constexpr inline uint16_t is_core_this_state = 0x005F;
7744 tf_is_core_this_province, // constexpr inline uint16_t is_core_this_province = 0x0060;
7745 tf_is_core_this_pop, // constexpr inline uint16_t is_core_this_pop = 0x0061;
7746 tf_is_core_from_nation, // constexpr inline uint16_t is_core_from_nation = 0x0062;
7747 tf_is_core_reb, // constexpr inline uint16_t is_core_reb = 0x0063;
7748 tf_is_core_tag, // constexpr inline uint16_t is_core_tag = 0x0064;
7749 tf_num_of_revolts, // constexpr inline uint16_t num_of_revolts = 0x0065;
7750 tf_revolt_percentage, // constexpr inline uint16_t revolt_percentage = 0x0066;
7751 tf_num_of_cities_int, // constexpr inline uint16_t num_of_cities_int = 0x0067;
7752 tf_num_of_cities_from_nation, // constexpr inline uint16_t num_of_cities_from_nation = 0x0068;
7753 tf_num_of_cities_this_nation, // constexpr inline uint16_t num_of_cities_this_nation = 0x0069;
7754 tf_num_of_cities_this_state, // constexpr inline uint16_t num_of_cities_this_state = 0x006A;
7755 tf_num_of_cities_this_province, // constexpr inline uint16_t num_of_cities_this_province = 0x006B;
7756 tf_num_of_cities_this_pop, // constexpr inline uint16_t num_of_cities_this_pop = 0x006C;
7757 tf_num_of_ports, // constexpr inline uint16_t num_of_ports = 0x006D;
7758 tf_num_of_allies, // constexpr inline uint16_t num_of_allies = 0x006E;
7759 tf_num_of_vassals, // constexpr inline uint16_t num_of_vassals = 0x006F;
7760 tf_owned_by_tag, // constexpr inline uint16_t owned_by_tag = 0x0070;
7761 tf_owned_by_from_nation, // constexpr inline uint16_t owned_by_from_nation = 0x0071;
7762 tf_owned_by_this_nation, // constexpr inline uint16_t owned_by_this_nation = 0x0072;
7763 tf_owned_by_this_province, // constexpr inline uint16_t owned_by_this_province = 0x0073;
7764 tf_owned_by_this_state, // constexpr inline uint16_t owned_by_this_state = 0x0074;
7765 tf_owned_by_this_pop, // constexpr inline uint16_t owned_by_this_pop = 0x0075;
7766 tf_exists_bool, // constexpr inline uint16_t exists_bool = 0x0076;
7767 tf_exists_tag, // constexpr inline uint16_t exists_tag = 0x0077;
7768 tf_has_country_flag, // constexpr inline uint16_t has_country_flag = 0x0078;
7769 tf_continent_nation, // constexpr inline uint16_t continent_nation = 0x0079;
7770 tf_continent_state, // constexpr inline uint16_t continent_state = 0x007A;
7771 tf_continent_province, // constexpr inline uint16_t continent_province = 0x007B;
7772 tf_continent_pop, // constexpr inline uint16_t continent_pop = 0x007C;
7773 tf_continent_nation_this, // constexpr inline uint16_t continent_nation_this = 0x007D;
7774 tf_continent_state_this, // constexpr inline uint16_t continent_state_this = 0x007E;
7775 tf_continent_province_this, // constexpr inline uint16_t continent_province_this = 0x007F;
7776 tf_continent_pop_this, // constexpr inline uint16_t continent_pop_this = 0x0080;
7777 tf_continent_nation_from, // constexpr inline uint16_t continent_nation_from = 0x0081;
7778 tf_continent_state_from, // constexpr inline uint16_t continent_state_from = 0x0082;
7779 tf_continent_province_from, // constexpr inline uint16_t continent_province_from = 0x0083;
7780 tf_continent_pop_from, // constexpr inline uint16_t continent_pop_from = 0x0084;
7781 tf_casus_belli_tag, // constexpr inline uint16_t casus_belli_tag = 0x0085;
7782 tf_casus_belli_from, // constexpr inline uint16_t casus_belli_from = 0x0086;
7783 tf_casus_belli_this_nation, // constexpr inline uint16_t casus_belli_this_nation = 0x0087;
7784 tf_casus_belli_this_state, // constexpr inline uint16_t casus_belli_this_state = 0x0088;
7785 tf_casus_belli_this_province, // constexpr inline uint16_t casus_belli_this_province = 0x0089;
7786 tf_casus_belli_this_pop, // constexpr inline uint16_t casus_belli_this_pop = 0x008A;
7787 tf_military_access_tag, // constexpr inline uint16_t military_access_tag = 0x008B;
7788 tf_military_access_from, // constexpr inline uint16_t military_access_from = 0x008C;
7789 tf_military_access_this_nation, // constexpr inline uint16_t military_access_this_nation = 0x008D;
7790 tf_military_access_this_state, // constexpr inline uint16_t military_access_this_state = 0x008E;
7791 tf_military_access_this_province, // constexpr inline uint16_t military_access_this_province = 0x008F;
7792 tf_military_access_this_pop, // constexpr inline uint16_t military_access_this_pop = 0x0090;
7793 tf_prestige_value, // constexpr inline uint16_t prestige_value = 0x0091;
7794 tf_prestige_from, // constexpr inline uint16_t prestige_from = 0x0092;
7795 tf_prestige_this_nation, // constexpr inline uint16_t prestige_this_nation = 0x0093;
7796 tf_prestige_this_state, // constexpr inline uint16_t prestige_this_state = 0x0094;
7797 tf_prestige_this_province, // constexpr inline uint16_t prestige_this_province = 0x0095;
7798 tf_prestige_this_pop, // constexpr inline uint16_t prestige_this_pop = 0x0096;
7799 tf_badboy, // constexpr inline uint16_t badboy = 0x0097;
7800 tf_has_building_state, // constexpr inline uint16_t has_building_state = 0x0098;
7801 tf_has_building_fort, // constexpr inline uint16_t has_building_fort = 0x0099;
7802 tf_has_building_railroad, // constexpr inline uint16_t has_building_railroad = 0x009A;
7803 tf_has_building_naval_base, // constexpr inline uint16_t has_building_naval_base = 0x009B;
7804 tf_empty, // constexpr inline uint16_t empty = 0x009C;
7805 tf_is_blockaded, // constexpr inline uint16_t is_blockaded = 0x009D;
7806 tf_has_country_modifier, // constexpr inline uint16_t has_country_modifier = 0x009E;
7807 tf_has_province_modifier, // constexpr inline uint16_t has_province_modifier = 0x009F;
7808 tf_region, // constexpr inline uint16_t region = 0x00A0;
7809 tf_tag_tag, // constexpr inline uint16_t tag_tag = 0x00A1;
7810 tf_tag_this_nation, // constexpr inline uint16_t tag_this_nation = 0x00A2;
7811 tf_tag_this_province, // constexpr inline uint16_t tag_this_province = 0x00A3;
7812 tf_tag_from_nation, // constexpr inline uint16_t tag_from_nation = 0x00A4;
7813 tf_tag_from_province, // constexpr inline uint16_t tag_from_province = 0x00A5;
7814 tf_neighbour_tag, // constexpr inline uint16_t neighbour_tag = 0x00A6;
7815 tf_neighbour_this, // constexpr inline uint16_t neighbour_this = 0x00A7;
7816 tf_neighbour_from, // constexpr inline uint16_t neighbour_from = 0x00A8;
7817 tf_units_in_province_value, // constexpr inline uint16_t units_in_province_value = 0x00A9;
7818 tf_units_in_province_from, // constexpr inline uint16_t units_in_province_from = 0x00AA;
7819 tf_units_in_province_this_nation, // constexpr inline uint16_t units_in_province_this_nation = 0x00AB;
7820 tf_units_in_province_this_province, // constexpr inline uint16_t units_in_province_this_province = 0x00AC;
7821 tf_units_in_province_this_state, // constexpr inline uint16_t units_in_province_this_state = 0x00AD;
7822 tf_units_in_province_this_pop, // constexpr inline uint16_t units_in_province_this_pop = 0x00AE;
7823 tf_war_with_tag, // constexpr inline uint16_t war_with_tag = 0x00AF;
7824 tf_war_with_from, // constexpr inline uint16_t war_with_from = 0x00B0;
7825 tf_war_with_this_nation, // constexpr inline uint16_t war_with_this_nation = 0x00B1;
7826 tf_war_with_this_province, // constexpr inline uint16_t war_with_this_province = 0x00B2;
7827 tf_war_with_this_state, // constexpr inline uint16_t war_with_this_state = 0x00B3;
7828 tf_war_with_this_pop, // constexpr inline uint16_t war_with_this_pop = 0x00B4;
7829 tf_unit_in_battle, // constexpr inline uint16_t unit_in_battle = 0x00B5;
7830 tf_total_amount_of_divisions, // constexpr inline uint16_t total_amount_of_divisions = 0x00B6;
7831 tf_money, // constexpr inline uint16_t money = 0x00B7;
7832 tf_lost_national, // constexpr inline uint16_t lost_national = 0x00B8;
7833 tf_is_vassal, // constexpr inline uint16_t is_vassal = 0x00B9;
7834 tf_ruling_party_ideology_nation, // constexpr inline uint16_t ruling_party_ideology_pop = 0x00BA;
7835 tf_ruling_party_ideology_nation, // constexpr inline uint16_t ruling_party_ideology_nation = 0x00BB;
7836 tf_ruling_party, // constexpr inline uint16_t ruling_party = 0x00BC;
7837 tf_is_ideology_enabled, // constexpr inline uint16_t is_ideology_enabled = 0x00BD;
7838 tf_political_reform_want_nation, // constexpr inline uint16_t political_reform_want_nation = 0x00BE;
7839 tf_political_reform_want_pop, // constexpr inline uint16_t political_reform_want_pop = 0x00BF;
7840 tf_social_reform_want_nation, // constexpr inline uint16_t social_reform_want_nation = 0x00C0;
7841 tf_social_reform_want_pop, // constexpr inline uint16_t social_reform_want_pop = 0x00C1;
7842 tf_total_amount_of_ships, // constexpr inline uint16_t total_amount_of_ships = 0x00C2;
7843 tf_plurality, // constexpr inline uint16_t plurality = 0x00C3;
7844 tf_corruption, // constexpr inline uint16_t corruption = 0x00C4;
7845 tf_is_state_religion_pop, // constexpr inline uint16_t is_state_religion_pop = 0x00C5;
7846 tf_is_state_religion_province, // constexpr inline uint16_t is_state_religion_province = 0x00C6;
7847 tf_is_state_religion_state, // constexpr inline uint16_t is_state_religion_state = 0x00C7;
7848 tf_is_primary_culture_pop, // constexpr inline uint16_t is_primary_culture_pop = 0x00C8;
7849 tf_is_primary_culture_province, // constexpr inline uint16_t is_primary_culture_province = 0x00C9;
7850 tf_is_primary_culture_state, // constexpr inline uint16_t is_primary_culture_state = 0x00CA;
7851 tf_is_primary_culture_nation_this_pop, // constexpr inline uint16_t is_primary_culture_nation_this_pop = 0x00CB;
7852 tf_is_primary_culture_nation_this_nation, // constexpr inline uint16_t is_primary_culture_nation_this_nation = 0x00CC;
7853 tf_is_primary_culture_nation_this_state, // constexpr inline uint16_t is_primary_culture_nation_this_state = 0x00CD;
7854 tf_is_primary_culture_nation_this_province, // constexpr inline uint16_t is_primary_culture_nation_this_province = 0x00CE;
7855 tf_is_primary_culture_state_this_pop, // constexpr inline uint16_t is_primary_culture_state_this_pop = 0x00CF;
7856 tf_is_primary_culture_state_this_nation, // constexpr inline uint16_t is_primary_culture_state_this_nation = 0x00D0;
7857 tf_is_primary_culture_state_this_state, // constexpr inline uint16_t is_primary_culture_state_this_state = 0x00D1;
7858 tf_is_primary_culture_state_this_province, // constexpr inline uint16_t is_primary_culture_state_this_province = 0x00D2;
7859 tf_is_primary_culture_province_this_pop, // constexpr inline uint16_t is_primary_culture_province_this_pop = 0x00D3;
7860 tf_is_primary_culture_province_this_nation, // constexpr inline uint16_t is_primary_culture_province_this_nation = 0x00D4;
7861 tf_is_primary_culture_province_this_state, // constexpr inline uint16_t is_primary_culture_province_this_state = 0x00D5;
7862 tf_is_primary_culture_province_this_province, // constexpr inline uint16_t is_primary_culture_province_this_province = 0x00D6;
7863 tf_is_primary_culture_pop_this_pop, // constexpr inline uint16_t is_primary_culture_pop_this_pop = 0x00D7;
7864 tf_is_primary_culture_pop_this_nation, // constexpr inline uint16_t is_primary_culture_pop_this_nation = 0x00D8;
7865 tf_is_primary_culture_pop_this_state, // constexpr inline uint16_t is_primary_culture_pop_this_state = 0x00D9;
7866 tf_is_primary_culture_pop_this_province, // constexpr inline uint16_t is_primary_culture_pop_this_province = 0x00DA;
7867 tf_is_accepted_culture_pop, // constexpr inline uint16_t is_accepted_culture_pop = 0x00DB;
7868 tf_is_accepted_culture_province, // constexpr inline uint16_t is_accepted_culture_province = 0x00DC;
7869 tf_is_accepted_culture_state, // constexpr inline uint16_t is_accepted_culture_state = 0x00DD;
7870 tf_is_coastal_province, // constexpr inline uint16_t is_coastal_province = 0x00DE;
7871 tf_in_sphere_tag, // constexpr inline uint16_t in_sphere_tag = 0x00DF;
7872 tf_in_sphere_from, // constexpr inline uint16_t in_sphere_from = 0x00E0;
7873 tf_in_sphere_this_nation, // constexpr inline uint16_t in_sphere_this_nation = 0x00E1;
7874 tf_in_sphere_this_province, // constexpr inline uint16_t in_sphere_this_province = 0x00E2;
7875 tf_in_sphere_this_state, // constexpr inline uint16_t in_sphere_this_state = 0x00E3;
7876 tf_in_sphere_this_pop, // constexpr inline uint16_t in_sphere_this_pop = 0x00E4;
7877 tf_produces_nation, // constexpr inline uint16_t produces_nation = 0x00E5;
7878 tf_produces_state, // constexpr inline uint16_t produces_state = 0x00E6;
7879 tf_produces_province, // constexpr inline uint16_t produces_province = 0x00E7;
7880 tf_produces_pop, // constexpr inline uint16_t produces_pop = 0x00E8;
7881 tf_average_militancy_nation, // constexpr inline uint16_t average_militancy_nation = 0x00E9;
7882 tf_average_militancy_state, // constexpr inline uint16_t average_militancy_state = 0x00EA;
7883 tf_average_militancy_province, // constexpr inline uint16_t average_militancy_province = 0x00EB;
7884 tf_average_consciousness_nation, // constexpr inline uint16_t average_consciousness_nation = 0x00EC;
7885 tf_average_consciousness_state, // constexpr inline uint16_t average_consciousness_state = 0x00ED;
7886 tf_average_consciousness_province, // constexpr inline uint16_t average_consciousness_province = 0x00EE;
7887 tf_is_next_reform_nation, // constexpr inline uint16_t is_next_reform_nation = 0x00EF;
7888 tf_is_next_reform_pop, // constexpr inline uint16_t is_next_reform_pop = 0x00F0;
7889 tf_rebel_power_fraction, // constexpr inline uint16_t rebel_power_fraction = 0x00F1;
7890 tf_recruited_percentage_nation, // constexpr inline uint16_t recruited_percentage_nation = 0x00F2;
7891 tf_recruited_percentage_pop, // constexpr inline uint16_t recruited_percentage_pop = 0x00F3;
7892 tf_has_culture_core, // constexpr inline uint16_t has_culture_core = 0x00F4;
7893 tf_nationalism, // constexpr inline uint16_t nationalism = 0x00F5;
7894 tf_is_overseas, // constexpr inline uint16_t is_overseas = 0x00F6;
7895 tf_controlled_by_rebels, // constexpr inline uint16_t controlled_by_rebels = 0x00F7;
7896 tf_controlled_by_tag, // constexpr inline uint16_t controlled_by_tag = 0x00F8;
7897 tf_controlled_by_from, // constexpr inline uint16_t controlled_by_from = 0x00F9;
7898 tf_controlled_by_this_nation, // constexpr inline uint16_t controlled_by_this_nation = 0x00FA;
7899 tf_controlled_by_this_province, // constexpr inline uint16_t controlled_by_this_province = 0x00FB;
7900 tf_controlled_by_this_state, // constexpr inline uint16_t controlled_by_this_state = 0x00FC;
7901 tf_controlled_by_this_pop, // constexpr inline uint16_t controlled_by_this_pop = 0x00FD;
7902 tf_controlled_by_owner, // constexpr inline uint16_t controlled_by_owner = 0x00FE;
7903 tf_controlled_by_reb, // constexpr inline uint16_t controlled_by_reb = 0x00FF;
7904 tf_is_canal_enabled, // constexpr inline uint16_t is_canal_enabled = 0x0100;
7905 tf_is_state_capital, // constexpr inline uint16_t is_state_capital = 0x0101;
7906 tf_truce_with_tag, // constexpr inline uint16_t truce_with_tag = 0x0102;
7907 tf_truce_with_from, // constexpr inline uint16_t truce_with_from = 0x0103;
7908 tf_truce_with_this_nation, // constexpr inline uint16_t truce_with_this_nation = 0x0104;
7909 tf_truce_with_this_province, // constexpr inline uint16_t truce_with_this_province = 0x0105;
7910 tf_truce_with_this_state, // constexpr inline uint16_t truce_with_this_state = 0x0106;
7911 tf_truce_with_this_pop, // constexpr inline uint16_t truce_with_this_pop = 0x0107;
7912 tf_total_pops_nation, // constexpr inline uint16_t total_pops_nation = 0x0108;
7913 tf_total_pops_state, // constexpr inline uint16_t total_pops_state = 0x0109;
7914 tf_total_pops_province, // constexpr inline uint16_t total_pops_province = 0x010A;
7915 tf_total_pops_pop, // constexpr inline uint16_t total_pops_pop = 0x010B;
7916 tf_has_pop_type_nation, // constexpr inline uint16_t has_pop_type_nation = 0x010C;
7917 tf_has_pop_type_state, // constexpr inline uint16_t has_pop_type_state = 0x010D;
7918 tf_has_pop_type_province, // constexpr inline uint16_t has_pop_type_province = 0x010E;
7919 tf_has_pop_type_pop, // constexpr inline uint16_t has_pop_type_pop = 0x010F;
7920 tf_has_empty_adjacent_province, // constexpr inline uint16_t has_empty_adjacent_province = 0x0110;
7921 tf_has_leader, // constexpr inline uint16_t has_leader = 0x0111;
7922 tf_ai, // constexpr inline uint16_t ai = 0x0112;
7923 tf_can_create_vassals, // constexpr inline uint16_t can_create_vassals = 0x0113;
7924 tf_is_possible_vassal, // constexpr inline uint16_t is_possible_vassal = 0x0114;
7925 tf_province_id, // constexpr inline uint16_t province_id = 0x0115;
7926 tf_vassal_of_tag, // constexpr inline uint16_t vassal_of_tag = 0x0116;
7927 tf_vassal_of_from, // constexpr inline uint16_t vassal_of_from = 0x0117;
7928 tf_vassal_of_this_nation, // constexpr inline uint16_t vassal_of_this_nation = 0x0118;
7929 tf_vassal_of_this_province, // constexpr inline uint16_t vassal_of_this_province = 0x0119;
7930 tf_vassal_of_this_state, // constexpr inline uint16_t vassal_of_this_state = 0x011A;
7931 tf_vassal_of_this_pop, // constexpr inline uint16_t vassal_of_this_pop = 0x011B;
7932 tf_alliance_with_tag, // constexpr inline uint16_t alliance_with_tag = 0x011C;
7933 tf_alliance_with_from, // constexpr inline uint16_t alliance_with_from = 0x011D;
7934 tf_alliance_with_this_nation, // constexpr inline uint16_t alliance_with_this_nation = 0x011E;
7935 tf_alliance_with_this_province, // constexpr inline uint16_t alliance_with_this_province = 0x011F;
7936 tf_alliance_with_this_state, // constexpr inline uint16_t alliance_with_this_state = 0x0120;
7937 tf_alliance_with_this_pop, // constexpr inline uint16_t alliance_with_this_pop = 0x0121;
7938 tf_has_recently_lost_war, // constexpr inline uint16_t has_recently_lost_war = 0x0122;
7939 tf_is_mobilised, // constexpr inline uint16_t is_mobilised = 0x0123;
7940 tf_mobilisation_size, // constexpr inline uint16_t mobilisation_size = 0x0124;
7941 tf_crime_higher_than_education_nation, // constexpr inline uint16_t crime_higher_than_education_nation = 0x0125;
7942 tf_crime_higher_than_education_state, // constexpr inline uint16_t crime_higher_than_education_state = 0x0126;
7943 tf_crime_higher_than_education_province, // constexpr inline uint16_t crime_higher_than_education_province = 0x0127;
7944 tf_crime_higher_than_education_pop, // constexpr inline uint16_t crime_higher_than_education_pop = 0x0128;
7945 tf_agree_with_ruling_party, // constexpr inline uint16_t agree_with_ruling_party = 0x0129;
7946 tf_is_colonial_state, // constexpr inline uint16_t is_colonial_state = 0x012A;
7947 tf_is_colonial_province, // constexpr inline uint16_t is_colonial_province = 0x012B;
7948 tf_has_factories_state, // constexpr inline uint16_t has_factories_state = 0x012C;
7949 tf_in_default_tag, // constexpr inline uint16_t in_default_tag = 0x012D;
7950 tf_in_default_from, // constexpr inline uint16_t in_default_from = 0x012E;
7951 tf_in_default_this_nation, // constexpr inline uint16_t in_default_this_nation = 0x012F;
7952 tf_in_default_this_province, // constexpr inline uint16_t in_default_this_province = 0x0130;
7953 tf_in_default_this_state, // constexpr inline uint16_t in_default_this_state = 0x0131;
7954 tf_in_default_this_pop, // constexpr inline uint16_t in_default_this_pop = 0x0132;
7955 tf_total_num_of_ports, // constexpr inline uint16_t total_num_of_ports = 0x0133;
7956 tf_always, // constexpr inline uint16_t always = 0x0134;
7957 tf_election, // constexpr inline uint16_t election = 0x0135;
7958 tf_has_global_flag, // constexpr inline uint16_t has_global_flag = 0x0136;
7959 tf_is_capital, // constexpr inline uint16_t is_capital = 0x0137;
7960 tf_nationalvalue_nation, // constexpr inline uint16_t nationalvalue_nation = 0x0138;
7961 tf_industrial_score_value, // constexpr inline uint16_t industrial_score_value = 0x0139;
7962 tf_industrial_score_from_nation, // constexpr inline uint16_t industrial_score_from_nation = 0x013A;
7963 tf_industrial_score_this_nation, // constexpr inline uint16_t industrial_score_this_nation = 0x013B;
7964 tf_industrial_score_this_pop, // constexpr inline uint16_t industrial_score_this_pop = 0x013C;
7965 tf_industrial_score_this_state, // constexpr inline uint16_t industrial_score_this_state = 0x013D;
7966 tf_industrial_score_this_province, // constexpr inline uint16_t industrial_score_this_province = 0x013E;
7967 tf_military_score_value, // constexpr inline uint16_t military_score_value = 0x013F;
7968 tf_military_score_from_nation, // constexpr inline uint16_t military_score_from_nation = 0x0140;
7969 tf_military_score_this_nation, // constexpr inline uint16_t military_score_this_nation = 0x0141;
7970 tf_military_score_this_pop, // constexpr inline uint16_t military_score_this_pop = 0x0142;
7971 tf_military_score_this_state, // constexpr inline uint16_t military_score_this_state = 0x0143;
7972 tf_military_score_this_province, // constexpr inline uint16_t military_score_this_province = 0x0144;
7973 tf_civilized_nation, // constexpr inline uint16_t civilized_nation = 0x0145;
7974 tf_civilized_pop, // constexpr inline uint16_t civilized_pop = 0x0146;
7975 tf_civilized_province, // constexpr inline uint16_t civilized_province = 0x0147;
7976 tf_national_provinces_occupied, // constexpr inline uint16_t national_provinces_occupied = 0x0148;
7977 tf_is_greater_power_nation, // constexpr inline uint16_t is_greater_power_nation = 0x0149;
7978 tf_is_greater_power_pop, // constexpr inline uint16_t is_greater_power_pop = 0x014A;
7979 tf_rich_tax, // constexpr inline uint16_t rich_tax = 0x014B;
7980 tf_middle_tax, // constexpr inline uint16_t middle_tax = 0x014C;
7981 tf_poor_tax, // constexpr inline uint16_t poor_tax = 0x014D;
7982 tf_social_spending_nation, // constexpr inline uint16_t social_spending_nation = 0x014E;
7983 tf_social_spending_pop, // constexpr inline uint16_t social_spending_pop = 0x014F;
7984 tf_social_spending_province, // constexpr inline uint16_t social_spending_province = 0x0150;
7985 tf_colonial_nation, // constexpr inline uint16_t colonial_nation = 0x0151;
7986 tf_pop_majority_religion_nation, // constexpr inline uint16_t pop_majority_religion_nation = 0x0152;
7987 tf_pop_majority_religion_state, // constexpr inline uint16_t pop_majority_religion_state = 0x0153;
7988 tf_pop_majority_religion_province, // constexpr inline uint16_t pop_majority_religion_province = 0x0154;
7989 tf_pop_majority_culture_nation, // constexpr inline uint16_t pop_majority_culture_nation = 0x0155;
7990 tf_pop_majority_culture_state, // constexpr inline uint16_t pop_majority_culture_state = 0x0156;
7991 tf_pop_majority_culture_province, // constexpr inline uint16_t pop_majority_culture_province = 0x0157;
7992 tf_pop_majority_issue_nation, // constexpr inline uint16_t pop_majority_issue_nation = 0x0158;
7993 tf_pop_majority_issue_state, // constexpr inline uint16_t pop_majority_issue_state = 0x0159;
7994 tf_pop_majority_issue_province, // constexpr inline uint16_t pop_majority_issue_province = 0x015A;
7995 tf_pop_majority_issue_pop, // constexpr inline uint16_t pop_majority_issue_pop = 0x015B;
7996 tf_pop_majority_ideology_nation, // constexpr inline uint16_t pop_majority_ideology_nation = 0x015C;
7997 tf_pop_majority_ideology_state, // constexpr inline uint16_t pop_majority_ideology_state = 0x015D;
7998 tf_pop_majority_ideology_province, // constexpr inline uint16_t pop_majority_ideology_province = 0x015E;
7999 tf_pop_majority_ideology_pop, // constexpr inline uint16_t pop_majority_ideology_pop = 0x015F;
8000 tf_poor_strata_militancy_nation, // constexpr inline uint16_t poor_strata_militancy_nation = 0x0160;
8001 tf_poor_strata_militancy_state, // constexpr inline uint16_t poor_strata_militancy_state = 0x0161;
8002 tf_poor_strata_militancy_province, // constexpr inline uint16_t poor_strata_militancy_province = 0x0162;
8003 tf_poor_strata_militancy_pop, // constexpr inline uint16_t poor_strata_militancy_pop = 0x0163;
8004 tf_middle_strata_militancy_nation, // constexpr inline uint16_t middle_strata_militancy_nation = 0x0164;
8005 tf_middle_strata_militancy_state, // constexpr inline uint16_t middle_strata_militancy_state = 0x0165;
8006 tf_middle_strata_militancy_province, // constexpr inline uint16_t middle_strata_militancy_province = 0x0166;
8007 tf_middle_strata_militancy_pop, // constexpr inline uint16_t middle_strata_militancy_pop = 0x0167;
8008 tf_rich_strata_militancy_nation, // constexpr inline uint16_t rich_strata_militancy_nation = 0x0168;
8009 tf_rich_strata_militancy_state, // constexpr inline uint16_t rich_strata_militancy_state = 0x0169;
8010 tf_rich_strata_militancy_province, // constexpr inline uint16_t rich_strata_militancy_province = 0x016A;
8011 tf_rich_strata_militancy_pop, // constexpr inline uint16_t rich_strata_militancy_pop = 0x016B;
8012 tf_rich_tax_above_poor, // constexpr inline uint16_t rich_tax_above_poor = 0x016C;
8013 tf_culture_has_union_tag_pop, // constexpr inline uint16_t culture_has_union_tag_pop = 0x016D;
8014 tf_culture_has_union_tag_nation, // constexpr inline uint16_t culture_has_union_tag_nation = 0x016E;
8015 tf_this_culture_union_tag, // constexpr inline uint16_t this_culture_union_tag = 0x016F;
8016 tf_this_culture_union_from, // constexpr inline uint16_t this_culture_union_from = 0x0170;
8017 tf_this_culture_union_this_nation, // constexpr inline uint16_t this_culture_union_this_nation = 0x0171;
8018 tf_this_culture_union_this_province, // constexpr inline uint16_t this_culture_union_this_province = 0x0172;
8019 tf_this_culture_union_this_state, // constexpr inline uint16_t this_culture_union_this_state = 0x0173;
8020 tf_this_culture_union_this_pop, // constexpr inline uint16_t this_culture_union_this_pop = 0x0174;
8021 tf_this_culture_union_this_union_nation, // constexpr inline uint16_t this_culture_union_this_union_nation = 0x0175;
8022 tf_this_culture_union_this_union_province, // constexpr inline uint16_t this_culture_union_this_union_province = 0x0176;
8023 tf_this_culture_union_this_union_state, // constexpr inline uint16_t this_culture_union_this_union_state = 0x0177;
8024 tf_this_culture_union_this_union_pop, // constexpr inline uint16_t this_culture_union_this_union_pop = 0x0178;
8025 tf_minorities_nation, // constexpr inline uint16_t minorities_nation = 0x0179;
8026 tf_minorities_state, // constexpr inline uint16_t minorities_state = 0x017A;
8027 tf_minorities_province, // constexpr inline uint16_t minorities_province = 0x017B;
8028 tf_revanchism_nation, // constexpr inline uint16_t revanchism_nation = 0x017C;
8029 tf_revanchism_pop, // constexpr inline uint16_t revanchism_pop = 0x017D;
8030 tf_has_crime, // constexpr inline uint16_t has_crime = 0x017E;
8031 tf_num_of_substates, // constexpr inline uint16_t num_of_substates = 0x017F;
8032 tf_num_of_vassals_no_substates, // constexpr inline uint16_t num_of_vassals_no_substates = 0x0180;
8033 tf_brigades_compare_this, // constexpr inline uint16_t brigades_compare_this = 0x0181;
8034 tf_brigades_compare_from, // constexpr inline uint16_t brigades_compare_from = 0x0182;
8035 tf_constructing_cb_tag, // constexpr inline uint16_t constructing_cb_tag = 0x0183;
8036 tf_constructing_cb_from, // constexpr inline uint16_t constructing_cb_from = 0x0184;
8037 tf_constructing_cb_this_nation, // constexpr inline uint16_t constructing_cb_this_nation = 0x0185;
8038 tf_constructing_cb_this_province, // constexpr inline uint16_t constructing_cb_this_province = 0x0186;
8039 tf_constructing_cb_this_state, // constexpr inline uint16_t constructing_cb_this_state = 0x0187;
8040 tf_constructing_cb_this_pop, // constexpr inline uint16_t constructing_cb_this_pop = 0x0188;
8041 tf_constructing_cb_discovered, // constexpr inline uint16_t constructing_cb_discovered = 0x0189;
8042 tf_constructing_cb_progress, // constexpr inline uint16_t constructing_cb_progress = 0x018A;
8043 tf_civilization_progress, // constexpr inline uint16_t civilization_progress = 0x018B;
8044 tf_constructing_cb_type, // constexpr inline uint16_t constructing_cb_type = 0x018C;
8045 tf_is_our_vassal_tag, // constexpr inline uint16_t is_our_vassal_tag = 0x018D;
8046 tf_is_our_vassal_from, // constexpr inline uint16_t is_our_vassal_from = 0x018E;
8047 tf_is_our_vassal_this_nation, // constexpr inline uint16_t is_our_vassal_this_nation = 0x018F;
8048 tf_is_our_vassal_this_province, // constexpr inline uint16_t is_our_vassal_this_province = 0x0190;
8049 tf_is_our_vassal_this_state, // constexpr inline uint16_t is_our_vassal_this_state = 0x0191;
8050 tf_is_our_vassal_this_pop, // constexpr inline uint16_t is_our_vassal_this_pop = 0x0192;
8051 tf_substate_of_tag, // constexpr inline uint16_t substate_of_tag = 0x0193;
8052 tf_substate_of_from, // constexpr inline uint16_t substate_of_from = 0x0194;
8053 tf_substate_of_this_nation, // constexpr inline uint16_t substate_of_this_nation = 0x0195;
8054 tf_substate_of_this_province, // constexpr inline uint16_t substate_of_this_province = 0x0196;
8055 tf_substate_of_this_state, // constexpr inline uint16_t substate_of_this_state = 0x0197;
8056 tf_substate_of_this_pop, // constexpr inline uint16_t substate_of_this_pop = 0x0198;
8057 tf_is_substate, // constexpr inline uint16_t is_substate = 0x0199;
8058 tf_great_wars_enabled, // constexpr inline uint16_t great_wars_enabled = 0x019A;
8059 tf_can_nationalize, // constexpr inline uint16_t can_nationalize = 0x019B;
8060 tf_part_of_sphere, // constexpr inline uint16_t part_of_sphere = 0x019C;
8061 tf_is_sphere_leader_of_tag, // constexpr inline uint16_t is_sphere_leader_of_tag = 0x019D;
8062 tf_is_sphere_leader_of_from, // constexpr inline uint16_t is_sphere_leader_of_from = 0x019E;
8063 tf_is_sphere_leader_of_this_nation, // constexpr inline uint16_t is_sphere_leader_of_this_nation = 0x019F;
8064 tf_is_sphere_leader_of_this_province, // constexpr inline uint16_t is_sphere_leader_of_this_province = 0x01A0;
8065 tf_is_sphere_leader_of_this_state, // constexpr inline uint16_t is_sphere_leader_of_this_state = 0x01A1;
8066 tf_is_sphere_leader_of_this_pop, // constexpr inline uint16_t is_sphere_leader_of_this_pop = 0x01A2;
8067 tf_number_of_states, // constexpr inline uint16_t number_of_states = 0x01A3;
8068 tf_war_score, // constexpr inline uint16_t war_score = 0x01A4;
8069 tf_is_releasable_vassal_from, // constexpr inline uint16_t is_releasable_vassal_from = 0x01A5;
8070 tf_is_releasable_vassal_other, // constexpr inline uint16_t is_releasable_vassal_other = 0x01A6;
8071 tf_has_recent_imigration, // constexpr inline uint16_t has_recent_imigration = 0x01A7;
8072 tf_province_control_days, // constexpr inline uint16_t province_control_days = 0x01A8;
8073 tf_is_disarmed, // constexpr inline uint16_t is_disarmed = 0x01A9;
8074 tf_big_producer, // constexpr inline uint16_t big_producer = 0x01AA;
8075 tf_someone_can_form_union_tag_from, // constexpr inline uint16_t someone_can_form_union_tag_from = 0x01AB;
8076 tf_someone_can_form_union_tag_other, // constexpr inline uint16_t someone_can_form_union_tag_other = 0x01AC;
8077 tf_social_movement_strength, // constexpr inline uint16_t social_movement_strength = 0x01AD;
8078 tf_political_movement_strength, // constexpr inline uint16_t political_movement_strength = 0x01AE;
8079 tf_can_build_factory_in_capital_state, // constexpr inline uint16_t can_build_factory_in_capital_state = 0x01AF;
8080 tf_social_movement, // constexpr inline uint16_t social_movement = 0x01B0;
8081 tf_political_movement, // constexpr inline uint16_t political_movement = 0x01B1;
8082 tf_has_cultural_sphere, // constexpr inline uint16_t has_cultural_sphere = 0x01B2;
8083 tf_world_wars_enabled, // constexpr inline uint16_t world_wars_enabled = 0x01B3;
8084 tf_has_pop_culture_pop_this_pop, // constexpr inline uint16_t has_pop_culture_pop_this_pop = 0x01B4;
8085 tf_has_pop_culture_state_this_pop, // constexpr inline uint16_t has_pop_culture_state_this_pop = 0x01B5;
8086 tf_has_pop_culture_province_this_pop, // constexpr inline uint16_t has_pop_culture_province_this_pop = 0x01B6;
8087 tf_has_pop_culture_nation_this_pop, // constexpr inline uint16_t has_pop_culture_nation_this_pop = 0x01B7;
8088 tf_has_pop_culture_pop, // constexpr inline uint16_t has_pop_culture_pop = 0x01B8;
8089 tf_has_pop_culture_state, // constexpr inline uint16_t has_pop_culture_state = 0x01B9;
8090 tf_has_pop_culture_province, // constexpr inline uint16_t has_pop_culture_province = 0x01BA;
8091 tf_has_pop_culture_nation, // constexpr inline uint16_t has_pop_culture_nation = 0x01BB;
8092 tf_has_pop_religion_pop_this_pop, // constexpr inline uint16_t has_pop_religion_pop_this_pop = 0x01BC;
8093 tf_has_pop_religion_state_this_pop, // constexpr inline uint16_t has_pop_religion_state_this_pop = 0x01BD;
8094 tf_has_pop_religion_province_this_pop, // constexpr inline uint16_t has_pop_religion_province_this_pop = 0x01BE;
8095 tf_has_pop_religion_nation_this_pop, // constexpr inline uint16_t has_pop_religion_nation_this_pop = 0x01BF;
8096 tf_has_pop_religion_pop, // constexpr inline uint16_t has_pop_religion_pop = 0x01C0;
8097 tf_has_pop_religion_state, // constexpr inline uint16_t has_pop_religion_state = 0x01C1;
8098 tf_has_pop_religion_province, // constexpr inline uint16_t has_pop_religion_province = 0x01C2;
8099 tf_has_pop_religion_nation, // constexpr inline uint16_t has_pop_religion_nation = 0x01C3;
8100 tf_life_needs, // constexpr inline uint16_t life_needs = 0x01C4;
8101 tf_everyday_needs, // constexpr inline uint16_t everyday_needs = 0x01C5;
8102 tf_luxury_needs, // constexpr inline uint16_t luxury_needs = 0x01C6;
8103 tf_consciousness_pop, // constexpr inline uint16_t consciousness_pop = 0x01C7;
8104 tf_consciousness_province, // constexpr inline uint16_t consciousness_province = 0x01C8;
8105 tf_consciousness_state, // constexpr inline uint16_t consciousness_state = 0x01C9;
8106 tf_consciousness_nation, // constexpr inline uint16_t consciousness_nation = 0x01CA;
8107 tf_literacy_pop, // constexpr inline uint16_t literacy_pop = 0x01CB;
8108 tf_literacy_province, // constexpr inline uint16_t literacy_province = 0x01CC;
8109 tf_literacy_state, // constexpr inline uint16_t literacy_state = 0x01CD;
8110 tf_literacy_nation, // constexpr inline uint16_t literacy_nation = 0x01CE;
8111 tf_militancy_pop, // constexpr inline uint16_t militancy_pop = 0x01CF;
8112 tf_militancy_province, // constexpr inline uint16_t militancy_province = 0x01D0;
8113 tf_militancy_state, // constexpr inline uint16_t militancy_state = 0x01D1;
8114 tf_militancy_nation, // constexpr inline uint16_t militancy_nation = 0x01D2;
8115 tf_military_spending_pop, // constexpr inline uint16_t military_spending_pop = 0x01D3;
8116 tf_military_spending_province, // constexpr inline uint16_t military_spending_province = 0x01D4;
8117 tf_military_spending_state, // constexpr inline uint16_t military_spending_state = 0x01D5;
8118 tf_military_spending_nation, // constexpr inline uint16_t military_spending_nation = 0x01D6;
8119 tf_administration_spending_pop, // constexpr inline uint16_t administration_spending_pop = 0x01D7;
8120 tf_administration_spending_province, // constexpr inline uint16_t administration_spending_province = 0x01D8;
8121 tf_administration_spending_state, // constexpr inline uint16_t administration_spending_state = 0x01D9;
8122 tf_administration_spending_nation, // constexpr inline uint16_t administration_spending_nation = 0x01DA;
8123 tf_education_spending_pop, // constexpr inline uint16_t education_spending_pop = 0x01DB;
8124 tf_education_spending_province, // constexpr inline uint16_t education_spending_province = 0x01DC;
8125 tf_education_spending_state, // constexpr inline uint16_t education_spending_state = 0x01DD;
8126 tf_education_spending_nation, // constexpr inline uint16_t education_spending_nation = 0x01DE;
8127 tf_trade_goods_in_state_state, // constexpr inline uint16_t trade_goods_in_state_state = 0x01DF;
8128 tf_trade_goods_in_state_province, // constexpr inline uint16_t trade_goods_in_state_province = 0x01E0;
8129 tf_has_flashpoint, // constexpr inline uint16_t has_flashpoint = 0x01E1;
8130 tf_flashpoint_tension, // constexpr inline uint16_t flashpoint_tension = 0x01E2;
8131 tf_crisis_exist, // constexpr inline uint16_t crisis_exist = 0x01E3;
8132 tf_is_liberation_crisis, // constexpr inline uint16_t is_liberation_crisis = 0x01E4;
8133 tf_is_claim_crisis, // constexpr inline uint16_t is_claim_crisis = 0x01E5;
8134 tf_crisis_temperature, // constexpr inline uint16_t crisis_temperature = 0x01E6;
8135 tf_involved_in_crisis_pop, // constexpr inline uint16_t involved_in_crisis_pop = 0x01E7;
8136 tf_involved_in_crisis_nation, // constexpr inline uint16_t involved_in_crisis_nation = 0x01E8;
8137 tf_rich_strata_life_needs_nation, // constexpr inline uint16_t rich_strata_life_needs_nation = 0x01E9;
8138 tf_rich_strata_life_needs_state, // constexpr inline uint16_t rich_strata_life_needs_state = 0x01EA;
8139 tf_rich_strata_life_needs_province, // constexpr inline uint16_t rich_strata_life_needs_province = 0x01EB;
8140 tf_rich_strata_life_needs_pop, // constexpr inline uint16_t rich_strata_life_needs_pop = 0x01EC;
8141 tf_rich_strata_everyday_needs_nation, // constexpr inline uint16_t rich_strata_everyday_needs_nation = 0x01ED;
8142 tf_rich_strata_everyday_needs_state, // constexpr inline uint16_t rich_strata_everyday_needs_state = 0x01EE;
8143 tf_rich_strata_everyday_needs_province, // constexpr inline uint16_t rich_strata_everyday_needs_province = 0x01EF;
8144 tf_rich_strata_everyday_needs_pop, // constexpr inline uint16_t rich_strata_everyday_needs_pop = 0x01F0;
8145 tf_rich_strata_luxury_needs_nation, // constexpr inline uint16_t rich_strata_luxury_needs_nation = 0x01F1;
8146 tf_rich_strata_luxury_needs_state, // constexpr inline uint16_t rich_strata_luxury_needs_state = 0x01F2;
8147 tf_rich_strata_luxury_needs_province, // constexpr inline uint16_t rich_strata_luxury_needs_province = 0x01F3;
8148 tf_rich_strata_luxury_needs_pop, // constexpr inline uint16_t rich_strata_luxury_needs_pop = 0x01F4;
8149 tf_middle_strata_life_needs_nation, // constexpr inline uint16_t middle_strata_life_needs_nation = 0x01F5;
8150 tf_middle_strata_life_needs_state, // constexpr inline uint16_t middle_strata_life_needs_state = 0x01F6;
8151 tf_middle_strata_life_needs_province, // constexpr inline uint16_t middle_strata_life_needs_province = 0x01F7;
8152 tf_middle_strata_life_needs_pop, // constexpr inline uint16_t middle_strata_life_needs_pop = 0x01F8;
8153 tf_middle_strata_everyday_needs_nation, // constexpr inline uint16_t middle_strata_everyday_needs_nation = 0x01F9;
8154 tf_middle_strata_everyday_needs_state, // constexpr inline uint16_t middle_strata_everyday_needs_state = 0x01FA;
8155 tf_middle_strata_everyday_needs_province, // constexpr inline uint16_t middle_strata_everyday_needs_province = 0x01FB;
8156 tf_middle_strata_everyday_needs_pop, // constexpr inline uint16_t middle_strata_everyday_needs_pop = 0x01FC;
8157 tf_middle_strata_luxury_needs_nation, // constexpr inline uint16_t middle_strata_luxury_needs_nation = 0x01FD;
8158 tf_middle_strata_luxury_needs_state, // constexpr inline uint16_t middle_strata_luxury_needs_state = 0x01FE;
8159 tf_middle_strata_luxury_needs_province, // constexpr inline uint16_t middle_strata_luxury_needs_province = 0x01FF;
8160 tf_middle_strata_luxury_needs_pop, // constexpr inline uint16_t middle_strata_luxury_needs_pop = 0x0200;
8161 tf_poor_strata_life_needs_nation, // constexpr inline uint16_t poor_strata_life_needs_nation = 0x0201;
8162 tf_poor_strata_life_needs_state, // constexpr inline uint16_t poor_strata_life_needs_state = 0x0202;
8163 tf_poor_strata_life_needs_province, // constexpr inline uint16_t poor_strata_life_needs_province = 0x0203;
8164 tf_poor_strata_life_needs_pop, // constexpr inline uint16_t poor_strata_life_needs_pop = 0x0204;
8165 tf_poor_strata_everyday_needs_nation, // constexpr inline uint16_t poor_strata_everyday_needs_nation = 0x0205;
8166 tf_poor_strata_everyday_needs_state, // constexpr inline uint16_t poor_strata_everyday_needs_state = 0x0206;
8167 tf_poor_strata_everyday_needs_province, // constexpr inline uint16_t poor_strata_everyday_needs_province = 0x0207;
8168 tf_poor_strata_everyday_needs_pop, // constexpr inline uint16_t poor_strata_everyday_needs_pop = 0x0208;
8169 tf_poor_strata_luxury_needs_nation, // constexpr inline uint16_t poor_strata_luxury_needs_nation = 0x0209;
8170 tf_poor_strata_luxury_needs_state, // constexpr inline uint16_t poor_strata_luxury_needs_state = 0x020A;
8171 tf_poor_strata_luxury_needs_province, // constexpr inline uint16_t poor_strata_luxury_needs_province = 0x020B;
8172 tf_poor_strata_luxury_needs_pop, // constexpr inline uint16_t poor_strata_luxury_needs_pop = 0x020C;
8173 tf_diplomatic_influence_tag, // constexpr inline uint16_t diplomatic_influence_tag = 0x020D;
8174 tf_diplomatic_influence_this_nation, // constexpr inline uint16_t diplomatic_influence_this_nation = 0x020E;
8175 tf_diplomatic_influence_this_province, // constexpr inline uint16_t diplomatic_influence_this_province = 0x020F;
8176 tf_diplomatic_influence_from_nation, // constexpr inline uint16_t diplomatic_influence_from_nation = 0x0210;
8177 tf_diplomatic_influence_from_province, // constexpr inline uint16_t diplomatic_influence_from_province = 0x0211;
8178 tf_pop_unemployment_nation, // constexpr inline uint16_t pop_unemployment_nation = 0x0212;
8179 tf_pop_unemployment_state, // constexpr inline uint16_t pop_unemployment_state = 0x0213;
8180 tf_pop_unemployment_province, // constexpr inline uint16_t pop_unemployment_province = 0x0214;
8181 tf_pop_unemployment_pop, // constexpr inline uint16_t pop_unemployment_pop = 0x0215;
8182 tf_pop_unemployment_nation_this_pop, // constexpr inline uint16_t pop_unemployment_nation_this_pop = 0x0216;
8183 tf_pop_unemployment_state_this_pop, // constexpr inline uint16_t pop_unemployment_state_this_pop = 0x0217;
8184 tf_pop_unemployment_province_this_pop, // constexpr inline uint16_t pop_unemployment_province_this_pop = 0x0218;
8185 tf_relation_tag, // constexpr inline uint16_t relation_tag = 0x0219;
8186 tf_relation_this_nation, // constexpr inline uint16_t relation_this_nation = 0x021A;
8187 tf_relation_this_province, // constexpr inline uint16_t relation_this_province = 0x021B;
8188 tf_relation_from_nation, // constexpr inline uint16_t relation_from_nation = 0x021C;
8189 tf_relation_from_province, // constexpr inline uint16_t relation_from_province = 0x021D;
8190 tf_check_variable, // constexpr inline uint16_t check_variable = 0x021E;
8191 tf_upper_house, // constexpr inline uint16_t upper_house = 0x021F;
8192 tf_unemployment_by_type_nation, // constexpr inline uint16_t unemployment_by_type_nation = 0x0220;
8193 tf_unemployment_by_type_state, // constexpr inline uint16_t unemployment_by_type_state = 0x0221;
8194 tf_unemployment_by_type_province, // constexpr inline uint16_t unemployment_by_type_province = 0x0222;
8195 tf_unemployment_by_type_pop, // constexpr inline uint16_t unemployment_by_type_pop = 0x0223;
8196 tf_party_loyalty_nation_province_id, // constexpr inline uint16_t party_loyalty_nation_province_id = 0x0224;
8197 tf_party_loyalty_from_nation_province_id, // constexpr inline uint16_t party_loyalty_from_nation_province_id = 0x0225;
8198 tf_party_loyalty_province_province_id, // constexpr inline uint16_t party_loyalty_province_province_id = 0x0226;
8199 tf_party_loyalty_from_province_province_id, // constexpr inline uint16_t party_loyalty_from_province_province_id = 0x0227;
8200 tf_party_loyalty_nation_from_province, // constexpr inline uint16_t party_loyalty_nation_from_province = 0x0228;
8201 tf_party_loyalty_from_nation_scope_province, // constexpr inline uint16_t party_loyalty_from_nation_scope_province = 0x0229;
8202 tf_can_build_in_province_railroad_no_limit_from_nation, // constexpr inline uint16_t
8203 // can_build_in_province_railroad_no_limit_from_nation = 0x022A;
8205 // can_build_in_province_railroad_yes_limit_from_nation = 0x022B;
8206 tf_can_build_in_province_railroad_no_limit_this_nation, // constexpr inline uint16_t
8207 // can_build_in_province_railroad_no_limit_this_nation = 0x022C;
8209 // can_build_in_province_railroad_yes_limit_this_nation = 0x022D;
8210 tf_can_build_in_province_fort_no_limit_from_nation, // constexpr inline uint16_t
8211 // can_build_in_province_fort_no_limit_from_nation = 0x022E;
8212 tf_can_build_in_province_fort_yes_limit_from_nation, // constexpr inline uint16_t
8213 // can_build_in_province_fort_yes_limit_from_nation = 0x022F;
8214 tf_can_build_in_province_fort_no_limit_this_nation, // constexpr inline uint16_t
8215 // can_build_in_province_fort_no_limit_this_nation = 0x0230;
8216 tf_can_build_in_province_fort_yes_limit_this_nation, // constexpr inline uint16_t
8217 // can_build_in_province_fort_yes_limit_this_nation = 0x0231;
8219 // can_build_in_province_naval_base_no_limit_from_nation = 0x0232;
8221 // can_build_in_province_naval_base_yes_limit_from_nation = 0x0233;
8223 // can_build_in_province_naval_base_no_limit_this_nation = 0x0234;
8225 // can_build_in_province_naval_base_yes_limit_this_nation = 0x0235;
8227 // can_build_railway_in_capital_yes_whole_state_yes_limit = 0x0236;
8229 // can_build_railway_in_capital_yes_whole_state_no_limit = 0x0237;
8231 // can_build_railway_in_capital_no_whole_state_yes_limit = 0x0238;
8233 // can_build_railway_in_capital_no_whole_state_no_limit = 0x0239;
8234 tf_can_build_fort_in_capital_yes_whole_state_yes_limit, // constexpr inline uint16_t
8235 // can_build_fort_in_capital_yes_whole_state_yes_limit = 0x023A;
8236 tf_can_build_fort_in_capital_yes_whole_state_no_limit, // constexpr inline uint16_t
8237 // can_build_fort_in_capital_yes_whole_state_no_limit = 0x023B;
8238 tf_can_build_fort_in_capital_no_whole_state_yes_limit, // constexpr inline uint16_t
8239 // can_build_fort_in_capital_no_whole_state_yes_limit = 0x023C;
8240 tf_can_build_fort_in_capital_no_whole_state_no_limit, // constexpr inline uint16_t
8241 // can_build_fort_in_capital_no_whole_state_no_limit = 0x023D;
8242 tf_work_available_nation, // constexpr inline uint16_t work_available_nation = 0x023E;
8243 tf_work_available_state, // constexpr inline uint16_t work_available_state = 0x023F;
8244 tf_work_available_province, // constexpr inline uint16_t work_available_province = 0x0240;
8245 tf_unused_1, //compensate for missing slot
8246 tf_variable_ideology_name_nation, // constexpr inline uint16_t variable_ideology_name_nation = 0x0241;
8247 tf_variable_ideology_name_state, // constexpr inline uint16_t variable_ideology_name_state = 0x0242;
8248 tf_variable_ideology_name_province, // constexpr inline uint16_t variable_ideology_name_province = 0x0243;
8249 tf_variable_ideology_name_pop, // constexpr inline uint16_t variable_ideology_name_pop = 0x0244;
8250 tf_variable_issue_name_nation, // constexpr inline uint16_t variable_issue_name_nation = 0x0245;
8251 tf_variable_issue_name_state, // constexpr inline uint16_t variable_issue_name_state = 0x0246;
8252 tf_variable_issue_name_province, // constexpr inline uint16_t variable_issue_name_province = 0x0247;
8253 tf_variable_issue_name_pop, // constexpr inline uint16_t variable_issue_name_pop = 0x0248;
8254 tf_variable_issue_group_name_nation, // constexpr inline uint16_t variable_issue_group_name_nation = 0x0249;
8255 tf_variable_issue_group_name_state, // constexpr inline uint16_t variable_issue_group_name_state = 0x024A;
8256 tf_variable_issue_group_name_province, // constexpr inline uint16_t variable_issue_group_name_province = 0x024B;
8257 tf_variable_issue_group_name_pop, // constexpr inline uint16_t variable_issue_group_name_pop = 0x024C;
8258 tf_variable_pop_type_name_nation, // constexpr inline uint16_t variable_pop_type_name_nation = 0x024D;
8259 tf_variable_pop_type_name_state, // constexpr inline uint16_t variable_pop_type_name_state = 0x024E;
8260 tf_variable_pop_type_name_province, // constexpr inline uint16_t variable_pop_type_name_province = 0x024F;
8261 tf_variable_pop_type_name_pop, // constexpr inline uint16_t variable_pop_type_name_pop = 0x0250;
8262 tf_variable_good_name, // constexpr inline uint16_t variable_good_name = 0x0251;
8263 tf_strata_middle, // constexpr inline uint16_t strata_middle = 0x0252;
8264 tf_strata_poor, // constexpr inline uint16_t strata_poor = 0x0253;
8265 tf_party_loyalty_from_province_scope_province, // constexpr inline uint16_t party_loyalty_from_province_scope_province =
8266 // 0x0254;
8267 tf_can_build_factory_nation, // constexpr inline uint16_t can_build_factory_nation = 0x0255;
8268 tf_can_build_factory_province, // constexpr inline uint16_t can_build_factory_province = 0x0256;
8269 tf_nationalvalue_pop, // constexpr inline uint16_t nationalvalue_pop = 0x0257;
8270 tf_nationalvalue_province, // constexpr inline uint16_t nationalvalue_province = 0x0258;
8271 tf_war_exhaustion_pop, // constexpr inline uint16_t war_exhaustion_pop = 0x0259;
8272 tf_has_culture_core_province_this_pop, // constexpr inline uint16_t has_culture_core_province_this_pop = 0x025A;
8273 tf_tag_pop, // constexpr inline uint16_t tag_pop = 0x025B;
8274 tf_has_country_flag, // constexpr inline uint16_t has_country_flag_pop = 0x025C;
8275 tf_has_country_flag, // constexpr inline uint16_t has_country_flag_province = 0x025D;
8276 tf_has_country_modifier_province, // constexpr inline uint16_t has_country_modifier_province = 0x025E;
8277 tf_religion_nation, // constexpr inline uint16_t religion_nation = 0x025F;
8278 tf_religion_nation_reb, // constexpr inline uint16_t religion_nation_reb = 0x0260;
8279 tf_religion_nation_from_nation, // constexpr inline uint16_t religion_nation_from_nation = 0x0261;
8280 tf_religion_nation_this_nation, // constexpr inline uint16_t religion_nation_this_nation = 0x0262;
8281 tf_religion_nation_this_state, // constexpr inline uint16_t religion_nation_this_state = 0x0263;
8282 tf_religion_nation_this_province, // constexpr inline uint16_t religion_nation_this_province = 0x0264;
8283 tf_religion_nation_this_pop, // constexpr inline uint16_t religion_nation_this_pop = 0x0265;
8284 tf_war_exhaustion_province, // constexpr inline uint16_t war_exhaustion_province = 0x0266;
8285 tf_is_greater_power_province, // constexpr inline uint16_t is_greater_power_province = 0x0267;
8286 tf_is_cultural_union_pop_this_pop, // constexpr inline uint16_t is_cultural_union_pop_this_pop = 0x0268;
8287 tf_has_building_factory, // constexpr inline uint16_t has_building_factory = 0x0269;
8288 tf_has_building_state_from_province, // constexpr inline uint16_t has_building_state_from_province = 0x026A;
8289 tf_has_building_factory_from_province, // constexpr inline uint16_t has_building_factory_from_province = 0x026B;
8290 tf_party_loyalty_generic, // constexpr inline uint16_t party_loyalty_generic = 0x026C;
8291 tf_invention, // constexpr inline uint16_t invention = 0x026D;
8292 tf_political_movement_from_reb, // constexpr inline uint16_t political_movement_from_reb = 0x026E;
8293 tf_social_movement_from_reb, // constexpr inline uint16_t social_movement_from_reb = 0x026F;
8294 tf_is_next_rreform_nation, // constexpr inline uint16_t is_next_rreform_nation = 0x0270;
8295 tf_is_next_rreform_pop, // constexpr inline uint16_t is_next_rreform_pop = 0x0271;
8296 tf_variable_reform_group_name_nation, // constexpr inline uint16_t variable_reform_group_name_nation = 0x0272;
8297 tf_variable_reform_group_name_state, // constexpr inline uint16_t variable_reform_group_name_state = 0x0273;
8298 tf_variable_reform_group_name_province, // constexpr inline uint16_t variable_reform_group_name_province = 0x0274;
8299 tf_variable_reform_group_name_pop, // constexpr inline uint16_t variable_reform_group_name_pop = 0x0275;
8300 tf_is_disarmed_pop, //constexpr inline uint16_t is_disarmed_pop = 0x0276;
8301 tf_owned_by_tag, //constexpr inline uint16_t owned_by_state_tag = 0x0277;
8302 tf_owned_by_from_nation, //constexpr inline uint16_t owned_by_state_from_nation = 0x0278;
8303 tf_owned_by_this_nation, //constexpr inline uint16_t owned_by_state_this_nation = 0x0279;
8304 tf_owned_by_this_province, //constexpr inline uint16_t owned_by_state_this_province = 0x027A;
8305 tf_owned_by_this_state, //constexpr inline uint16_t owned_by_state_this_state = 0x027B;
8306 tf_owned_by_this_pop, //constexpr inline uint16_t owned_by_state_this_pop = 0x027C;
8307 tf_units_in_province_tag, // constexpr inline uint16_t units_in_province_tag = 0x027D;
8308 tf_primary_culture_from_nation, //constexpr inline uint16_t primary_culture_from_nation = 0x027E;
8309 tf_primary_culture_from_province, //constexpr inline uint16_t primary_culture_from_province = 0x027F;
8310 tf_neighbour_this_province, //constexpr inline uint16_t neighbour_this_province = 0x0280;
8311 tf_neighbour_from_province, //constexpr inline uint16_t neighbour_from_province = 0x0281;
8312 tf_technology, //constexpr inline uint16_t technology_province = 0x0282;
8313 tf_invention, //constexpr inline uint16_t invention_province = 0x0283;
8314 tf_brigades_compare_province_this, //constexpr inline uint16_t brigades_compare_province_this = 0x0284;
8315 tf_brigades_compare_province_from, //constexpr inline uint16_t brigades_compare_province_from = 0x0285;
8316 tf_is_accepted_culture_nation_this_pop, //constexpr inline uint16_t is_accepted_culture_nation_this_pop = 0x0286;
8317 tf_is_accepted_culture_nation_this_nation, //constexpr inline uint16_t is_accepted_culture_nation_this_nation = 0x0287;
8318 tf_is_accepted_culture_nation_this_state, //constexpr inline uint16_t is_accepted_culture_nation_this_state = 0x0288;
8319 tf_is_accepted_culture_nation_this_province, //constexpr inline uint16_t is_accepted_culture_nation_this_province = 0x0289;
8320 tf_is_accepted_culture_state_this_pop, //constexpr inline uint16_t is_accepted_culture_state_this_pop = 0x028A;
8321 tf_is_accepted_culture_state_this_nation, //constexpr inline uint16_t is_accepted_culture_state_this_nation = 0x028B;
8322 tf_is_accepted_culture_state_this_state, //constexpr inline uint16_t is_accepted_culture_state_this_state = 0x028C;
8323 tf_is_accepted_culture_state_this_province, //constexpr inline uint16_t is_accepted_culture_state_this_province = 0x028D;
8324 tf_is_accepted_culture_province_this_pop, //constexpr inline uint16_t is_accepted_culture_province_this_pop = 0x028E;
8325 tf_is_accepted_culture_province_this_nation, //constexpr inline uint16_t is_accepted_culture_province_this_nation = 0x028F;
8326 tf_is_accepted_culture_province_this_state, //constexpr inline uint16_t is_accepted_culture_province_this_state = 0x0290;
8327 tf_is_accepted_culture_province_this_province, //constexpr inline uint16_t is_accepted_culture_province_this_province = 0x0291;
8328 tf_is_accepted_culture_pop_this_pop, //constexpr inline uint16_t is_accepted_culture_pop_this_pop = 0x0292;
8329 tf_is_accepted_culture_pop_this_nation, //constexpr inline uint16_t is_accepted_culture_pop_this_nation = 0x0293;
8330 tf_is_accepted_culture_pop_this_state, //constexpr inline uint16_t is_accepted_culture_pop_this_state = 0x0294;
8331 tf_is_accepted_culture_pop_this_province, //constexpr inline uint16_t is_accepted_culture_pop_this_province = 0x0295;
8332 tf_culture_group_province, //constexpr inline uint16_t culture_group_province = 0x0296;
8333 tf_culture_group_state, //constexpr inline uint16_t culture_group_state = 0x0297;
8334 tf_have_core_in_nation_tag, //constexpr inline uint16_t have_core_in_nation_tag = 0x0298;
8335 tf_have_core_in_nation_this, //constexpr inline uint16_t have_core_in_nation_this = 0x0299;
8336 tf_have_core_in_nation_from, //constexpr inline uint16_t have_core_in_nation_from = 0x029A;
8337 tf_owns, //constexpr inline uint16_t owns_province = 0x029B;
8338 tf_empty, //constexpr inline uint16_t empty_state = 0x029C;
8339 tf_is_overseas_pop, //constexpr inline uint16_t is_overseas_pop = 0x029D;
8340 tf_primary_culture_pop, //constexpr inline uint16_t primary_culture_pop = 0x029E;
8341 tf_plurality_pop, //constexpr inline uint16_t plurality_pop = 0x029F;
8342 tf_is_overseas, //constexpr inline uint16_t is_overseas_state = 0x02A0;
8343 tf_stronger_army_than_tag, //constexpr inline uint16_t stronger_army_than_tag = 0x02A1;
8344 tf_region, //constexpr inline uint16_t region_state = 0x02A2;
8345 tf_region_pop, //constexpr inline uint16_t region_pop = 0x02A3;
8346 tf_owns_region, //constexpr inline uint16_t owns_region = 0x02A4;
8347 tf_is_core_tag, //constexpr inline uint16_t is_core_state_tag = 0x02A5;
8348 tf_country_units_in_state_from, //constexpr inline uint16_t country_units_in_state_from = 0x02A6;
8349 tf_country_units_in_state_this_nation, //constexpr inline uint16_t country_units_in_state_this_nation = 0x02A7;
8350 tf_country_units_in_state_this_province, //constexpr inline uint16_t country_units_in_state_this_province = 0x02A8;
8351 tf_country_units_in_state_this_state, //constexpr inline uint16_t country_units_in_state_this_state = 0x02A9;
8352 tf_country_units_in_state_this_pop, //constexpr inline uint16_t country_units_in_state_this_pop = 0x02AA;
8353 tf_country_units_in_state_tag, //constexpr inline uint16_t country_units_in_state_tag = 0x02AB;
8354 tf_stronger_army_than_this_nation, //constexpr inline uint16_t stronger_army_than_this_nation = 0x02AC;
8355 tf_stronger_army_than_this_state, //constexpr inline uint16_t stronger_army_than_this_state = 0x02AD;
8356 tf_stronger_army_than_this_province, //constexpr inline uint16_t stronger_army_than_this_province = 0x02AE;
8357 tf_stronger_army_than_this_pop, //constexpr inline uint16_t stronger_army_than_this_pop = 0x02AF;
8358 tf_stronger_army_than_from_nation, //constexpr inline uint16_t stronger_army_than_from_nation = 0x02B0;
8359 tf_stronger_army_than_from_province, //constexpr inline uint16_t stronger_army_than_from_province = 0x02B1;
8360 tf_flashpoint_tension, //constexpr inline uint16_t flashpoint_tension_province = 0x02B2;
8361 tf_is_colonial_pop, //constexpr inline uint16_t is_colonial_pop = 0x02B3;
8362 tf_has_country_flag, // constexpr inline uint16_t has_country_flag_state = 0x02B4;
8363 tf_rich_tax, //constexpr inline uint16_t rich_tax_pop = 0x02B5;
8364 tf_middle_tax, //constexpr inline uint16_t middle_tax_pop = 0x02B6;
8365 tf_poor_tax, //constexpr inline uint16_t poor_tax_pop = 0x02B7;
8366 tf_is_core_pop_tag, //constexpr inline uint16_t is_core_pop_tag = 0x02B8;
8367 tf_is_core_boolean, //constexpr inline uint16_t is_core_boolean = 0x02B9;
8368 tf_is_core_this_nation, //constexpr inline uint16_t is_core_state_this_nation = 0x02BA;
8369 tf_is_core_this_province, //constexpr inline uint16_t is_core_state_this_province = 0x02BB;
8370 tf_is_core_this_pop, //constexpr inline uint16_t is_core_state_this_pop = 0x02BC;
8371 tf_is_core_from_nation, //constexpr inline uint16_t is_core_state_from_nation = 0x02BD;
8372 tf_ruling_party_ideology_nation, //constexpr inline uint16_t ruling_party_ideology_province = 0x02BE;
8373 tf_money_province, //constexpr inline uint16_t money_province = 0x02BF;
8374 tf_is_our_vassal_province_tag, //constexpr inline uint16_t is_our_vassal_province_tag = 0x02C0;
8375 tf_is_our_vassal_province_from, //constexpr inline uint16_t is_our_vassal_province_from = 0x02C1;
8376 tf_is_our_vassal_province_this_nation, //constexpr inline uint16_t is_our_vassal_province_this_nation = 0x02C2;
8377 tf_is_our_vassal_province_this_province, //constexpr inline uint16_t is_our_vassal_province_this_province = 0x02C3;
8378 tf_is_our_vassal_province_this_state, //constexpr inline uint16_t is_our_vassal_province_this_state = 0x02C4;
8379 tf_is_our_vassal_province_this_pop, //constexpr inline uint16_t is_our_vassal_province_this_pop = 0x02C5;
8380 tf_vassal_of_province_tag, //constexpr inline uint16_t vassal_of_province_tag = 0x02C6;
8381 tf_vassal_of_province_from, //constexpr inline uint16_t vassal_of_province_from = 0x02C7;
8382 tf_vassal_of_province_this_nation, //constexpr inline uint16_t vassal_of_province_this_nation = 0x02C8;
8383 tf_vassal_of_province_this_province, //constexpr inline uint16_t vassal_of_province_this_province = 0x02C9;
8384 tf_vassal_of_province_this_state, //constexpr inline uint16_t vassal_of_province_this_state = 0x02CA;
8385 tf_vassal_of_province_this_pop, //constexpr inline uint16_t vassal_of_province_this_pop = 0x02CB;
8386 tf_relation_this_pop, //constexpr inline uint16_t relation_this_pop = 0x02CC;
8387 tf_has_recently_lost_war, //constexpr inline uint16_t has_recently_lost_war_pop = 0x02CD;
8388 tf_technology, //constexpr inline uint16_t technology_pop = 0x02CE;
8389 tf_invention, //constexpr inline uint16_t invention_pop = 0x02CF;
8390 tf_in_default_bool, //constexpr inline uint16_t in_default_bool = 0x02D0;
8391 tf_is_state_capital_pop, //constexpr inline uint16_t is_state_capital_pop = 0x02D1;
8392 tf_region_proper, //constexpr inline uint16_t region_proper = 0x02D2;
8393 tf_region_proper, //constexpr inline uint16_t region_proper_state = 0x02D3;
8394 tf_region_proper_pop, //constexpr inline uint16_t region_proper_pop = 0x02D4;
8395 tf_owns_region_proper, //constexpr inline uint16_t owns_region_proper = 0x02D5;
8396 tf_pop_majority_religion_nation_this_nation, //constexpr inline uint16_t pop_majority_religion_nation_this_nation = 0x02D6;
8397 tf_military_score_tag, //constexpr inline uint16_t military_score_tag = 0x02D7;
8398 tf_industrial_score_tag, //constexpr inline uint16_t industrial_score_tag = 0x02D8;
8399 tf_has_factories_nation, // constexpr inline uint16_t has_factories_state = 0x02D9;
8400 tf_is_coastal_state, // constexpr inline uint16_t is_coastal_state = 0x02DA;
8401 tf_has_building_bank, // constexpr inline uint16_t has_building_bank = 0x02DB;
8402 tf_has_building_university, // constexpr inline uint16_t has_building_university = 0x02DC;
8403 tf_test, // constexpr inline uint16_t test = 0x02DD;
8404 tf_unit_has_leader, //constexpr inline uint16_t unit_has_leader = 0x02DF
8405 tf_has_national_focus_state, //constexpr inline uint16_t has_national_focus_state = 0x02E0
8406 tf_has_national_focus_province, //constexpr inline uint16_t has_national_focus_province = 0x02E1
8407
8408 //
8409 // scopes
8410 //
8411
8412 tf_generic_scope, // constexpr uint16_t generic_scope = 0x0000; // or & and
8413 tf_x_neighbor_province_scope, // constexpr uint16_t x_neighbor_province_scope = 0x0001;
8414 tf_x_neighbor_country_scope_nation, // constexpr uint16_t x_neighbor_country_scope_nation = 0x0002;
8415 tf_x_neighbor_country_scope_pop, // constexpr uint16_t x_neighbor_country_scope_pop = 0x0003;
8416 tf_x_war_countries_scope_nation, // constexpr uint16_t x_war_countries_scope_nation = 0x0004;
8417 tf_x_war_countries_scope_pop, // constexpr uint16_t x_war_countries_scope_pop = 0x0005;
8418 tf_x_greater_power_scope, // constexpr uint16_t x_greater_power_scope = 0x0006;
8419 tf_x_owned_province_scope_state, // constexpr uint16_t x_owned_province_scope_state = 0x0007;
8420 tf_x_owned_province_scope_nation, // constexpr uint16_t x_owned_province_scope_nation = 0x0008;
8421 tf_x_core_scope_province, // constexpr uint16_t x_core_scope_province = 0x0009;
8422 tf_x_core_scope_nation, // constexpr uint16_t x_core_scope_nation = 0x000A;
8423 tf_x_state_scope, // constexpr uint16_t x_state_scope = 0x000B;
8424 tf_x_substate_scope, // constexpr uint16_t x_substate_scope = 0x000C;
8425 tf_x_sphere_member_scope, // constexpr uint16_t x_sphere_member_scope = 0x000D;
8426 tf_x_pop_scope_province, // constexpr uint16_t x_pop_scope_province = 0x000E;
8427 tf_x_pop_scope_state, // constexpr uint16_t x_pop_scope_state = 0x000F;
8428 tf_x_pop_scope_nation, // constexpr uint16_t x_pop_scope_nation = 0x0010;
8429 tf_x_provinces_in_variable_region, // constexpr uint16_t x_provinces_in_variable_region = 0x0011; // variable name
8430 tf_owner_scope_state, // constexpr uint16_t owner_scope_state = 0x0012;
8431 tf_owner_scope_province, // constexpr uint16_t owner_scope_province = 0x0013;
8432 tf_controller_scope, // constexpr uint16_t controller_scope = 0x0014;
8433 tf_location_scope, // constexpr uint16_t location_scope = 0x0015;
8434 tf_country_scope_state, // constexpr uint16_t country_scope_state = 0x0016;
8435 tf_country_scope_pop, // constexpr uint16_t country_scope_pop = 0x0017;
8436 tf_capital_scope, // constexpr uint16_t capital_scope = 0x0018;
8437 tf_this_scope_pop, // constexpr uint16_t this_scope_pop = 0x0019;
8438 tf_this_scope_nation, // constexpr uint16_t this_scope_nation = 0x001A;
8439 tf_this_scope_state, // constexpr uint16_t this_scope_state = 0x001B;
8440 tf_this_scope_province, // constexpr uint16_t this_scope_province = 0x001C;
8441 tf_from_scope_pop, // constexpr uint16_t from_scope_pop = 0x001D;
8442 tf_from_scope_nation, // constexpr uint16_t from_scope_nation = 0x001E;
8443 tf_from_scope_state, // constexpr uint16_t from_scope_state = 0x001F;
8444 tf_from_scope_province, // constexpr uint16_t from_scope_province = 0x0020;
8445 tf_sea_zone_scope, // constexpr uint16_t sea_zone_scope = 0x0021;
8446 tf_cultural_union_scope, // constexpr uint16_t cultural_union_scope = 0x0022;
8447 tf_overlord_scope, // constexpr uint16_t overlord_scope = 0x0023;
8448 tf_sphere_owner_scope, // constexpr uint16_t sphere_owner_scope = 0x0024;
8449 tf_independence_scope, // constexpr uint16_t independence_scope = 0x0025;
8450 tf_flashpoint_tag_scope, // constexpr uint16_t flashpoint_tag_scope = 0x0026;
8451 tf_crisis_state_scope, // constexpr uint16_t crisis_state_scope = 0x0027;
8452 tf_state_scope_pop, // constexpr uint16_t state_scope_pop = 0x0028;
8453 tf_state_scope_province, // constexpr uint16_t state_scope_province = 0x0029;
8454 tf_tag_scope, // constexpr uint16_t tag_scope = 0x002A; // variable name
8455 tf_integer_scope, // constexpr uint16_t integer_scope = 0x002B; // variable name
8456 tf_country_scope_nation, // constexpr uint16_t country_scope_nation = 0x002C;
8457 tf_country_scope_province, // constexpr uint16_t country_scope_province = 0x002D;
8458 tf_cultural_union_scope_pop, // constexpr uint16_t cultural_union_scope_pop = 0x002E;
8459 tf_capital_scope_province, // constexpr uint16_t capital_scope_province = 0x002F;
8460 tf_capital_scope_pop, //constexpr inline uint16_t capital_scope_pop = first_scope_code + 0x0030;
8461 tf_x_country_scope, //constexpr inline uint16_t x_country_scope = first_scope_code + 0x0031;
8462 tf_x_neighbor_province_scope_state, //constexpr inline uint16_t x_neighbor_province_scope_state = first_scope_code + 0x0032;
8463 tf_x_provinces_in_variable_region_proper, //constexpr inline uint16_t x_provinces_in_variable_region_proper = first_scope_code + 0x0033;
8464};
8465
8466// #define TRIGGER_DISPLAY_PARAMS uint16_t const* tval, sys::state& ws, text::columnar_layout& layout,
8467// int32_t primary_slot, int32_t this_slot, int32_t from_slot, int32_t indentation, bool show_condition
8468
8469void make_trigger_description(sys::state& ws, text::layout_base& layout, uint16_t const* tval, int32_t primary_slot,
8470 int32_t this_slot, int32_t from_slot, int32_t indentation, bool show_condition) {
8471 trigger_functions[*tval & trigger::code_mask](tval, ws, layout, primary_slot, this_slot, from_slot, indentation,
8472 show_condition);
8473}
8474
8475#undef TRIGGER_DISPLAY_PARAMS
8476
8477} // namespace trigger_tooltip
8478
8479void trigger_description(sys::state& state, text::layout_base& layout, dcon::trigger_key k, int32_t primary_slot,
8480 int32_t this_slot, int32_t from_slot) {
8481 if(!k)
8482 return;
8483
8484 trigger_tooltip::make_trigger_description(state, layout, state.trigger_data.data() + state.trigger_data_indices[k.index() + 1],
8485 primary_slot, this_slot, from_slot, 0, true);
8486}
8487
8488void multiplicative_value_modifier_description(sys::state& state, text::layout_base& layout, dcon::value_modifier_key modifier,
8489 int32_t primary_slot, int32_t this_slot, int32_t from_slot) {
8490 auto base = state.value_modifiers[modifier];
8491
8492 if(primary_slot != -1) {
8495 text::fp_two_places{trigger::evaluate_multiplicative_modifier(state, modifier, primary_slot, this_slot, from_slot)});
8496 auto box = text::open_layout_box(layout, 0);
8497 text::localised_format_box(state, layout, box, std::string_view("value_mod_product"), map);
8498 text::close_layout_box(layout, box);
8499 }
8500
8501 if(base.factor != 0.0f) {
8505 text::localised_format_box(state, layout, box, std::string_view("comwid_base"), map);
8506 text::close_layout_box(layout, box);
8507 }
8508
8509 for(uint32_t i = 0; i < base.segments_count; ++i) {
8510 auto seg = state.value_modifier_segments[base.first_segment_offset + i];
8511 if(seg.condition) {
8513 trigger_tooltip::make_condition(state.trigger_data.data() + state.trigger_data_indices[seg.condition.index() + 1], state, layout, primary_slot, this_slot, from_slot, trigger_tooltip::indentation_amount, false, box);
8514
8515 text::add_to_layout_box(state, layout, box, text::fp_two_places{seg.factor}, seg.factor >= 0.f ? text::text_color::green : text::text_color::red);
8516 text::close_layout_box(layout, box);
8517
8519 state.trigger_data.data() + state.trigger_data_indices[seg.condition.index() + 1], primary_slot, this_slot, from_slot,
8520 trigger_tooltip::indentation_amount * 2, primary_slot != -1);
8521 }
8522 }
8523}
8524
8525void additive_value_modifier_description(sys::state& state, text::layout_base& layout, dcon::value_modifier_key modifier,
8526 int32_t primary_slot, int32_t this_slot, int32_t from_slot) {
8527 auto base = state.value_modifiers[modifier];
8528
8529 if(base.factor == 1.0f) {
8532 text::fp_two_places{trigger::evaluate_additive_modifier(state, modifier, primary_slot, this_slot, from_slot)});
8533 auto box = text::open_layout_box(layout, 0);
8534 text::localised_format_box(state, layout, box, std::string_view("value_mod_sum"), map);
8535 text::close_layout_box(layout, box);
8536 } else {
8539 text::fp_two_places{ trigger::evaluate_additive_modifier(state, modifier, primary_slot, this_slot, from_slot) });
8541 text::fp_two_places{ base.factor });
8542 auto box = text::open_layout_box(layout, 0);
8543 text::localised_format_box(state, layout, box, std::string_view("value_mod_sum_factor"), map);
8544 text::close_layout_box(layout, box);
8545 }
8546
8547 {
8551 text::localised_format_box(state, layout, box, std::string_view("comwid_base"), map);
8552 text::close_layout_box(layout, box);
8553 }
8554
8555 for(uint32_t i = 0; i < base.segments_count; ++i) {
8556 auto seg = state.value_modifier_segments[base.first_segment_offset + i];
8557 if(seg.condition) {
8559 trigger_tooltip::make_condition(state.trigger_data.data() + state.trigger_data_indices[seg.condition.index() + 1], state, layout, primary_slot, this_slot, from_slot, trigger_tooltip::indentation_amount, false, box);
8560
8561 text::add_to_layout_box(state, layout, box, text::fp_two_places{seg.factor},
8562 seg.factor >= 0.f ? text::text_color::green : text::text_color::red);
8563 text::close_layout_box(layout, box);
8564
8566 state.trigger_data.data() + state.trigger_data_indices[seg.condition.index() + 1], primary_slot, this_slot, from_slot,
8567 trigger_tooltip::indentation_amount * 2, primary_slot != -1);
8568 }
8569 }
8570}
8571
8572} // namespace ui
#define TRIGGER_DISPLAY_PARAMS
dcon::nation_id owner_of_pop(sys::state const &state, dcon::pop_id pop_ids)
Definition: nations.cpp:69
void add_to_layout_box(sys::state &state, layout_base &dest, layout_box &box, embedded_flag ico)
Definition: text.cpp:1165
std::string resolve_string_substitution(sys::state &state, dcon::text_key source_text, substitution_map const &mp)
Definition: text.cpp:2113
layout_box open_layout_box(layout_base &dest, int32_t indent)
Definition: text.cpp:1799
void localised_format_box(sys::state &state, layout_base &dest, layout_box &box, std::string_view key, text::substitution_map const &sub)
Definition: text.cpp:1880
void add_to_substitution_map(substitution_map &mp, variable_type key, substitution value)
Definition: text.cpp:1068
std::string get_dynamic_state_name(sys::state &state, dcon::state_instance_id state_id)
Definition: text.cpp:837
ankerl::unordered_dense::map< uint32_t, substitution > substitution_map
Definition: text.hpp:794
std::string produce_simple_string(sys::state const &state, dcon::text_key id)
Definition: text.cpp:617
dcon::text_key get_name(sys::state &state, dcon::nation_id id)
Definition: text.cpp:880
void add_space_to_layout_box(sys::state &state, layout_base &dest, layout_box &box)
Definition: text.cpp:1788
void close_layout_box(columnar_layout &dest, layout_box &box)
Definition: text.cpp:1807
std::variant< std::string_view, dcon::text_key, dcon::province_id, dcon::state_instance_id, dcon::nation_id, dcon::national_identity_id, int64_t, fp_one_place, sys::date, std::monostate, fp_two_places, fp_three_places, fp_four_places, fp_currency, pretty_integer, fp_percentage, fp_percentage_one_place, int_percentage, int_wholenum, dcon::state_definition_id, embedded_icon, embedded_flag, embedded_unit_icon > substitution
Definition: text.hpp:793
int32_t to_generic(dcon::province_id v)
Definition: triggers.hpp:12
dcon::state_instance_id to_state(int32_t v)
Definition: triggers.hpp:136
constexpr uint16_t code_mask
int32_t get_trigger_scope_payload_size(uint16_t const *data)
constexpr uint16_t is_disjunctive_scope
dcon::pop_id to_pop(int32_t v)
Definition: triggers.hpp:120
dcon::province_id to_prov(int32_t v)
Definition: triggers.hpp:88
int32_t read_int32_t_from_payload(uint16_t const *data)
Definition: triggers.cpp:132
bool evaluate(sys::state &state, dcon::trigger_key key, int32_t primary, int32_t this_slot, int32_t from_slot)
Definition: triggers.cpp:5810
dcon::rebel_faction_id to_rebel(int32_t v)
Definition: triggers.hpp:152
constexpr uint16_t association_gt
constexpr uint16_t association_le
float read_float_from_payload(uint16_t const *data)
Definition: triggers.cpp:118
constexpr uint16_t association_ge
constexpr uint16_t association_mask
TRIGGER_BYTECODE_LIST constexpr uint16_t first_scope_code
float evaluate_additive_modifier(sys::state &state, dcon::value_modifier_key modifier, int32_t primary, int32_t this_slot, int32_t from_slot)
Definition: triggers.cpp:5741
dcon::nation_id to_nation(int32_t v)
Definition: triggers.hpp:104
constexpr uint16_t association_lt
constexpr uint16_t is_existence_scope
int32_t trigger_scope_data_payload(uint16_t code)
int32_t get_trigger_payload_size(uint16_t const *data)
float evaluate_multiplicative_modifier(sys::state &state, dcon::value_modifier_key modifier, int32_t primary, int32_t this_slot, int32_t from_slot)
Definition: triggers.cpp:5727
constexpr uint16_t association_ne
constexpr uint16_t association_eq
void tf_capital(TRIGGER_DISPLAY_PARAMS)
void tf_variable_issue_name_nation(TRIGGER_DISPLAY_PARAMS)
void tf_x_pop_scope_nation(TRIGGER_DISPLAY_PARAMS)
void tf_party_loyalty_generic(TRIGGER_DISPLAY_PARAMS)
void tf_is_accepted_culture_nation_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_culture_group_nation_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_recruited_percentage_pop(TRIGGER_DISPLAY_PARAMS)
void tf_neighbour_from_province(TRIGGER_DISPLAY_PARAMS)
void tf_continent_province(TRIGGER_DISPLAY_PARAMS)
void tf_brigades_compare_province_from(TRIGGER_DISPLAY_PARAMS)
void tf_strata_middle(TRIGGER_DISPLAY_PARAMS)
void tf_vassal_of_from(TRIGGER_DISPLAY_PARAMS)
void tf_tag_scope(TRIGGER_DISPLAY_PARAMS)
void tf_has_faction_nation(TRIGGER_DISPLAY_PARAMS)
void tf_political_movement(TRIGGER_DISPLAY_PARAMS)
void tf_someone_can_form_union_tag_from(TRIGGER_DISPLAY_PARAMS)
void tf_minorities_nation(TRIGGER_DISPLAY_PARAMS)
void tf_culture_pop(TRIGGER_DISPLAY_PARAMS)
void tf_country_units_in_state_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_primary_culture_nation_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_diplomatic_influence_tag(TRIGGER_DISPLAY_PARAMS)
void tf_pop_unemployment_state_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_is_cultural_union_this_self_pop(TRIGGER_DISPLAY_PARAMS)
void tf_total_pops_state(TRIGGER_DISPLAY_PARAMS)
void tf_has_leader(TRIGGER_DISPLAY_PARAMS)
void tf_middle_strata_life_needs_nation(TRIGGER_DISPLAY_PARAMS)
void tf_religion_nation(TRIGGER_DISPLAY_PARAMS)
void tf_nationalism(TRIGGER_DISPLAY_PARAMS)
void tf_x_provinces_in_variable_region_proper(TRIGGER_DISPLAY_PARAMS)
void tf_truce_with_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_religion_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_rich_tax(TRIGGER_DISPLAY_PARAMS)
void tf_unemployment_province(TRIGGER_DISPLAY_PARAMS)
void tf_literacy_state(TRIGGER_DISPLAY_PARAMS)
void tf_mobilisation_size(TRIGGER_DISPLAY_PARAMS)
void tf_minorities_province(TRIGGER_DISPLAY_PARAMS)
void tf_variable_ideology_name_state(TRIGGER_DISPLAY_PARAMS)
void tf_in_default_bool(TRIGGER_DISPLAY_PARAMS)
void tf_accepted_culture(TRIGGER_DISPLAY_PARAMS)
void tf_is_accepted_culture_province_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_constructing_cb_progress(TRIGGER_DISPLAY_PARAMS)
void tf_war_with_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_cultural_union_this_rebel(TRIGGER_DISPLAY_PARAMS)
void tf_controller_scope(TRIGGER_DISPLAY_PARAMS)
void tf_administration_spending_state(TRIGGER_DISPLAY_PARAMS)
void tf_ruling_party_ideology_nation(TRIGGER_DISPLAY_PARAMS)
void tf_military_score_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_poor_strata_luxury_needs_state(TRIGGER_DISPLAY_PARAMS)
void tf_total_num_of_ports(TRIGGER_DISPLAY_PARAMS)
void tf_constructing_cb_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_is_substate(TRIGGER_DISPLAY_PARAMS)
void tf_this_culture_union_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_always(TRIGGER_DISPLAY_PARAMS)
void tf_pop_majority_religion_province(TRIGGER_DISPLAY_PARAMS)
void tf_has_national_focus_province(TRIGGER_DISPLAY_PARAMS)
void tf_culture_group_province(TRIGGER_DISPLAY_PARAMS)
void tf_social_reform_want_pop(TRIGGER_DISPLAY_PARAMS)
void tf_culture_group_nation_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_is_blockaded(TRIGGER_DISPLAY_PARAMS)
void tf_is_possible_vassal(TRIGGER_DISPLAY_PARAMS)
void tf_in_default_tag(TRIGGER_DISPLAY_PARAMS)
void tf_rank(TRIGGER_DISPLAY_PARAMS)
void tf_casus_belli_from(TRIGGER_DISPLAY_PARAMS)
void tf_this_culture_union_tag(TRIGGER_DISPLAY_PARAMS)
void tf_x_neighbor_country_scope_pop(TRIGGER_DISPLAY_PARAMS)
void tf_is_sphere_leader_of_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_our_vassal_province_from(TRIGGER_DISPLAY_PARAMS)
void tf_education_spending_province(TRIGGER_DISPLAY_PARAMS)
void tf_rich_strata_militancy_state(TRIGGER_DISPLAY_PARAMS)
void tf_war_exhaustion_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_accepted_culture_pop_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_crisis_temperature(TRIGGER_DISPLAY_PARAMS)
void tf_in_default_from(TRIGGER_DISPLAY_PARAMS)
void tf_vassal_of_tag(TRIGGER_DISPLAY_PARAMS)
void tf_is_primary_culture_province_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_continent_nation_this(TRIGGER_DISPLAY_PARAMS)
void tf_substate_of_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_in_province_railroad_yes_limit_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_in_sphere_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_pop_majority_issue_province(TRIGGER_DISPLAY_PARAMS)
void tf_rich_strata_militancy_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_our_vassal_province_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_substate_of_tag(TRIGGER_DISPLAY_PARAMS)
void tf_truce_with_from(TRIGGER_DISPLAY_PARAMS)
void tf_has_factories_state(TRIGGER_DISPLAY_PARAMS)
void tf_num_of_cities_int(TRIGGER_DISPLAY_PARAMS)
void tf_alliance_with_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_owned_by_tag(TRIGGER_DISPLAY_PARAMS)
void tf_war_with_from(TRIGGER_DISPLAY_PARAMS)
void tf_controlled_by_reb(TRIGGER_DISPLAY_PARAMS)
constexpr void(* trigger_functions[])(TRIGGER_DISPLAY_PARAMS)
void tf_poor_strata_life_needs_province(TRIGGER_DISPLAY_PARAMS)
void tf_has_empty_adjacent_state_province(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_factory_pop(TRIGGER_DISPLAY_PARAMS)
void tf_has_national_minority_state(TRIGGER_DISPLAY_PARAMS)
void tf_relation_tag(TRIGGER_DISPLAY_PARAMS)
void tf_culture_group_pop_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_num_of_vassals_no_substates(TRIGGER_DISPLAY_PARAMS)
void tf_industrial_score_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_culture_nation(TRIGGER_DISPLAY_PARAMS)
void tf_big_producer(TRIGGER_DISPLAY_PARAMS)
void tf_is_slave_pop(TRIGGER_DISPLAY_PARAMS)
void tf_is_slave_province(TRIGGER_DISPLAY_PARAMS)
void tf_poor_strata_militancy_nation(TRIGGER_DISPLAY_PARAMS)
void tf_middle_strata_luxury_needs_nation(TRIGGER_DISPLAY_PARAMS)
void tf_country_scope_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_accepted_culture_nation_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_has_flashpoint(TRIGGER_DISPLAY_PARAMS)
void tf_has_pop_culture_nation_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_administration_spending_nation(TRIGGER_DISPLAY_PARAMS)
void tf_test(TRIGGER_DISPLAY_PARAMS)
void tf_is_releasable_vassal_other(TRIGGER_DISPLAY_PARAMS)
void tf_middle_strata_everyday_needs_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_core_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_rich_strata_luxury_needs_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_colonial_pop(TRIGGER_DISPLAY_PARAMS)
void tf_culture_has_union_tag_pop(TRIGGER_DISPLAY_PARAMS)
void tf_this_culture_union_this_union_pop(TRIGGER_DISPLAY_PARAMS)
void tf_culture_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_variable_pop_type_name_province(TRIGGER_DISPLAY_PARAMS)
void tf_has_pop_religion_province(TRIGGER_DISPLAY_PARAMS)
void tf_continent_pop_from(TRIGGER_DISPLAY_PARAMS)
void tf_strata_poor(TRIGGER_DISPLAY_PARAMS)
void tf_is_state_religion_pop(TRIGGER_DISPLAY_PARAMS)
void tf_alliance_with_tag(TRIGGER_DISPLAY_PARAMS)
void tf_x_greater_power_scope(TRIGGER_DISPLAY_PARAMS)
void tf_this_scope_pop(TRIGGER_DISPLAY_PARAMS)
void tf_culture_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_month(TRIGGER_DISPLAY_PARAMS)
void tf_military_access_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_neighbour_this(TRIGGER_DISPLAY_PARAMS)
void tf_is_liberation_crisis(TRIGGER_DISPLAY_PARAMS)
void tf_total_amount_of_ships(TRIGGER_DISPLAY_PARAMS)
void tf_is_sphere_leader_of_from(TRIGGER_DISPLAY_PARAMS)
void tf_is_ideology_enabled(TRIGGER_DISPLAY_PARAMS)
void tf_administration_spending_province(TRIGGER_DISPLAY_PARAMS)
void tf_continent_state_this(TRIGGER_DISPLAY_PARAMS)
void tf_is_primary_culture_province_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_revolt_percentage(TRIGGER_DISPLAY_PARAMS)
void tf_has_province_modifier(TRIGGER_DISPLAY_PARAMS)
void tf_country_units_in_state_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_stronger_army_than_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_middle_strata_luxury_needs_state(TRIGGER_DISPLAY_PARAMS)
void tf_culture_nation_reb(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_in_province_railroad_no_limit_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_culture_group_pop_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_variable_pop_type_name_state(TRIGGER_DISPLAY_PARAMS)
void tf_is_accepted_culture_state_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_middle_strata_life_needs_state(TRIGGER_DISPLAY_PARAMS)
void tf_consciousness_pop(TRIGGER_DISPLAY_PARAMS)
uint32_t ui_count_subtriggers(sys::state &ws, uint16_t const *source)
void tf_poor_strata_life_needs_pop(TRIGGER_DISPLAY_PARAMS)
void tf_port(TRIGGER_DISPLAY_PARAMS)
void tf_x_owned_province_scope_state(TRIGGER_DISPLAY_PARAMS)
void tf_num_of_cities_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_in_default_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_core_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_military_access_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_world_wars_enabled(TRIGGER_DISPLAY_PARAMS)
void tf_unit_has_leader(TRIGGER_DISPLAY_PARAMS)
void tf_is_next_reform_pop(TRIGGER_DISPLAY_PARAMS)
void tf_rich_strata_militancy_nation(TRIGGER_DISPLAY_PARAMS)
void tf_has_unclaimed_cores(TRIGGER_DISPLAY_PARAMS)
void tf_military_spending_province(TRIGGER_DISPLAY_PARAMS)
void tf_culture_province_reb(TRIGGER_DISPLAY_PARAMS)
void tf_militancy_state(TRIGGER_DISPLAY_PARAMS)
void tf_middle_strata_luxury_needs_province(TRIGGER_DISPLAY_PARAMS)
void tf_political_movement_strength(TRIGGER_DISPLAY_PARAMS)
void tf_is_colonial_state(TRIGGER_DISPLAY_PARAMS)
void tf_plurality(TRIGGER_DISPLAY_PARAMS)
void tf_produces_province(TRIGGER_DISPLAY_PARAMS)
void tf_war_exhaustion_pop(TRIGGER_DISPLAY_PARAMS)
void tf_owned_by_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_war_score(TRIGGER_DISPLAY_PARAMS)
void tf_life_rating_state(TRIGGER_DISPLAY_PARAMS)
void tf_middle_strata_everyday_needs_state(TRIGGER_DISPLAY_PARAMS)
void tf_num_of_cities_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_variable_ideology_name_pop(TRIGGER_DISPLAY_PARAMS)
void tf_civilized_province(TRIGGER_DISPLAY_PARAMS)
void tf_government_pop(TRIGGER_DISPLAY_PARAMS)
void tf_units_in_province_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_alliance_with_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_pop_majority_culture_province(TRIGGER_DISPLAY_PARAMS)
void tf_education_spending_state(TRIGGER_DISPLAY_PARAMS)
void tf_pop_majority_ideology_province(TRIGGER_DISPLAY_PARAMS)
void tf_has_country_flag(TRIGGER_DISPLAY_PARAMS)
void tf_have_core_in_nation_this(TRIGGER_DISPLAY_PARAMS)
void tf_owned_by_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_religion_nation_reb(TRIGGER_DISPLAY_PARAMS)
void tf_involved_in_crisis_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_sphere_leader_of_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_revanchism_pop(TRIGGER_DISPLAY_PARAMS)
void tf_pop_majority_issue_nation(TRIGGER_DISPLAY_PARAMS)
void tf_war_with_tag(TRIGGER_DISPLAY_PARAMS)
void tf_religion_nation_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_from_scope_nation(TRIGGER_DISPLAY_PARAMS)
void tf_civilization_progress(TRIGGER_DISPLAY_PARAMS)
void tf_stronger_army_than_from_province(TRIGGER_DISPLAY_PARAMS)
void tf_controlled_by_tag(TRIGGER_DISPLAY_PARAMS)
void tf_variable_reform_group_name_province(TRIGGER_DISPLAY_PARAMS)
void display_with_has_comparison(uint16_t trigger_code, text::substitution left_label, text::substitution value, sys::state &ws, text::layout_base &layout, text::layout_box &box)
void tf_is_primary_culture_pop_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_is_core_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_x_core_scope_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_primary_culture_nation_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_substate_of_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_party_loyalty_nation_province_id(TRIGGER_DISPLAY_PARAMS)
void tf_is_coastal_province(TRIGGER_DISPLAY_PARAMS)
void tf_province_id(TRIGGER_DISPLAY_PARAMS)
void tf_has_pop_religion_pop(TRIGGER_DISPLAY_PARAMS)
void tf_x_country_scope(TRIGGER_DISPLAY_PARAMS)
void tf_military_score_value(TRIGGER_DISPLAY_PARAMS)
void tf_technology(TRIGGER_DISPLAY_PARAMS)
void tf_national_provinces_occupied(TRIGGER_DISPLAY_PARAMS)
void tf_military_score_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_truce_with_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_has_empty_adjacent_state_state(TRIGGER_DISPLAY_PARAMS)
void tf_crime_higher_than_education_state(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_in_province_fort_no_limit_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_in_default_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_culture_has_union_tag_nation(TRIGGER_DISPLAY_PARAMS)
void tf_tag_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_from_scope_state(TRIGGER_DISPLAY_PARAMS)
void tf_is_primary_culture_state(TRIGGER_DISPLAY_PARAMS)
void tf_is_core_pop_tag(TRIGGER_DISPLAY_PARAMS)
void tf_is_cultural_union_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_primary_culture_from_province(TRIGGER_DISPLAY_PARAMS)
void tf_social_movement_strength(TRIGGER_DISPLAY_PARAMS)
void tf_constructing_cb_type(TRIGGER_DISPLAY_PARAMS)
void tf_work_available_nation(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_railway_in_capital_no_whole_state_no_limit(TRIGGER_DISPLAY_PARAMS)
void tf_rich_strata_luxury_needs_pop(TRIGGER_DISPLAY_PARAMS)
void tf_this_culture_union_this_union_state(TRIGGER_DISPLAY_PARAMS)
void tf_prestige_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_political_reform_want_pop(TRIGGER_DISPLAY_PARAMS)
void tf_casus_belli_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_middle_strata_luxury_needs_pop(TRIGGER_DISPLAY_PARAMS)
void tf_x_provinces_in_variable_region(TRIGGER_DISPLAY_PARAMS)
void tf_flashpoint_tension(TRIGGER_DISPLAY_PARAMS)
void tf_is_our_vassal_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_province_control_days(TRIGGER_DISPLAY_PARAMS)
void tf_owned_by_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_produces_nation(TRIGGER_DISPLAY_PARAMS)
void tf_election(TRIGGER_DISPLAY_PARAMS)
void tf_government_nation(TRIGGER_DISPLAY_PARAMS)
void tf_diplomatic_influence_from_province(TRIGGER_DISPLAY_PARAMS)
void tf_pop_majority_issue_pop(TRIGGER_DISPLAY_PARAMS)
void tf_religion(TRIGGER_DISPLAY_PARAMS)
void tf_poor_strata_everyday_needs_province(TRIGGER_DISPLAY_PARAMS)
void tf_poor_strata_life_needs_nation(TRIGGER_DISPLAY_PARAMS)
void tf_corruption(TRIGGER_DISPLAY_PARAMS)
void tf_terrain_pop(TRIGGER_DISPLAY_PARAMS)
void tf_in_sphere_from(TRIGGER_DISPLAY_PARAMS)
void tf_culture_group_pop_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_prestige_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_accepted_culture_province(TRIGGER_DISPLAY_PARAMS)
void tf_great_wars_enabled(TRIGGER_DISPLAY_PARAMS)
void tf_capital_scope_province(TRIGGER_DISPLAY_PARAMS)
void tf_tag_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_primary_culture(TRIGGER_DISPLAY_PARAMS)
void tf_from_scope_province(TRIGGER_DISPLAY_PARAMS)
void tf_brigades_compare_province_this(TRIGGER_DISPLAY_PARAMS)
void tf_controlled_by_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_num_of_cities_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_our_vassal_province_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_unemployment_by_type_nation(TRIGGER_DISPLAY_PARAMS)
void tf_badboy(TRIGGER_DISPLAY_PARAMS)
void tf_stronger_army_than_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_trade_goods_in_state_state(TRIGGER_DISPLAY_PARAMS)
void tf_is_primary_culture_state_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_variable_reform_group_name_pop(TRIGGER_DISPLAY_PARAMS)
void tf_vassal_of_province_tag(TRIGGER_DISPLAY_PARAMS)
void tf_check_variable(TRIGGER_DISPLAY_PARAMS)
void tf_education_spending_nation(TRIGGER_DISPLAY_PARAMS)
void tf_variable_ideology_name_province(TRIGGER_DISPLAY_PARAMS)
void tf_religion_nation_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_stronger_army_than_tag(TRIGGER_DISPLAY_PARAMS)
void tf_number_of_states(TRIGGER_DISPLAY_PARAMS)
void tf_x_substate_scope(TRIGGER_DISPLAY_PARAMS)
void tf_can_create_vassals(TRIGGER_DISPLAY_PARAMS)
void tf_country_units_in_state_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_constructing_cb_tag(TRIGGER_DISPLAY_PARAMS)
void tf_is_core_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_military_spending_pop(TRIGGER_DISPLAY_PARAMS)
void tf_is_secondary_power_pop(TRIGGER_DISPLAY_PARAMS)
void tf_blockade(TRIGGER_DISPLAY_PARAMS)
void tf_military_spending_state(TRIGGER_DISPLAY_PARAMS)
void tf_country_scope_nation(TRIGGER_DISPLAY_PARAMS)
void tf_exists_bool(TRIGGER_DISPLAY_PARAMS)
void tf_country_units_in_state_from(TRIGGER_DISPLAY_PARAMS)
void tf_stronger_army_than_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_in_default_this_pop(TRIGGER_DISPLAY_PARAMS)
void make_trigger_description(sys::state &ws, text::layout_base &layout, uint16_t const *tval, int32_t primary_slot, int32_t this_slot, int32_t from_slot, int32_t indentation, bool show_condition)
void tf_variable_issue_group_name_province(TRIGGER_DISPLAY_PARAMS)
void tf_religion_nation_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_has_factories_nation(TRIGGER_DISPLAY_PARAMS)
void tf_nationalvalue_pop(TRIGGER_DISPLAY_PARAMS)
void tf_num_of_vassals(TRIGGER_DISPLAY_PARAMS)
void tf_war_exhaustion_province(TRIGGER_DISPLAY_PARAMS)
void tf_this_culture_union_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_pop_majority_ideology_nation(TRIGGER_DISPLAY_PARAMS)
void tf_civilized_pop(TRIGGER_DISPLAY_PARAMS)
void tf_stronger_army_than_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_has_pop_religion_state_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_in_province_fort_no_limit_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_slave_nation(TRIGGER_DISPLAY_PARAMS)
void tf_cultural_union_scope_pop(TRIGGER_DISPLAY_PARAMS)
void tf_x_pop_scope_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_accepted_culture_pop(TRIGGER_DISPLAY_PARAMS)
void tf_units_in_province_tag(TRIGGER_DISPLAY_PARAMS)
void tf_primary_culture_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_continent_nation_from(TRIGGER_DISPLAY_PARAMS)
void tf_work_available_province(TRIGGER_DISPLAY_PARAMS)
void tf_military_access_from(TRIGGER_DISPLAY_PARAMS)
void tf_has_national_focus_state(TRIGGER_DISPLAY_PARAMS)
void tf_variable_good_name(TRIGGER_DISPLAY_PARAMS)
void tf_constructing_cb_discovered(TRIGGER_DISPLAY_PARAMS)
void tf_nationalvalue_province(TRIGGER_DISPLAY_PARAMS)
void tf_consciousness_nation(TRIGGER_DISPLAY_PARAMS)
void tf_money(TRIGGER_DISPLAY_PARAMS)
void tf_culture_state_reb(TRIGGER_DISPLAY_PARAMS)
void tf_culture_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_owned_by_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_average_consciousness_province(TRIGGER_DISPLAY_PARAMS)
void tf_trade_goods(TRIGGER_DISPLAY_PARAMS)
void tf_is_our_vassal_province_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_culture_group_state(TRIGGER_DISPLAY_PARAMS)
void tf_culture_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_in_province_naval_base_yes_limit_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_cultural_union_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_this_scope_province(TRIGGER_DISPLAY_PARAMS)
void tf_has_culture_core_province_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_vassal_of_province_from(TRIGGER_DISPLAY_PARAMS)
void tf_unemployment_by_type_pop(TRIGGER_DISPLAY_PARAMS)
void tf_has_pop_religion_state(TRIGGER_DISPLAY_PARAMS)
void tf_is_next_reform_nation(TRIGGER_DISPLAY_PARAMS)
void tf_owns_region(TRIGGER_DISPLAY_PARAMS)
void tf_rich_strata_militancy_pop(TRIGGER_DISPLAY_PARAMS)
void tf_is_accepted_culture_state_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_substate_of_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_culture_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_pop_majority_issue_state(TRIGGER_DISPLAY_PARAMS)
void tf_is_cultural_union_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_x_core_scope_nation(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_in_province_naval_base_no_limit_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_party_loyalty_from_province_scope_province(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_railway_in_capital_yes_whole_state_no_limit(TRIGGER_DISPLAY_PARAMS)
void tf_has_recent_imigration(TRIGGER_DISPLAY_PARAMS)
void tf_sphere_owner_scope(TRIGGER_DISPLAY_PARAMS)
void tf_upper_house(TRIGGER_DISPLAY_PARAMS)
void tf_invention(TRIGGER_DISPLAY_PARAMS)
void tf_social_movement_from_reb(TRIGGER_DISPLAY_PARAMS)
void tf_is_primary_culture_pop(TRIGGER_DISPLAY_PARAMS)
void tf_is_cultural_union_tag_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_crime_higher_than_education_nation(TRIGGER_DISPLAY_PARAMS)
void tf_flashpoint_tag_scope(TRIGGER_DISPLAY_PARAMS)
void tf_is_cultural_union_tag_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_military_access_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_casus_belli_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_tag_from_province(TRIGGER_DISPLAY_PARAMS)
void tf_has_empty_adjacent_province(TRIGGER_DISPLAY_PARAMS)
void tf_alliance_with_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_accepted_culture_nation_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_none(TRIGGER_DISPLAY_PARAMS)
void tf_militancy_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_core_tag(TRIGGER_DISPLAY_PARAMS)
void tf_rich_strata_everyday_needs_province(TRIGGER_DISPLAY_PARAMS)
void tf_controlled_by_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_work_available_state(TRIGGER_DISPLAY_PARAMS)
void display_with_comparison(uint16_t trigger_code, text::substitution left_label, text::substitution value, sys::state &ws, text::layout_base &layout, text::layout_box &box)
void tf_part_of_sphere(TRIGGER_DISPLAY_PARAMS)
void tf_religion_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_in_sphere_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_has_pop_religion_nation(TRIGGER_DISPLAY_PARAMS)
void tf_military_score_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_variable_issue_name_state(TRIGGER_DISPLAY_PARAMS)
void tf_average_militancy_state(TRIGGER_DISPLAY_PARAMS)
void tf_religion_reb(TRIGGER_DISPLAY_PARAMS)
void tf_variable_issue_name_pop(TRIGGER_DISPLAY_PARAMS)
void tf_controlled_by_rebels(TRIGGER_DISPLAY_PARAMS)
void tf_trade_goods_in_state_province(TRIGGER_DISPLAY_PARAMS)
void tf_crisis_exist(TRIGGER_DISPLAY_PARAMS)
void tf_country_scope_state(TRIGGER_DISPLAY_PARAMS)
void tf_war_with_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_military_score_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_middle_strata_life_needs_province(TRIGGER_DISPLAY_PARAMS)
void tf_diplomatic_influence_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_literacy_province(TRIGGER_DISPLAY_PARAMS)
void tf_culture_state(TRIGGER_DISPLAY_PARAMS)
void tf_poor_strata_luxury_needs_province(TRIGGER_DISPLAY_PARAMS)
void tf_luxury_needs(TRIGGER_DISPLAY_PARAMS)
void tf_has_pop_culture_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_state_capital_pop(TRIGGER_DISPLAY_PARAMS)
void tf_in_sphere_tag(TRIGGER_DISPLAY_PARAMS)
void tf_casus_belli_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_is_coastal_state(TRIGGER_DISPLAY_PARAMS)
void tf_is_state_religion_province(TRIGGER_DISPLAY_PARAMS)
void tf_region_proper_pop(TRIGGER_DISPLAY_PARAMS)
void tf_has_building_factory_from_province(TRIGGER_DISPLAY_PARAMS)
void tf_vassal_of_province_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_x_neighbor_province_scope(TRIGGER_DISPLAY_PARAMS)
void tf_political_movement_from_reb(TRIGGER_DISPLAY_PARAMS)
void tf_x_war_countries_scope_nation(TRIGGER_DISPLAY_PARAMS)
void tf_num_of_cities_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_prestige_from(TRIGGER_DISPLAY_PARAMS)
void tf_num_of_allies(TRIGGER_DISPLAY_PARAMS)
void tf_is_core_reb(TRIGGER_DISPLAY_PARAMS)
void tf_vassal_of_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_variable_issue_group_name_state(TRIGGER_DISPLAY_PARAMS)
void tf_alliance_with_from(TRIGGER_DISPLAY_PARAMS)
void tf_is_primary_culture_state_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_culture_group_nation_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_prestige_value(TRIGGER_DISPLAY_PARAMS)
void tf_poor_strata_luxury_needs_nation(TRIGGER_DISPLAY_PARAMS)
void tf_relation_from_province(TRIGGER_DISPLAY_PARAMS)
void tf_has_pop_religion_province_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_is_accepted_culture_pop_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_accepted_culture_pop_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_has_pop_culture_state(TRIGGER_DISPLAY_PARAMS)
void tf_casus_belli_tag(TRIGGER_DISPLAY_PARAMS)
void tf_this_scope_nation(TRIGGER_DISPLAY_PARAMS)
void tf_has_culture_core(TRIGGER_DISPLAY_PARAMS)
void tf_poor_strata_life_needs_state(TRIGGER_DISPLAY_PARAMS)
void tf_state_scope_province(TRIGGER_DISPLAY_PARAMS)
void tf_relation_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_capital_scope_pop(TRIGGER_DISPLAY_PARAMS)
void tf_has_building_railroad(TRIGGER_DISPLAY_PARAMS)
void tf_is_accepted_culture_pop_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_in_province_fort_yes_limit_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_in_sphere_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_casus_belli_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_next_rreform_nation(TRIGGER_DISPLAY_PARAMS)
void tf_social_spending_province(TRIGGER_DISPLAY_PARAMS)
std::string_view cmp_has_code_to_fixed_ui(uint16_t code)
void tf_can_build_in_province_naval_base_yes_limit_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_has_pop_religion_nation_this_pop(TRIGGER_DISPLAY_PARAMS)
void make_condition(TRIGGER_DISPLAY_PARAMS, text::layout_box &box)
void tf_pop_majority_culture_state(TRIGGER_DISPLAY_PARAMS)
std::string_view every_any_code_to_fixed_ui(uint16_t code)
void tf_has_global_flag(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_in_province_railroad_yes_limit_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_has_pop_type_pop(TRIGGER_DISPLAY_PARAMS)
void tf_tech_school(TRIGGER_DISPLAY_PARAMS)
void tf_this_culture_union_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_constructing_cb_from(TRIGGER_DISPLAY_PARAMS)
void tf_overlord_scope(TRIGGER_DISPLAY_PARAMS)
constexpr int32_t indentation_amount
void tf_culture_group_pop(TRIGGER_DISPLAY_PARAMS)
void tf_is_primary_culture_state_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_factory_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_core_boolean(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_in_province_fort_yes_limit_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_primary_culture_pop_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_social_reform_want_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_our_vassal_province_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_constructing_cb_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_culture_group_pop_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_independence_scope(TRIGGER_DISPLAY_PARAMS)
void tf_produces_state(TRIGGER_DISPLAY_PARAMS)
void tf_num_of_cities_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_primary_culture_pop_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_consciousness_state(TRIGGER_DISPLAY_PARAMS)
void tf_x_sphere_member_scope(TRIGGER_DISPLAY_PARAMS)
void tf_is_colonial_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_accepted_culture_nation_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_owns(TRIGGER_DISPLAY_PARAMS)
void tf_party_loyalty_from_nation_scope_province(TRIGGER_DISPLAY_PARAMS)
void tf_has_recently_lost_war(TRIGGER_DISPLAY_PARAMS)
void tf_culture_group_reb_nation(TRIGGER_DISPLAY_PARAMS)
void tf_location_scope(TRIGGER_DISPLAY_PARAMS)
void tf_this_culture_union_this_union_nation(TRIGGER_DISPLAY_PARAMS)
void tf_neighbour_tag(TRIGGER_DISPLAY_PARAMS)
void tf_can_nationalize(TRIGGER_DISPLAY_PARAMS)
void tf_variable_reform_group_name_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_state_religion_state(TRIGGER_DISPLAY_PARAMS)
void tf_is_disarmed(TRIGGER_DISPLAY_PARAMS)
void tf_military_score_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_has_building_state(TRIGGER_DISPLAY_PARAMS)
void tf_is_cultural_union_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_relation_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_lost_national(TRIGGER_DISPLAY_PARAMS)
void tf_capital_scope(TRIGGER_DISPLAY_PARAMS)
void tf_middle_strata_militancy_pop(TRIGGER_DISPLAY_PARAMS)
void tf_social_movement(TRIGGER_DISPLAY_PARAMS)
void tf_industrial_score_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_continent_state_from(TRIGGER_DISPLAY_PARAMS)
void tf_war_pop(TRIGGER_DISPLAY_PARAMS)
void tf_has_crime(TRIGGER_DISPLAY_PARAMS)
void tf_truce_with_tag(TRIGGER_DISPLAY_PARAMS)
void tf_x_state_scope(TRIGGER_DISPLAY_PARAMS)
void tf_controlled_by_from(TRIGGER_DISPLAY_PARAMS)
void tf_integer_scope(TRIGGER_DISPLAY_PARAMS)
void tf_vassal_of_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_variable_pop_type_name_nation(TRIGGER_DISPLAY_PARAMS)
void tf_pop_unemployment_pop(TRIGGER_DISPLAY_PARAMS)
void tf_variable_issue_group_name_nation(TRIGGER_DISPLAY_PARAMS)
void tf_country_units_in_state_tag(TRIGGER_DISPLAY_PARAMS)
void tf_pop_unemployment_nation(TRIGGER_DISPLAY_PARAMS)
void tf_rich_strata_everyday_needs_pop(TRIGGER_DISPLAY_PARAMS)
void tf_civilized_nation(TRIGGER_DISPLAY_PARAMS)
void tf_pop_unemployment_nation_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_is_claim_crisis(TRIGGER_DISPLAY_PARAMS)
void tf_is_our_vassal_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_variable_reform_group_name_state(TRIGGER_DISPLAY_PARAMS)
void tf_units_in_province_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_has_building_state_from_province(TRIGGER_DISPLAY_PARAMS)
void tf_controlled_by_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_has_pop_type_state(TRIGGER_DISPLAY_PARAMS)
void tf_variable_issue_name_province(TRIGGER_DISPLAY_PARAMS)
void tf_brigades_compare_from(TRIGGER_DISPLAY_PARAMS)
void tf_total_amount_of_divisions(TRIGGER_DISPLAY_PARAMS)
void tf_exists_tag(TRIGGER_DISPLAY_PARAMS)
void tf_administration_spending_pop(TRIGGER_DISPLAY_PARAMS)
void tf_is_releasable_vassal_from(TRIGGER_DISPLAY_PARAMS)
void tf_is_state_capital(TRIGGER_DISPLAY_PARAMS)
void tf_revanchism_nation(TRIGGER_DISPLAY_PARAMS)
void tf_continent_province_this(TRIGGER_DISPLAY_PARAMS)
void tf_everyday_needs(TRIGGER_DISPLAY_PARAMS)
void tf_tag_tag(TRIGGER_DISPLAY_PARAMS)
void tf_alliance_with_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_poor_tax(TRIGGER_DISPLAY_PARAMS)
void tf_life_needs(TRIGGER_DISPLAY_PARAMS)
void tf_unemployment_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_our_vassal_tag(TRIGGER_DISPLAY_PARAMS)
void tf_poor_strata_militancy_province(TRIGGER_DISPLAY_PARAMS)
void tf_has_pop_culture_pop_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_has_cultural_sphere(TRIGGER_DISPLAY_PARAMS)
void tf_poor_strata_luxury_needs_pop(TRIGGER_DISPLAY_PARAMS)
void tf_middle_tax(TRIGGER_DISPLAY_PARAMS)
void tf_pop_majority_religion_state(TRIGGER_DISPLAY_PARAMS)
void tf_plurality_pop(TRIGGER_DISPLAY_PARAMS)
void tf_middle_strata_militancy_province(TRIGGER_DISPLAY_PARAMS)
void tf_neighbour_from(TRIGGER_DISPLAY_PARAMS)
void tf_vassal_of_province_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_vassal_of_province_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_party_loyalty_from_nation_province_id(TRIGGER_DISPLAY_PARAMS)
void tf_neighbour_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_militancy_province(TRIGGER_DISPLAY_PARAMS)
void tf_militancy_pop(TRIGGER_DISPLAY_PARAMS)
void tf_state_id_province(TRIGGER_DISPLAY_PARAMS)
void tf_minorities_state(TRIGGER_DISPLAY_PARAMS)
void tf_industrial_score_value(TRIGGER_DISPLAY_PARAMS)
void tf_x_owned_province_scope_nation(TRIGGER_DISPLAY_PARAMS)
void tf_religion_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_has_pop_type_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_vassal(TRIGGER_DISPLAY_PARAMS)
void tf_constructing_cb_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_sea_zone_scope(TRIGGER_DISPLAY_PARAMS)
void tf_is_primary_culture_pop_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_military_spending_nation(TRIGGER_DISPLAY_PARAMS)
void tf_x_neighbor_province_scope_state(TRIGGER_DISPLAY_PARAMS)
void tf_agree_with_ruling_party(TRIGGER_DISPLAY_PARAMS)
void tf_continent_pop_this(TRIGGER_DISPLAY_PARAMS)
void tf_continent_province_from(TRIGGER_DISPLAY_PARAMS)
void tf_religion_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_nationalvalue_nation(TRIGGER_DISPLAY_PARAMS)
void tf_units_in_province_from(TRIGGER_DISPLAY_PARAMS)
void tf_has_national_minority_nation(TRIGGER_DISPLAY_PARAMS)
void tf_prestige_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_middle_strata_militancy_state(TRIGGER_DISPLAY_PARAMS)
void tf_unused_1(TRIGGER_DISPLAY_PARAMS)
void tf_war_with_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_from_scope_pop(TRIGGER_DISPLAY_PARAMS)
void tf_region_pop(TRIGGER_DISPLAY_PARAMS)
void tf_has_pop_religion_pop_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_vassal_of_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_pop_majority_culture_nation(TRIGGER_DISPLAY_PARAMS)
void tf_variable_issue_group_name_pop(TRIGGER_DISPLAY_PARAMS)
void tf_culture_group_nation_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_social_spending_pop(TRIGGER_DISPLAY_PARAMS)
void tf_has_pop_type_province(TRIGGER_DISPLAY_PARAMS)
void tf_controlled_by_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_war_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_sphere_leader_of_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_poor_strata_militancy_state(TRIGGER_DISPLAY_PARAMS)
void tf_owner_scope_province(TRIGGER_DISPLAY_PARAMS)
void tf_truce_with_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_diplomatic_influence_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_fort_in_capital_yes_whole_state_yes_limit(TRIGGER_DISPLAY_PARAMS)
void tf_variable_pop_type_name_pop(TRIGGER_DISPLAY_PARAMS)
void tf_this_culture_union_from(TRIGGER_DISPLAY_PARAMS)
void tf_culture_pop_reb(TRIGGER_DISPLAY_PARAMS)
void tf_has_building_university(TRIGGER_DISPLAY_PARAMS)
void tf_war_with_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_have_core_in_nation_from(TRIGGER_DISPLAY_PARAMS)
void tf_owns_region_proper(TRIGGER_DISPLAY_PARAMS)
void tf_primary_culture_pop(TRIGGER_DISPLAY_PARAMS)
void tf_religion_nation_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_unit_in_battle(TRIGGER_DISPLAY_PARAMS)
void tf_constructing_cb_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_poor_strata_everyday_needs_nation(TRIGGER_DISPLAY_PARAMS)
void tf_has_country_modifier(TRIGGER_DISPLAY_PARAMS)
void tf_continent_state(TRIGGER_DISPLAY_PARAMS)
void tf_colonial_nation(TRIGGER_DISPLAY_PARAMS)
void tf_this_culture_union_this_union_province(TRIGGER_DISPLAY_PARAMS)
void tf_controlled_by_owner(TRIGGER_DISPLAY_PARAMS)
void tf_crime_higher_than_education_province(TRIGGER_DISPLAY_PARAMS)
void tf_money_province(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_in_province_railroad_no_limit_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_rich_strata_life_needs_pop(TRIGGER_DISPLAY_PARAMS)
void tf_pop_majority_ideology_pop(TRIGGER_DISPLAY_PARAMS)
void tf_owned_by_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_consciousness_province(TRIGGER_DISPLAY_PARAMS)
void tf_truce_with_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_x_pop_scope_state(TRIGGER_DISPLAY_PARAMS)
void tf_culture_province(TRIGGER_DISPLAY_PARAMS)
void tf_party_loyalty_province_province_id(TRIGGER_DISPLAY_PARAMS)
void tf_num_of_revolts(TRIGGER_DISPLAY_PARAMS)
void tf_military_access_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_is_greater_power_pop(TRIGGER_DISPLAY_PARAMS)
void tf_stronger_army_than_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_unemployment_pop(TRIGGER_DISPLAY_PARAMS)
void tf_pop_majority_ideology_state(TRIGGER_DISPLAY_PARAMS)
void tf_is_primary_culture_province_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_culture_group_nation(TRIGGER_DISPLAY_PARAMS)
void tf_life_rating_province(TRIGGER_DISPLAY_PARAMS)
void tf_total_pops_pop(TRIGGER_DISPLAY_PARAMS)
void tf_num_of_substates(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_factory_nation(TRIGGER_DISPLAY_PARAMS)
void tf_social_spending_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_overseas(TRIGGER_DISPLAY_PARAMS)
void tf_prestige_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_substate_of_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_is_overseas_pop(TRIGGER_DISPLAY_PARAMS)
void tf_units_in_province_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_culture_group_pop_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_is_disarmed_pop(TRIGGER_DISPLAY_PARAMS)
void tf_continent_nation(TRIGGER_DISPLAY_PARAMS)
void tf_religion_nation_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_rich_tax_above_poor(TRIGGER_DISPLAY_PARAMS)
void tf_is_accepted_culture_state(TRIGGER_DISPLAY_PARAMS)
void tf_crisis_state_scope(TRIGGER_DISPLAY_PARAMS)
void tf_rich_strata_everyday_needs_state(TRIGGER_DISPLAY_PARAMS)
void tf_poor_strata_militancy_pop(TRIGGER_DISPLAY_PARAMS)
void tf_diplomatic_influence_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_substate_of_from(TRIGGER_DISPLAY_PARAMS)
void tf_is_our_vassal_province_tag(TRIGGER_DISPLAY_PARAMS)
void tf_terrain_province(TRIGGER_DISPLAY_PARAMS)
void tf_crime_higher_than_education_pop(TRIGGER_DISPLAY_PARAMS)
void tf_middle_strata_life_needs_pop(TRIGGER_DISPLAY_PARAMS)
void tf_is_our_vassal_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_owner_scope_state(TRIGGER_DISPLAY_PARAMS)
void tf_poor_strata_everyday_needs_state(TRIGGER_DISPLAY_PARAMS)
void tf_rich_strata_life_needs_state(TRIGGER_DISPLAY_PARAMS)
void tf_is_sphere_leader_of_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_military_access_tag(TRIGGER_DISPLAY_PARAMS)
void tf_have_core_in_nation_tag(TRIGGER_DISPLAY_PARAMS)
void tf_unemployment_by_type_province(TRIGGER_DISPLAY_PARAMS)
void tf_pop_majority_religion_nation(TRIGGER_DISPLAY_PARAMS)
void tf_rebel_power_fraction(TRIGGER_DISPLAY_PARAMS)
void tf_is_core_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_party_loyalty_nation_from_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_primary_culture_nation_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_our_vassal_from(TRIGGER_DISPLAY_PARAMS)
void tf_x_war_countries_scope_pop(TRIGGER_DISPLAY_PARAMS)
void tf_has_building_fort(TRIGGER_DISPLAY_PARAMS)
void tf_x_neighbor_country_scope_nation(TRIGGER_DISPLAY_PARAMS)
void tf_middle_strata_everyday_needs_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_cultural_union_pop_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_produces_pop(TRIGGER_DISPLAY_PARAMS)
void tf_strata_rich(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_fort_in_capital_no_whole_state_yes_limit(TRIGGER_DISPLAY_PARAMS)
void tf_is_next_rreform_pop(TRIGGER_DISPLAY_PARAMS)
void tf_culture_group_reb_pop(TRIGGER_DISPLAY_PARAMS)
void tf_has_pop_culture_pop(TRIGGER_DISPLAY_PARAMS)
void tf_is_greater_power_nation(TRIGGER_DISPLAY_PARAMS)
void tf_middle_strata_everyday_needs_pop(TRIGGER_DISPLAY_PARAMS)
void tf_unemployment_state(TRIGGER_DISPLAY_PARAMS)
void tf_vassal_of_province_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_industrial_score_this_pop(TRIGGER_DISPLAY_PARAMS)
void display_subtriggers(uint16_t const *source, sys::state &ws, text::layout_base &layout, int32_t primary_slot, int32_t this_slot, int32_t from_slot, int32_t indentation, bool show_condition)
void tf_has_pop_culture_state_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_region(TRIGGER_DISPLAY_PARAMS)
void tf_political_reform_want_nation(TRIGGER_DISPLAY_PARAMS)
void tf_literacy_nation(TRIGGER_DISPLAY_PARAMS)
void tf_literacy_pop(TRIGGER_DISPLAY_PARAMS)
void tf_is_slave_state(TRIGGER_DISPLAY_PARAMS)
void tf_pop_unemployment_province_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_is_cultural_union_tag_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_controls(TRIGGER_DISPLAY_PARAMS)
void tf_country_units_in_state_this_nation(TRIGGER_DISPLAY_PARAMS)
std::string_view cmp_code_to_fixed_ui(uint16_t code)
void tf_year(TRIGGER_DISPLAY_PARAMS)
void tf_is_cultural_union_tag_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_has_faction_pop(TRIGGER_DISPLAY_PARAMS)
void tf_is_core_integer(TRIGGER_DISPLAY_PARAMS)
void tf_state_scope_pop(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_railway_in_capital_yes_whole_state_yes_limit(TRIGGER_DISPLAY_PARAMS)
void tf_vassal_of_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_education_spending_pop(TRIGGER_DISPLAY_PARAMS)
void tf_relation_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_has_building_naval_base(TRIGGER_DISPLAY_PARAMS)
void tf_party_loyalty_from_province_province_id(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_factory_in_capital_state(TRIGGER_DISPLAY_PARAMS)
void tf_is_accepted_culture_state_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_religion_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_poor_strata_everyday_needs_pop(TRIGGER_DISPLAY_PARAMS)
void tf_is_cultural_union_bool(TRIGGER_DISPLAY_PARAMS)
void tf_rich_strata_life_needs_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_capital(TRIGGER_DISPLAY_PARAMS)
void tf_generic_scope(TRIGGER_DISPLAY_PARAMS)
void tf_empty(TRIGGER_DISPLAY_PARAMS)
void tf_rich_strata_luxury_needs_state(TRIGGER_DISPLAY_PARAMS)
void tf_cash_reserves(TRIGGER_DISPLAY_PARAMS)
void tf_has_country_modifier_province(TRIGGER_DISPLAY_PARAMS)
void tf_industrial_score_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_is_accepted_culture_province_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_railway_in_capital_no_whole_state_yes_limit(TRIGGER_DISPLAY_PARAMS)
void tf_middle_strata_militancy_nation(TRIGGER_DISPLAY_PARAMS)
void tf_in_sphere_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_units_in_province_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_units_in_province_value(TRIGGER_DISPLAY_PARAMS)
void tf_rich_strata_luxury_needs_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_sphere_leader_of_tag(TRIGGER_DISPLAY_PARAMS)
void tf_in_default_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_involved_in_crisis_pop(TRIGGER_DISPLAY_PARAMS)
void tf_total_pops_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_primary_culture_province_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_total_pops_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_accepted_culture_province_this_pop(TRIGGER_DISPLAY_PARAMS)
std::string_view any_all_code_to_fixed_ui(uint16_t code)
void tf_has_national_minority_province(TRIGGER_DISPLAY_PARAMS)
void tf_country_scope_pop(TRIGGER_DISPLAY_PARAMS)
void tf_military_score_tag(TRIGGER_DISPLAY_PARAMS)
void tf_is_greater_power_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_mobilised(TRIGGER_DISPLAY_PARAMS)
void tf_industrial_score_tag(TRIGGER_DISPLAY_PARAMS)
void tf_state_id_state(TRIGGER_DISPLAY_PARAMS)
void tf_variable_ideology_name_nation(TRIGGER_DISPLAY_PARAMS)
void tf_recruited_percentage_nation(TRIGGER_DISPLAY_PARAMS)
void tf_average_militancy_nation(TRIGGER_DISPLAY_PARAMS)
void tf_rich_strata_everyday_needs_nation(TRIGGER_DISPLAY_PARAMS)
void tf_cultural_union_scope(TRIGGER_DISPLAY_PARAMS)
void tf_unemployment_by_type_state(TRIGGER_DISPLAY_PARAMS)
void tf_continent_pop(TRIGGER_DISPLAY_PARAMS)
void tf_is_primary_culture_state_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_is_canal_enabled(TRIGGER_DISPLAY_PARAMS)
void tf_pop_unemployment_province(TRIGGER_DISPLAY_PARAMS)
void tf_tag_pop(TRIGGER_DISPLAY_PARAMS)
void tf_is_primary_culture_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_independant(TRIGGER_DISPLAY_PARAMS)
void tf_is_primary_culture_nation_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_in_province_naval_base_no_limit_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_tag_from_nation(TRIGGER_DISPLAY_PARAMS)
void tf_someone_can_form_union_tag_other(TRIGGER_DISPLAY_PARAMS)
void tf_brigades_compare_this(TRIGGER_DISPLAY_PARAMS)
void tf_average_militancy_province(TRIGGER_DISPLAY_PARAMS)
void tf_is_accepted_culture_province_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_this_scope_state(TRIGGER_DISPLAY_PARAMS)
void tf_is_our_vassal_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_region_proper(TRIGGER_DISPLAY_PARAMS)
void tf_has_pop_culture_province_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_ruling_party(TRIGGER_DISPLAY_PARAMS)
void tf_is_accepted_culture_state_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_has_building_bank(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_fort_in_capital_yes_whole_state_no_limit(TRIGGER_DISPLAY_PARAMS)
void tf_rich_strata_life_needs_province(TRIGGER_DISPLAY_PARAMS)
void tf_this_culture_union_this_state(TRIGGER_DISPLAY_PARAMS)
void tf_relation_this_province(TRIGGER_DISPLAY_PARAMS)
void tf_culture_group_nation_this_pop(TRIGGER_DISPLAY_PARAMS)
void tf_can_build_fort_in_capital_no_whole_state_no_limit(TRIGGER_DISPLAY_PARAMS)
void tf_num_of_ports(TRIGGER_DISPLAY_PARAMS)
void tf_pop_unemployment_state(TRIGGER_DISPLAY_PARAMS)
void tf_pop_majority_religion_nation_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_secondary_power_nation(TRIGGER_DISPLAY_PARAMS)
void tf_is_cultural_union_tag_nation(TRIGGER_DISPLAY_PARAMS)
void tf_average_consciousness_state(TRIGGER_DISPLAY_PARAMS)
void tf_has_building_factory(TRIGGER_DISPLAY_PARAMS)
void tf_industrial_score_this_nation(TRIGGER_DISPLAY_PARAMS)
void tf_average_consciousness_nation(TRIGGER_DISPLAY_PARAMS)
void tf_has_pop_culture_nation(TRIGGER_DISPLAY_PARAMS)
void tf_ai(TRIGGER_DISPLAY_PARAMS)
void multiplicative_value_modifier_description(sys::state &state, text::layout_base &layout, dcon::value_modifier_key modifier, int32_t primary, int32_t this_slot, int32_t from_slot)
void additive_value_modifier_description(sys::state &state, text::layout_base &layout, dcon::value_modifier_key modifier, int32_t primary, int32_t this_slot, int32_t from_slot)
void trigger_description(sys::state &state, text::layout_base &layout, dcon::trigger_key k, int32_t primary_slot=-1, int32_t this_slot=-1, int32_t from_slot=-1)
@ count
Definition: gui_event.hpp:126
uint uint32_t
user_settings_s user_settings
dcon::national_identity_id tag_id
dcon::culture_id cul_id
dcon::stored_trigger_id str_id
dcon::national_flag_id natf_id
dcon::national_variable_id natv_id
dcon::invention_id invt_id
dcon::political_party_id par_id
dcon::cb_type_id cb_id
dcon::national_focus_id nf_id
dcon::province_id prov_id
dcon::ideology_id ideo_id
dcon::religion_id rel_id
dcon::culture_group_id culgrp_id
dcon::government_type_id gov_id
dcon::issue_id iss_id
dcon::technology_id tech_id
dcon::reform_id ref_id
dcon::global_flag_id glob_id
dcon::reform_option_id ropt_id
dcon::factory_type_id fac_id
dcon::state_definition_id state_id
dcon::pop_type_id popt_id
dcon::issue_option_id opt_id
dcon::commodity_id com_id
dcon::rebel_type_id reb_id
dcon::region_id reg_id
dcon::modifier_id mod_id