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)) : text::produce_simple_string(ws, "singular_state"));
332 text::close_layout_box(layout, box);
333 }
334
335 if(ui_count_subtriggers(ws, tval) > 1) {
336 auto box = text::open_layout_box(layout, indentation + indentation_amount);
338 text::close_layout_box(layout, box);
339 }
340
341 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
342}
344 {
345 auto box = text::open_layout_box(layout, indentation);
346 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
348 text::add_space_to_layout_box(ws, layout, box);
349 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "owned_province"));
350 text::add_space_to_layout_box(ws, layout, box);
351 text::add_to_layout_box(ws, layout, box,
352 primary_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(primary_slot))) : text::produce_simple_string(ws, "singular_nation"));
353 text::close_layout_box(layout, box);
354 }
355
356 if(ui_count_subtriggers(ws, tval) > 1) {
357 auto box = text::open_layout_box(layout, indentation + indentation_amount);
359 text::close_layout_box(layout, box);
360 }
361
362 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
363}
365 {
366 auto box = text::open_layout_box(layout, indentation);
367 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
369 text::add_space_to_layout_box(ws, layout, box);
370 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "core_in"));
371 text::add_space_to_layout_box(ws, layout, box);
372 text::add_to_layout_box(ws, layout, box,
373 primary_slot != -1 ? text::produce_simple_string(ws, ws.world.province_get_name(trigger::to_prov(primary_slot)))
374 : text::produce_simple_string(ws, "singular_province"));
375 text::close_layout_box(layout, box);
376 }
377
378 if(ui_count_subtriggers(ws, tval) > 1) {
379 auto box = text::open_layout_box(layout, indentation + indentation_amount);
381 text::close_layout_box(layout, box);
382 }
383
384 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
385}
387 {
388 auto box = text::open_layout_box(layout, indentation);
389 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
391 text::add_space_to_layout_box(ws, layout, box);
392 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "core_of"));
393 text::add_space_to_layout_box(ws, layout, box);
394 text::add_to_layout_box(ws, layout, box,
395 primary_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(primary_slot)))
396 : text::produce_simple_string(ws, "singular_nation"));
397 text::close_layout_box(layout, box);
398 }
399
400 if(ui_count_subtriggers(ws, tval) > 1) {
401 auto box = text::open_layout_box(layout, indentation + indentation_amount);
403 text::close_layout_box(layout, box);
404 }
405
406 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
407}
409 {
410 auto box = text::open_layout_box(layout, indentation);
411 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
413 text::add_space_to_layout_box(ws, layout, box);
414 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "state_of"));
415 text::add_space_to_layout_box(ws, layout, box);
416 text::add_to_layout_box(ws, layout, box,
417 primary_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(primary_slot)))
418 : text::produce_simple_string(ws, "singular_nation"));
419 text::close_layout_box(layout, box);
420 }
421
422 if(ui_count_subtriggers(ws, tval) > 1) {
423 auto box = text::open_layout_box(layout, indentation + indentation_amount);
425 text::close_layout_box(layout, box);
426 }
427
428 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
429}
431 {
432 auto box = text::open_layout_box(layout, indentation);
433 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
435 text::add_space_to_layout_box(ws, layout, box);
436 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "substate_of"));
437 text::add_space_to_layout_box(ws, layout, box);
438 text::add_to_layout_box(ws, layout, box,
439 primary_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(primary_slot)))
440 : text::produce_simple_string(ws, "singular_nation"));
441 text::close_layout_box(layout, box);
442 }
443
444 if(ui_count_subtriggers(ws, tval) > 1) {
445 auto box = text::open_layout_box(layout, indentation + indentation_amount);
447 text::close_layout_box(layout, box);
448 }
449
450 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
451}
453 {
454 auto box = text::open_layout_box(layout, indentation);
455 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
457 text::add_space_to_layout_box(ws, layout, box);
458 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "nation_in_sphere"));
459 text::add_space_to_layout_box(ws, layout, box);
460 text::add_to_layout_box(ws, layout, box,
461 primary_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(primary_slot)))
462 : text::produce_simple_string(ws, "singular_nation"));
463 text::close_layout_box(layout, box);
464 }
465
466 if(ui_count_subtriggers(ws, tval) > 1) {
467 auto box = text::open_layout_box(layout, indentation + indentation_amount);
469 text::close_layout_box(layout, box);
470 }
471
472 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
473}
475 {
476 auto box = text::open_layout_box(layout, indentation);
477 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
479 text::add_space_to_layout_box(ws, layout, box);
480 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pop"));
481 text::close_layout_box(layout, box);
482 }
483
484 if(ui_count_subtriggers(ws, tval) > 1) {
485 auto box = text::open_layout_box(layout, indentation + indentation_amount);
487 text::close_layout_box(layout, box);
488 }
489
490 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
491}
493 {
494 auto box = text::open_layout_box(layout, indentation);
495 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
497 text::add_space_to_layout_box(ws, layout, box);
498 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pop"));
499 text::close_layout_box(layout, box);
500 }
501
502 if(ui_count_subtriggers(ws, tval) > 1) {
503 auto box = text::open_layout_box(layout, indentation + indentation_amount);
505 text::close_layout_box(layout, box);
506 }
507
508 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
509}
511 {
512 auto box = text::open_layout_box(layout, indentation);
513 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
515 text::add_space_to_layout_box(ws, layout, box);
516 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pop"));
517 text::close_layout_box(layout, box);
518 }
519
520 if(ui_count_subtriggers(ws, tval) > 1) {
521 auto box = text::open_layout_box(layout, indentation + indentation_amount);
523 text::close_layout_box(layout, box);
524 }
525
526 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
527}
529 auto region = trigger::payload(*(tval + 2)).state_id;
530
531 {
532 auto box = text::open_layout_box(layout, indentation);
533 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
535 text::add_space_to_layout_box(ws, layout, box);
536 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "province_in"));
537 text::add_space_to_layout_box(ws, layout, box);
538 text::add_to_layout_box(ws, layout, box, region);
539 text::close_layout_box(layout, box);
540 }
541
542 if(ui_count_subtriggers(ws, tval) > 1) {
543 auto box = text::open_layout_box(layout, indentation + indentation_amount);
545 text::close_layout_box(layout, box);
546 }
547
548 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
549}
551 auto region = trigger::payload(*(tval + 2)).reg_id;
552
553 {
554 auto box = text::open_layout_box(layout, indentation);
555 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
557 text::add_space_to_layout_box(ws, layout, box);
558 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "province_in"));
559 text::add_space_to_layout_box(ws, layout, box);
560 text::add_to_layout_box(ws, layout, box, ws.world.region_get_name(region));
561 text::close_layout_box(layout, box);
562 }
563
564 if(ui_count_subtriggers(ws, tval) > 1) {
565 auto box = text::open_layout_box(layout, indentation + indentation_amount);
567 text::close_layout_box(layout, box);
568 }
569
570 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
571}
573 {
574 auto box = text::open_layout_box(layout, indentation);
575 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
576 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "owner_of"));
577 text::add_space_to_layout_box(ws, layout, box);
578 text::add_to_layout_box(ws, layout, box,
579 primary_slot != -1 ? text::get_dynamic_state_name(ws, trigger::to_state(primary_slot))
580 : text::produce_simple_string(ws, "singular_state"));
581 text::close_layout_box(layout, box);
582 }
583
584 if(ui_count_subtriggers(ws, tval) > 1) {
585 auto box = text::open_layout_box(layout, indentation + indentation_amount);
587 text::close_layout_box(layout, box);
588 }
589
590 display_subtriggers(tval, ws, layout,
591 primary_slot != -1
592 ? trigger::to_generic(ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(primary_slot)))
593 : -1,
594 this_slot, from_slot, indentation + indentation_amount, show_condition && primary_slot != -1);
595}
597 {
598 auto box = text::open_layout_box(layout, indentation);
599 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
600 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "owner_of"));
601 text::add_space_to_layout_box(ws, layout, box);
602 text::add_to_layout_box(ws, layout, box,
603 primary_slot != -1 ? text::produce_simple_string(ws, ws.world.province_get_name(trigger::to_prov(primary_slot)))
604 : text::produce_simple_string(ws, "singular_province"));
605 text::close_layout_box(layout, box);
606 }
607
608 if(ui_count_subtriggers(ws, tval) > 1) {
609 auto box = text::open_layout_box(layout, indentation + indentation_amount);
611 text::close_layout_box(layout, box);
612 }
613
614 display_subtriggers(tval, ws, layout,
615 primary_slot != -1
616 ? trigger::to_generic(ws.world.province_get_nation_from_province_ownership(trigger::to_prov(primary_slot)))
617 : -1,
618 this_slot, from_slot, indentation + indentation_amount, show_condition && primary_slot != -1);
619}
621 {
622 auto box = text::open_layout_box(layout, indentation);
623 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
624 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "controller_of"));
625 text::add_space_to_layout_box(ws, layout, box);
626 text::add_to_layout_box(ws, layout, box,
627 primary_slot != -1 ? text::produce_simple_string(ws, ws.world.province_get_name(trigger::to_prov(primary_slot)))
628 : text::produce_simple_string(ws, "singular_province"));
629 text::close_layout_box(layout, box);
630 }
631
632 if(ui_count_subtriggers(ws, tval) > 1) {
633 auto box = text::open_layout_box(layout, indentation + indentation_amount);
635 text::close_layout_box(layout, box);
636 }
637
638 display_subtriggers(tval, ws, layout,
639 primary_slot != -1 ? trigger::to_generic(ws.world.province_get_nation_from_province_control(trigger::to_prov(primary_slot)))
640 : -1,
641 this_slot, from_slot, indentation + indentation_amount, show_condition && primary_slot != -1);
642}
644 {
645 auto box = text::open_layout_box(layout, indentation);
646 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
647 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "location_of_pop"));
648 text::close_layout_box(layout, box);
649 }
650
651 if(ui_count_subtriggers(ws, tval) > 1) {
652 auto box = text::open_layout_box(layout, indentation + indentation_amount);
654 text::close_layout_box(layout, box);
655 }
656
657 auto loc =
658 primary_slot != -1 ? trigger::to_generic(ws.world.pop_get_province_from_pop_location(trigger::to_pop(primary_slot))) : -1;
659 display_subtriggers(tval, ws, layout, loc, this_slot, from_slot, indentation + indentation_amount,
660 show_condition && primary_slot != -1);
661}
663 {
664 auto box = text::open_layout_box(layout, indentation);
665 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
666 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "owner_of"));
667 text::add_space_to_layout_box(ws, layout, box);
668 text::add_to_layout_box(ws, layout, box,
669 primary_slot != -1 ? text::get_dynamic_state_name(ws, trigger::to_state(primary_slot))
670 : text::produce_simple_string(ws, "singular_state"));
671 text::close_layout_box(layout, box);
672 }
673
674 if(ui_count_subtriggers(ws, tval) > 1) {
675 auto box = text::open_layout_box(layout, indentation + indentation_amount);
677 text::close_layout_box(layout, box);
678 }
679
680 display_subtriggers(tval, ws, layout,
681 primary_slot != -1
682 ? trigger::to_generic(ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(primary_slot)))
683 : -1,
684 this_slot, from_slot, indentation + indentation_amount, show_condition && primary_slot != -1);
685}
687 {
688 auto box = text::open_layout_box(layout, indentation);
689 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
690 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "nation_of_pop"));
691 text::close_layout_box(layout, box);
692 }
693
694 if(ui_count_subtriggers(ws, tval) > 1) {
695 auto box = text::open_layout_box(layout, indentation + indentation_amount);
697 text::close_layout_box(layout, box);
698 }
699
700 display_subtriggers(tval, ws, layout,
701 primary_slot != -1 ? trigger::to_generic(nations::owner_of_pop(ws, trigger::to_pop(primary_slot))) : -1, this_slot,
702 from_slot, indentation + indentation_amount, show_condition && primary_slot != -1);
703}
705 {
706 auto box = text::open_layout_box(layout, indentation);
707 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
708 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "capital_of"));
709 text::add_space_to_layout_box(ws, layout, box);
710 text::add_to_layout_box(ws, layout, box,
711 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"));
712 text::close_layout_box(layout, box);
713 }
714
715 if(ui_count_subtriggers(ws, tval) > 1) {
716 auto box = text::open_layout_box(layout, indentation + indentation_amount);
718 text::close_layout_box(layout, box);
719 }
720
721 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;
722 display_subtriggers(tval, ws, layout, loc, this_slot, from_slot, indentation + indentation_amount, show_condition && primary_slot != -1);
723}
725 {
726 auto box = text::open_layout_box(layout, indentation);
727 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
728 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "capital_of"));
729 text::add_space_to_layout_box(ws, layout, box);
730 text::add_to_layout_box(ws, layout, box,
731 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"));
732 text::close_layout_box(layout, box);
733 }
734
735 if(ui_count_subtriggers(ws, tval) > 1) {
736 auto box = text::open_layout_box(layout, indentation + indentation_amount);
738 text::close_layout_box(layout, box);
739 }
740
741 auto loc = primary_slot != -1 ? trigger::to_generic(ws.world.nation_get_capital(nations::owner_of_pop(ws, trigger::to_pop(primary_slot)))) : -1;
742 display_subtriggers(tval, ws, layout, loc, this_slot, from_slot, indentation + indentation_amount, show_condition && primary_slot != -1);
743}
745 {
746 auto box = text::open_layout_box(layout, indentation);
747 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
748 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "capital_of"));
749 text::add_space_to_layout_box(ws, layout, box);
750 text::add_to_layout_box(ws, layout, box,
751 primary_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(primary_slot)))
752 : text::produce_simple_string(ws, "singular_nation"));
753 text::close_layout_box(layout, box);
754 }
755
756 if(ui_count_subtriggers(ws, tval) > 1) {
757 auto box = text::open_layout_box(layout, indentation + indentation_amount);
759 text::close_layout_box(layout, box);
760 }
761
762 auto loc = primary_slot != -1 ? trigger::to_generic(ws.world.nation_get_capital(trigger::to_nation(primary_slot))) : -1;
763 display_subtriggers(tval, ws, layout, loc, this_slot, from_slot, indentation + indentation_amount,
764 show_condition && primary_slot != -1);
765}
767 {
768 auto box = text::open_layout_box(layout, indentation);
769 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
770 text::add_to_layout_box(ws, layout, box,
771 this_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(this_slot)))
772 : text::produce_simple_string(ws, "this_nation"));
773 text::close_layout_box(layout, box);
774 }
775
776 if(ui_count_subtriggers(ws, tval) > 1) {
777 auto box = text::open_layout_box(layout, indentation + indentation_amount);
779 text::close_layout_box(layout, box);
780 }
781
782 display_subtriggers(tval, ws, layout, this_slot, this_slot, from_slot, indentation + indentation_amount, this_slot != -1);
783}
785 {
786 auto box = text::open_layout_box(layout, indentation);
787 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
788 text::add_to_layout_box(ws, layout, box,
789 this_slot != -1 ? text::get_dynamic_state_name(ws, trigger::to_state(this_slot))
790 : text::produce_simple_string(ws, "this_state"));
791 text::close_layout_box(layout, box);
792 }
793
794 if(ui_count_subtriggers(ws, tval) > 1) {
795 auto box = text::open_layout_box(layout, indentation + indentation_amount);
797 text::close_layout_box(layout, box);
798 }
799
800 display_subtriggers(tval, ws, layout, this_slot, this_slot, from_slot, indentation + indentation_amount, this_slot != -1);
801}
803 {
804 auto box = text::open_layout_box(layout, indentation);
805 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
806 text::add_to_layout_box(ws, layout, box,
807 this_slot != -1 ? text::produce_simple_string(ws, ws.world.province_get_name(trigger::to_prov(this_slot)))
808 : text::produce_simple_string(ws, "this_province"));
809 text::close_layout_box(layout, box);
810 }
811
812 if(ui_count_subtriggers(ws, tval) > 1) {
813 auto box = text::open_layout_box(layout, indentation + indentation_amount);
815 text::close_layout_box(layout, box);
816 }
817
818 display_subtriggers(tval, ws, layout, this_slot, this_slot, from_slot, indentation + indentation_amount, this_slot != -1);
819}
821 {
822 auto box = text::open_layout_box(layout, indentation);
823 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
824 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop"));
825 text::close_layout_box(layout, box);
826 }
827
828 if(ui_count_subtriggers(ws, tval) > 1) {
829 auto box = text::open_layout_box(layout, indentation + indentation_amount);
831 text::close_layout_box(layout, box);
832 }
833
834 display_subtriggers(tval, ws, layout, this_slot, this_slot, from_slot, indentation + indentation_amount, this_slot != -1);
835}
837 {
838 auto box = text::open_layout_box(layout, indentation);
839 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
840 text::add_to_layout_box(ws, layout, box,
841 from_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(from_slot)))
842 : text::produce_simple_string(ws, "from_nation"));
843 text::close_layout_box(layout, box);
844 }
845
846 if(ui_count_subtriggers(ws, tval) > 1) {
847 auto box = text::open_layout_box(layout, indentation + indentation_amount);
849 text::close_layout_box(layout, box);
850 }
851
852 display_subtriggers(tval, ws, layout, from_slot, this_slot, from_slot, indentation + indentation_amount, from_slot != -1);
853}
855 {
856 auto box = text::open_layout_box(layout, indentation);
857 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
858 text::add_to_layout_box(ws, layout, box,
859 from_slot != -1 ? text::get_dynamic_state_name(ws, trigger::to_state(from_slot))
860 : text::produce_simple_string(ws, "from_state"));
861 text::close_layout_box(layout, box);
862 }
863
864 if(ui_count_subtriggers(ws, tval) > 1) {
865 auto box = text::open_layout_box(layout, indentation + indentation_amount);
867 text::close_layout_box(layout, box);
868 }
869
870 display_subtriggers(tval, ws, layout, from_slot, this_slot, from_slot, indentation + indentation_amount, from_slot != -1);
871}
873 {
874 auto box = text::open_layout_box(layout, indentation);
875 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
876 text::add_to_layout_box(ws, layout, box,
877 from_slot != -1 ? text::produce_simple_string(ws, ws.world.province_get_name(trigger::to_prov(from_slot)))
878 : text::produce_simple_string(ws, "from_province"));
879 text::close_layout_box(layout, box);
880 }
881
882 if(ui_count_subtriggers(ws, tval) > 1) {
883 auto box = text::open_layout_box(layout, indentation + indentation_amount);
885 text::close_layout_box(layout, box);
886 }
887
888 display_subtriggers(tval, ws, layout, from_slot, this_slot, from_slot, indentation + indentation_amount, from_slot != -1);
889}
891 {
892 auto box = text::open_layout_box(layout, indentation);
893 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
894 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_pop"));
895 text::close_layout_box(layout, box);
896 }
897
898 if(ui_count_subtriggers(ws, tval) > 1) {
899 auto box = text::open_layout_box(layout, indentation + indentation_amount);
901 text::close_layout_box(layout, box);
902 }
903
904 display_subtriggers(tval, ws, layout, from_slot, this_slot, from_slot, indentation + indentation_amount, from_slot != -1);
905}
907 {
908 auto box = text::open_layout_box(layout, indentation);
909 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
910 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "adjacent_sea"));
911 text::close_layout_box(layout, box);
912 }
913
914 if(ui_count_subtriggers(ws, tval) > 1) {
915 auto box = text::open_layout_box(layout, indentation + indentation_amount);
917 text::close_layout_box(layout, box);
918 }
919
920 auto sea_zone = primary_slot != -1 ? [&ws](int32_t p_slot) {
921 auto pid = fatten(ws.world, trigger::to_prov(p_slot));
922 for(auto adj : pid.get_province_adjacency()) {
923 if(adj.get_connected_provinces(0).id.index() >= ws.province_definitions.first_sea_province.index()) {
924 return adj.get_connected_provinces(0).id;
925 } else if(adj.get_connected_provinces(1).id.index() >= ws.province_definitions.first_sea_province.index()) {
926 return adj.get_connected_provinces(1).id;
927 }
928 }
929 return dcon::province_id{};
930 }(primary_slot)
931 : dcon::province_id{};
932
933 if(sea_zone) {
934 display_subtriggers(tval, ws, layout, trigger::to_generic(sea_zone), this_slot, from_slot, indentation + indentation_amount,
935 show_condition);
936 } else {
937 display_subtriggers(tval, ws, layout, -1, this_slot, from_slot, indentation + indentation_amount, false);
938 }
939}
941 auto prim_culture =
942 primary_slot != -1 ? ws.world.nation_get_primary_culture(trigger::to_nation(primary_slot)) : dcon::culture_id{};
943 auto cg = ws.world.culture_get_group_from_culture_group_membership(prim_culture);
944
945 {
946 auto box = text::open_layout_box(layout, indentation);
947 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
948 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "cultural_union_of"));
949 text::add_space_to_layout_box(ws, layout, box);
950 text::add_to_layout_box(ws, layout, box,
951 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
952 : text::produce_simple_string(ws, "singular_nation"));
953 text::close_layout_box(layout, box);
954 }
955
956 if(ui_count_subtriggers(ws, tval) > 1) {
957 auto box = text::open_layout_box(layout, indentation + indentation_amount);
959 text::close_layout_box(layout, box);
960 }
961
962 auto union_tag = ws.world.culture_group_get_identity_from_cultural_union_of(cg);
963 auto group_holder = ws.world.national_identity_get_nation_from_identity_holder(union_tag);
964
965 display_subtriggers(tval, ws, layout, trigger::to_generic(group_holder), this_slot, from_slot, indentation + indentation_amount,
966 show_condition);
967}
969 {
970 auto box = text::open_layout_box(layout, indentation);
971 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
972 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "overlord_of"));
973 text::add_space_to_layout_box(ws, layout, box);
974 text::add_to_layout_box(ws, layout, box,
975 primary_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(primary_slot)))
976 : text::produce_simple_string(ws, "singular_nation"));
977 text::close_layout_box(layout, box);
978 }
979
980 if(ui_count_subtriggers(ws, tval) > 1) {
981 auto box = text::open_layout_box(layout, indentation + indentation_amount);
983 text::close_layout_box(layout, box);
984 }
985
986 auto olr = ws.world.nation_get_overlord_as_subject(trigger::to_nation(primary_slot));
987 display_subtriggers(tval, ws, layout, trigger::to_generic(ws.world.overlord_get_ruler(olr)), this_slot, from_slot,
988 indentation + indentation_amount, show_condition && primary_slot != -1);
989}
991 {
992 auto box = text::open_layout_box(layout, indentation);
993 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
994 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "sphere_leader_of"));
995 text::add_space_to_layout_box(ws, layout, box);
996 text::add_to_layout_box(ws, layout, box,
997 primary_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(primary_slot)))
998 : text::produce_simple_string(ws, "singular_nation"));
999 text::close_layout_box(layout, box);
1000 }
1001
1002 if(ui_count_subtriggers(ws, tval) > 1) {
1003 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1005 text::close_layout_box(layout, box);
1006 }
1007
1008 display_subtriggers(tval, ws, layout,
1009 primary_slot != -1 ? trigger::to_generic(ws.world.nation_get_in_sphere_of((trigger::to_nation(primary_slot)))) : -1,
1010 this_slot, from_slot, indentation + indentation_amount, show_condition && primary_slot != -1);
1011}
1013 auto rtag =
1014 from_slot != -1 ? ws.world.rebel_faction_get_defection_target(trigger::to_rebel(from_slot)) : dcon::national_identity_id{};
1015 auto r_holder = ws.world.national_identity_get_nation_from_identity_holder(rtag);
1016
1017 {
1018 auto box = text::open_layout_box(layout, indentation);
1019 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1020 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "reb_independence_nation"));
1021 text::close_layout_box(layout, box);
1022 }
1023
1024 if(ui_count_subtriggers(ws, tval) > 1) {
1025 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1027 text::close_layout_box(layout, box);
1028 }
1029
1030 display_subtriggers(tval, ws, layout, r_holder ? trigger::to_generic(r_holder) : -1, this_slot, from_slot,
1031 indentation + indentation_amount, show_condition && bool(r_holder));
1032}
1034 auto ctag = ws.world.state_instance_get_flashpoint_tag(trigger::to_state(primary_slot));
1035 auto fp_nation = ws.world.national_identity_get_nation_from_identity_holder(ctag);
1036
1037 {
1038 auto box = text::open_layout_box(layout, indentation);
1039 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1040 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "flashpoint_nation"));
1041 text::close_layout_box(layout, box);
1042 }
1043
1044 if(ui_count_subtriggers(ws, tval) > 1) {
1045 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1047 text::close_layout_box(layout, box);
1048 }
1049
1050 display_subtriggers(tval, ws, layout, fp_nation ? trigger::to_generic(fp_nation) : -1, this_slot, from_slot,
1051 indentation + indentation_amount, show_condition && bool(fp_nation));
1052}
1054 {
1055 auto box = text::open_layout_box(layout, indentation);
1056 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1057 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "crisis_state"));
1058 text::close_layout_box(layout, box);
1059 }
1060
1061 if(ui_count_subtriggers(ws, tval) > 1) {
1062 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1064 text::close_layout_box(layout, box);
1065 }
1066
1067 auto cstate = ws.crisis_state ? trigger::to_generic(ws.crisis_state) : -1;
1068 display_subtriggers(tval, ws, layout, cstate, this_slot, from_slot, indentation + indentation_amount,
1069 show_condition && cstate != -1);
1070}
1072 {
1073 auto box = text::open_layout_box(layout, indentation);
1074 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1075 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "containing_state"));
1076 text::add_space_to_layout_box(ws, layout, box);
1077 text::add_to_layout_box(ws, layout, box,
1078 primary_slot != -1 ? text::produce_simple_string(ws, ws.world.province_get_name(trigger::to_prov(primary_slot)))
1079 : text::produce_simple_string(ws, "singular_province"));
1080 text::close_layout_box(layout, box);
1081 }
1082
1083 if(ui_count_subtriggers(ws, tval) > 1) {
1084 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1086 text::close_layout_box(layout, box);
1087 }
1088
1089 auto st =
1090 primary_slot != -1 ? ws.world.province_get_state_membership(trigger::to_prov(primary_slot)) : dcon::state_instance_id{};
1091
1092 display_subtriggers(tval, ws, layout, st ? trigger::to_generic(st) : -1, this_slot, from_slot, indentation + indentation_amount,
1093 show_condition && st);
1094}
1096 {
1097 auto box = text::open_layout_box(layout, indentation);
1098 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1099 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "containing_state"));
1100 text::add_space_to_layout_box(ws, layout, box);
1101 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "singular_pop"));
1102 text::close_layout_box(layout, box);
1103 }
1104
1105 if(ui_count_subtriggers(ws, tval) > 1) {
1106 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1108 text::close_layout_box(layout, box);
1109 }
1110
1111 auto st = primary_slot != -1 ? ws.world.province_get_state_membership(
1112 ws.world.pop_get_province_from_pop_location(trigger::to_pop(primary_slot)))
1113 : dcon::state_instance_id{};
1114
1115 display_subtriggers(tval, ws, layout, st ? trigger::to_generic(st) : -1, this_slot, from_slot, indentation + indentation_amount,
1116 show_condition && st);
1117}
1119 auto tag = trigger::payload(tval[2]).tag_id;
1120 auto tag_holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
1121
1122 {
1123 auto box = text::open_layout_box(layout, indentation);
1124 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1125 text::add_to_layout_box(ws, layout, box,
1127 tag_holder ? text::get_name(ws, tag_holder) : ws.world.national_identity_get_name(tag)));
1128 text::close_layout_box(layout, box);
1129 }
1130
1131 if(ui_count_subtriggers(ws, tval) > 1) {
1132 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1134 text::close_layout_box(layout, box);
1135 }
1136
1137 display_subtriggers(tval, ws, layout, tag_holder ? trigger::to_generic(tag_holder) : -1, this_slot, from_slot,
1138 indentation + indentation_amount, show_condition && tag_holder);
1139}
1141 auto p = trigger::payload(tval[2]).prov_id;
1142
1143 {
1144 auto box = text::open_layout_box(layout, indentation);
1145 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1146 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, ws.world.province_get_name(p)));
1147 text::close_layout_box(layout, box);
1148 }
1149
1150 if(ui_count_subtriggers(ws, tval) > 1) {
1151 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1153 text::close_layout_box(layout, box);
1154 }
1155
1156 display_subtriggers(tval, ws, layout, trigger::to_generic(p), this_slot, from_slot, indentation + indentation_amount,
1157 show_condition);
1158}
1160 if(ui_count_subtriggers(ws, tval) > 1) {
1161 auto box = text::open_layout_box(layout, indentation);
1163 text::close_layout_box(layout, box);
1164 }
1165 display_subtriggers(tval, ws, layout, primary_slot, this_slot, from_slot, indentation + indentation_amount, show_condition);
1166}
1168 {
1169 auto box = text::open_layout_box(layout, indentation);
1170 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1171 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "owner_of"));
1172 text::add_space_to_layout_box(ws, layout, box);
1173 text::add_to_layout_box(ws, layout, box,
1174 primary_slot != -1 ? text::produce_simple_string(ws, ws.world.province_get_name(trigger::to_prov(primary_slot)))
1175 : text::produce_simple_string(ws, "singular_province"));
1176 text::close_layout_box(layout, box);
1177 }
1178
1179 if(ui_count_subtriggers(ws, tval) > 1) {
1180 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1182 text::close_layout_box(layout, box);
1183 }
1184
1185 display_subtriggers(tval, ws, layout,
1186 primary_slot != -1
1187 ? trigger::to_generic(ws.world.province_get_nation_from_province_ownership(trigger::to_prov(primary_slot)))
1188 : -1,
1189 this_slot, from_slot, indentation + indentation_amount, show_condition && primary_slot != -1);
1190}
1192 auto cultures = primary_slot != -1 ? ws.world.pop_get_culture(trigger::to_pop(primary_slot)) : dcon::culture_id{};
1193 auto cg = ws.world.culture_get_group_from_culture_group_membership(cultures);
1194 auto union_tags = ws.world.culture_group_get_identity_from_cultural_union_of(cg);
1195 auto group_holders = ws.world.national_identity_get_nation_from_identity_holder(union_tags);
1196
1197 {
1198 auto box = text::open_layout_box(layout, indentation);
1199 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1200 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "cultural_union_of"));
1201 text::add_space_to_layout_box(ws, layout, box);
1202 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "singular_pop"));
1203 text::close_layout_box(layout, box);
1204 }
1205 if(ui_count_subtriggers(ws, tval) > 1) {
1206 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1208 text::close_layout_box(layout, box);
1209 }
1210
1211 display_subtriggers(tval, ws, layout, group_holders ? trigger::to_generic(group_holders) : -1, this_slot, from_slot,
1212 indentation + indentation_amount, show_condition && bool(group_holders));
1213}
1214
1216 auto box = text::open_layout_box(layout, indentation);
1217 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1218 display_with_comparison(tval[0], text::produce_simple_string(ws, "year"), int32_t(tval[1]), ws, layout, box);
1219 text::close_layout_box(layout, box);
1220}
1222 auto box = text::open_layout_box(layout, indentation);
1223 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1224 display_with_comparison(tval[0], text::produce_simple_string(ws, "month"), int32_t(tval[1]), ws, layout, box);
1225 text::close_layout_box(layout, box);
1226}
1227
1229 auto box = text::open_layout_box(layout, indentation);
1230 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1231 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_port"), ws, layout, box);
1232 text::close_layout_box(layout, box);
1233}
1235 auto box = text::open_layout_box(layout, indentation);
1236 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1237 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_rank"), int32_t(tval[1]), ws, layout, box);
1238 text::close_layout_box(layout, box);
1239}
1241 auto tech = trigger::payload(tval[1]).tech_id;
1242
1243 auto box = text::open_layout_box(layout, indentation);
1244 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1245 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "att_technology"), ws, layout, box);
1246 text::add_space_to_layout_box(ws, layout, box);
1247 text::add_to_layout_box(ws, layout, box, ws.world.technology_get_name(tech));
1248 text::close_layout_box(layout, box);
1249}
1251 auto tech = trigger::payload(tval[1]).invt_id;
1252
1253 auto box = text::open_layout_box(layout, indentation);
1254 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1255 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "invention"), ws, layout, box);
1256 text::add_space_to_layout_box(ws, layout, box);
1257 text::add_to_layout_box(ws, layout, box, ws.world.invention_get_name(tech));
1258 text::close_layout_box(layout, box);
1259}
1260
1262 auto box = text::open_layout_box(layout, indentation);
1263 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1265 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "meets_the_conditions_of"), text::text_color::white);
1266 } else {
1267 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "does_not_meet_the_conditions_of"), text::text_color::white);
1268 }
1269 auto sid = trigger::payload(tval[1]).str_id;
1270 text::add_to_layout_box(ws, layout, box, ws.world.stored_trigger_get_name(sid));
1271 text::close_layout_box(layout, box);
1272
1273 auto k = ws.world.stored_trigger_get_function(sid);
1274 trigger_tooltip::make_trigger_description(ws, layout, ws.trigger_data.data() + ws.trigger_data_indices[k.index() + 1],
1275 primary_slot, this_slot, from_slot, indentation + indentation_amount, show_condition);
1276}
1277
1279 auto box = text::open_layout_box(layout, indentation);
1280 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1281 display_with_comparison(tval[0], text::produce_simple_string(ws, "strata"), text::produce_simple_string(ws, "rich"), ws, layout,
1282 box);
1283 text::close_layout_box(layout, box);
1284}
1286 auto box = text::open_layout_box(layout, indentation);
1287 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1289 layout, box);
1290 text::close_layout_box(layout, box);
1291}
1293 auto box = text::open_layout_box(layout, indentation);
1294 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1295 display_with_comparison(tval[0], text::produce_simple_string(ws, "strata"), text::produce_simple_string(ws, "poor"), ws, layout,
1296 box);
1297 text::close_layout_box(layout, box);
1298}
1300 auto box = text::open_layout_box(layout, indentation);
1301 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1302 display_with_comparison(tval[0], text::produce_simple_string(ws, "life_rating"),
1303 int32_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
1304 text::close_layout_box(layout, box);
1305}
1307 auto box = text::open_layout_box(layout, indentation);
1308 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1309 display_with_comparison(tval[0], text::produce_simple_string(ws, "minimum_state_life_rating"),
1310 int32_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
1311 text::close_layout_box(layout, box);
1312}
1314 auto box = text::open_layout_box(layout, indentation);
1315 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1316 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "an_empty_adj_prov"), ws, layout, box);
1317 text::close_layout_box(layout, box);
1318}
1320 auto box = text::open_layout_box(layout, indentation);
1321 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1322 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "an_empty_adj_prov"), ws, layout, box);
1323 text::close_layout_box(layout, box);
1324}
1326 auto it = (tval[0] & trigger::association_mask) == trigger::association_eq
1327 ? ws.lookup_key(std::string_view("belongs_to_same_state"))
1328 : ws.lookup_key(std::string_view("does_not_belong_to_same_state"));
1329 if(it) {
1332
1333 auto box = text::open_layout_box(layout, indentation);
1334 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1335 text::add_to_layout_box(ws, layout, box, it, map);
1336 text::close_layout_box(layout, box);
1337 }
1338}
1340 auto it = (tval[0] & trigger::association_mask) == trigger::association_eq
1341 ? ws.lookup_key(std::string_view("contains_blank"))
1342 : ws.lookup_key(std::string_view("does_not_contain_blank"));
1343 if(it) {
1346
1347 auto box = text::open_layout_box(layout, indentation);
1348 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1349 text::add_to_layout_box(ws, layout, box, it, map);
1350 text::close_layout_box(layout, box);
1351 }
1352}
1354 auto box = text::open_layout_box(layout, indentation);
1355 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1356 display_with_comparison(tval[0], text::produce_simple_string(ws, "pop_savings"),
1357 text::fp_three_places{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
1358 text::add_space_to_layout_box(ws, layout, box);
1359 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "times_target_needs_spending"));
1360 text::close_layout_box(layout, box);
1361}
1363 auto box = text::open_layout_box(layout, indentation);
1364 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1365 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
1366 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
1367 text::close_layout_box(layout, box);
1368}
1370 auto box = text::open_layout_box(layout, indentation);
1371 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1372 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
1373 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
1374 text::close_layout_box(layout, box);
1375}
1377 auto box = text::open_layout_box(layout, indentation);
1378 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1379 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
1380 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
1381 text::close_layout_box(layout, box);
1382}
1384 auto box = text::open_layout_box(layout, indentation);
1385 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1386 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
1387 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
1388 text::close_layout_box(layout, box);
1389}
1391 auto box = text::open_layout_box(layout, indentation);
1392 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1394 ws, layout, box);
1395 text::close_layout_box(layout, box);
1396}
1398 auto box = text::open_layout_box(layout, indentation);
1399 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1400 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_slave_state"), ws, layout, box);
1401 text::close_layout_box(layout, box);
1402}
1404 auto box = text::open_layout_box(layout, indentation);
1405 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1406 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_slave_state"), ws, layout, box);
1407 text::close_layout_box(layout, box);
1408}
1410 auto box = text::open_layout_box(layout, indentation);
1411 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1412 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_slave"), ws, layout, box);
1413 text::close_layout_box(layout, box);
1414}
1416 auto box = text::open_layout_box(layout, indentation);
1417 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1418 display_with_comparison(tval[0], text::produce_simple_string(ws, "an_independent_nation"), ws, layout, box);
1419 text::close_layout_box(layout, box);
1420}
1422 auto box = text::open_layout_box(layout, indentation);
1423 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1424 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "non_prim_culture_pops"), ws, layout, box);
1425 text::close_layout_box(layout, box);
1426}
1428 auto box = text::open_layout_box(layout, indentation);
1429 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1430 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "non_prim_culture_pops"), ws, layout, box);
1431 text::close_layout_box(layout, box);
1432}
1434 auto box = text::open_layout_box(layout, indentation);
1435 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1436 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "non_prim_culture_pops"), ws, layout, box);
1437 text::close_layout_box(layout, box);
1438}
1440 auto gov = trigger::payload(tval[1]).gov_id;
1441 auto box = text::open_layout_box(layout, indentation);
1442 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1443 display_with_comparison(tval[0], text::produce_simple_string(ws, "government"),
1444 text::produce_simple_string(ws, ws.world.government_type_get_name(gov)), ws, layout, box);
1445 text::close_layout_box(layout, box);
1446}
1448 auto gov = trigger::payload(tval[1]).gov_id;
1449 auto box = text::open_layout_box(layout, indentation);
1450 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1451 display_with_comparison(tval[0], text::produce_simple_string(ws, "government"),
1452 text::produce_simple_string(ws, ws.world.government_type_get_name(gov)), ws, layout, box);
1453 text::close_layout_box(layout, box);
1454}
1456 auto prov = trigger::payload(tval[1]).prov_id;
1457 auto box = text::open_layout_box(layout, indentation);
1458 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1460 text::produce_simple_string(ws, ws.world.province_get_name(prov)), ws, layout, box);
1461 text::close_layout_box(layout, box);
1462}
1464 auto t = trigger::payload(tval[1]).mod_id;
1465 auto box = text::open_layout_box(layout, indentation);
1466 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1467 display_with_comparison(tval[0], text::produce_simple_string(ws, "technology_school"),
1468 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
1469 text::close_layout_box(layout, box);
1470}
1472 auto t = trigger::payload(tval[1]).cul_id;
1473 auto box = text::open_layout_box(layout, indentation);
1474 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1475 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
1476 text::produce_simple_string(ws, ws.world.culture_get_name(t)), ws, layout, box);
1477 text::close_layout_box(layout, box);
1478}
1480 auto t = trigger::payload(tval[1]).cul_id;
1481 auto box = text::open_layout_box(layout, indentation);
1482 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1483 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture_pop"),
1484 text::produce_simple_string(ws, ws.world.culture_get_name(t)), ws, layout, box);
1485 text::close_layout_box(layout, box);
1486}
1487
1489 auto box = text::open_layout_box(layout, indentation);
1490 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1491
1492 std::string sub;
1493 if(from_slot != -1)
1494 sub = text::produce_simple_string(ws, ws.world.nation_get_primary_culture(trigger::to_nation(from_slot)).get_name());
1495 else
1496 sub = text::produce_simple_string(ws, "from_nation");
1497 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"), sub, ws, layout, box);
1498 text::close_layout_box(layout, box);
1499}
1500
1502 auto box = text::open_layout_box(layout, indentation);
1503 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1504
1505 std::string sub;
1506 if(from_slot != -1)
1507 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());
1508 else
1509 sub = text::produce_simple_string(ws, "from_nation");
1510 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"), sub, ws, layout, box);
1511 text::close_layout_box(layout, box);
1512}
1513
1515 auto t = trigger::payload(tval[1]).cul_id;
1516 auto box = text::open_layout_box(layout, indentation);
1517 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1518 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(t)),
1519 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
1520 text::close_layout_box(layout, box);
1521}
1523 auto t = trigger::payload(tval[1]).cul_id;
1524 auto box = text::open_layout_box(layout, indentation);
1525 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1527 text::produce_simple_string(ws, ws.world.culture_get_name(t)), ws, layout, box);
1528 text::close_layout_box(layout, box);
1529}
1531 auto t = trigger::payload(tval[1]).cul_id;
1532 auto box = text::open_layout_box(layout, indentation);
1533 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1534 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
1535 text::produce_simple_string(ws, ws.world.culture_get_name(t)), ws, layout, box);
1536 text::close_layout_box(layout, box);
1537}
1539 auto t = trigger::payload(tval[1]).cul_id;
1540 auto box = text::open_layout_box(layout, indentation);
1541 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1542 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
1543 text::produce_simple_string(ws, ws.world.culture_get_name(t)), ws, layout, box);
1544 text::close_layout_box(layout, box);
1545}
1547 auto t = trigger::payload(tval[1]).cul_id;
1548 auto box = text::open_layout_box(layout, indentation);
1549 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1550 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(t)),
1551 text::produce_simple_string(ws, "a_primary_or_accepted"), ws, layout, box);
1552 text::close_layout_box(layout, box);
1553}
1555 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_primary_culture(trigger::to_rebel(from_slot)) : dcon::culture_id{};
1556
1557 auto box = text::open_layout_box(layout, indentation);
1558 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1560 rc ? text::produce_simple_string(ws, ws.world.culture_get_name(rc)) : text::produce_simple_string(ws, "rebel_culture"), ws,
1561 layout, box);
1562}
1564 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_primary_culture(trigger::to_rebel(from_slot)) : dcon::culture_id{};
1565
1566 auto box = text::open_layout_box(layout, indentation);
1567 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1568 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
1569 rc ? text::produce_simple_string(ws, ws.world.culture_get_name(rc)) : text::produce_simple_string(ws, "rebel_culture"), ws,
1570 layout, box);
1571 text::close_layout_box(layout, box);
1572}
1574 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_primary_culture(trigger::to_rebel(from_slot)) : dcon::culture_id{};
1575
1576 auto box = text::open_layout_box(layout, indentation);
1577 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1578 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
1579 rc ? text::produce_simple_string(ws, ws.world.culture_get_name(rc)) : text::produce_simple_string(ws, "rebel_culture"), ws,
1580 layout, box);
1581 text::close_layout_box(layout, box);
1582}
1584 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_primary_culture(trigger::to_rebel(from_slot)) : dcon::culture_id{};
1585
1586 auto box = text::open_layout_box(layout, indentation);
1587 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1589 rc ? text::produce_simple_string(ws, ws.world.culture_get_name(rc)) : text::produce_simple_string(ws, "rebel_culture"),
1590 text::produce_simple_string(ws, "a_primary_or_accepted"), ws, layout, box);
1591 text::close_layout_box(layout, box);
1592}
1594 auto box = text::open_layout_box(layout, indentation);
1595 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1597 text::produce_simple_string(ws, "this_nation_prim_culture"), ws, layout, box);
1598 text::close_layout_box(layout, box);
1599}
1601 auto box = text::open_layout_box(layout, indentation);
1602 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1604 text::produce_simple_string(ws, "from_nation_prim_culture"), ws, layout, box);
1605 text::close_layout_box(layout, box);
1606}
1608 auto box = text::open_layout_box(layout, indentation);
1609 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1611 text::produce_simple_string(ws, "this_nation_prim_culture"), ws, layout, box);
1612 text::close_layout_box(layout, box);
1613}
1615 auto box = text::open_layout_box(layout, indentation);
1616 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1618 text::produce_simple_string(ws, "this_nation_prim_culture"), ws, layout, box);
1619 text::close_layout_box(layout, box);
1620}
1622 auto box = text::open_layout_box(layout, indentation);
1623 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1625 text::produce_simple_string(ws, "this_nation_prim_culture"), ws, layout, box);
1626 text::close_layout_box(layout, box);
1627}
1629 auto cg = trigger::payload(tval[1]).culgrp_id;
1630 auto box = text::open_layout_box(layout, indentation);
1631 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1632 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture_group"),
1633 text::produce_simple_string(ws, ws.world.culture_group_get_name(cg)), ws, layout, box);
1634 text::close_layout_box(layout, box);
1635}
1637 auto cg = trigger::payload(tval[1]).culgrp_id;
1638 auto box = text::open_layout_box(layout, indentation);
1639 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1640 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1641 text::produce_simple_string(ws, ws.world.culture_group_get_name(cg)), ws, layout, box);
1642 text::close_layout_box(layout, box);
1643}
1645 auto cg = trigger::payload(tval[1]).culgrp_id;
1646 auto box = text::open_layout_box(layout, indentation);
1647 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1648 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture_group"),
1649 text::produce_simple_string(ws, ws.world.culture_group_get_name(cg)), ws, layout, box);
1650 text::close_layout_box(layout, box);
1651}
1653 auto cg = trigger::payload(tval[1]).culgrp_id;
1654 auto box = text::open_layout_box(layout, indentation);
1655 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1656 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture_group"),
1657 text::produce_simple_string(ws, ws.world.culture_group_get_name(cg)), ws, layout, box);
1658 text::close_layout_box(layout, box);
1659}
1661 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_primary_culture(trigger::to_rebel(from_slot)) : dcon::culture_id{};
1662 auto rg = ws.world.culture_get_group_from_culture_group_membership(rc);
1663
1664 auto box = text::open_layout_box(layout, indentation);
1665 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1666 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1667 rg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(rg))
1668 : text::produce_simple_string(ws, "rebel_culture_group"),
1669 ws, layout, box);
1670 text::close_layout_box(layout, box);
1671}
1673 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_primary_culture(trigger::to_rebel(from_slot)) : dcon::culture_id{};
1674 auto rg = ws.world.culture_get_group_from_culture_group_membership(rc);
1675
1676 auto box = text::open_layout_box(layout, indentation);
1677 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1678 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1679 rg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(rg))
1680 : text::produce_simple_string(ws, "rebel_culture_group"),
1681 ws, layout, box);
1682 text::close_layout_box(layout, box);
1683}
1685 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)) : dcon::culture_id{};
1686 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1687
1688 auto box = text::open_layout_box(layout, indentation);
1689 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1690 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1691 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1692 : text::produce_simple_string(ws, "this_nation_culture_group"),
1693 ws, layout, box);
1694 text::close_layout_box(layout, box);
1695}
1697 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)) : dcon::culture_id{};
1698 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1699
1700 auto box = text::open_layout_box(layout, indentation);
1701 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1702 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1703 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1704 : text::produce_simple_string(ws, "this_nation_culture_group"),
1705 ws, layout, box);
1706 text::close_layout_box(layout, box);
1707}
1709 auto rc = from_slot != -1 ? ws.world.nation_get_primary_culture(trigger::to_nation(from_slot)) : dcon::culture_id{};
1710 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1711
1712 auto box = text::open_layout_box(layout, indentation);
1713 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1714 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1715 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1716 : text::produce_simple_string(ws, "from_nation_culture_group"),
1717 ws, layout, box);
1718 text::close_layout_box(layout, box);
1719}
1721 auto rc = from_slot != -1 ? ws.world.nation_get_primary_culture(trigger::to_nation(from_slot)) : dcon::culture_id{};
1722 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1723
1724 auto box = text::open_layout_box(layout, indentation);
1725 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1726 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1727 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1728 : text::produce_simple_string(ws, "from_nation_culture_group"),
1729 ws, layout, box);
1730 text::close_layout_box(layout, box);
1731}
1733 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(
1734 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)))
1735 : dcon::culture_id{};
1736 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1737
1738 auto box = text::open_layout_box(layout, indentation);
1739 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1740 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1741 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1742 : text::produce_simple_string(ws, "this_province_culture_group"),
1743 ws, layout, box);
1744 text::close_layout_box(layout, box);
1745}
1747 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(
1748 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)))
1749 : dcon::culture_id{};
1750 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1751
1752 auto box = text::open_layout_box(layout, indentation);
1753 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1754 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1755 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1756 : text::produce_simple_string(ws, "this_province_culture_group"),
1757 ws, layout, box);
1758 text::close_layout_box(layout, box);
1759}
1761 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(
1762 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)))
1763 : dcon::culture_id{};
1764 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1765
1766 auto box = text::open_layout_box(layout, indentation);
1767 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1768 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1769 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1770 : text::produce_simple_string(ws, "this_state_culture_group"),
1771 ws, layout, box);
1772 text::close_layout_box(layout, box);
1773}
1775 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(
1776 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)))
1777 : dcon::culture_id{};
1778 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1779
1780 auto box = text::open_layout_box(layout, indentation);
1781 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1782 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1783 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1784 : text::produce_simple_string(ws, "this_state_culture_group"),
1785 ws, layout, box);
1786 text::close_layout_box(layout, box);
1787}
1789 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(nations::owner_of_pop(ws, trigger::to_pop(this_slot)))
1790 : dcon::culture_id{};
1791 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1792
1793 auto box = text::open_layout_box(layout, indentation);
1794 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1795 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1796 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1797 : text::produce_simple_string(ws, "this_pop_culture_group"),
1798 ws, layout, box);
1799 text::close_layout_box(layout, box);
1800}
1802 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(nations::owner_of_pop(ws, trigger::to_pop(this_slot)))
1803 : dcon::culture_id{};
1804 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1805
1806 auto box = text::open_layout_box(layout, indentation);
1807 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1808 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1809 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1810 : text::produce_simple_string(ws, "this_pop_culture_group"),
1811 ws, layout, box);
1812 text::close_layout_box(layout, box);
1813}
1815 auto t = trigger::payload(tval[1]).rel_id;
1816 auto box = text::open_layout_box(layout, indentation);
1817 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1819 text::produce_simple_string(ws, ws.world.religion_get_name(t)), ws, layout, box);
1820 text::close_layout_box(layout, box);
1821}
1823 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_religion(trigger::to_rebel(from_slot)) : dcon::religion_id{};
1824 auto box = text::open_layout_box(layout, indentation);
1825 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1827 rc ? text::produce_simple_string(ws, ws.world.religion_get_name(rc)) : text::produce_simple_string(ws, "rebel_religion"),
1828 ws, layout, box);
1829 text::close_layout_box(layout, box);
1830}
1832 auto rc = from_slot != -1 ? ws.world.nation_get_religion(trigger::to_nation(from_slot)) : dcon::religion_id{};
1833 auto box = text::open_layout_box(layout, indentation);
1834 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1836 rc ? text::produce_simple_string(ws, ws.world.religion_get_name(rc))
1837 : text::produce_simple_string(ws, "from_nation_religion"),
1838 ws, layout, box);
1839 text::close_layout_box(layout, box);
1840}
1842 auto rc = this_slot != -1 ? ws.world.nation_get_religion(trigger::to_nation(this_slot)) : dcon::religion_id{};
1843 auto box = text::open_layout_box(layout, indentation);
1844 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1846 rc ? text::produce_simple_string(ws, ws.world.religion_get_name(rc))
1847 : text::produce_simple_string(ws, "this_nation_religion"),
1848 ws, layout, box);
1849 text::close_layout_box(layout, box);
1850}
1852 auto rc = this_slot != -1 ? ws.world.nation_get_religion(
1853 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)))
1854 : dcon::religion_id{};
1855 auto box = text::open_layout_box(layout, indentation);
1856 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1858 rc ? text::produce_simple_string(ws, ws.world.religion_get_name(rc))
1859 : text::produce_simple_string(ws, "this_state_religion"),
1860 ws, layout, box);
1861 text::close_layout_box(layout, box);
1862}
1864 auto rc = this_slot != -1
1865 ? ws.world.nation_get_religion(ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)))
1866 : dcon::religion_id{};
1867 auto box = text::open_layout_box(layout, indentation);
1868 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1870 rc ? text::produce_simple_string(ws, ws.world.religion_get_name(rc))
1871 : text::produce_simple_string(ws, "this_province_religion"),
1872 ws, layout, box);
1873 text::close_layout_box(layout, box);
1874}
1876 auto rc =
1877 this_slot != -1 ? ws.world.nation_get_religion(nations::owner_of_pop(ws, trigger::to_pop(this_slot))) : dcon::religion_id{};
1878 auto box = text::open_layout_box(layout, indentation);
1879 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1881 rc ? text::produce_simple_string(ws, ws.world.religion_get_name(rc)) : text::produce_simple_string(ws, "this_pop_religion"),
1882 ws, layout, box);
1883 text::close_layout_box(layout, box);
1884}
1886 auto t = trigger::payload(tval[1]).mod_id;
1887 auto box = text::open_layout_box(layout, indentation);
1888 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1889 display_with_comparison(tval[0], text::produce_simple_string(ws, "province_terrain"),
1890 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
1891 text::close_layout_box(layout, box);
1892}
1894 auto t = trigger::payload(tval[1]).mod_id;
1895 auto box = text::open_layout_box(layout, indentation);
1896 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1897 display_with_comparison(tval[0], text::produce_simple_string(ws, "province_terrain"),
1898 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
1899 text::close_layout_box(layout, box);
1900}
1902 auto t = trigger::payload(tval[1]).com_id;
1903 auto box = text::open_layout_box(layout, indentation);
1904 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1905 display_with_comparison(tval[0], text::produce_simple_string(ws, "rgo_production"),
1906 text::produce_simple_string(ws, ws.world.commodity_get_name(t)), ws, layout, box);
1907 text::close_layout_box(layout, box);
1908}
1909
1911 auto box = text::open_layout_box(layout, indentation);
1912 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1913 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_secondary_power"), ws, layout, box);
1914 text::close_layout_box(layout, box);
1915}
1917 auto box = text::open_layout_box(layout, indentation);
1918 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1919 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_secondary_power"), ws, layout, box);
1920 text::close_layout_box(layout, box);
1921}
1923 auto t = trigger::payload(tval[1]).reb_id;
1924 auto box = text::open_layout_box(layout, indentation);
1925 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1926 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.rebel_type_get_name(t)),
1927 text::produce_simple_string(ws, "an_active_rebel"), ws, layout, box);
1928 text::close_layout_box(layout, box);
1929}
1931 auto t = trigger::payload(tval[1]).reb_id;
1932 auto box = text::open_layout_box(layout, indentation);
1933 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1934 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_member_of"), ws, layout, box);
1935 text::add_space_to_layout_box(ws, layout, box);
1936 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, ws.world.rebel_type_get_name(t)));
1937 text::close_layout_box(layout, box);
1938}
1940 auto box = text::open_layout_box(layout, indentation);
1941 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1942 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "unclaimed_cores"), ws, layout, box);
1943 text::close_layout_box(layout, box);
1944}
1946 auto box = text::open_layout_box(layout, indentation);
1947 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1948 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_cultural_union"), ws, layout, box);
1949 text::close_layout_box(layout, box);
1950}
1952 auto box = text::open_layout_box(layout, indentation);
1953 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1954 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_pop"),
1955 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
1956 text::close_layout_box(layout, box);
1957}
1959 auto box = text::open_layout_box(layout, indentation);
1960 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1961 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_pop"),
1962 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
1963 text::close_layout_box(layout, box);
1964}
1966 auto box = text::open_layout_box(layout, indentation);
1967 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1968 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
1969 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
1970 text::close_layout_box(layout, box);
1971}
1973 auto box = text::open_layout_box(layout, indentation);
1974 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1975 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
1976 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
1977 text::close_layout_box(layout, box);
1978}
1980 auto box = text::open_layout_box(layout, indentation);
1981 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1982 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
1983 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
1984 text::close_layout_box(layout, box);
1985}
1987 auto box = text::open_layout_box(layout, indentation);
1988 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1989 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
1990 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
1991 text::close_layout_box(layout, box);
1992}
1994 auto box = text::open_layout_box(layout, indentation);
1995 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1996 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
1997 text::produce_simple_string(ws, "the_rebel_ind_nation"), ws, layout, box);
1998 text::close_layout_box(layout, box);
1999}
2001 auto tag = trigger::payload(tval[1]).tag_id;
2002 auto holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
2003 auto box = text::open_layout_box(layout, indentation);
2004 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2005 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
2006 text::produce_simple_string(ws, holder ? text::get_name(ws, holder) : ws.world.national_identity_get_name(tag)), ws,
2007 layout, box);
2008 text::close_layout_box(layout, box);
2009}
2011 auto tag = trigger::payload(tval[1]).tag_id;
2012 auto holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
2013 auto box = text::open_layout_box(layout, indentation);
2014 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2015 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
2016 text::produce_simple_string(ws, holder ? text::get_name(ws, holder) : ws.world.national_identity_get_name(tag)), ws,
2017 layout, box);
2018 text::close_layout_box(layout, box);
2019}
2021 auto tag = trigger::payload(tval[1]).tag_id;
2022 auto holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
2023 auto box = text::open_layout_box(layout, indentation);
2024 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2025 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
2026 text::produce_simple_string(ws, holder ? text::get_name(ws, holder) : ws.world.national_identity_get_name(tag)), ws,
2027 layout, box);
2028 text::close_layout_box(layout, box);
2029}
2031 auto tag = trigger::payload(tval[1]).tag_id;
2032 auto holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
2033 auto box = text::open_layout_box(layout, indentation);
2034 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2035 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
2036 text::produce_simple_string(ws, holder ? text::get_name(ws, holder) : ws.world.national_identity_get_name(tag)), ws,
2037 layout, box);
2038 text::close_layout_box(layout, box);
2039}
2041 auto tag = trigger::payload(tval[1]).tag_id;
2042 auto holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
2043 auto box = text::open_layout_box(layout, indentation);
2044 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2045 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
2046 text::produce_simple_string(ws, holder ? text::get_name(ws, holder) : ws.world.national_identity_get_name(tag)), ws,
2047 layout, box);
2048 text::close_layout_box(layout, box);
2049}
2051 auto tag = trigger::payload(tval[1]).tag_id;
2052 auto holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
2053 auto box = text::open_layout_box(layout, indentation);
2054 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_core_ob"), ws, layout, box);
2055 text::add_space_to_layout_box(ws, layout, box);
2056 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)));
2057 text::close_layout_box(layout, box);
2058}
2060 auto box = text::open_layout_box(layout, indentation);
2061 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_core_ob"), ws, layout, box);
2062 text::add_space_to_layout_box(ws, layout, box);
2063 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"));
2064 text::close_layout_box(layout, box);
2065}
2067 auto box = text::open_layout_box(layout, indentation);
2068 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_core_ob"), ws, layout, box);
2069 text::add_space_to_layout_box(ws, layout, box);
2070 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"));
2071 text::close_layout_box(layout, box);
2072}
2073
2075 auto box = text::open_layout_box(layout, indentation);
2076 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2077 text::add_to_layout_box(ws, layout, box,
2079 ? "capitalists_can_build"
2080 : "capitalists_cannot_build"));
2081 text::close_layout_box(layout, box);
2082}
2084 auto box = text::open_layout_box(layout, indentation);
2085 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2086 text::add_to_layout_box(ws, layout, box,
2088 ? "capitalists_can_build"
2089 : "capitalists_cannot_build"));
2090 text::close_layout_box(layout, box);
2091}
2093 auto box = text::open_layout_box(layout, indentation);
2094 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2095 text::add_to_layout_box(ws, layout, box,
2097 ? "capitalists_can_build"
2098 : "capitalists_cannot_build"));
2099 text::close_layout_box(layout, box);
2100}
2102 auto box = text::open_layout_box(layout, indentation);
2103 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2104 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war"), ws, layout, box);
2105 text::close_layout_box(layout, box);
2106}
2108 auto box = text::open_layout_box(layout, indentation);
2109 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2110 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war"), ws, layout, box);
2111 text::close_layout_box(layout, box);
2112}
2114 auto box = text::open_layout_box(layout, indentation);
2115 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2116 display_with_comparison(tval[0], text::produce_simple_string(ws, "war_exhaustion"),
2117 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2118 text::close_layout_box(layout, box);
2119}
2121 auto box = text::open_layout_box(layout, indentation);
2122 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2123 display_with_comparison(tval[0], text::produce_simple_string(ws, "war_exhaustion"),
2124 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2125 text::close_layout_box(layout, box);
2126}
2128 auto box = text::open_layout_box(layout, indentation);
2129 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2130 display_with_comparison(tval[0], text::produce_simple_string(ws, "war_exhaustion"),
2131 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2132 text::close_layout_box(layout, box);
2133}
2135 auto box = text::open_layout_box(layout, indentation);
2136 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2137 display_with_comparison(tval[0], text::produce_simple_string(ws, "total_blockade"),
2138 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2139 text::close_layout_box(layout, box);
2140}
2142 auto p = trigger::payload(tval[1]).prov_id;
2143
2144 auto box = text::open_layout_box(layout, indentation);
2145 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2146 text::add_to_layout_box(ws, layout, box,
2148 (tval[0] & trigger::association_mask) == trigger::association_eq ? "owns" : "does_not_own"));
2149 text::add_space_to_layout_box(ws, layout, box);
2150 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, ws.world.province_get_name(p)));
2151 text::close_layout_box(layout, box);
2152}
2154 auto p = trigger::payload(tval[1]).prov_id;
2155
2156 auto box = text::open_layout_box(layout, indentation);
2157 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2158 text::add_to_layout_box(ws, layout, box,
2160 (tval[0] & trigger::association_mask) == trigger::association_eq ? "controls" : "does_not_control"));
2161 text::add_space_to_layout_box(ws, layout, box);
2162 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, ws.world.province_get_name(p)));
2163 text::close_layout_box(layout, box);
2164}
2166 auto box = text::open_layout_box(layout, indentation);
2167 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2168 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_core_in"), ws, layout, box);
2169 text::add_space_to_layout_box(ws, layout, box);
2170 text::add_to_layout_box(ws, layout, box,
2171 text::produce_simple_string(ws, ws.world.province_get_name(trigger::payload(tval[1]).prov_id)));
2172 text::close_layout_box(layout, box);
2173}
2175 auto box = text::open_layout_box(layout, indentation);
2176 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2177 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2178 text::add_space_to_layout_box(ws, layout, box);
2179 if(this_slot != -1)
2180 text::add_to_layout_box(ws, layout, box, text::get_name(ws, trigger::to_nation(this_slot)));
2181 else
2182 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2183 text::close_layout_box(layout, box);
2184}
2186 auto box = text::open_layout_box(layout, indentation);
2187 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2188 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2189 text::add_space_to_layout_box(ws, layout, box);
2190 if(this_slot != -1)
2191 text::add_to_layout_box(ws, layout, box,
2192 text::get_name(ws, ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))));
2193 else
2194 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2195 text::close_layout_box(layout, box);
2196}
2198 auto box = text::open_layout_box(layout, indentation);
2199 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2200 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2201 text::add_space_to_layout_box(ws, layout, box);
2202 if(this_slot != -1)
2203 text::add_to_layout_box(ws, layout, box,
2204 text::get_name(ws, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))));
2205 else
2206 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2207 text::close_layout_box(layout, box);
2208}
2210 auto box = text::open_layout_box(layout, indentation);
2211 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2212 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2213 text::add_space_to_layout_box(ws, layout, box);
2214 if(this_slot != -1)
2215 text::add_to_layout_box(ws, layout, box, text::get_name(ws, nations::owner_of_pop(ws, trigger::to_pop(this_slot))));
2216 else
2217 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2218 text::close_layout_box(layout, box);
2219}
2221 auto box = text::open_layout_box(layout, indentation);
2222 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2223 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2224 text::add_space_to_layout_box(ws, layout, box);
2225 if(from_slot != -1)
2226 text::add_to_layout_box(ws, layout, box, text::get_name(ws, trigger::to_nation(from_slot)));
2227 else
2228 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2229 text::close_layout_box(layout, box);
2230}
2232 auto box = text::open_layout_box(layout, indentation);
2233 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2234 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2235 text::add_space_to_layout_box(ws, layout, box);
2236 if(from_slot != -1) {
2237 auto tg = ws.world.rebel_faction_get_defection_target(trigger::to_rebel(from_slot));
2238 auto h = ws.world.national_identity_get_nation_from_identity_holder(tg);
2239 text::add_to_layout_box(ws, layout, box, h ? text::get_name(ws, h) : ws.world.national_identity_get_name(tg));
2240 } else
2241 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "the_rebel_ind_nation"));
2242 text::close_layout_box(layout, box);
2243}
2245 auto tg = trigger::payload(tval[1]).tag_id;
2246 auto h = ws.world.national_identity_get_nation_from_identity_holder(tg);
2247
2248 auto box = text::open_layout_box(layout, indentation);
2249 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2250 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2251 text::add_space_to_layout_box(ws, layout, box);
2252 text::add_to_layout_box(ws, layout, box, h ? text::get_name(ws,h) : ws.world.national_identity_get_name(tg));
2253 text::close_layout_box(layout, box);
2254}
2256 auto tg = trigger::payload(tval[1]).tag_id;
2257 auto h = ws.world.national_identity_get_nation_from_identity_holder(tg);
2258
2259 auto box = text::open_layout_box(layout, indentation);
2260 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2261 display_with_comparison(tval[0], text::produce_simple_string(ws, "located_in_a_core_of"), ws, layout, box);
2262 text::add_space_to_layout_box(ws, layout, box);
2263 text::add_to_layout_box(ws, layout, box, h ? text::get_name(ws, h) : ws.world.national_identity_get_name(tg));
2264 text::close_layout_box(layout, box);
2265}
2267 auto box = text::open_layout_box(layout, indentation);
2268 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2269 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of_owner"), ws, layout, box);
2270 text::close_layout_box(layout, box);
2271}
2273 auto box = text::open_layout_box(layout, indentation);
2274 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2275 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_of_reb_control"), int64_t(tval[1]), ws, layout, box);
2276 text::close_layout_box(layout, box);
2277}
2279 auto box = text::open_layout_box(layout, indentation);
2280 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2281 display_with_comparison(tval[0], text::produce_simple_string(ws, "percentage_reb_control"),
2282 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2283 text::close_layout_box(layout, box);
2284}
2286 auto box = text::open_layout_box(layout, indentation);
2287 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2288 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_owned_provinces"), int64_t(tval[1]), ws, layout, box);
2289 text::close_layout_box(layout, box);
2290}
2292 auto box = text::open_layout_box(layout, indentation);
2293 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2294 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_owned_provinces"),
2295 text::produce_simple_string(ws, "num_provinces_owned_by"), ws, layout, box);
2296 text::add_space_to_layout_box(ws, layout, box);
2297 text::add_to_layout_box(ws, layout, box,
2298 from_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(from_slot)))
2299 : text::produce_simple_string(ws, "from_nation"));
2300 text::close_layout_box(layout, box);
2301}
2303 auto box = text::open_layout_box(layout, indentation);
2304 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2305 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_owned_provinces"),
2306 text::produce_simple_string(ws, "num_provinces_owned_by"), ws, layout, box);
2307 text::add_space_to_layout_box(ws, layout, box);
2308 text::add_to_layout_box(ws, layout, box,
2309 this_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(this_slot)))
2310 : text::produce_simple_string(ws, "this_nation"));
2311 text::close_layout_box(layout, box);
2312}
2314 auto box = text::open_layout_box(layout, indentation);
2315 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2316 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_owned_provinces"),
2317 text::produce_simple_string(ws, "num_provinces_owned_by"), ws, layout, box);
2318 text::add_space_to_layout_box(ws, layout, box);
2319 text::add_to_layout_box(ws, layout, box,
2320 this_slot != -1
2322 text::get_name(ws, ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))
2323 : text::produce_simple_string(ws, "this_nation"));
2324 text::close_layout_box(layout, box);
2325}
2327 auto box = text::open_layout_box(layout, indentation);
2328 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2329 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_owned_provinces"),
2330 text::produce_simple_string(ws, "num_provinces_owned_by"), ws, layout, box);
2331 text::add_space_to_layout_box(ws, layout, box);
2332 text::add_to_layout_box(ws, layout, box,
2333 this_slot != -1
2335 text::get_name(ws, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))
2336 : text::produce_simple_string(ws, "this_nation"));
2337 text::close_layout_box(layout, box);
2338}
2340 auto box = text::open_layout_box(layout, indentation);
2341 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2342 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_owned_provinces"),
2343 text::produce_simple_string(ws, "num_provinces_owned_by"), ws, layout, box);
2344 text::add_space_to_layout_box(ws, layout, box);
2345 text::add_to_layout_box(ws, layout, box,
2346 this_slot != -1
2348 : text::produce_simple_string(ws, "this_nation"));
2349 text::close_layout_box(layout, box);
2350}
2352 auto box = text::open_layout_box(layout, indentation);
2353 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2354 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_of_ports_connected"), int64_t(tval[1]), ws, layout, box);
2355 text::close_layout_box(layout, box);
2356}
2358 auto box = text::open_layout_box(layout, indentation);
2359 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2360 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_of_allies"), int64_t(tval[1]), ws, layout, box);
2361 text::close_layout_box(layout, box);
2362}
2364 auto box = text::open_layout_box(layout, indentation);
2365 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2366 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_of_vassals"), int64_t(tval[1]), ws, layout, box);
2367 text::close_layout_box(layout, box);
2368}
2370 auto box = text::open_layout_box(layout, indentation);
2371 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2372 display_with_comparison(tval[0], text::produce_simple_string(ws, "owned_by"), ws, layout, box);
2373 text::add_space_to_layout_box(ws, layout, box);
2374 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
2375 text::close_layout_box(layout, box);
2376}
2378 auto box = text::open_layout_box(layout, indentation);
2379 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2380 display_with_comparison(tval[0], text::produce_simple_string(ws, "owned_by"), ws, layout, box);
2381 text::add_space_to_layout_box(ws, layout, box);
2382 if(this_slot != -1)
2383 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2384 else
2385 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2386 text::close_layout_box(layout, box);
2387}
2389 auto box = text::open_layout_box(layout, indentation);
2390 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2391 display_with_comparison(tval[0], text::produce_simple_string(ws, "owned_by"), ws, layout, box);
2392 text::add_space_to_layout_box(ws, layout, box);
2393 if(from_slot != -1)
2394 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2395 else
2396 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2397 text::close_layout_box(layout, box);
2398}
2400 auto box = text::open_layout_box(layout, indentation);
2401 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2402 display_with_comparison(tval[0], text::produce_simple_string(ws, "owned_by"), ws, layout, box);
2403 text::add_space_to_layout_box(ws, layout, box);
2404 if(this_slot != -1)
2405 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
2406 else
2407 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2408 text::close_layout_box(layout, box);
2409}
2411 auto box = text::open_layout_box(layout, indentation);
2412 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2413 display_with_comparison(tval[0], text::produce_simple_string(ws, "owned_by"), ws, layout, box);
2414 text::add_space_to_layout_box(ws, layout, box);
2415 if(this_slot != -1)
2416 text::add_to_layout_box(ws, layout, box,
2417 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
2418 else
2419 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2420 text::close_layout_box(layout, box);
2421}
2423 auto box = text::open_layout_box(layout, indentation);
2424 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2425 display_with_comparison(tval[0], text::produce_simple_string(ws, "owned_by"), ws, layout, box);
2426 text::add_space_to_layout_box(ws, layout, box);
2427 if(this_slot != -1)
2428 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
2429 else
2430 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2431 text::close_layout_box(layout, box);
2432}
2434 auto box = text::open_layout_box(layout, indentation);
2435 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2436 text::add_to_layout_box(ws, layout, box,
2438 (tval[0] & trigger::association_mask) == trigger::association_eq ? "exists" : "does_not_exist"));
2439 text::close_layout_box(layout, box);
2440}
2442 auto box = text::open_layout_box(layout, indentation);
2443 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2444 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
2445 text::add_space_to_layout_box(ws, layout, box);
2446 text::add_to_layout_box(ws, layout, box,
2448 (tval[0] & trigger::association_mask) == trigger::association_eq ? "exists" : "does_not_exist"));
2449 text::close_layout_box(layout, box);
2450}
2452 if(ws.user_settings.spoilers) {
2453 auto box = text::open_layout_box(layout, indentation);
2454 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2456 text::produce_simple_string(ws, ws.national_definitions.flag_variable_names[trigger::payload(tval[1]).natf_id]),
2457 text::produce_simple_string(ws, "att_set"), ws, layout, box);
2458 text::close_layout_box(layout, box);
2459 }
2460}
2462 auto t = trigger::payload(tval[1]).mod_id;
2463 auto box = text::open_layout_box(layout, indentation);
2464 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2465 display_with_comparison(tval[0], text::produce_simple_string(ws, "continent"),
2466 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
2467 text::close_layout_box(layout, box);
2468}
2470 auto t = trigger::payload(tval[1]).mod_id;
2471 auto box = text::open_layout_box(layout, indentation);
2472 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2473 display_with_comparison(tval[0], text::produce_simple_string(ws, "continent"),
2474 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
2475 text::close_layout_box(layout, box);
2476}
2478 auto t = trigger::payload(tval[1]).mod_id;
2479 auto box = text::open_layout_box(layout, indentation);
2480 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2481 display_with_comparison(tval[0], text::produce_simple_string(ws, "continent"),
2482 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
2483 text::close_layout_box(layout, box);
2484}
2486 auto t = trigger::payload(tval[1]).mod_id;
2487 auto box = text::open_layout_box(layout, indentation);
2488 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2489 display_with_comparison(tval[0], text::produce_simple_string(ws, "continent"),
2490 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
2491 text::close_layout_box(layout, box);
2492}
2494 auto box = text::open_layout_box(layout, indentation);
2495 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2496 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2497 text::add_space_to_layout_box(ws, layout, box);
2498 if(this_slot != -1)
2499 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2500 else
2501 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2502 text::close_layout_box(layout, box);
2503}
2505 auto box = text::open_layout_box(layout, indentation);
2506 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2507 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2508 text::add_space_to_layout_box(ws, layout, box);
2509 if(this_slot != -1)
2510 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2511 else
2512 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2513 text::close_layout_box(layout, box);
2514}
2516 auto box = text::open_layout_box(layout, indentation);
2517 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2518 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2519 text::add_space_to_layout_box(ws, layout, box);
2520 if(this_slot != -1)
2521 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2522 else
2523 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2524 text::close_layout_box(layout, box);
2525}
2527 auto box = text::open_layout_box(layout, indentation);
2528 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2529 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2530 text::add_space_to_layout_box(ws, layout, box);
2531 if(this_slot != -1)
2532 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2533 else
2534 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2535 text::close_layout_box(layout, box);
2536}
2538 auto box = text::open_layout_box(layout, indentation);
2539 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2540 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2541 text::add_space_to_layout_box(ws, layout, box);
2542 if(from_slot != -1)
2543 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2544 else
2545 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2546 text::close_layout_box(layout, box);
2547}
2549 auto box = text::open_layout_box(layout, indentation);
2550 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2551 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2552 text::add_space_to_layout_box(ws, layout, box);
2553 if(from_slot != -1)
2554 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2555 else
2556 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2557 text::close_layout_box(layout, box);
2558}
2560 auto box = text::open_layout_box(layout, indentation);
2561 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2562 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2563 text::add_space_to_layout_box(ws, layout, box);
2564 if(from_slot != -1)
2565 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2566 else
2567 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2568 text::close_layout_box(layout, box);
2569}
2571 auto box = text::open_layout_box(layout, indentation);
2572 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2573 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2574 text::add_space_to_layout_box(ws, layout, box);
2575 if(from_slot != -1)
2576 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2577 else
2578 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2579 text::close_layout_box(layout, box);
2580}
2582 auto box = text::open_layout_box(layout, indentation);
2583 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2584 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_casus_belli_against"), ws, layout, box);
2585 text::add_space_to_layout_box(ws, layout, box);
2586 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
2587 text::close_layout_box(layout, box);
2588}
2590 auto box = text::open_layout_box(layout, indentation);
2591 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2592 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_casus_belli_against"), ws, layout, box);
2593 text::add_space_to_layout_box(ws, layout, box);
2594 if(from_slot != -1)
2595 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2596 else
2597 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2598 text::close_layout_box(layout, box);
2599}
2601 auto box = text::open_layout_box(layout, indentation);
2602 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2603 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_casus_belli_against"), ws, layout, box);
2604 text::add_space_to_layout_box(ws, layout, box);
2605 if(this_slot != -1)
2606 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2607 else
2608 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2609 text::close_layout_box(layout, box);
2610}
2612 auto box = text::open_layout_box(layout, indentation);
2613 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2614 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_casus_belli_against"), ws, layout, box);
2615 text::add_space_to_layout_box(ws, layout, box);
2616 if(this_slot != -1)
2617 text::add_to_layout_box(ws, layout, box,
2618 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
2619 else
2620 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2621 text::close_layout_box(layout, box);
2622}
2624 auto box = text::open_layout_box(layout, indentation);
2625 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2626 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_casus_belli_against"), ws, layout, box);
2627 text::add_space_to_layout_box(ws, layout, box);
2628 if(this_slot != -1)
2629 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
2630 else
2631 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2632 text::close_layout_box(layout, box);
2633}
2635 auto box = text::open_layout_box(layout, indentation);
2636 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2637 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_casus_belli_against"), ws, layout, box);
2638 text::add_space_to_layout_box(ws, layout, box);
2639 if(this_slot != -1)
2640 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
2641 else
2642 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2643 text::close_layout_box(layout, box);
2644}
2646 auto box = text::open_layout_box(layout, indentation);
2647 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2648 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "military_access_with"), ws, layout, box);
2649 text::add_space_to_layout_box(ws, layout, box);
2650 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
2651 text::close_layout_box(layout, box);
2652}
2654 auto box = text::open_layout_box(layout, indentation);
2655 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2656 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "military_access_with"), ws, layout, box);
2657 text::add_space_to_layout_box(ws, layout, box);
2658 if(from_slot != -1)
2659 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2660 else
2661 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2662 text::close_layout_box(layout, box);
2663}
2665 auto box = text::open_layout_box(layout, indentation);
2666 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2667 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "military_access_with"), ws, layout, box);
2668 text::add_space_to_layout_box(ws, layout, box);
2669 if(this_slot != -1)
2670 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2671 else
2672 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2673 text::close_layout_box(layout, box);
2674}
2676 auto box = text::open_layout_box(layout, indentation);
2677 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2678 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "military_access_with"), ws, layout, box);
2679 text::add_space_to_layout_box(ws, layout, box);
2680 if(this_slot != -1)
2681 text::add_to_layout_box(ws, layout, box,
2682 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
2683 else
2684 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2685 text::close_layout_box(layout, box);
2686}
2688 auto box = text::open_layout_box(layout, indentation);
2689 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2690 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "military_access_with"), ws, layout, box);
2691 text::add_space_to_layout_box(ws, layout, box);
2692 if(this_slot != -1)
2693 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
2694 else
2695 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2696 text::close_layout_box(layout, box);
2697}
2699 auto box = text::open_layout_box(layout, indentation);
2700 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2701 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "military_access_with"), ws, layout, box);
2702 text::add_space_to_layout_box(ws, layout, box);
2703 if(this_slot != -1)
2704 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
2705 else
2706 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2707 text::close_layout_box(layout, box);
2708}
2710 auto box = text::open_layout_box(layout, indentation);
2711 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2713 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2714 text::close_layout_box(layout, box);
2715}
2717 auto box = text::open_layout_box(layout, indentation);
2718 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2719 display_with_comparison(tval[0], text::produce_simple_string(ws, "prestige"), text::produce_simple_string(ws, "prestige_of"),
2720 ws, layout, box);
2721 text::add_space_to_layout_box(ws, layout, box);
2722 if(from_slot != -1)
2723 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2724 else
2725 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2726 text::close_layout_box(layout, box);
2727}
2729 auto box = text::open_layout_box(layout, indentation);
2730 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2731 display_with_comparison(tval[0], text::produce_simple_string(ws, "prestige"), text::produce_simple_string(ws, "prestige_of"),
2732 ws, layout, box);
2733 text::add_space_to_layout_box(ws, layout, box);
2734 if(this_slot != -1)
2735 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2736 else
2737 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2738 text::close_layout_box(layout, box);
2739}
2741 auto box = text::open_layout_box(layout, indentation);
2742 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2743 display_with_comparison(tval[0], text::produce_simple_string(ws, "prestige"), text::produce_simple_string(ws, "prestige_of"),
2744 ws, layout, box);
2745 text::add_space_to_layout_box(ws, layout, box);
2746 if(this_slot != -1)
2747 text::add_to_layout_box(ws, layout, box,
2748 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
2749 else
2750 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2751 text::close_layout_box(layout, box);
2752}
2754 auto box = text::open_layout_box(layout, indentation);
2755 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2756 display_with_comparison(tval[0], text::produce_simple_string(ws, "prestige"), text::produce_simple_string(ws, "prestige_of"),
2757 ws, layout, box);
2758 text::add_space_to_layout_box(ws, layout, box);
2759 if(this_slot != -1)
2760 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
2761 else
2762 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2763 text::close_layout_box(layout, box);
2764}
2766 auto box = text::open_layout_box(layout, indentation);
2767 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2768 display_with_comparison(tval[0], text::produce_simple_string(ws, "prestige"), text::produce_simple_string(ws, "prestige_of"),
2769 ws, layout, box);
2770 text::add_space_to_layout_box(ws, layout, box);
2771 if(this_slot != -1)
2772 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
2773 else
2774 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2775 text::close_layout_box(layout, box);
2776}
2778 auto box = text::open_layout_box(layout, indentation);
2779 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2781 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2782 text::close_layout_box(layout, box);
2783}
2785 auto box = text::open_layout_box(layout, indentation);
2786 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2787 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_fort"), ws, layout, box);
2788 text::close_layout_box(layout, box);
2789}
2791 auto box = text::open_layout_box(layout, indentation);
2792 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2793 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_railroad"), ws, layout, box);
2794 text::close_layout_box(layout, box);
2795}
2797 auto box = text::open_layout_box(layout, indentation);
2798 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2799 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_naval_base"), ws, layout, box);
2800 text::close_layout_box(layout, box);
2801}
2802
2804 auto box = text::open_layout_box(layout, indentation);
2805 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2806 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_factory"), ws, layout, box);
2807 text::close_layout_box(layout, box);
2808}
2810 auto box = text::open_layout_box(layout, indentation);
2811 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2813 text::produce_simple_string(ws, ws.world.factory_type_get_name(trigger::payload(tval[1]).fac_id)), ws, layout, box);
2814 text::close_layout_box(layout, box);
2815}
2817 auto box = text::open_layout_box(layout, indentation);
2818 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2820 text::produce_simple_string(ws, ws.world.factory_type_get_name(trigger::payload(tval[1]).fac_id)), ws, layout, box);
2821 text::close_layout_box(layout, box);
2822}
2824 auto box = text::open_layout_box(layout, indentation);
2825 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2826 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_factory"), ws, layout, box);
2827 text::close_layout_box(layout, box);
2828}
2830 auto box = text::open_layout_box(layout, indentation);
2831 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2832 display_with_comparison(tval[0], text::produce_simple_string(ws, "empty"), ws, layout, box);
2833 text::close_layout_box(layout, box);
2834}
2836 auto box = text::open_layout_box(layout, indentation);
2837 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2838 display_with_comparison(tval[0], text::produce_simple_string(ws, "blockaded"), ws, layout, box);
2839 text::close_layout_box(layout, box);
2840}
2842 auto box = text::open_layout_box(layout, indentation);
2843 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2844 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "national_modifier"), ws, layout, box);
2845 text::add_space_to_layout_box(ws, layout, box);
2846 text::add_to_layout_box(ws, layout, box, ws.world.modifier_get_name(trigger::payload(tval[1]).mod_id));
2847 text::close_layout_box(layout, box);
2848}
2850 auto box = text::open_layout_box(layout, indentation);
2851 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2852 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "national_modifier"), ws, layout, box);
2853 text::add_space_to_layout_box(ws, layout, box);
2854 text::add_to_layout_box(ws, layout, box, ws.world.modifier_get_name(trigger::payload(tval[1]).mod_id));
2855 text::close_layout_box(layout, box);
2856}
2858 auto box = text::open_layout_box(layout, indentation);
2859 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2860 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "provincial_modifier"), ws, layout, box);
2861 text::add_space_to_layout_box(ws, layout, box);
2862 text::add_to_layout_box(ws, layout, box, ws.world.modifier_get_name(trigger::payload(tval[1]).mod_id));
2863 text::close_layout_box(layout, box);
2864}
2866 auto box = text::open_layout_box(layout, indentation);
2867 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2868 display_with_comparison(tval[0], text::produce_simple_string(ws, "part_of"), ws, layout, box);
2869 text::add_space_to_layout_box(ws, layout, box);
2870 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).state_id);
2871 text::close_layout_box(layout, box);
2872}
2874 auto box = text::open_layout_box(layout, indentation);
2875 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2876 display_with_comparison(tval[0], text::produce_simple_string(ws, "part_of"), ws, layout, box);
2877 text::add_space_to_layout_box(ws, layout, box);
2878 text::add_to_layout_box(ws, layout, box, ws.world.region_get_name(trigger::payload(tval[1]).reg_id));
2879 text::close_layout_box(layout, box);
2880}
2882 auto box = text::open_layout_box(layout, indentation);
2883 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2884 display_with_comparison(tval[0], text::produce_simple_string(ws, "the_owner_of_region"), ws, layout, box);
2885 text::add_space_to_layout_box(ws, layout, box);
2886 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).state_id);
2887 text::close_layout_box(layout, box);
2888}
2890 auto box = text::open_layout_box(layout, indentation);
2891 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2892 display_with_comparison(tval[0], text::produce_simple_string(ws, "the_owner_of_region"), ws, layout, box);
2893 text::add_space_to_layout_box(ws, layout, box);
2894 text::add_to_layout_box(ws, layout, box, ws.world.region_get_name(trigger::payload(tval[1]).reg_id));
2895 text::close_layout_box(layout, box);
2896}
2898 auto box = text::open_layout_box(layout, indentation);
2899 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2900 display_with_comparison(tval[0], text::produce_simple_string(ws, "located_in"), ws, layout, box);
2901 text::add_space_to_layout_box(ws, layout, box);
2902 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).state_id);
2903 text::close_layout_box(layout, box);
2904}
2906 auto box = text::open_layout_box(layout, indentation);
2907 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2908 display_with_comparison(tval[0], text::produce_simple_string(ws, "located_in"), ws, layout, box);
2909 text::add_space_to_layout_box(ws, layout, box);
2910 text::add_to_layout_box(ws, layout, box, ws.world.region_get_name(trigger::payload(tval[1]).reg_id));
2911 text::close_layout_box(layout, box);
2912}
2914 auto box = text::open_layout_box(layout, indentation);
2915 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2916 display_with_comparison(tval[0], trigger::payload(tval[1]).tag_id, ws, layout, box);
2917 text::close_layout_box(layout, box);
2918}
2920 auto box = text::open_layout_box(layout, indentation);
2921 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2922 if(this_slot != -1)
2923 display_with_comparison(tval[0], trigger::to_nation(this_slot), ws, layout, box);
2924 else
2925 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
2926 text::close_layout_box(layout, box);
2927}
2929 auto box = text::open_layout_box(layout, indentation);
2930 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2931 if(this_slot != -1)
2932 display_with_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)), ws,
2933 layout, box);
2934 else
2935 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
2936 text::close_layout_box(layout, box);
2937}
2939 auto box = text::open_layout_box(layout, indentation);
2940 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2941 if(from_slot != -1)
2942 display_with_comparison(tval[0], trigger::to_nation(from_slot), ws, layout, box);
2943 else
2944 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"), ws, layout, box);
2945 text::close_layout_box(layout, box);
2946}
2948 auto box = text::open_layout_box(layout, indentation);
2949 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2950 if(from_slot != -1)
2951 display_with_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(from_slot)), ws,
2952 layout, box);
2953 else
2954 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"), ws, layout, box);
2955 text::close_layout_box(layout, box);
2956}
2958 auto box = text::open_layout_box(layout, indentation);
2959 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2960 display_with_comparison(tval[0], text::produce_simple_string(ws, "owner"), trigger::payload(tval[1]).tag_id, ws, layout, box);
2961 text::close_layout_box(layout, box);
2962}
2964 auto box = text::open_layout_box(layout, indentation);
2965 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2966 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_border_with"), ws, layout, box);
2967 text::add_space_to_layout_box(ws, layout, box);
2968 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
2969 text::close_layout_box(layout, box);
2970}
2972 auto box = text::open_layout_box(layout, indentation);
2973 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2974 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_border_with"), ws, layout, box);
2975 text::add_space_to_layout_box(ws, layout, box);
2976 if(this_slot != -1)
2977 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2978 else
2979 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2980 text::close_layout_box(layout, box);
2981}
2983 auto box = text::open_layout_box(layout, indentation);
2984 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2985 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_border_with"), ws, layout, box);
2986 text::add_space_to_layout_box(ws, layout, box);
2987 if(from_slot != -1)
2988 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2989 else
2990 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2991 text::close_layout_box(layout, box);
2992}
2994 auto box = text::open_layout_box(layout, indentation);
2995 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2996 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_border_with"), ws, layout, box);
2997 text::add_space_to_layout_box(ws, layout, box);
2998 if(this_slot != -1)
2999 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
3000 else
3001 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3002 text::close_layout_box(layout, box);
3003}
3005 auto box = text::open_layout_box(layout, indentation);
3006 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3007 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_border_with"), ws, layout, box);
3008 text::add_space_to_layout_box(ws, layout, box);
3009 if(from_slot != -1)
3010 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(from_slot)));
3011 else
3012 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
3013 text::close_layout_box(layout, box);
3014}
3015
3017 auto box = text::open_layout_box(layout, indentation);
3018 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3019 if(from_slot != -1)
3020 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
3021 else
3022 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
3023 text::add_space_to_layout_box(ws, layout, box);
3024 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_state"), int64_t(tval[1]), ws, layout, box);
3025 text::close_layout_box(layout, box);
3026}
3028 auto box = text::open_layout_box(layout, indentation);
3029 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3030 if(this_slot != -1)
3031 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
3032 else
3033 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3034 text::add_space_to_layout_box(ws, layout, box);
3035 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_state"), int64_t(tval[1]), ws, layout, box);
3036 text::close_layout_box(layout, box);
3037}
3039 auto box = text::open_layout_box(layout, indentation);
3040 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3041 if(this_slot != -1)
3042 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
3043 else
3044 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3045 text::add_space_to_layout_box(ws, layout, box);
3046 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_state"), int64_t(tval[1]), ws, layout, box);
3047 text::close_layout_box(layout, box);
3048}
3050 auto box = text::open_layout_box(layout, indentation);
3051 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3052 if(this_slot != -1)
3053 text::add_to_layout_box(ws, layout, box,
3054 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
3055 else
3056 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3057 text::add_space_to_layout_box(ws, layout, box);
3058 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_state"), int64_t(tval[1]), ws, layout, box);
3059 text::close_layout_box(layout, box);
3060}
3062 auto box = text::open_layout_box(layout, indentation);
3063 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3064 if(this_slot != -1)
3065 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
3066 else
3067 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3068 text::add_space_to_layout_box(ws, layout, box);
3069 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_state"), int64_t(tval[1]), ws, layout, box);
3070 text::close_layout_box(layout, box);
3071}
3073 auto box = text::open_layout_box(layout, indentation);
3074 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3075 text::add_to_layout_box(ws, layout, box, ws.world.national_identity_get_nation_from_identity_holder(trigger::payload(tval[1]).tag_id));
3076 text::add_space_to_layout_box(ws, layout, box);
3077 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_state"), ws, layout, box);
3078 text::close_layout_box(layout, box);
3079}
3080
3082 auto box = text::open_layout_box(layout, indentation);
3083 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3084 display_with_comparison(tval[0], text::produce_simple_string(ws, "units_in_province"), int64_t(tval[1]), ws, layout, box);
3085 text::close_layout_box(layout, box);
3086}
3088 auto box = text::open_layout_box(layout, indentation);
3089 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3090 text::add_to_layout_box(ws, layout, box, ws.world.national_identity_get_nation_from_identity_holder(trigger::payload(tval[1]).tag_id));
3091 text::add_space_to_layout_box(ws, layout, box);
3092 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_province"), ws, layout, box);
3093 text::close_layout_box(layout, box);
3094}
3096 auto box = text::open_layout_box(layout, indentation);
3097 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3098 if(from_slot != -1)
3099 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
3100 else
3101 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
3102 text::add_space_to_layout_box(ws, layout, box);
3103 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_province"), int64_t(tval[1]), ws, layout, box);
3104 text::close_layout_box(layout, box);
3105}
3107 auto box = text::open_layout_box(layout, indentation);
3108 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3109 if(this_slot != -1)
3110 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
3111 else
3112 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3113 text::add_space_to_layout_box(ws, layout, box);
3114 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_province"), int64_t(tval[1]), ws, layout, box);
3115 text::close_layout_box(layout, box);
3116}
3118 auto box = text::open_layout_box(layout, indentation);
3119 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3120 if(this_slot != -1)
3121 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
3122 else
3123 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3124 text::add_space_to_layout_box(ws, layout, box);
3125 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_province"), int64_t(tval[1]), ws, layout, box);
3126 text::close_layout_box(layout, box);
3127}
3129 auto box = text::open_layout_box(layout, indentation);
3130 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3131 if(this_slot != -1)
3132 text::add_to_layout_box(ws, layout, box,
3133 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
3134 else
3135 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3136 text::add_space_to_layout_box(ws, layout, box);
3137 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_province"), int64_t(tval[1]), ws, layout, box);
3138 text::close_layout_box(layout, box);
3139}
3141 auto box = text::open_layout_box(layout, indentation);
3142 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3143 if(this_slot != -1)
3144 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
3145 else
3146 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3147 text::add_space_to_layout_box(ws, layout, box);
3148 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_province"), int64_t(tval[1]), ws, layout, box);
3149 text::close_layout_box(layout, box);
3150}
3152 auto box = text::open_layout_box(layout, indentation);
3153 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3154 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war_against"), ws, layout, box);
3155 text::add_space_to_layout_box(ws, layout, box);
3156 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
3157 text::close_layout_box(layout, box);
3158}
3160 auto box = text::open_layout_box(layout, indentation);
3161 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3162 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war_against"), ws, layout, box);
3163 text::add_space_to_layout_box(ws, layout, box);
3164 if(from_slot != -1)
3165 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
3166 else
3167 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
3168 text::close_layout_box(layout, box);
3169}
3171 auto box = text::open_layout_box(layout, indentation);
3172 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3173 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war_against"), ws, layout, box);
3174 text::add_space_to_layout_box(ws, layout, box);
3175 if(this_slot != -1)
3176 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
3177 else
3178 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3179 text::close_layout_box(layout, box);
3180}
3182 auto box = text::open_layout_box(layout, indentation);
3183 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3184 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war_against"), ws, layout, box);
3185 text::add_space_to_layout_box(ws, layout, box);
3186 if(this_slot != -1)
3187 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
3188 else
3189 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3190 text::close_layout_box(layout, box);
3191}
3193 auto box = text::open_layout_box(layout, indentation);
3194 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3195 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war_against"), ws, layout, box);
3196 text::add_space_to_layout_box(ws, layout, box);
3197 if(this_slot != -1)
3198 text::add_to_layout_box(ws, layout, box,
3199 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
3200 else
3201 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3202 text::close_layout_box(layout, box);
3203}
3205 auto box = text::open_layout_box(layout, indentation);
3206 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3207 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war_against"), ws, layout, box);
3208 text::add_space_to_layout_box(ws, layout, box);
3209 if(this_slot != -1)
3210 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
3211 else
3212 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3213 text::close_layout_box(layout, box);
3214}
3216 auto box = text::open_layout_box(layout, indentation);
3217 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3218 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "an_ongoing_battle"), ws, layout, box);
3219 text::close_layout_box(layout, box);
3220}
3222 auto box = text::open_layout_box(layout, indentation);
3223 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3224 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "an_assigned_leader"), ws, layout, box);
3225 text::close_layout_box(layout, box);
3226}
3228 auto box = text::open_layout_box(layout, indentation);
3229 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3230 display_with_comparison(tval[0], text::produce_simple_string(ws, "has_national_focus"),
3231 text::produce_simple_string(ws, ws.world.national_focus_get_name(trigger::payload(tval[1]).nf_id)), ws, layout, box);
3232 text::close_layout_box(layout, box);
3233}
3235 auto box = text::open_layout_box(layout, indentation);
3236 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3237 display_with_comparison(tval[0], text::produce_simple_string(ws, "has_national_focus"),
3238 text::produce_simple_string(ws, ws.world.national_focus_get_name(trigger::payload(tval[1]).nf_id)), ws, layout, box);
3239 text::close_layout_box(layout, box);
3240}
3242 auto box = text::open_layout_box(layout, indentation);
3243 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3244 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_of_divisions"), int64_t(tval[1]), ws, layout, box);
3245 text::close_layout_box(layout, box);
3246}
3248 auto box = text::open_layout_box(layout, indentation);
3249 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3251 text::fp_currency{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3252 text::close_layout_box(layout, box);
3253}
3255 auto box = text::open_layout_box(layout, indentation);
3256 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3257 display_with_comparison(tval[0], text::produce_simple_string(ws, "o_treasury"),
3258 text::fp_currency{ trigger::read_float_from_payload(tval + 1) }, ws, layout, box);
3259 text::close_layout_box(layout, box);
3260}
3262 auto box = text::open_layout_box(layout, indentation);
3263 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3264 display_with_comparison(tval[0], text::produce_simple_string(ws, "percentage_unowned_cores"),
3265 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3266 text::close_layout_box(layout, box);
3267}
3269 auto box = text::open_layout_box(layout, indentation);
3270 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3271 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal"), ws, layout, box);
3272 text::close_layout_box(layout, box);
3273}
3275 auto box = text::open_layout_box(layout, indentation);
3276 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3277 display_with_comparison(tval[0], text::produce_simple_string(ws, "ruling_party_ideology"),
3278 text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id)), ws, layout, box);
3279 text::close_layout_box(layout, box);
3280}
3282 auto box = text::open_layout_box(layout, indentation);
3283 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3284 display_with_comparison(tval[0], text::produce_simple_string(ws, "ruling_party"),
3285 text::produce_simple_string(ws, ws.world.political_party_get_name(trigger::payload(tval[1]).par_id)), ws, layout, box);
3286 text::close_layout_box(layout, box);
3287}
3289 auto box = text::open_layout_box(layout, indentation);
3290 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3291 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id)),
3292 text::produce_simple_string(ws, "enabled"), ws, layout, box);
3293 text::close_layout_box(layout, box);
3294}
3296 auto box = text::open_layout_box(layout, indentation);
3297 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3298 display_with_comparison(tval[0], text::produce_simple_string(ws, "political_reform_desire"),
3299 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3300 text::close_layout_box(layout, box);
3301}
3303 auto box = text::open_layout_box(layout, indentation);
3304 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3305 display_with_comparison(tval[0], text::produce_simple_string(ws, "political_reform_desire"),
3306 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3307 text::close_layout_box(layout, box);
3308}
3310 auto box = text::open_layout_box(layout, indentation);
3311 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3312 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_reform_desire"),
3313 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3314 text::close_layout_box(layout, box);
3315}
3317 auto box = text::open_layout_box(layout, indentation);
3318 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3319 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_reform_desire"),
3320 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3321 text::close_layout_box(layout, box);
3322}
3324 auto box = text::open_layout_box(layout, indentation);
3325 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3326 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_of_ships"), int64_t(tval[1]), ws, layout, box);
3327 text::close_layout_box(layout, box);
3328}
3330 auto box = text::open_layout_box(layout, indentation);
3331 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3332 display_with_comparison(tval[0], text::produce_simple_string(ws, "plurality"),
3333 text::fp_percentage{trigger::read_float_from_payload(tval + 1) / 10000.0f}, ws, layout, box);
3334 text::close_layout_box(layout, box);
3335}
3337 auto box = text::open_layout_box(layout, indentation);
3338 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3339 display_with_comparison(tval[0], text::produce_simple_string(ws, "plurality_pop"),
3340 text::fp_percentage{ trigger::read_float_from_payload(tval + 1) / 10000.0f }, ws, layout, box);
3341 text::close_layout_box(layout, box);
3342}
3344 auto box = text::open_layout_box(layout, indentation);
3345 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3346 display_with_comparison(tval[0], text::produce_simple_string(ws, "crime_percent"),
3347 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3348 text::close_layout_box(layout, box);
3349}
3351 auto box = text::open_layout_box(layout, indentation);
3352 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3353 display_with_comparison(tval[0], text::produce_simple_string(ws, "member_of_nat_religion"), ws, layout, box);
3354 text::close_layout_box(layout, box);
3355}
3357 auto box = text::open_layout_box(layout, indentation);
3358 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3359 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
3360 text::produce_simple_string(ws, "dominant_religion"), ws, layout, box);
3361 text::close_layout_box(layout, box);
3362}
3364 auto box = text::open_layout_box(layout, indentation);
3365 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3366 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
3367 text::produce_simple_string(ws, "dominant_religion"), ws, layout, box);
3368 text::close_layout_box(layout, box);
3369}
3371 auto box = text::open_layout_box(layout, indentation);
3372 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3374 text::produce_simple_string(ws, "owner_primary_culture"), ws, layout, box);
3375 text::close_layout_box(layout, box);
3376}
3378 auto box = text::open_layout_box(layout, indentation);
3379 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3380 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3381 text::produce_simple_string(ws, "owner_primary_culture"), ws, layout, box);
3382 text::close_layout_box(layout, box);
3383}
3385 auto box = text::open_layout_box(layout, indentation);
3386 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3387 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3388 text::produce_simple_string(ws, "owner_primary_culture"), ws, layout, box);
3389 text::close_layout_box(layout, box);
3390}
3392 auto box = text::open_layout_box(layout, indentation);
3393 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3394 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3395 text::produce_simple_string(ws, "this_pop_culture"), ws, layout, box);
3396 text::close_layout_box(layout, box);
3397}
3399 auto box = text::open_layout_box(layout, indentation);
3400 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3401 if(this_slot != -1)
3402 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3404 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))),
3405 ws, layout, box);
3406 else
3407 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3408 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3409 text::close_layout_box(layout, box);
3410}
3412 auto box = text::open_layout_box(layout, indentation);
3413 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3414 if(this_slot != -1)
3415 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3417 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3418 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
3419 ws, layout, box);
3420 else
3421 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3422 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3423 text::close_layout_box(layout, box);
3424}
3426 auto box = text::open_layout_box(layout, indentation);
3427 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3428 if(this_slot != -1)
3429 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3430 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3431 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3432 ws, layout, box);
3433 else
3434 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3435 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3436 text::close_layout_box(layout, box);
3437}
3439 auto box = text::open_layout_box(layout, indentation);
3440 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3441 if(this_slot != -1)
3442 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3444 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))),
3445 ws, layout, box);
3446 else
3447 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3448 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3449 text::close_layout_box(layout, box);
3450}
3452 auto box = text::open_layout_box(layout, indentation);
3453 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3454 if(this_slot != -1)
3455 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3456 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3457 nations::owner_of_pop(ws, trigger::to_pop(this_slot))))),
3458 ws, layout, box);
3459 else
3460 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3461 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3462 text::close_layout_box(layout, box);
3463}
3465 auto box = text::open_layout_box(layout, indentation);
3466 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3467 if(this_slot != -1)
3468 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3470 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3471 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
3472 ws, layout, box);
3473 else
3474 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3475 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3476 text::close_layout_box(layout, box);
3477}
3479 auto box = text::open_layout_box(layout, indentation);
3480 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3481 if(this_slot != -1)
3482 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3483 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3484 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3485 ws, layout, box);
3486 else
3487 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3488 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3489 text::close_layout_box(layout, box);
3490}
3492 auto box = text::open_layout_box(layout, indentation);
3493 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3494 if(this_slot != -1)
3495 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3497 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))),
3498 ws, layout, box);
3499 else
3500 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3501 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3502 text::close_layout_box(layout, box);
3503}
3505 auto box = text::open_layout_box(layout, indentation);
3506 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3507 if(this_slot != -1)
3508 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3509 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3510 nations::owner_of_pop(ws, trigger::to_pop(this_slot))))),
3511 ws, layout, box);
3512 else
3513 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3514 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3515 text::close_layout_box(layout, box);
3516}
3518 auto box = text::open_layout_box(layout, indentation);
3519 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3520 if(this_slot != -1)
3521 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3523 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3524 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
3525 ws, layout, box);
3526 else
3527 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3528 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3529 text::close_layout_box(layout, box);
3530}
3532 auto box = text::open_layout_box(layout, indentation);
3533 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3534 if(this_slot != -1)
3535 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3536 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3537 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3538 ws, layout, box);
3539 else
3540 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3541 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3542 text::close_layout_box(layout, box);
3543}
3545 auto box = text::open_layout_box(layout, indentation);
3546 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3547 if(this_slot != -1)
3550 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))),
3551 ws, layout, box);
3552 else
3554 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3555 text::close_layout_box(layout, box);
3556}
3558 auto box = text::open_layout_box(layout, indentation);
3559 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3560 if(this_slot != -1)
3562 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3563 nations::owner_of_pop(ws, trigger::to_pop(this_slot))))),
3564 ws, layout, box);
3565 else
3567 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3568 text::close_layout_box(layout, box);
3569}
3571 auto box = text::open_layout_box(layout, indentation);
3572 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3573 if(this_slot != -1)
3576 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3577 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
3578 ws, layout, box);
3579 else
3581 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3582 text::close_layout_box(layout, box);
3583}
3585 auto box = text::open_layout_box(layout, indentation);
3586 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3587 if(this_slot != -1)
3589 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3590 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3591 ws, layout, box);
3592 else
3594 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3595 text::close_layout_box(layout, box);
3596}
3597
3598
3600 auto box = text::open_layout_box(layout, indentation);
3601 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3602 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_pop_culture"),
3603 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3604 text::close_layout_box(layout, box);
3605}
3607 auto box = text::open_layout_box(layout, indentation);
3608 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3609 if(this_slot != -1)
3611 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))), text::produce_simple_string(ws, "an_accepted_culture"),
3612 ws, layout, box);
3613 else
3614 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3615 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3616 text::close_layout_box(layout, box);
3617}
3619 auto box = text::open_layout_box(layout, indentation);
3620 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3621 if(this_slot != -1)
3623 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3624 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))), text::produce_simple_string(ws, "an_accepted_culture"),
3625 ws, layout, box);
3626 else
3627 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3628 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3629 text::close_layout_box(layout, box);
3630}
3632 auto box = text::open_layout_box(layout, indentation);
3633 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3634 if(this_slot != -1)
3635 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3636 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3637 text::produce_simple_string(ws, "an_accepted_culture"),
3638 ws, layout, box);
3639 else
3640 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3641 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3642 text::close_layout_box(layout, box);
3643}
3645 auto box = text::open_layout_box(layout, indentation);
3646 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3647 if(this_slot != -1)
3649 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))),
3650 text::produce_simple_string(ws, "an_accepted_culture"),
3651 ws, layout, box);
3652 else
3653 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3654 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3655 text::close_layout_box(layout, box);
3656}
3658 auto box = text::open_layout_box(layout, indentation);
3659 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3660 if(this_slot != -1)
3661 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3662 nations::owner_of_pop(ws, trigger::to_pop(this_slot))))),
3663 text::produce_simple_string(ws, "this_nation_primary_culture"),
3664 ws, layout, box);
3665 else
3666 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3667 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3668 text::close_layout_box(layout, box);
3669}
3671 auto box = text::open_layout_box(layout, indentation);
3672 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3673 if(this_slot != -1)
3675 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3676 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
3677 text::produce_simple_string(ws, "an_accepted_culture"),
3678 ws, layout, box);
3679 else
3680 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3681 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3682 text::close_layout_box(layout, box);
3683}
3685 auto box = text::open_layout_box(layout, indentation);
3686 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3687 if(this_slot != -1)
3688 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3689 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3690 text::produce_simple_string(ws, "an_accepted_culture"),
3691 ws, layout, box);
3692 else
3693 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3694 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3695 text::close_layout_box(layout, box);
3696}
3698 auto box = text::open_layout_box(layout, indentation);
3699 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3700 if(this_slot != -1)
3702 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))),
3703 text::produce_simple_string(ws, "an_accepted_culture"),
3704 ws, layout, box);
3705 else
3706 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3707 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3708 text::close_layout_box(layout, box);
3709}
3711 auto box = text::open_layout_box(layout, indentation);
3712 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3713 if(this_slot != -1)
3714 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3715 nations::owner_of_pop(ws, trigger::to_pop(this_slot))))),
3716 text::produce_simple_string(ws, "an_accepted_culture"),
3717 ws, layout, box);
3718 else
3719 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3720 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3721 text::close_layout_box(layout, box);
3722}
3724 auto box = text::open_layout_box(layout, indentation);
3725 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3726 if(this_slot != -1)
3728 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3729 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
3730 text::produce_simple_string(ws, "an_accepted_culture"),
3731 ws, layout, box);
3732 else
3733 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3734 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3735 text::close_layout_box(layout, box);
3736}
3738 auto box = text::open_layout_box(layout, indentation);
3739 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3740 if(this_slot != -1)
3741 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3742 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3743 text::produce_simple_string(ws, "an_accepted_culture"),
3744 ws, layout, box);
3745 else
3746 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3747 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3748 text::close_layout_box(layout, box);
3749}
3751 auto box = text::open_layout_box(layout, indentation);
3752 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3753
3754 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_pop_culture"),
3755 text::produce_simple_string(ws, "this_nation_accepted_culture"),
3756 ws, layout, box);
3757
3758 text::close_layout_box(layout, box);
3759}
3761 auto box = text::open_layout_box(layout, indentation);
3762 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3763
3764 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_pop_culture"),
3765 text::produce_simple_string(ws, "this_nation_accepted_culture"),
3766 ws, layout, box);
3767
3768 text::close_layout_box(layout, box);
3769}
3771 auto box = text::open_layout_box(layout, indentation);
3772 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3773
3774 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_pop_culture"),
3775 text::produce_simple_string(ws, "this_nation_accepted_culture"),
3776 ws, layout, box);
3777
3778 text::close_layout_box(layout, box);
3779}
3781 auto box = text::open_layout_box(layout, indentation);
3782 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3783
3784 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_pop_culture"),
3785 text::produce_simple_string(ws, "this_nation_accepted_culture"),
3786 ws, layout, box);
3787
3788 text::close_layout_box(layout, box);
3789}
3790
3792 auto box = text::open_layout_box(layout, indentation);
3793 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3794 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture"), text::produce_simple_string(ws, "an_accepted_culture"), ws,
3795 layout, box);
3796 text::close_layout_box(layout, box);
3797}
3799 auto box = text::open_layout_box(layout, indentation);
3800 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3801 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3802 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3803 text::close_layout_box(layout, box);
3804}
3806 auto box = text::open_layout_box(layout, indentation);
3807 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3808 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3809 text::produce_simple_string(ws, "an_accepted"), ws, layout, box);
3810 text::close_layout_box(layout, box);
3811}
3813 auto box = text::open_layout_box(layout, indentation);
3814 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3815 display_with_comparison(tval[0], text::produce_simple_string(ws, "coastal"), ws, layout, box);
3816 text::close_layout_box(layout, box);
3817}
3819 auto box = text::open_layout_box(layout, indentation);
3820 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3821 display_with_comparison(tval[0], text::produce_simple_string(ws, "coastal"), ws, layout, box);
3822 text::close_layout_box(layout, box);
3823}
3825 auto box = text::open_layout_box(layout, indentation);
3826 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3827 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere_of"), ws, layout, box);
3828 text::add_space_to_layout_box(ws, layout, box);
3829 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
3830 text::close_layout_box(layout, box);
3831}
3833 auto box = text::open_layout_box(layout, indentation);
3834 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3835 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere_of"), ws, layout, box);
3836 text::add_space_to_layout_box(ws, layout, box);
3837 if(from_slot != -1)
3838 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
3839 else
3840 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
3841 text::close_layout_box(layout, box);
3842}
3844 auto box = text::open_layout_box(layout, indentation);
3845 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3846 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere_of"), ws, layout, box);
3847 text::add_space_to_layout_box(ws, layout, box);
3848 if(this_slot != -1)
3849 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
3850 else
3851 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3852 text::close_layout_box(layout, box);
3853}
3855 auto box = text::open_layout_box(layout, indentation);
3856 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3857 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere_of"), ws, layout, box);
3858 text::add_space_to_layout_box(ws, layout, box);
3859 if(this_slot != -1)
3860 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
3861 else
3862 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3863 text::close_layout_box(layout, box);
3864}
3866 auto box = text::open_layout_box(layout, indentation);
3867 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3868 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere_of"), ws, layout, box);
3869 text::add_space_to_layout_box(ws, layout, box);
3870 if(this_slot != -1)
3871 text::add_to_layout_box(ws, layout, box,
3872 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
3873 else
3874 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3875 text::close_layout_box(layout, box);
3876}
3878 auto box = text::open_layout_box(layout, indentation);
3879 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3880 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere_of"), ws, layout, box);
3881 text::add_space_to_layout_box(ws, layout, box);
3882 if(this_slot != -1)
3883 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
3884 else
3885 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3886 text::close_layout_box(layout, box);
3887}
3889 auto box = text::open_layout_box(layout, indentation);
3890 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3891 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_producer_of"), ws, layout, box);
3892 text::add_space_to_layout_box(ws, layout, box);
3893 text::add_to_layout_box(ws, layout, box, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id));
3894 text::close_layout_box(layout, box);
3895}
3897 auto box = text::open_layout_box(layout, indentation);
3898 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3899 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_producer_of"), ws, layout, box);
3900 text::add_space_to_layout_box(ws, layout, box);
3901 text::add_to_layout_box(ws, layout, box, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id));
3902 text::close_layout_box(layout, box);
3903}
3905 auto box = text::open_layout_box(layout, indentation);
3906 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3907 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_producer_of"), ws, layout, box);
3908 text::add_space_to_layout_box(ws, layout, box);
3909 text::add_to_layout_box(ws, layout, box, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id));
3910 text::close_layout_box(layout, box);
3911}
3912
3914 auto box = text::open_layout_box(layout, indentation);
3915 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3916 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_producer_of"), ws, layout, box);
3917 text::add_space_to_layout_box(ws, layout, box);
3918 text::add_to_layout_box(ws, layout, box, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id));
3919 text::close_layout_box(layout, box);
3920}
3922 auto box = text::open_layout_box(layout, indentation);
3923 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3924 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
3925 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3926 text::close_layout_box(layout, box);
3927}
3929 auto box = text::open_layout_box(layout, indentation);
3930 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3931 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
3932 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3933 text::close_layout_box(layout, box);
3934}
3936 auto box = text::open_layout_box(layout, indentation);
3937 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3938 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
3939 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3940 text::close_layout_box(layout, box);
3941}
3943 auto box = text::open_layout_box(layout, indentation);
3944 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3945 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
3946 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3947 text::close_layout_box(layout, box);
3948}
3950 auto box = text::open_layout_box(layout, indentation);
3951 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3952 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
3953 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3954 text::close_layout_box(layout, box);
3955}
3957 auto box = text::open_layout_box(layout, indentation);
3958 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3959 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
3960 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3961 text::close_layout_box(layout, box);
3962}
3964 auto box = text::open_layout_box(layout, indentation);
3965 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3966 display_with_comparison(tval[0], text::produce_simple_string(ws, "next_reform"),
3967 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id)), ws, layout, box);
3968 text::close_layout_box(layout, box);
3969}
3971 auto box = text::open_layout_box(layout, indentation);
3972 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3973 display_with_comparison(tval[0], text::produce_simple_string(ws, "next_reform"),
3974 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id)), ws, layout, box);
3975 text::close_layout_box(layout, box);
3976}
3978 auto box = text::open_layout_box(layout, indentation);
3979 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3980 display_with_comparison(tval[0], text::produce_simple_string(ws, "next_reform"),
3981 text::produce_simple_string(ws, ws.world.reform_option_get_name(trigger::payload(tval[1]).ropt_id)), ws, layout, box);
3982 text::close_layout_box(layout, box);
3983}
3985 auto box = text::open_layout_box(layout, indentation);
3986 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3987 display_with_comparison(tval[0], text::produce_simple_string(ws, "next_reform"),
3988 text::produce_simple_string(ws, ws.world.reform_option_get_name(trigger::payload(tval[1]).ropt_id)), ws, layout, box);
3989 text::close_layout_box(layout, box);
3990}
3992 auto box = text::open_layout_box(layout, indentation);
3993 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3994 text::add_to_layout_box(ws, layout, box,
3995 text::produce_simple_string(ws, (tval[0] & trigger::association_mask) == trigger::association_eq ? "never" : "always"));
3996 text::close_layout_box(layout, box);
3997}
3999 auto box = text::open_layout_box(layout, indentation);
4000 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4001 display_with_comparison(tval[0], text::produce_simple_string(ws, "percentage_recruited"),
4002 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
4003 text::close_layout_box(layout, box);
4004}
4006 auto box = text::open_layout_box(layout, indentation);
4007 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4008 display_with_comparison(tval[0], text::produce_simple_string(ws, "percentage_recruited"),
4009 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
4010 text::close_layout_box(layout, box);
4011}
4013 auto box = text::open_layout_box(layout, indentation);
4014 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4015 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_cultural_core_prov"), ws, layout, box);
4016 text::close_layout_box(layout, box);
4017}
4019 auto box = text::open_layout_box(layout, indentation);
4020 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4021 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_cultural_core_prov"), ws, layout, box);
4022 text::close_layout_box(layout, box);
4023}
4025 auto box = text::open_layout_box(layout, indentation);
4026 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4027 display_with_comparison(tval[0], text::produce_simple_string(ws, "nationalism"), int64_t(tval[1]), ws, layout, box);
4028 text::close_layout_box(layout, box);
4029}
4031 auto box = text::open_layout_box(layout, indentation);
4032 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4033 display_with_comparison(tval[0], text::produce_simple_string(ws, "overseas"), ws, layout, box);
4034 text::close_layout_box(layout, box);
4035}
4037 auto box = text::open_layout_box(layout, indentation);
4038 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4039 display_with_comparison(tval[0], text::produce_simple_string(ws, "overseas_pop"), ws, layout, box);
4040 text::close_layout_box(layout, box);
4041}
4043 auto box = text::open_layout_box(layout, indentation);
4044 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4045 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by_rebel"), ws, layout, box);
4046 text::close_layout_box(layout, box);
4047}
4049 auto box = text::open_layout_box(layout, indentation);
4050 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4051 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4052 text::add_space_to_layout_box(ws, layout, box);
4053 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4054 text::close_layout_box(layout, box);
4055}
4057 auto box = text::open_layout_box(layout, indentation);
4058 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4059 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4060 text::add_space_to_layout_box(ws, layout, box);
4061 if(from_slot != -1)
4062 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4063 else
4064 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4065 text::close_layout_box(layout, box);
4066}
4068 auto box = text::open_layout_box(layout, indentation);
4069 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4070 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4071 text::add_space_to_layout_box(ws, layout, box);
4072 if(this_slot != -1)
4073 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4074 else
4075 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4076 text::close_layout_box(layout, box);
4077}
4079 auto box = text::open_layout_box(layout, indentation);
4080 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4081 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4082 text::add_space_to_layout_box(ws, layout, box);
4083 if(this_slot != -1)
4084 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4085 else
4086 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4087 text::close_layout_box(layout, box);
4088}
4090 auto box = text::open_layout_box(layout, indentation);
4091 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4092 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4093 text::add_space_to_layout_box(ws, layout, box);
4094 if(this_slot != -1)
4095 text::add_to_layout_box(ws, layout, box,
4096 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4097 else
4098 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4099 text::close_layout_box(layout, box);
4100}
4102 auto box = text::open_layout_box(layout, indentation);
4103 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4104 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4105 text::add_space_to_layout_box(ws, layout, box);
4106 if(this_slot != -1)
4107 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4108 else
4109 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4110 text::close_layout_box(layout, box);
4111}
4113 auto box = text::open_layout_box(layout, indentation);
4114 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4115 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4116 text::add_space_to_layout_box(ws, layout, box);
4117 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "owner"));
4118 text::close_layout_box(layout, box);
4119}
4121 auto box = text::open_layout_box(layout, indentation);
4122 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4123 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by_rebel"), ws, layout, box);
4124 text::close_layout_box(layout, box);
4125}
4127 auto box = text::open_layout_box(layout, indentation);
4128 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4129 display_with_comparison(tval[0], text::produce_simple_string(ws, std::string("canal_") + std::to_string(tval[1])),
4130 text::produce_simple_string(ws, "enabled"), ws, layout, box);
4131 text::close_layout_box(layout, box);
4132}
4134 auto box = text::open_layout_box(layout, indentation);
4135 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4136 display_with_comparison(tval[0], text::produce_simple_string(ws, "loc_state_capital"), ws, layout, box);
4137 text::close_layout_box(layout, box);
4138}
4140 auto box = text::open_layout_box(layout, indentation);
4141 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4142 display_with_comparison(tval[0], text::produce_simple_string(ws, "state_capital"), ws, layout, box);
4143 text::close_layout_box(layout, box);
4144}
4146 auto box = text::open_layout_box(layout, indentation);
4147 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4148 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_truce_with"), ws, layout, box);
4149 text::add_space_to_layout_box(ws, layout, box);
4150 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4151 text::close_layout_box(layout, box);
4152}
4154 auto box = text::open_layout_box(layout, indentation);
4155 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4156 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_truce_with"), ws, layout, box);
4157 text::add_space_to_layout_box(ws, layout, box);
4158 if(from_slot != -1)
4159 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4160 else
4161 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4162 text::close_layout_box(layout, box);
4163}
4165 auto box = text::open_layout_box(layout, indentation);
4166 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4167 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_truce_with"), ws, layout, box);
4168 text::add_space_to_layout_box(ws, layout, box);
4169 if(this_slot != -1)
4170 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4171 else
4172 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4173 text::close_layout_box(layout, box);
4174}
4176 auto box = text::open_layout_box(layout, indentation);
4177 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4178 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_truce_with"), ws, layout, box);
4179 text::add_space_to_layout_box(ws, layout, box);
4180 if(this_slot != -1)
4181 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4182 else
4183 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4184 text::close_layout_box(layout, box);
4185}
4187 auto box = text::open_layout_box(layout, indentation);
4188 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4189 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_truce_with"), ws, layout, box);
4190 text::add_space_to_layout_box(ws, layout, box);
4191 if(this_slot != -1)
4192 text::add_to_layout_box(ws, layout, box,
4193 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4194 else
4195 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4196 text::close_layout_box(layout, box);
4197}
4199 auto box = text::open_layout_box(layout, indentation);
4200 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4201 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_truce_with"), ws, layout, box);
4202 text::add_space_to_layout_box(ws, layout, box);
4203 if(this_slot != -1)
4204 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4205 else
4206 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4207 text::close_layout_box(layout, box);
4208}
4210 auto box = text::open_layout_box(layout, indentation);
4211 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4212 display_with_comparison(tval[0], text::produce_simple_string(ws, "att_population"),
4213 int64_t(trigger::read_float_from_payload(tval + 1)), ws, layout, box);
4214 text::close_layout_box(layout, box);
4215}
4217 auto box = text::open_layout_box(layout, indentation);
4218 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4219 display_with_comparison(tval[0], text::produce_simple_string(ws, "att_population"),
4220 int64_t(trigger::read_float_from_payload(tval + 1)), ws, layout, box);
4221 text::close_layout_box(layout, box);
4222}
4224 auto box = text::open_layout_box(layout, indentation);
4225 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4226 display_with_comparison(tval[0], text::produce_simple_string(ws, "att_population"),
4227 int64_t(trigger::read_float_from_payload(tval + 1)), ws, layout, box);
4228 text::close_layout_box(layout, box);
4229}
4231 auto box = text::open_layout_box(layout, indentation);
4232 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4233 display_with_comparison(tval[0], text::produce_simple_string(ws, "att_population"),
4234 int64_t(trigger::read_float_from_payload(tval + 1)), ws, layout, box);
4235 text::close_layout_box(layout, box);
4236}
4238 auto box = text::open_layout_box(layout, indentation);
4239 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4240 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_of_type"), ws, layout, box);
4241 text::add_space_to_layout_box(ws, layout, box);
4242 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
4243 text::close_layout_box(layout, box);
4244}
4246 auto box = text::open_layout_box(layout, indentation);
4247 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4248 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_of_type"), ws, layout, box);
4249 text::add_space_to_layout_box(ws, layout, box);
4250 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
4251 text::close_layout_box(layout, box);
4252}
4254 auto box = text::open_layout_box(layout, indentation);
4255 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4256 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_of_type"), ws, layout, box);
4257 text::add_space_to_layout_box(ws, layout, box);
4258 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
4259 text::close_layout_box(layout, box);
4260}
4262 auto box = text::open_layout_box(layout, indentation);
4263 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4264 display_with_comparison(tval[0], text::produce_simple_string(ws, "of_type_plain"), ws, layout, box);
4265 text::add_space_to_layout_box(ws, layout, box);
4266 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
4267 text::close_layout_box(layout, box);
4268}
4270 auto box = text::open_layout_box(layout, indentation);
4271 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4272 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "an_empty_adj_prov"), ws, layout, box);
4273 text::close_layout_box(layout, box);
4274}
4276 auto box = text::open_layout_box(layout, indentation);
4277 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4278 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_leader_named"), ws, layout, box);
4279 text::add_space_to_layout_box(ws, layout, box);
4280 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)))));
4281 text::close_layout_box(layout, box);
4282}
4284 auto box = text::open_layout_box(layout, indentation);
4285 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4286 display_with_comparison(tval[0], text::produce_simple_string(ws, "ai_controlled"), ws, layout, box);
4287 text::close_layout_box(layout, box);
4288}
4290 auto box = text::open_layout_box(layout, indentation);
4291 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4292 display_with_comparison(tval[0], text::produce_simple_string(ws, "able_to_create_vassals"), ws, layout, box);
4293 text::close_layout_box(layout, box);
4294}
4296 auto box = text::open_layout_box(layout, indentation);
4297 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4298 display_with_comparison(tval[0], trigger::payload(tval[1]).tag_id, text::produce_simple_string(ws, "a_possible_vassal"), ws,
4299 layout, box);
4300 text::close_layout_box(layout, box);
4301}
4303 auto box = text::open_layout_box(layout, indentation);
4304 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4305 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.province_get_name(trigger::payload(tval[1]).prov_id)),
4306 ws, layout, box);
4307 text::close_layout_box(layout, box);
4308}
4310 auto box = text::open_layout_box(layout, indentation);
4311 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4312 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4313 text::add_space_to_layout_box(ws, layout, box);
4314 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4315 text::close_layout_box(layout, box);
4316}
4318 auto box = text::open_layout_box(layout, indentation);
4319 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4320 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4321 text::add_space_to_layout_box(ws, layout, box);
4322 if(from_slot != -1)
4323 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4324 else
4325 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4326 text::close_layout_box(layout, box);
4327}
4329 auto box = text::open_layout_box(layout, indentation);
4330 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4331 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4332 text::add_space_to_layout_box(ws, layout, box);
4333 if(this_slot != -1)
4334 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4335 else
4336 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4337 text::close_layout_box(layout, box);
4338}
4340 auto box = text::open_layout_box(layout, indentation);
4341 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4342 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4343 text::add_space_to_layout_box(ws, layout, box);
4344 if(this_slot != -1)
4345 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4346 else
4347 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4348 text::close_layout_box(layout, box);
4349}
4351 auto box = text::open_layout_box(layout, indentation);
4352 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4353 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4354 text::add_space_to_layout_box(ws, layout, box);
4355 if(this_slot != -1)
4356 text::add_to_layout_box(ws, layout, box,
4357 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4358 else
4359 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4360 text::close_layout_box(layout, box);
4361}
4363 auto box = text::open_layout_box(layout, indentation);
4364 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4365 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4366 text::add_space_to_layout_box(ws, layout, box);
4367 if(this_slot != -1)
4368 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4369 else
4370 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4371 text::close_layout_box(layout, box);
4372}
4373
4374
4376 auto box = text::open_layout_box(layout, indentation);
4377 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4378 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
4379 text::add_space_to_layout_box(ws, layout, box);
4380 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4381 text::add_space_to_layout_box(ws, layout, box);
4382 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4383 text::close_layout_box(layout, box);
4384}
4386 auto box = text::open_layout_box(layout, indentation);
4387 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4388 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
4389 text::add_space_to_layout_box(ws, layout, box);
4390 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4391 text::add_space_to_layout_box(ws, layout, box);
4392 if(from_slot != -1)
4393 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4394 else
4395 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4396 text::close_layout_box(layout, box);
4397}
4399 auto box = text::open_layout_box(layout, indentation);
4400 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4401 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
4402 text::add_space_to_layout_box(ws, layout, box);
4403 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4404 text::add_space_to_layout_box(ws, layout, box);
4405 if(this_slot != -1)
4406 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4407 else
4408 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4409 text::close_layout_box(layout, box);
4410}
4412 auto box = text::open_layout_box(layout, indentation);
4413 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4414 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
4415 text::add_space_to_layout_box(ws, layout, box);
4416 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4417 text::add_space_to_layout_box(ws, layout, box);
4418 if(this_slot != -1)
4419 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4420 else
4421 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4422 text::close_layout_box(layout, box);
4423}
4425 auto box = text::open_layout_box(layout, indentation);
4426 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4427 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
4428 text::add_space_to_layout_box(ws, layout, box);
4429 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4430 text::add_space_to_layout_box(ws, layout, box);
4431 if(this_slot != -1)
4432 text::add_to_layout_box(ws, layout, box,
4433 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4434 else
4435 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4436 text::close_layout_box(layout, box);
4437}
4439 auto box = text::open_layout_box(layout, indentation);
4440 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4441 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
4442 text::add_space_to_layout_box(ws, layout, box);
4443 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4444 text::add_space_to_layout_box(ws, layout, box);
4445 if(this_slot != -1)
4446 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4447 else
4448 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4449 text::close_layout_box(layout, box);
4450}
4451
4453 auto box = text::open_layout_box(layout, indentation);
4454 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4455 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate_of"), ws, layout, box);
4456 text::add_space_to_layout_box(ws, layout, box);
4457 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4458 text::close_layout_box(layout, box);
4459}
4461 auto box = text::open_layout_box(layout, indentation);
4462 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4463 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate_of"), ws, layout, box);
4464 text::add_space_to_layout_box(ws, layout, box);
4465 if(from_slot != -1)
4466 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4467 else
4468 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4469 text::close_layout_box(layout, box);
4470}
4472 auto box = text::open_layout_box(layout, indentation);
4473 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4474 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate_of"), ws, layout, box);
4475 text::add_space_to_layout_box(ws, layout, box);
4476 if(this_slot != -1)
4477 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4478 else
4479 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4480 text::close_layout_box(layout, box);
4481}
4483 auto box = text::open_layout_box(layout, indentation);
4484 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4485 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate_of"), ws, layout, box);
4486 text::add_space_to_layout_box(ws, layout, box);
4487 if(this_slot != -1)
4488 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4489 else
4490 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4491 text::close_layout_box(layout, box);
4492}
4494 auto box = text::open_layout_box(layout, indentation);
4495 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4496 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate_of"), ws, layout, box);
4497 text::add_space_to_layout_box(ws, layout, box);
4498 if(this_slot != -1)
4499 text::add_to_layout_box(ws, layout, box,
4500 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4501 else
4502 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4503 text::close_layout_box(layout, box);
4504}
4506 auto box = text::open_layout_box(layout, indentation);
4507 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4508 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate_of"), ws, layout, box);
4509 text::add_space_to_layout_box(ws, layout, box);
4510 if(this_slot != -1)
4511 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4512 else
4513 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4514 text::close_layout_box(layout, box);
4515}
4517 auto box = text::open_layout_box(layout, indentation);
4518 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4519 display_with_comparison(tval[0], text::produce_simple_string(ws, "allied_to"), ws, layout, box);
4520 text::add_space_to_layout_box(ws, layout, box);
4521 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4522 text::close_layout_box(layout, box);
4523}
4525 auto box = text::open_layout_box(layout, indentation);
4526 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4527 display_with_comparison(tval[0], text::produce_simple_string(ws, "allied_to"), ws, layout, box);
4528 text::add_space_to_layout_box(ws, layout, box);
4529 if(from_slot != -1)
4530 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4531 else
4532 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4533 text::close_layout_box(layout, box);
4534}
4536 auto box = text::open_layout_box(layout, indentation);
4537 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4538 display_with_comparison(tval[0], text::produce_simple_string(ws, "allied_to"), ws, layout, box);
4539 text::add_space_to_layout_box(ws, layout, box);
4540 if(this_slot != -1)
4541 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4542 else
4543 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4544 text::close_layout_box(layout, box);
4545}
4547 auto box = text::open_layout_box(layout, indentation);
4548 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4549 display_with_comparison(tval[0], text::produce_simple_string(ws, "allied_to"), ws, layout, box);
4550 text::add_space_to_layout_box(ws, layout, box);
4551 if(this_slot != -1)
4552 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4553 else
4554 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4555 text::close_layout_box(layout, box);
4556}
4558 auto box = text::open_layout_box(layout, indentation);
4559 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4560 display_with_comparison(tval[0], text::produce_simple_string(ws, "allied_to"), ws, layout, box);
4561 text::add_space_to_layout_box(ws, layout, box);
4562 if(this_slot != -1)
4563 text::add_to_layout_box(ws, layout, box,
4564 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4565 else
4566 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4567 text::close_layout_box(layout, box);
4568}
4570 auto box = text::open_layout_box(layout, indentation);
4571 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4572 display_with_comparison(tval[0], text::produce_simple_string(ws, "allied_to"), ws, layout, box);
4573 text::add_space_to_layout_box(ws, layout, box);
4574 if(this_slot != -1)
4575 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4576 else
4577 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4578 text::close_layout_box(layout, box);
4579}
4582 auto box = text::open_layout_box(layout, indentation);
4583 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4584 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "has_recently_lost_war"));
4585 text::close_layout_box(layout, box);
4586 } else {
4587 auto box = text::open_layout_box(layout, indentation);
4588 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4589 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "has_not_recently_lost_war"));
4590 text::close_layout_box(layout, box);
4591 }
4592}
4594 auto box = text::open_layout_box(layout, indentation);
4595 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4596 display_with_comparison(tval[0], text::produce_simple_string(ws, "mobilized"), ws, layout, box);
4597 text::close_layout_box(layout, box);
4598}
4600 auto box = text::open_layout_box(layout, indentation);
4601 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4602 display_with_comparison(tval[0], text::produce_simple_string(ws, "mobilization_size"),
4603 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
4604 text::close_layout_box(layout, box);
4605}
4607 auto box = text::open_layout_box(layout, indentation);
4608 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4609 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
4610 text::produce_simple_string(ws, "greater_than_edu_spending"), ws, layout, box);
4611 text::close_layout_box(layout, box);
4612}
4614 auto box = text::open_layout_box(layout, indentation);
4615 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4616 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
4617 text::produce_simple_string(ws, "greater_than_edu_spending"), ws, layout, box);
4618 text::close_layout_box(layout, box);
4619}
4621 auto box = text::open_layout_box(layout, indentation);
4622 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4623 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
4624 text::produce_simple_string(ws, "greater_than_edu_spending"), ws, layout, box);
4625 text::close_layout_box(layout, box);
4626}
4628 auto box = text::open_layout_box(layout, indentation);
4629 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4630 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
4631 text::produce_simple_string(ws, "greater_than_edu_spending"), ws, layout, box);
4632 text::close_layout_box(layout, box);
4633}
4635 auto box = text::open_layout_box(layout, indentation);
4636 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4637 display_with_comparison(tval[0], text::produce_simple_string(ws, "support_for_rp"),
4638 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
4639 text::close_layout_box(layout, box);
4640}
4642 auto box = text::open_layout_box(layout, indentation);
4643 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4644 display_with_comparison(tval[0], text::produce_simple_string(ws, "colonial"), ws, layout, box);
4645 text::close_layout_box(layout, box);
4646}
4648 auto box = text::open_layout_box(layout, indentation);
4649 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4650 display_with_comparison(tval[0], text::produce_simple_string(ws, "colonial"), ws, layout, box);
4651 text::close_layout_box(layout, box);
4652}
4654 auto box = text::open_layout_box(layout, indentation);
4655 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4656 display_with_comparison(tval[0], text::produce_simple_string(ws, "colonial_pop"), ws, layout, box);
4657 text::close_layout_box(layout, box);
4658}
4660 auto box = text::open_layout_box(layout, indentation);
4661 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4662 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_factory"), ws, layout, box);
4663 text::close_layout_box(layout, box);
4664}
4666 auto box = text::open_layout_box(layout, indentation);
4667 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4668 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_factory"), ws, layout, box);
4669 text::close_layout_box(layout, box);
4670}
4672 auto box = text::open_layout_box(layout, indentation);
4673 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4674 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_bnkrpt"), ws, layout, box);
4675 text::close_layout_box(layout, box);
4676}
4678 auto box = text::open_layout_box(layout, indentation);
4679 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4680 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_default_to"), ws, layout, box);
4681 text::add_space_to_layout_box(ws, layout, box);
4682 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4683 text::close_layout_box(layout, box);
4684}
4686 auto box = text::open_layout_box(layout, indentation);
4687 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4688 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_default_to"), ws, layout, box);
4689 text::add_space_to_layout_box(ws, layout, box);
4690 if(from_slot != -1)
4691 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4692 else
4693 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4694 text::close_layout_box(layout, box);
4695}
4697 auto box = text::open_layout_box(layout, indentation);
4698 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4699 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_default_to"), ws, layout, box);
4700 text::add_space_to_layout_box(ws, layout, box);
4701 if(this_slot != -1)
4702 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4703 else
4704 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4705 text::close_layout_box(layout, box);
4706}
4708 auto box = text::open_layout_box(layout, indentation);
4709 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4710 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_default_to"), ws, layout, box);
4711 text::add_space_to_layout_box(ws, layout, box);
4712 if(this_slot != -1)
4713 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4714 else
4715 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4716 text::close_layout_box(layout, box);
4717}
4719 auto box = text::open_layout_box(layout, indentation);
4720 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4721 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_default_to"), ws, layout, box);
4722 text::add_space_to_layout_box(ws, layout, box);
4723 if(this_slot != -1)
4724 text::add_to_layout_box(ws, layout, box,
4725 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4726 else
4727 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4728 text::close_layout_box(layout, box);
4729}
4731 auto box = text::open_layout_box(layout, indentation);
4732 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4733 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_default_to"), ws, layout, box);
4734 text::add_space_to_layout_box(ws, layout, box);
4735 if(this_slot != -1)
4736 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4737 else
4738 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4739 text::close_layout_box(layout, box);
4740}
4742 auto box = text::open_layout_box(layout, indentation);
4743 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4744 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_of_ports"), int64_t(tval[1]), ws, layout, box);
4745 text::close_layout_box(layout, box);
4746}
4748 auto box = text::open_layout_box(layout, indentation);
4749 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4750
4752 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
4753 else
4754 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
4755
4756 text::close_layout_box(layout, box);
4757}
4759 auto box = text::open_layout_box(layout, indentation);
4760 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4761 display_with_comparison(tval[0], text::produce_simple_string(ws, "holding_an_election"), ws, layout, box);
4762 text::close_layout_box(layout, box);
4763}
4765 if(ws.user_settings.spoilers) {
4766 auto box = text::open_layout_box(layout, indentation);
4767 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4769 text::produce_simple_string(ws, ws.national_definitions.global_flag_variable_names[trigger::payload(tval[1]).glob_id]),
4770 text::produce_simple_string(ws, "set_globally"), ws, layout, box);
4771 text::close_layout_box(layout, box);
4772 }
4773}
4775 auto box = text::open_layout_box(layout, indentation);
4776 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4777 display_with_comparison(tval[0], text::produce_simple_string(ws, "capital"), ws, layout, box);
4778 text::close_layout_box(layout, box);
4779}
4781 auto box = text::open_layout_box(layout, indentation);
4782 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4783 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_value"),
4784 text::produce_simple_string(ws, ws.world.modifier_get_name(trigger::payload(tval[1]).mod_id)), ws, layout, box);
4785 text::close_layout_box(layout, box);
4786}
4788 auto box = text::open_layout_box(layout, indentation);
4789 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4790 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_value"),
4791 text::produce_simple_string(ws, ws.world.modifier_get_name(trigger::payload(tval[1]).mod_id)), ws, layout, box);
4792 text::close_layout_box(layout, box);
4793}
4795 auto box = text::open_layout_box(layout, indentation);
4796 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4797 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_value"),
4798 text::produce_simple_string(ws, ws.world.modifier_get_name(trigger::payload(tval[1]).mod_id)), ws, layout, box);
4799 text::close_layout_box(layout, box);
4800}
4802 auto box = text::open_layout_box(layout, indentation);
4803 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4804 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4805 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
4806 text::close_layout_box(layout, box);
4807}
4809 auto box = text::open_layout_box(layout, indentation);
4810 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4811 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4812 text::produce_simple_string(ws, "industrial_score_of"), ws, layout, box);
4813 text::add_space_to_layout_box(ws, layout, box);
4814 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4815 text::close_layout_box(layout, box);
4816}
4818 auto box = text::open_layout_box(layout, indentation);
4819 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4820 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4821 text::produce_simple_string(ws, "industrial_score_of"), ws, layout, box);
4822 text::add_space_to_layout_box(ws, layout, box);
4823 if(from_slot != -1)
4824 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4825 else
4826 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4827 text::close_layout_box(layout, box);
4828}
4830 auto box = text::open_layout_box(layout, indentation);
4831 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4832 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4833 text::produce_simple_string(ws, "industrial_score_of"), ws, layout, box);
4834 text::add_space_to_layout_box(ws, layout, box);
4835 if(this_slot != -1)
4836 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4837 else
4838 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4839 text::close_layout_box(layout, box);
4840}
4842 auto box = text::open_layout_box(layout, indentation);
4843 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4844 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4845 text::produce_simple_string(ws, "industrial_score_of"), ws, layout, box);
4846 text::add_space_to_layout_box(ws, layout, box);
4847 if(this_slot != -1)
4848 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4849 else
4850 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4851 text::close_layout_box(layout, box);
4852}
4854 auto box = text::open_layout_box(layout, indentation);
4855 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4856 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4857 text::produce_simple_string(ws, "industrial_score_of"), ws, layout, box);
4858 text::add_space_to_layout_box(ws, layout, box);
4859 if(this_slot != -1)
4860 text::add_to_layout_box(ws, layout, box,
4861 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4862 else
4863 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4864 text::close_layout_box(layout, box);
4865}
4867 auto box = text::open_layout_box(layout, indentation);
4868 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4869 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4870 text::produce_simple_string(ws, "industrial_score_of"), ws, layout, box);
4871 text::add_space_to_layout_box(ws, layout, box);
4872 if(this_slot != -1)
4873 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4874 else
4875 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4876 text::close_layout_box(layout, box);
4877}
4879 auto box = text::open_layout_box(layout, indentation);
4880 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4881 display_with_comparison(tval[0], text::produce_simple_string(ws, "military_score"),
4882 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
4883 text::close_layout_box(layout, box);
4884}
4886 auto box = text::open_layout_box(layout, indentation);
4887 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4888 display_with_comparison(tval[0], text::produce_simple_string(ws, "military_score"),
4889 text::produce_simple_string(ws, "military_score_of"), ws, layout, box);
4890 text::add_space_to_layout_box(ws, layout, box);
4891 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4892 text::close_layout_box(layout, box);
4893}
4895 auto box = text::open_layout_box(layout, indentation);
4896 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4897 display_with_comparison(tval[0], text::produce_simple_string(ws, "military_score"),
4898 text::produce_simple_string(ws, "military_score_of"), ws, layout, box);
4899 text::add_space_to_layout_box(ws, layout, box);
4900 if(from_slot != -1)
4901 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4902 else
4903 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4904 text::close_layout_box(layout, box);
4905}
4907 auto box = text::open_layout_box(layout, indentation);
4908 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4909 display_with_comparison(tval[0], text::produce_simple_string(ws, "military_score"),
4910 text::produce_simple_string(ws, "military_score_of"), ws, layout, box);
4911 text::add_space_to_layout_box(ws, layout, box);
4912 if(this_slot != -1)
4913 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4914 else
4915 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4916 text::close_layout_box(layout, box);
4917}
4919 auto box = text::open_layout_box(layout, indentation);
4920 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4921 display_with_comparison(tval[0], text::produce_simple_string(ws, "military_score"),
4922 text::produce_simple_string(ws, "military_score_of"), ws, layout, box);
4923 text::add_space_to_layout_box(ws, layout, box);
4924 if(this_slot != -1)
4925 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4926 else
4927 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4928 text::close_layout_box(layout, box);
4929}
4931 auto box = text::open_layout_box(layout, indentation);
4932 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4933 display_with_comparison(tval[0], text::produce_simple_string(ws, "military_score"),
4934 text::produce_simple_string(ws, "military_score_of"), ws, layout, box);
4935 text::add_space_to_layout_box(ws, layout, box);
4936 if(this_slot != -1)
4937 text::add_to_layout_box(ws, layout, box,
4938 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4939 else
4940 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4941 text::close_layout_box(layout, box);
4942}
4944 auto box = text::open_layout_box(layout, indentation);
4945 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4946 display_with_comparison(tval[0], text::produce_simple_string(ws, "military_score"),
4947 text::produce_simple_string(ws, "military_score_of"), ws, layout, box);
4948 text::add_space_to_layout_box(ws, layout, box);
4949 if(this_slot != -1)
4950 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4951 else
4952 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4953 text::close_layout_box(layout, box);
4954}
4956 auto box = text::open_layout_box(layout, indentation);
4957 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4958 display_with_comparison(tval[0], text::produce_simple_string(ws, "civilized"), ws, layout, box);
4959 text::close_layout_box(layout, box);
4960}
4962 auto box = text::open_layout_box(layout, indentation);
4963 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4964 display_with_comparison(tval[0], text::produce_simple_string(ws, "civilized"), ws, layout, box);
4965 text::close_layout_box(layout, box);
4966}
4968 auto box = text::open_layout_box(layout, indentation);
4969 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4970 display_with_comparison(tval[0], text::produce_simple_string(ws, "civilized"), ws, layout, box);
4971 text::close_layout_box(layout, box);
4972}
4974 auto box = text::open_layout_box(layout, indentation);
4975 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4976 display_with_comparison(tval[0], text::produce_simple_string(ws, "percent_occupied"),
4977 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
4978 text::close_layout_box(layout, box);
4979}
4981 auto box = text::open_layout_box(layout, indentation);
4982 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4983 display_with_comparison(tval[0], text::produce_simple_string(ws, "great_power"), ws, layout, box);
4984 text::close_layout_box(layout, box);
4985}
4987 auto box = text::open_layout_box(layout, indentation);
4988 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4989 display_with_comparison(tval[0], text::produce_simple_string(ws, "great_power"), ws, layout, box);
4990 text::close_layout_box(layout, box);
4991}
4993 auto box = text::open_layout_box(layout, indentation);
4994 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4995 display_with_comparison(tval[0], text::produce_simple_string(ws, "great_power"), ws, layout, box);
4996 text::close_layout_box(layout, box);
4997}
4999 auto box = text::open_layout_box(layout, indentation);
5000 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5002 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5003 text::close_layout_box(layout, box);
5004}
5006 auto box = text::open_layout_box(layout, indentation);
5007 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5008 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_tax"),
5009 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5010 text::close_layout_box(layout, box);
5011}
5013 auto box = text::open_layout_box(layout, indentation);
5014 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5016 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5017 text::close_layout_box(layout, box);
5018}
5020 auto box = text::open_layout_box(layout, indentation);
5021 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5022 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_spending"),
5023 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5024 text::close_layout_box(layout, box);
5025}
5027 auto box = text::open_layout_box(layout, indentation);
5028 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5029 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_spending"),
5030 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5031 text::close_layout_box(layout, box);
5032}
5034 auto box = text::open_layout_box(layout, indentation);
5035 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5036 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_spending"),
5037 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5038 text::close_layout_box(layout, box);
5039}
5041 auto box = text::open_layout_box(layout, indentation);
5042 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5043 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_spending"),
5044 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5045 text::close_layout_box(layout, box);
5046}
5048 auto box = text::open_layout_box(layout, indentation);
5049 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5050 display_with_comparison(tval[0], text::produce_simple_string(ws, "mil_spending"),
5051 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5052 text::close_layout_box(layout, box);
5053}
5055 auto box = text::open_layout_box(layout, indentation);
5056 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5057 display_with_comparison(tval[0], text::produce_simple_string(ws, "mil_spending"),
5058 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5059 text::close_layout_box(layout, box);
5060}
5062 auto box = text::open_layout_box(layout, indentation);
5063 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5064 display_with_comparison(tval[0], text::produce_simple_string(ws, "mil_spending"),
5065 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5066 text::close_layout_box(layout, box);
5067}
5069 auto box = text::open_layout_box(layout, indentation);
5070 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5071 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
5072 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5073 text::close_layout_box(layout, box);
5074}
5076 auto box = text::open_layout_box(layout, indentation);
5077 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5078 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
5079 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5080 text::close_layout_box(layout, box);
5081}
5083 auto box = text::open_layout_box(layout, indentation);
5084 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5085 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
5086 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5087 text::close_layout_box(layout, box);
5088}
5090 auto box = text::open_layout_box(layout, indentation);
5091 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5092 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
5093 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5094 text::close_layout_box(layout, box);
5095}
5097 auto box = text::open_layout_box(layout, indentation);
5098 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5099 display_with_comparison(tval[0], text::produce_simple_string(ws, "edu_spending"),
5100 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5101 text::close_layout_box(layout, box);
5102}
5104 auto box = text::open_layout_box(layout, indentation);
5105 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5106 display_with_comparison(tval[0], text::produce_simple_string(ws, "edu_spending"),
5107 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5108 text::close_layout_box(layout, box);
5109}
5111 auto box = text::open_layout_box(layout, indentation);
5112 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5113 display_with_comparison(tval[0], text::produce_simple_string(ws, "edu_spending"),
5114 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5115 text::close_layout_box(layout, box);
5116}
5118 auto box = text::open_layout_box(layout, indentation);
5119 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5120 display_with_comparison(tval[0], text::produce_simple_string(ws, "edu_spending"),
5121 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5122 text::close_layout_box(layout, box);
5123}
5125 auto box = text::open_layout_box(layout, indentation);
5126 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5127 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "colonies"), ws, layout, box);
5128 text::close_layout_box(layout, box);
5129}
5131 auto box = text::open_layout_box(layout, indentation);
5132 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5133 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_religion"),
5134 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
5135 text::close_layout_box(layout, box);
5136}
5138 auto box = text::open_layout_box(layout, indentation);
5139 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5140
5141 if(this_slot != -1)
5142 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_religion"),
5143 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.nation_get_religion(trigger::to_nation(this_slot)))), ws, layout, box);
5144 else
5145 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_religion"), text::produce_simple_string(ws, "same_rel_as_this"), ws, layout, box);
5146 text::close_layout_box(layout, box);
5147}
5149 auto box = text::open_layout_box(layout, indentation);
5150 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5151 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_religion"),
5152 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
5153 text::close_layout_box(layout, box);
5154}
5156 auto box = text::open_layout_box(layout, indentation);
5157 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5158 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_religion"),
5159 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
5160 text::close_layout_box(layout, box);
5161}
5163 auto box = text::open_layout_box(layout, indentation);
5164 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5165 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
5166 text::produce_simple_string(ws, ws.world.culture_get_name(trigger::payload(tval[1]).cul_id)), ws, layout, box);
5167 text::close_layout_box(layout, box);
5168}
5170 auto box = text::open_layout_box(layout, indentation);
5171 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5172 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
5173 text::produce_simple_string(ws, ws.world.culture_get_name(trigger::payload(tval[1]).cul_id)), ws, layout, box);
5174 text::close_layout_box(layout, box);
5175}
5177 auto box = text::open_layout_box(layout, indentation);
5178 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5179 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
5180 text::produce_simple_string(ws, ws.world.culture_get_name(trigger::payload(tval[1]).cul_id)), ws, layout, box);
5181 text::close_layout_box(layout, box);
5182}
5184 auto box = text::open_layout_box(layout, indentation);
5185 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5186 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_issue"),
5187 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id)), ws, layout, box);
5188 text::close_layout_box(layout, box);
5189}
5191 auto box = text::open_layout_box(layout, indentation);
5192 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5193 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_issue"),
5194 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id)), ws, layout, box);
5195 text::close_layout_box(layout, box);
5196}
5198 auto box = text::open_layout_box(layout, indentation);
5199 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5200 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_issue"),
5201 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id)), ws, layout, box);
5202 text::close_layout_box(layout, box);
5203}
5205 auto box = text::open_layout_box(layout, indentation);
5206 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5207 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_issue"),
5208 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id)), ws, layout, box);
5209 text::close_layout_box(layout, box);
5210}
5212 auto box = text::open_layout_box(layout, indentation);
5213 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5214 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_ideology"),
5215 text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id)), ws, layout, box);
5216 text::close_layout_box(layout, box);
5217}
5219 auto box = text::open_layout_box(layout, indentation);
5220 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5221 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_ideology"),
5222 text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id)), ws, layout, box);
5223 text::close_layout_box(layout, box);
5224}
5226 auto box = text::open_layout_box(layout, indentation);
5227 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5228 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_ideology"),
5229 text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id)), ws, layout, box);
5230 text::close_layout_box(layout, box);
5231}
5233 auto box = text::open_layout_box(layout, indentation);
5234 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5235 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_ideology"),
5236 text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id)), ws, layout, box);
5237 text::close_layout_box(layout, box);
5238}
5240 auto box = text::open_layout_box(layout, indentation);
5241 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5242 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_militancy"),
5243 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5244 text::close_layout_box(layout, box);
5245}
5247 auto box = text::open_layout_box(layout, indentation);
5248 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5249 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_militancy"),
5250 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5251 text::close_layout_box(layout, box);
5252}
5254 auto box = text::open_layout_box(layout, indentation);
5255 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5256 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_militancy"),
5257 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5258 text::close_layout_box(layout, box);
5259}
5261 auto box = text::open_layout_box(layout, indentation);
5262 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5263 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_militancy"),
5264 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5265 text::close_layout_box(layout, box);
5266}
5268 auto box = text::open_layout_box(layout, indentation);
5269 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5270 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_militancy"),
5271 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5272 text::close_layout_box(layout, box);
5273}
5275 auto box = text::open_layout_box(layout, indentation);
5276 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5277 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_militancy"),
5278 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5279 text::close_layout_box(layout, box);
5280}
5282 auto box = text::open_layout_box(layout, indentation);
5283 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5284 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_militancy"),
5285 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5286 text::close_layout_box(layout, box);
5287}
5289 auto box = text::open_layout_box(layout, indentation);
5290 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5291 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_militancy"),
5292 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5293 text::close_layout_box(layout, box);
5294}
5296 auto box = text::open_layout_box(layout, indentation);
5297 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5298 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_militancy"),
5299 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5300 text::close_layout_box(layout, box);
5301}
5303 auto box = text::open_layout_box(layout, indentation);
5304 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5305 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_militancy"),
5306 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5307 text::close_layout_box(layout, box);
5308}
5310 auto box = text::open_layout_box(layout, indentation);
5311 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5312 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_militancy"),
5313 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5314 text::close_layout_box(layout, box);
5315}
5317 auto box = text::open_layout_box(layout, indentation);
5318 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5319 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_militancy"),
5320 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5321 text::close_layout_box(layout, box);
5322}
5324 auto box = text::open_layout_box(layout, indentation);
5325 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5326 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_tax"), text::produce_simple_string(ws, "gt_poor_tax"),
5327 ws, layout, box);
5328 text::close_layout_box(layout, box);
5329}
5331 auto box = text::open_layout_box(layout, indentation);
5332 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5333 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_cultural_union"), ws, layout, box);
5334 text::close_layout_box(layout, box);
5335}
5337 auto box = text::open_layout_box(layout, indentation);
5338 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5339 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_cultural_union"), ws, layout, box);
5340 text::close_layout_box(layout, box);
5341}
5343 auto box = text::open_layout_box(layout, indentation);
5344 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5345 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"), trigger::payload(tval[1]).tag_id, ws,
5346 layout, box);
5347 text::close_layout_box(layout, box);
5348}
5350 auto box = text::open_layout_box(layout, indentation);
5351 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5352 if(from_slot != -1)
5353 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"), trigger::to_nation(from_slot), ws, layout,
5354 box);
5355 else
5356 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5357 text::produce_simple_string(ws, "from_nation"), ws, layout, box);
5358 text::close_layout_box(layout, box);
5359}
5361 auto box = text::open_layout_box(layout, indentation);
5362 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5363 if(this_slot != -1)
5364 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"), trigger::to_nation(this_slot), ws, layout,
5365 box);
5366 else
5367 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5368 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5369 text::close_layout_box(layout, box);
5370}
5372 auto box = text::open_layout_box(layout, indentation);
5373 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5374 if(this_slot != -1)
5375 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5376 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)), ws, layout, box);
5377 else
5378 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5379 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5380 text::close_layout_box(layout, box);
5381}
5383 auto box = text::open_layout_box(layout, indentation);
5384 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5385 if(this_slot != -1)
5386 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5387 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)), ws, layout, box);
5388 else
5389 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5390 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5391 text::close_layout_box(layout, box);
5392}
5394 auto box = text::open_layout_box(layout, indentation);
5395 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5396 if(this_slot != -1)
5397 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5398 nations::owner_of_pop(ws, trigger::to_pop(this_slot)), ws, layout, box);
5399 else
5400 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5401 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5402 text::close_layout_box(layout, box);
5403}
5405 auto box = text::open_layout_box(layout, indentation);
5406 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5407 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_cultural_union"), ws, layout, box);
5408 text::add_space_to_layout_box(ws, layout, box);
5409 if(this_slot != -1)
5410 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
5411 else
5412 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5413 text::close_layout_box(layout, box);
5414}
5416 auto box = text::open_layout_box(layout, indentation);
5417 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5418 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_cultural_union"), ws, layout, box);
5419 text::add_space_to_layout_box(ws, layout, box);
5420 if(this_slot != -1)
5421 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
5422 else
5423 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5424 text::close_layout_box(layout, box);
5425}
5427 auto box = text::open_layout_box(layout, indentation);
5428 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5429 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_cultural_union"), ws, layout, box);
5430 text::add_space_to_layout_box(ws, layout, box);
5431 if(this_slot != -1)
5432 text::add_to_layout_box(ws, layout, box,
5433 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
5434 else
5435 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5436 text::close_layout_box(layout, box);
5437}
5439 auto box = text::open_layout_box(layout, indentation);
5440 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5441 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_cultural_union"), ws, layout, box);
5442 text::add_space_to_layout_box(ws, layout, box);
5443 if(this_slot != -1)
5444 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
5445 else
5446 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5447 text::close_layout_box(layout, box);
5448}
5450 auto box = text::open_layout_box(layout, indentation);
5451 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5452 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "non_accepted_pops"), ws, layout, box);
5453 text::close_layout_box(layout, box);
5454}
5456 auto box = text::open_layout_box(layout, indentation);
5457 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5458 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "non_accepted_pops"), ws, layout, box);
5459 text::close_layout_box(layout, box);
5460}
5462 auto box = text::open_layout_box(layout, indentation);
5463 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5464 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "non_accepted_pops"), ws, layout, box);
5465 text::close_layout_box(layout, box);
5466}
5468 auto box = text::open_layout_box(layout, indentation);
5469 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5470 display_with_comparison(tval[0], text::produce_simple_string(ws, "revanchism"),
5471 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5472 text::close_layout_box(layout, box);
5473}
5475 auto box = text::open_layout_box(layout, indentation);
5476 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5477 display_with_comparison(tval[0], text::produce_simple_string(ws, "revanchism"),
5478 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5479 text::close_layout_box(layout, box);
5480}
5482 auto box = text::open_layout_box(layout, indentation);
5483 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5484 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "crime"), ws, layout, box);
5485 text::close_layout_box(layout, box);
5486}
5488 auto box = text::open_layout_box(layout, indentation);
5489 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5490 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_substates"), int64_t(tval[1]), ws, layout, box);
5491 text::close_layout_box(layout, box);
5492}
5494 auto box = text::open_layout_box(layout, indentation);
5495 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5496 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_vassals_no_substates"), int64_t(tval[1]), ws, layout,
5497 box);
5498 text::close_layout_box(layout, box);
5499}
5501 auto box = text::open_layout_box(layout, indentation);
5502 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5504 text::produce_simple_string(ws, "num_regiments"),
5505 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5506 text::add_space_to_layout_box(ws, layout, box);
5507 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
5508 text::close_layout_box(layout, box);
5509}
5511 auto box = text::open_layout_box(layout, indentation);
5512 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5514 text::produce_simple_string(ws, "num_regiments"),
5515 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5516 text::add_space_to_layout_box(ws, layout, box);
5517 if(this_slot != -1)
5518 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
5519 else
5520 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5521 text::close_layout_box(layout, box);
5522}
5524 auto box = text::open_layout_box(layout, indentation);
5525 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5527 text::produce_simple_string(ws, "num_regiments"),
5528 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5529 text::add_space_to_layout_box(ws, layout, box);
5530 if(this_slot != -1)
5531 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
5532 else
5533 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5534 text::close_layout_box(layout, box);
5535}
5537 auto box = text::open_layout_box(layout, indentation);
5538 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5540 text::produce_simple_string(ws, "num_regiments"),
5541 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5542 text::add_space_to_layout_box(ws, layout, box);
5543 if(this_slot != -1)
5544 text::add_to_layout_box(ws, layout, box, ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
5545 else
5546 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5547 text::close_layout_box(layout, box);
5548}
5550 auto box = text::open_layout_box(layout, indentation);
5551 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5553 text::produce_simple_string(ws, "num_regiments"),
5554 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5555 text::add_space_to_layout_box(ws, layout, box);
5556 if(this_slot != -1)
5557 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
5558 else
5559 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5560 text::close_layout_box(layout, box);
5561}
5563 auto box = text::open_layout_box(layout, indentation);
5564 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5566 text::produce_simple_string(ws, "num_regiments"),
5567 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5568 text::add_space_to_layout_box(ws, layout, box);
5569 if(from_slot != -1)
5570 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
5571 else
5572 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
5573 text::close_layout_box(layout, box);
5574}
5576 auto box = text::open_layout_box(layout, indentation);
5577 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5579 text::produce_simple_string(ws, "num_regiments"),
5580 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5581 text::add_space_to_layout_box(ws, layout, box);
5582 if(from_slot != -1)
5583 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(from_slot)));
5584 else
5585 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
5586 text::close_layout_box(layout, box);
5587}
5589 auto factor = trigger::read_float_from_payload(tval + 1);
5592 auto factor_str = text::resolve_string_substitution(ws, "times_num_regiments_of", s);
5593
5594 auto box = text::open_layout_box(layout, indentation);
5595 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5596 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_regiments"),
5597 factor_str, ws, layout, box);
5598 text::add_space_to_layout_box(ws, layout, box);
5599 if(this_slot != -1)
5600 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
5601 else
5602 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5603 text::close_layout_box(layout, box);
5604}
5606 auto factor = trigger::read_float_from_payload(tval + 1);
5609 auto factor_str = text::resolve_string_substitution(ws, "times_num_regiments_of", s);
5610
5611 auto box = text::open_layout_box(layout, indentation);
5612 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5613 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_regiments"),
5614 factor_str, ws, layout, box);
5615 text::add_space_to_layout_box(ws, layout, box);
5616 if(from_slot != -1)
5617 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
5618 else
5619 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
5620 text::close_layout_box(layout, box);
5621}
5623 auto factor = trigger::read_float_from_payload(tval + 1);
5626 auto factor_str = text::resolve_string_substitution(ws, "times_num_regiments_of", s);
5627
5628 auto box = text::open_layout_box(layout, indentation);
5629 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5630 display_with_comparison(tval[0], text::produce_simple_string(ws, "owner_num_regiments"),
5631 factor_str, ws, layout, box);
5632 text::add_space_to_layout_box(ws, layout, box);
5633 if(this_slot != -1)
5634 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
5635 else
5636 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5637 text::close_layout_box(layout, box);
5638}
5640 auto factor = trigger::read_float_from_payload(tval + 1);
5643 auto factor_str = text::resolve_string_substitution(ws, "times_num_regiments_of", s);
5644
5645 auto box = text::open_layout_box(layout, indentation);
5646 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5647 display_with_comparison(tval[0], text::produce_simple_string(ws, "owner_num_regiments"),
5648 factor_str, ws, layout, box);
5649 text::add_space_to_layout_box(ws, layout, box);
5650 if(from_slot != -1)
5651 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
5652 else
5653 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
5654 text::close_layout_box(layout, box);
5655}
5657 auto box = text::open_layout_box(layout, indentation);
5658 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5659 display_with_comparison(tval[0], text::produce_simple_string(ws, "fabricating_on"), ws, layout, box);
5660 text::add_space_to_layout_box(ws, layout, box);
5661 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
5662 text::close_layout_box(layout, box);
5663}
5665 auto box = text::open_layout_box(layout, indentation);
5666 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5667 display_with_comparison(tval[0], text::produce_simple_string(ws, "fabricating_on"), ws, layout, box);
5668 text::add_space_to_layout_box(ws, layout, box);
5669 if(from_slot != -1)
5670 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
5671 else
5672 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
5673 text::close_layout_box(layout, box);
5674}
5676 auto box = text::open_layout_box(layout, indentation);
5677 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5678 display_with_comparison(tval[0], text::produce_simple_string(ws, "fabricating_on"), ws, layout, box);
5679 text::add_space_to_layout_box(ws, layout, box);
5680 if(this_slot != -1)
5681 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
5682 else
5683 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5684 text::close_layout_box(layout, box);
5685}
5687 auto box = text::open_layout_box(layout, indentation);
5688 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5689 display_with_comparison(tval[0], text::produce_simple_string(ws, "fabricating_on"), ws, layout, box);
5690 text::add_space_to_layout_box(ws, layout, box);
5691 if(this_slot != -1)
5692 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
5693 else
5694 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5695 text::close_layout_box(layout, box);
5696}
5698 auto box = text::open_layout_box(layout, indentation);
5699 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5700 display_with_comparison(tval[0], text::produce_simple_string(ws, "fabricating_on"), ws, layout, box);
5701 text::add_space_to_layout_box(ws, layout, box);
5702 if(this_slot != -1)
5703 text::add_to_layout_box(ws, layout, box,
5704 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
5705 else
5706 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5707 text::close_layout_box(layout, box);
5708}
5710 auto box = text::open_layout_box(layout, indentation);
5711 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5712 display_with_comparison(tval[0], text::produce_simple_string(ws, "fabricating_on"), ws, layout, box);
5713 text::add_space_to_layout_box(ws, layout, box);
5714 if(this_slot != -1)
5715 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
5716 else
5717 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5718 text::close_layout_box(layout, box);
5719}
5721 auto box = text::open_layout_box(layout, indentation);
5722 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5724 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "cb_discovered"));
5725 else
5726 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "cb_not_discovered"));
5727 text::close_layout_box(layout, box);
5728}
5730 auto box = text::open_layout_box(layout, indentation);
5731 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5732 display_with_comparison(tval[0], text::produce_simple_string(ws, "cb_progress"),
5733 text::fp_percentage{trigger::read_float_from_payload(tval + 1) / 100.0f}, ws, layout, box);
5734 text::close_layout_box(layout, box);
5735}
5737 auto box = text::open_layout_box(layout, indentation);
5738 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5739 display_with_comparison(tval[0], text::produce_simple_string(ws, "civ_progress"),
5740 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5741 text::close_layout_box(layout, box);
5742}
5744 auto box = text::open_layout_box(layout, indentation);
5745 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5746 display_with_comparison(tval[0], text::produce_simple_string(ws, "constructing_a"), ws, layout, box);
5747 text::add_space_to_layout_box(ws, layout, box);
5748 text::add_to_layout_box(ws, layout, box, ws.world.cb_type_get_name(trigger::payload(tval[1]).cb_id));
5749 text::add_space_to_layout_box(ws, layout, box);
5750 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "casus_belli"));
5751 text::close_layout_box(layout, box);
5752}
5754 auto box = text::open_layout_box(layout, indentation);
5755 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5756 display_with_has_comparison(tval[0], trigger::payload(tval[1]).tag_id, ws, layout, box);
5757 text::add_space_to_layout_box(ws, layout, box);
5758 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5759 text::close_layout_box(layout, box);
5760}
5762 auto box = text::open_layout_box(layout, indentation);
5763 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5764 if(from_slot != -1)
5765 display_with_has_comparison(tval[0], trigger::to_nation(from_slot), ws, layout, box);
5766 else
5767 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "from_nation"), ws, layout, box);
5768 text::add_space_to_layout_box(ws, layout, box);
5769 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5770 text::close_layout_box(layout, box);
5771}
5773 auto box = text::open_layout_box(layout, indentation);
5774 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5775 if(this_slot != -1)
5776 display_with_has_comparison(tval[0], trigger::to_nation(this_slot), ws, layout, box);
5777 else
5778 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5779 text::add_space_to_layout_box(ws, layout, box);
5780 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5781 text::close_layout_box(layout, box);
5782}
5784 auto box = text::open_layout_box(layout, indentation);
5785 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5786 if(this_slot != -1)
5787 display_with_has_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)), ws,
5788 layout, box);
5789 else
5790 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5791 text::add_space_to_layout_box(ws, layout, box);
5792 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5793 text::close_layout_box(layout, box);
5794}
5796 auto box = text::open_layout_box(layout, indentation);
5797 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5798 if(this_slot != -1)
5799 display_with_has_comparison(tval[0], ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)),
5800 ws, layout, box);
5801 else
5802 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5803 text::add_space_to_layout_box(ws, layout, box);
5804 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5805 text::close_layout_box(layout, box);
5806}
5808 auto box = text::open_layout_box(layout, indentation);
5809 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5810 if(this_slot != -1)
5811 display_with_has_comparison(tval[0], nations::owner_of_pop(ws, trigger::to_pop(this_slot)), ws, layout, box);
5812 else
5813 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5814 text::add_space_to_layout_box(ws, layout, box);
5815 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5816 text::close_layout_box(layout, box);
5817}
5818
5819
5821 auto box = text::open_layout_box(layout, indentation);
5822 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5823 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
5824 text::add_space_to_layout_box(ws, layout, box);
5825 display_with_has_comparison(tval[0], trigger::payload(tval[1]).tag_id, ws, layout, box);
5826 text::add_space_to_layout_box(ws, layout, box);
5827 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5828 text::close_layout_box(layout, box);
5829}
5831 auto box = text::open_layout_box(layout, indentation);
5832 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5833 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
5834 text::add_space_to_layout_box(ws, layout, box);
5835 if(from_slot != -1)
5836 display_with_has_comparison(tval[0], trigger::to_nation(from_slot), ws, layout, box);
5837 else
5838 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "from_nation"), ws, layout, box);
5839 text::add_space_to_layout_box(ws, layout, box);
5840 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5841 text::close_layout_box(layout, box);
5842}
5844 auto box = text::open_layout_box(layout, indentation);
5845 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5846 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
5847 text::add_space_to_layout_box(ws, layout, box);
5848 if(this_slot != -1)
5849 display_with_has_comparison(tval[0], trigger::to_nation(this_slot), ws, layout, box);
5850 else
5851 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5852 text::add_space_to_layout_box(ws, layout, box);
5853 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5854 text::close_layout_box(layout, box);
5855}
5857 auto box = text::open_layout_box(layout, indentation);
5858 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5859 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
5860 text::add_space_to_layout_box(ws, layout, box);
5861 if(this_slot != -1)
5862 display_with_has_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)), ws,
5863 layout, box);
5864 else
5865 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5866 text::add_space_to_layout_box(ws, layout, box);
5867 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5868 text::close_layout_box(layout, box);
5869}
5871 auto box = text::open_layout_box(layout, indentation);
5872 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5873 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
5874 text::add_space_to_layout_box(ws, layout, box);
5875 if(this_slot != -1)
5876 display_with_has_comparison(tval[0], ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)),
5877 ws, layout, box);
5878 else
5879 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5880 text::add_space_to_layout_box(ws, layout, box);
5881 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5882 text::close_layout_box(layout, box);
5883}
5885 auto box = text::open_layout_box(layout, indentation);
5886 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5887 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
5888 text::add_space_to_layout_box(ws, layout, box);
5889 if(this_slot != -1)
5890 display_with_has_comparison(tval[0], nations::owner_of_pop(ws, trigger::to_pop(this_slot)), ws, layout, box);
5891 else
5892 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5893 text::add_space_to_layout_box(ws, layout, box);
5894 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5895 text::close_layout_box(layout, box);
5896}
5897
5899 auto box = text::open_layout_box(layout, indentation);
5900 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5901 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate"), ws, layout, box);
5902 text::close_layout_box(layout, box);
5903}
5905 auto box = text::open_layout_box(layout, indentation);
5906 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5908 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "gw_enabled"));
5909 else
5910 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "gw_not_enabled"));
5911 text::close_layout_box(layout, box);
5912}
5914 auto box = text::open_layout_box(layout, indentation);
5915 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5917 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "can_perform_nationalization"));
5918 else
5919 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "cannot_perform_nationalization"));
5920 text::close_layout_box(layout, box);
5921}
5923 auto box = text::open_layout_box(layout, indentation);
5924 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5925 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere"), ws, layout, box);
5926 text::close_layout_box(layout, box);
5927}
5929 auto box = text::open_layout_box(layout, indentation);
5930 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5931 display_with_comparison(tval[0], text::produce_simple_string(ws, "sphere_leader_of"), ws, layout, box);
5932 text::add_space_to_layout_box(ws, layout, box);
5933 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
5934 text::close_layout_box(layout, box);
5935}
5937 auto box = text::open_layout_box(layout, indentation);
5938 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5939 display_with_comparison(tval[0], text::produce_simple_string(ws, "sphere_leader_of"), ws, layout, box);
5940 text::add_space_to_layout_box(ws, layout, box);
5941 if(from_slot != -1)
5942 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
5943 else
5944 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
5945 text::close_layout_box(layout, box);
5946}
5948 auto box = text::open_layout_box(layout, indentation);
5949 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5950 display_with_comparison(tval[0], text::produce_simple_string(ws, "sphere_leader_of"), ws, layout, box);
5951 text::add_space_to_layout_box(ws, layout, box);
5952 if(this_slot != -1)
5953 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
5954 else
5955 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5956 text::close_layout_box(layout, box);
5957}
5959 auto box = text::open_layout_box(layout, indentation);
5960 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5961 display_with_comparison(tval[0], text::produce_simple_string(ws, "sphere_leader_of"), ws, layout, box);
5962 text::add_space_to_layout_box(ws, layout, box);
5963 if(this_slot != -1)
5964 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
5965 else
5966 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5967 text::close_layout_box(layout, box);
5968}
5970 auto box = text::open_layout_box(layout, indentation);
5971 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5972 display_with_comparison(tval[0], text::produce_simple_string(ws, "sphere_leader_of"), ws, layout, box);
5973 text::add_space_to_layout_box(ws, layout, box);
5974 if(this_slot != -1)
5975 text::add_to_layout_box(ws, layout, box,
5976 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
5977 else
5978 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5979 text::close_layout_box(layout, box);
5980}
5982 auto box = text::open_layout_box(layout, indentation);
5983 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5984 display_with_comparison(tval[0], text::produce_simple_string(ws, "sphere_leader_of"), ws, layout, box);
5985 text::add_space_to_layout_box(ws, layout, box);
5986 if(this_slot != -1)
5987 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
5988 else
5989 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5990 text::close_layout_box(layout, box);
5991}
5993 auto box = text::open_layout_box(layout, indentation);
5994 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5995 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_states"), int64_t(tval[1]), ws, layout, box);
5996 text::close_layout_box(layout, box);
5997}
5999 // stub for apparently unused trigger
6000 auto box = text::open_layout_box(layout, indentation);
6001 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6003 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6004 else
6005 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6006 text::close_layout_box(layout, box);
6007}
6009 auto box = text::open_layout_box(layout, indentation);
6010 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6011 if(from_slot != -1)
6012 display_with_comparison(tval[0], trigger::to_nation(from_slot), text::produce_simple_string(ws, "a_releasable_vassal"), ws,
6013 layout, box);
6014 else
6015 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"),
6016 text::produce_simple_string(ws, "a_releasable_vassal"), ws, layout, box);
6017 text::close_layout_box(layout, box);
6018}
6020 auto box = text::open_layout_box(layout, indentation);
6021 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6022 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_releasable_vassal"), ws, layout, box);
6023 text::close_layout_box(layout, box);
6024}
6026 auto box = text::open_layout_box(layout, indentation);
6027 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6028 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "recent_immigration"), ws, layout, box);
6029 text::close_layout_box(layout, box);
6030}
6032 auto box = text::open_layout_box(layout, indentation);
6033 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6034 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_control_days"), int64_t(tval[1]), ws, layout, box);
6035 text::close_layout_box(layout, box);
6036}
6038 auto box = text::open_layout_box(layout, indentation);
6039 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6040 display_with_comparison(tval[0], text::produce_simple_string(ws, "disarmed"), ws, layout, box);
6041 text::close_layout_box(layout, box);
6042}
6044 auto box = text::open_layout_box(layout, indentation);
6045 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6046 display_with_comparison(tval[0], text::produce_simple_string(ws, "disarmed_pop"), ws, layout, box);
6047 text::close_layout_box(layout, box);
6048}
6050 // stub: used only rarely in ai chances and would be expensive to test
6051 auto box = text::open_layout_box(layout, indentation);
6052 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6054 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6055 else
6056 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6057 text::close_layout_box(layout, box);
6058}
6060 // stub: apparently unused
6061 auto box = text::open_layout_box(layout, indentation);
6062 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6064 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6065 else
6066 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6067 text::close_layout_box(layout, box);
6068}
6070 // stub: apparently unused
6071 auto box = text::open_layout_box(layout, indentation);
6072 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6074 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6075 else
6076 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6077 text::close_layout_box(layout, box);
6078}
6080 auto box = text::open_layout_box(layout, indentation);
6081 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6082 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_mov_support"),
6083 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6084 text::close_layout_box(layout, box);
6085}
6087 auto box = text::open_layout_box(layout, indentation);
6088 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6089 display_with_comparison(tval[0], text::produce_simple_string(ws, "political_mov_support"),
6090 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6091 text::close_layout_box(layout, box);
6092}
6094 // stub: virtually unused
6095 auto box = text::open_layout_box(layout, indentation);
6096 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6098 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6099 else
6100 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6101 text::close_layout_box(layout, box);
6102}
6104 auto box = text::open_layout_box(layout, indentation);
6105 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6106 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_member_of_social_mov"), ws, layout, box);
6107 text::close_layout_box(layout, box);
6108}
6110 auto box = text::open_layout_box(layout, indentation);
6111 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6112 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_member_of_political_mov"), ws, layout, box);
6113 text::close_layout_box(layout, box);
6114}
6116 // stub: implementation unclear
6117 auto box = text::open_layout_box(layout, indentation);
6118 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6120 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6121 else
6122 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6123 text::close_layout_box(layout, box);
6124}
6126 // stub: implementation unclear
6127 auto box = text::open_layout_box(layout, indentation);
6128 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6130 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6131 else
6132 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6133 text::close_layout_box(layout, box);
6134}
6136 auto box = text::open_layout_box(layout, indentation);
6137 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6138 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "cultural_sphere_members"), ws, layout, box);
6139 text::close_layout_box(layout, box);
6140}
6142 auto box = text::open_layout_box(layout, indentation);
6143 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6145 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "ww_enabled"));
6146 else
6147 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "ww_not_enabled"));
6148 text::close_layout_box(layout, box);
6149}
6151 auto box = text::open_layout_box(layout, indentation);
6152 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6153 if(this_slot != -1)
6155 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.pop_get_culture(trigger::to_pop(this_slot)))), ws,
6156 layout, box);
6157 else
6159 text::produce_simple_string(ws, "this_pop_culture"), ws, layout, box);
6160 text::close_layout_box(layout, box);
6161}
6163 auto box = text::open_layout_box(layout, indentation);
6164 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6165 if(this_slot != -1) {
6167 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.pop_get_culture(trigger::to_pop(this_slot)))), ws,
6168 layout, box);
6169 text::add_space_to_layout_box(ws, layout, box);
6170 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6171 } else {
6172 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_with"), ws, layout, box);
6173 text::add_space_to_layout_box(ws, layout, box);
6174 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_culture"));
6175 }
6176 text::close_layout_box(layout, box);
6177}
6179 auto box = text::open_layout_box(layout, indentation);
6180 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6181 if(this_slot != -1) {
6183 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.pop_get_culture(trigger::to_pop(this_slot)))), ws,
6184 layout, box);
6185 text::add_space_to_layout_box(ws, layout, box);
6186 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6187 } else {
6188 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_with"), ws, layout, box);
6189 text::add_space_to_layout_box(ws, layout, box);
6190 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_culture"));
6191 }
6192 text::close_layout_box(layout, box);
6193}
6195 auto box = text::open_layout_box(layout, indentation);
6196 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6197 if(this_slot != -1) {
6199 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.pop_get_culture(trigger::to_pop(this_slot)))), ws,
6200 layout, box);
6201 text::add_space_to_layout_box(ws, layout, box);
6202 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6203 } else {
6204 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_with"), ws, layout, box);
6205 text::add_space_to_layout_box(ws, layout, box);
6206 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_culture"));
6207 }
6208 text::close_layout_box(layout, box);
6209}
6211 auto box = text::open_layout_box(layout, indentation);
6212 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6214 text::produce_simple_string(ws, ws.world.culture_get_name(trigger::payload(tval[1]).cul_id)), ws, layout, box);
6215 text::close_layout_box(layout, box);
6216}
6218 auto box = text::open_layout_box(layout, indentation);
6219 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6221 text::produce_simple_string(ws, ws.world.culture_get_name(trigger::payload(tval[1]).cul_id)), ws, layout, box);
6222 text::add_space_to_layout_box(ws, layout, box);
6223 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6224 text::close_layout_box(layout, box);
6225}
6227 auto box = text::open_layout_box(layout, indentation);
6228 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6230 text::produce_simple_string(ws, ws.world.culture_get_name(trigger::payload(tval[1]).cul_id)), ws, layout, box);
6231 text::add_space_to_layout_box(ws, layout, box);
6232 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6233 text::close_layout_box(layout, box);
6234}
6236 auto box = text::open_layout_box(layout, indentation);
6237 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6239 text::produce_simple_string(ws, ws.world.culture_get_name(trigger::payload(tval[1]).cul_id)), ws, layout, box);
6240 text::add_space_to_layout_box(ws, layout, box);
6241 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6242 text::close_layout_box(layout, box);
6243}
6245 auto box = text::open_layout_box(layout, indentation);
6246 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6248 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
6249 text::close_layout_box(layout, box);
6250}
6252 auto box = text::open_layout_box(layout, indentation);
6253 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6254 if(this_slot != -1) {
6256 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.pop_get_religion(trigger::to_pop(this_slot)))), ws,
6257 layout, box);
6258 text::add_space_to_layout_box(ws, layout, box);
6259 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6260 } else {
6261 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_with"), ws, layout, box);
6262 text::add_space_to_layout_box(ws, layout, box);
6263 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_religion"));
6264 }
6265 text::close_layout_box(layout, box);
6266}
6268 auto box = text::open_layout_box(layout, indentation);
6269 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6270 if(this_slot != -1) {
6272 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.pop_get_religion(trigger::to_pop(this_slot)))), ws,
6273 layout, box);
6274 text::add_space_to_layout_box(ws, layout, box);
6275 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6276 } else {
6277 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_with"), ws, layout, box);
6278 text::add_space_to_layout_box(ws, layout, box);
6279 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_religion"));
6280 }
6281 text::close_layout_box(layout, box);
6282}
6284 auto box = text::open_layout_box(layout, indentation);
6285 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6286 if(this_slot != -1) {
6288 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.pop_get_religion(trigger::to_pop(this_slot)))), ws,
6289 layout, box);
6290 text::add_space_to_layout_box(ws, layout, box);
6291 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6292 } else {
6293 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_with"), ws, layout, box);
6294 text::add_space_to_layout_box(ws, layout, box);
6295 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_religion"));
6296 }
6297 text::close_layout_box(layout, box);
6298}
6300 auto box = text::open_layout_box(layout, indentation);
6301 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6303 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
6304 text::close_layout_box(layout, box);
6305}
6307 auto box = text::open_layout_box(layout, indentation);
6308 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6310 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
6311 text::add_space_to_layout_box(ws, layout, box);
6312 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6313 text::close_layout_box(layout, box);
6314}
6316 auto box = text::open_layout_box(layout, indentation);
6317 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6319 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
6320 text::add_space_to_layout_box(ws, layout, box);
6321 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6322 text::close_layout_box(layout, box);
6323}
6325 auto box = text::open_layout_box(layout, indentation);
6326 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6328 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
6329 text::add_space_to_layout_box(ws, layout, box);
6330 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6331 text::close_layout_box(layout, box);
6332}
6334 auto box = text::open_layout_box(layout, indentation);
6335 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6336 display_with_comparison(tval[0], text::produce_simple_string(ws, "life_needs_satisfaction"),
6337 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6338 text::close_layout_box(layout, box);
6339}
6341 auto box = text::open_layout_box(layout, indentation);
6342 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6343 display_with_comparison(tval[0], text::produce_simple_string(ws, "everyday_needs_satisfaction"),
6344 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6345 text::close_layout_box(layout, box);
6346}
6348 auto box = text::open_layout_box(layout, indentation);
6349 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6350 display_with_comparison(tval[0], text::produce_simple_string(ws, "luxury_needs_satisfaction"),
6351 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6352 text::close_layout_box(layout, box);
6353}
6355 auto box = text::open_layout_box(layout, indentation);
6356 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6357 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
6358 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6359 text::close_layout_box(layout, box);
6360}
6362 auto box = text::open_layout_box(layout, indentation);
6363 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6364 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
6365 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6366 text::close_layout_box(layout, box);
6367}
6369 auto box = text::open_layout_box(layout, indentation);
6370 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6371 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
6372 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6373 text::close_layout_box(layout, box);
6374}
6376 auto box = text::open_layout_box(layout, indentation);
6377 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6378 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
6379 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6380 text::close_layout_box(layout, box);
6381}
6383 auto box = text::open_layout_box(layout, indentation);
6384 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6386 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6387 text::close_layout_box(layout, box);
6388}
6390 auto box = text::open_layout_box(layout, indentation);
6391 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6393 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6394 text::close_layout_box(layout, box);
6395}
6397 auto box = text::open_layout_box(layout, indentation);
6398 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6400 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6401 text::close_layout_box(layout, box);
6402}
6404 auto box = text::open_layout_box(layout, indentation);
6405 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6407 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6408 text::close_layout_box(layout, box);
6409}
6411 auto box = text::open_layout_box(layout, indentation);
6412 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6413 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
6414 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6415 text::close_layout_box(layout, box);
6416}
6418 auto box = text::open_layout_box(layout, indentation);
6419 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6420 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
6421 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6422 text::close_layout_box(layout, box);
6423}
6425 auto box = text::open_layout_box(layout, indentation);
6426 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6427 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
6428 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6429 text::close_layout_box(layout, box);
6430}
6432 auto box = text::open_layout_box(layout, indentation);
6433 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6434 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
6435 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6436 text::close_layout_box(layout, box);
6437}
6439 auto box = text::open_layout_box(layout, indentation);
6440 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6441 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id)),
6442 text::produce_simple_string(ws, "present_in_state"), ws, layout, box);
6443 text::close_layout_box(layout, box);
6444}
6446 auto box = text::open_layout_box(layout, indentation);
6447 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6448 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id)),
6449 text::produce_simple_string(ws, "present_in_state"), ws, layout, box);
6450 text::close_layout_box(layout, box);
6451}
6453 auto box = text::open_layout_box(layout, indentation);
6454 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6455 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "flashpoint"), ws, layout, box);
6456 text::close_layout_box(layout, box);
6457}
6459 auto box = text::open_layout_box(layout, indentation);
6460 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6461 display_with_comparison(tval[0], text::produce_simple_string(ws, "flashpoint_tension"),
6462 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6463 text::close_layout_box(layout, box);
6464}
6466 auto box = text::open_layout_box(layout, indentation);
6467 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6468 display_with_comparison(tval[0], text::produce_simple_string(ws, "there"), text::produce_simple_string(ws, "an_ongoing_crisis"),
6469 ws, layout, box);
6470 text::close_layout_box(layout, box);
6471}
6473 auto box = text::open_layout_box(layout, indentation);
6474 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6475 display_with_comparison(tval[0], text::produce_simple_string(ws, "current_crisis"),
6476 text::produce_simple_string(ws, "liberation_crisis"), ws, layout, box);
6477 text::close_layout_box(layout, box);
6478}
6480 auto box = text::open_layout_box(layout, indentation);
6481 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6482 display_with_comparison(tval[0], text::produce_simple_string(ws, "current_crisis"),
6483 text::produce_simple_string(ws, "claim_crisis"), ws, layout, box);
6484 text::close_layout_box(layout, box);
6485}
6487 auto box = text::open_layout_box(layout, indentation);
6488 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6489 display_with_comparison(tval[0], text::produce_simple_string(ws, "crisis_temperature_plain"),
6490 int64_t(trigger::read_float_from_payload(tval + 1)), ws, layout, box);
6491 text::close_layout_box(layout, box);
6492}
6494 auto box = text::open_layout_box(layout, indentation);
6495 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6496 display_with_comparison(tval[0], text::produce_simple_string(ws, "involved_in_crisis"), ws, layout, box);
6497 text::close_layout_box(layout, box);
6498}
6500 auto box = text::open_layout_box(layout, indentation);
6501 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6502 display_with_comparison(tval[0], text::produce_simple_string(ws, "involved_in_crisis"), ws, layout, box);
6503 text::close_layout_box(layout, box);
6504}
6506 auto box = text::open_layout_box(layout, indentation);
6507 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6508 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_life_needs_satisfaction"),
6509 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6510 text::close_layout_box(layout, box);
6511}
6513 auto box = text::open_layout_box(layout, indentation);
6514 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6515 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_life_needs_satisfaction"),
6516 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6517 text::close_layout_box(layout, box);
6518}
6520 auto box = text::open_layout_box(layout, indentation);
6521 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6522 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_life_needs_satisfaction"),
6523 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6524 text::close_layout_box(layout, box);
6525}
6527 auto box = text::open_layout_box(layout, indentation);
6528 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6529 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_life_needs_satisfaction"),
6530 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6531 text::close_layout_box(layout, box);
6532}
6534 auto box = text::open_layout_box(layout, indentation);
6535 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6536 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_everyday_needs_satisfaction"),
6537 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6538 text::close_layout_box(layout, box);
6539}
6541 auto box = text::open_layout_box(layout, indentation);
6542 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6543 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_everyday_needs_satisfaction"),
6544 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6545 text::close_layout_box(layout, box);
6546}
6548 auto box = text::open_layout_box(layout, indentation);
6549 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6550 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_everyday_needs_satisfaction"),
6551 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6552 text::close_layout_box(layout, box);
6553}
6555 auto box = text::open_layout_box(layout, indentation);
6556 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6557 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_everyday_needs_satisfaction"),
6558 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6559 text::close_layout_box(layout, box);
6560}
6562 auto box = text::open_layout_box(layout, indentation);
6563 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6564 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_luxury_needs_satisfaction"),
6565 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6566 text::close_layout_box(layout, box);
6567}
6569 auto box = text::open_layout_box(layout, indentation);
6570 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6571 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_luxury_needs_satisfaction"),
6572 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6573 text::close_layout_box(layout, box);
6574}
6576 auto box = text::open_layout_box(layout, indentation);
6577 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6578 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_luxury_needs_satisfaction"),
6579 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6580 text::close_layout_box(layout, box);
6581}
6583 auto box = text::open_layout_box(layout, indentation);
6584 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6585 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_luxury_needs_satisfaction"),
6586 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6587 text::close_layout_box(layout, box);
6588}
6590 auto box = text::open_layout_box(layout, indentation);
6591 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6592 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_life_needs_satisfaction"),
6593 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6594 text::close_layout_box(layout, box);
6595}
6597 auto box = text::open_layout_box(layout, indentation);
6598 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6599 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_life_needs_satisfaction"),
6600 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6601 text::close_layout_box(layout, box);
6602}
6604 auto box = text::open_layout_box(layout, indentation);
6605 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6606 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_life_needs_satisfaction"),
6607 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6608 text::close_layout_box(layout, box);
6609}
6611 auto box = text::open_layout_box(layout, indentation);
6612 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6613 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_life_needs_satisfaction"),
6614 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6615 text::close_layout_box(layout, box);
6616}
6618 auto box = text::open_layout_box(layout, indentation);
6619 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6620 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_everyday_needs_satisfaction"),
6621 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6622 text::close_layout_box(layout, box);
6623}
6625 auto box = text::open_layout_box(layout, indentation);
6626 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6627 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_everyday_needs_satisfaction"),
6628 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6629 text::close_layout_box(layout, box);
6630}
6632 auto box = text::open_layout_box(layout, indentation);
6633 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6634 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_everyday_needs_satisfaction"),
6635 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6636 text::close_layout_box(layout, box);
6637}
6639 auto box = text::open_layout_box(layout, indentation);
6640 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6641 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_everyday_needs_satisfaction"),
6642 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6643 text::close_layout_box(layout, box);
6644}
6646 auto box = text::open_layout_box(layout, indentation);
6647 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6648 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_luxury_needs_satisfaction"),
6649 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6650 text::close_layout_box(layout, box);
6651}
6653 auto box = text::open_layout_box(layout, indentation);
6654 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6655 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_luxury_needs_satisfaction"),
6656 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6657 text::close_layout_box(layout, box);
6658}
6660 auto box = text::open_layout_box(layout, indentation);
6661 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6662 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_luxury_needs_satisfaction"),
6663 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6664 text::close_layout_box(layout, box);
6665}
6667 auto box = text::open_layout_box(layout, indentation);
6668 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6669 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_luxury_needs_satisfaction"),
6670 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6671 text::close_layout_box(layout, box);
6672}
6674 auto box = text::open_layout_box(layout, indentation);
6675 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6676 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_life_needs_satisfaction"),
6677 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6678 text::close_layout_box(layout, box);
6679}
6681 auto box = text::open_layout_box(layout, indentation);
6682 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6683 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_life_needs_satisfaction"),
6684 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6685 text::close_layout_box(layout, box);
6686}
6688 auto box = text::open_layout_box(layout, indentation);
6689 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6690 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_life_needs_satisfaction"),
6691 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6692 text::close_layout_box(layout, box);
6693}
6695 auto box = text::open_layout_box(layout, indentation);
6696 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6697 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_life_needs_satisfaction"),
6698 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6699 text::close_layout_box(layout, box);
6700}
6702 auto box = text::open_layout_box(layout, indentation);
6703 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6704 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_everyday_needs_satisfaction"),
6705 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6706 text::close_layout_box(layout, box);
6707}
6709 auto box = text::open_layout_box(layout, indentation);
6710 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6711 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_everyday_needs_satisfaction"),
6712 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6713 text::close_layout_box(layout, box);
6714}
6716 auto box = text::open_layout_box(layout, indentation);
6717 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6718 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_everyday_needs_satisfaction"),
6719 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6720 text::close_layout_box(layout, box);
6721}
6723 auto box = text::open_layout_box(layout, indentation);
6724 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6725 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_everyday_needs_satisfaction"),
6726 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6727 text::close_layout_box(layout, box);
6728}
6730 auto box = text::open_layout_box(layout, indentation);
6731 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6732 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_luxury_needs_satisfaction"),
6733 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6734 text::close_layout_box(layout, box);
6735}
6737 auto box = text::open_layout_box(layout, indentation);
6738 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6739 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_luxury_needs_satisfaction"),
6740 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6741 text::close_layout_box(layout, box);
6742}
6744 auto box = text::open_layout_box(layout, indentation);
6745 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6746 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_luxury_needs_satisfaction"),
6747 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6748 text::close_layout_box(layout, box);
6749}
6751 auto box = text::open_layout_box(layout, indentation);
6752 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6753 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_luxury_needs_satisfaction"),
6754 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6755 text::close_layout_box(layout, box);
6756}
6758 auto box = text::open_layout_box(layout, indentation);
6759 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6760 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "dip_influence_over"));
6761 text::add_space_to_layout_box(ws, layout, box);
6762 display_with_comparison(tval[0], trigger::payload(tval[2]).tag_id, int64_t(tval[1]), ws, layout, box);
6763 text::close_layout_box(layout, box);
6764}
6766 auto box = text::open_layout_box(layout, indentation);
6767 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6768 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "dip_influence_over"));
6769 text::add_space_to_layout_box(ws, layout, box);
6770 if(this_slot != -1)
6771 display_with_comparison(tval[0], trigger::to_nation(this_slot), int64_t(tval[1]), ws, layout, box);
6772 else
6773 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), int64_t(tval[1]), ws, layout, box);
6774 text::close_layout_box(layout, box);
6775}
6777 auto box = text::open_layout_box(layout, indentation);
6778 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6779 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "dip_influence_over"));
6780 text::add_space_to_layout_box(ws, layout, box);
6781 if(this_slot != -1)
6782 display_with_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)),
6783 int64_t(tval[1]), ws, layout, box);
6784 else
6785 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), int64_t(tval[1]), ws, layout, box);
6786 text::close_layout_box(layout, box);
6787}
6789 auto box = text::open_layout_box(layout, indentation);
6790 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6791 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "dip_influence_over"));
6792 text::add_space_to_layout_box(ws, layout, box);
6793 if(from_slot != -1)
6794 display_with_comparison(tval[0], trigger::to_nation(from_slot), int64_t(tval[1]), ws, layout, box);
6795 else
6796 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"), int64_t(tval[1]), ws, layout, box);
6797 text::close_layout_box(layout, box);
6798}
6800 auto box = text::open_layout_box(layout, indentation);
6801 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6802 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "dip_influence_over"));
6803 text::add_space_to_layout_box(ws, layout, box);
6804 if(from_slot != -1)
6805 display_with_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(from_slot)),
6806 int64_t(tval[1]), ws, layout, box);
6807 else
6808 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"), int64_t(tval[1]), ws, layout, box);
6809 text::close_layout_box(layout, box);
6810}
6812 auto box = text::open_layout_box(layout, indentation);
6813 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6814 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[3]).popt_id));
6815 text::add_space_to_layout_box(ws, layout, box);
6816 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6817 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6818 text::close_layout_box(layout, box);
6819}
6821 auto box = text::open_layout_box(layout, indentation);
6822 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6823 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[3]).popt_id));
6824 text::add_space_to_layout_box(ws, layout, box);
6825 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6826 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6827 text::close_layout_box(layout, box);
6828}
6830 auto box = text::open_layout_box(layout, indentation);
6831 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6832 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[3]).popt_id));
6833 text::add_space_to_layout_box(ws, layout, box);
6834 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6835 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6836 text::close_layout_box(layout, box);
6837}
6839 auto box = text::open_layout_box(layout, indentation);
6840 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6841 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6842 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6843 text::close_layout_box(layout, box);
6844}
6846 auto box = text::open_layout_box(layout, indentation);
6847 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6848 if(this_slot != -1)
6849 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(ws.world.pop_get_poptype(trigger::to_pop(this_slot))));
6850 else
6851 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_type"));
6852 text::add_space_to_layout_box(ws, layout, box);
6853 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6854 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6855 text::close_layout_box(layout, box);
6856}
6858 auto box = text::open_layout_box(layout, indentation);
6859 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6860 if(this_slot != -1)
6861 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(ws.world.pop_get_poptype(trigger::to_pop(this_slot))));
6862 else
6863 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_type"));
6864 text::add_space_to_layout_box(ws, layout, box);
6865 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6866 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6867 text::close_layout_box(layout, box);
6868}
6870 auto box = text::open_layout_box(layout, indentation);
6871 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6872 if(this_slot != -1)
6873 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(ws.world.pop_get_poptype(trigger::to_pop(this_slot))));
6874 else
6875 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_type"));
6876 text::add_space_to_layout_box(ws, layout, box);
6877 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6878 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6879 text::close_layout_box(layout, box);
6880}
6882 auto box = text::open_layout_box(layout, indentation);
6883 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6884 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "relationship_with"));
6885 text::add_space_to_layout_box(ws, layout, box);
6886 display_with_comparison(tval[0], trigger::payload(tval[2]).tag_id, int64_t(trigger::payload(tval[1]).signed_value), ws, layout,
6887 box);
6888 text::close_layout_box(layout, box);
6889}
6891 auto box = text::open_layout_box(layout, indentation);
6892 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6893 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "relationship_with"));
6894 text::add_space_to_layout_box(ws, layout, box);
6895 if(this_slot != -1)
6896 display_with_comparison(tval[0], trigger::to_nation(this_slot), int64_t(trigger::payload(tval[1]).signed_value), ws, layout,
6897 box);
6898 else
6899 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"),
6900 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6901 text::close_layout_box(layout, box);
6902}
6904 auto box = text::open_layout_box(layout, indentation);
6905 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6906 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "relationship_with"));
6907 text::add_space_to_layout_box(ws, layout, box);
6908 if(this_slot != -1)
6909 display_with_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)),
6910 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6911 else
6912 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"),
6913 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6914 text::close_layout_box(layout, box);
6915}
6917 auto box = text::open_layout_box(layout, indentation);
6918 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6919 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "relationship_with"));
6920 text::add_space_to_layout_box(ws, layout, box);
6921 if(this_slot != -1)
6923 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6924 else
6925 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"),
6926 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6927 text::close_layout_box(layout, box);
6928}
6930 auto box = text::open_layout_box(layout, indentation);
6931 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6932 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "relationship_with"));
6933 text::add_space_to_layout_box(ws, layout, box);
6934 if(from_slot != -1)
6935 display_with_comparison(tval[0], trigger::to_nation(from_slot), int64_t(trigger::payload(tval[1]).signed_value), ws, layout,
6936 box);
6937 else
6938 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"),
6939 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6940 text::close_layout_box(layout, box);
6941}
6943 auto box = text::open_layout_box(layout, indentation);
6944 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6945 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "relationship_with"));
6946 text::add_space_to_layout_box(ws, layout, box);
6947 if(from_slot != -1)
6948 display_with_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(from_slot)),
6949 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6950 else
6951 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"),
6952 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6953 text::close_layout_box(layout, box);
6954}
6956 auto box = text::open_layout_box(layout, indentation);
6957 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6959 text::produce_simple_string(ws, ws.national_definitions.variable_names[trigger::payload(tval[3]).natv_id]),
6960 text::fp_two_places{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6961 text::close_layout_box(layout, box);
6962}
6964 auto box = text::open_layout_box(layout, indentation);
6965 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6966 text::add_to_layout_box(ws, layout, box,
6967 text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[3]).ideo_id)));
6968 text::add_space_to_layout_box(ws, layout, box);
6969 display_with_comparison(tval[0], text::produce_simple_string(ws, "support_in_uh"),
6970 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6971 text::close_layout_box(layout, box);
6972}
6974 auto box = text::open_layout_box(layout, indentation);
6975 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6976 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[3]).popt_id));
6977 text::add_space_to_layout_box(ws, layout, box);
6978 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6979 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6980 text::close_layout_box(layout, box);
6981}
6983 auto box = text::open_layout_box(layout, indentation);
6984 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6985 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[3]).popt_id));
6986 text::add_space_to_layout_box(ws, layout, box);
6987 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6988 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6989 text::close_layout_box(layout, box);
6990}
6992 auto box = text::open_layout_box(layout, indentation);
6993 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6994 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[3]).popt_id));
6995 text::add_space_to_layout_box(ws, layout, box);
6996 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6997 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6998 text::close_layout_box(layout, box);
6999}
7001 auto box = text::open_layout_box(layout, indentation);
7002 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7003 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[3]).popt_id));
7004 text::add_space_to_layout_box(ws, layout, box);
7005 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment_in_state"),
7006 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
7007 text::close_layout_box(layout, box);
7008}
7010 auto box = text::open_layout_box(layout, indentation);
7011 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7012
7013 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[3]).ideo_id));
7014 text::add_space_to_layout_box(ws, layout, box);
7015 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "support_in"));
7016 text::add_space_to_layout_box(ws, layout, box);
7017 display_with_comparison(tval[0], trigger::payload(tval[1]).prov_id, int64_t(trigger::payload(tval[2]).signed_value), ws, layout,
7018 box);
7019 text::close_layout_box(layout, box);
7020}
7022 auto box = text::open_layout_box(layout, indentation);
7023 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7024
7025 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[3]).ideo_id));
7026 text::add_space_to_layout_box(ws, layout, box);
7027 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "support_in"));
7028 text::add_space_to_layout_box(ws, layout, box);
7029 display_with_comparison(tval[0], trigger::payload(tval[1]).prov_id, int64_t(trigger::payload(tval[2]).signed_value), ws, layout,
7030 box);
7031 text::close_layout_box(layout, box);
7032}
7034 auto box = text::open_layout_box(layout, indentation);
7035 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7036
7037 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[3]).ideo_id));
7038 text::add_space_to_layout_box(ws, layout, box);
7039 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "support_in"));
7040 text::add_space_to_layout_box(ws, layout, box);
7041 display_with_comparison(tval[0], trigger::payload(tval[1]).prov_id, int64_t(trigger::payload(tval[2]).signed_value), ws, layout,
7042 box);
7043 text::close_layout_box(layout, box);
7044}
7046 auto box = text::open_layout_box(layout, indentation);
7047 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7048
7049 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[3]).ideo_id));
7050 text::add_space_to_layout_box(ws, layout, box);
7051 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "support_in"));
7052 text::add_space_to_layout_box(ws, layout, box);
7053 display_with_comparison(tval[0], trigger::payload(tval[1]).prov_id, int64_t(trigger::payload(tval[2]).signed_value), ws, layout,
7054 box);
7055 text::close_layout_box(layout, box);
7056}
7058 auto box = text::open_layout_box(layout, indentation);
7059 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7060
7061 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[2]).ideo_id));
7062 text::add_space_to_layout_box(ws, layout, box);
7063 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "support_in"));
7064 text::add_space_to_layout_box(ws, layout, box);
7065 if(from_slot != -1)
7066 display_with_comparison(tval[0], trigger::to_prov(from_slot), int64_t(trigger::payload(tval[1]).signed_value), ws, layout,
7067 box);
7068 else
7069 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_province"),
7070 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
7071 text::close_layout_box(layout, box);
7072}
7074 auto box = text::open_layout_box(layout, indentation);
7075 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7076
7077 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[2]).ideo_id));
7078 text::add_space_to_layout_box(ws, layout, box);
7079 display_with_comparison(tval[0], text::produce_simple_string(ws, "support"), int64_t(trigger::payload(tval[1]).signed_value),
7080 ws, layout, box);
7081 text::close_layout_box(layout, box);
7082}
7084 auto box = text::open_layout_box(layout, indentation);
7085 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7086
7087 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[2]).ideo_id));
7088 text::add_space_to_layout_box(ws, layout, box);
7089 display_with_comparison(tval[0], text::produce_simple_string(ws, "support"), int64_t(trigger::payload(tval[1]).signed_value),
7090 ws, layout, box);
7091 text::close_layout_box(layout, box);
7092}
7094 auto box = text::open_layout_box(layout, indentation);
7095 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7096
7097 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[2]).ideo_id));
7098 text::add_space_to_layout_box(ws, layout, box);
7099 display_with_comparison(tval[0], text::produce_simple_string(ws, "support"), int64_t(trigger::payload(tval[1]).signed_value),
7100 ws, layout, box);
7101 text::close_layout_box(layout, box);
7102}
7104 auto box = text::open_layout_box(layout, indentation);
7105 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7106 if(from_slot != -1)
7107 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
7108 else
7109 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
7110 text::add_space_to_layout_box(ws, layout, box);
7111 text::add_to_layout_box(ws, layout, box,
7113 ? "can_build_railroad_here"
7114 : "cannot_build_railroad_here"));
7115 text::close_layout_box(layout, box);
7116}
7118 auto box = text::open_layout_box(layout, indentation);
7119 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7120 if(from_slot != -1)
7121 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
7122 else
7123 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
7124 text::add_space_to_layout_box(ws, layout, box);
7125 text::add_to_layout_box(ws, layout, box,
7127 ? "can_build_railroad_here"
7128 : "cannot_build_railroad_here"));
7129 text::close_layout_box(layout, box);
7130}
7132 auto box = text::open_layout_box(layout, indentation);
7133 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7134 if(this_slot != -1)
7135 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
7136 else
7137 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
7138 text::add_space_to_layout_box(ws, layout, box);
7139 text::add_to_layout_box(ws, layout, box,
7141 ? "can_build_railroad_here"
7142 : "cannot_build_railroad_here"));
7143 text::close_layout_box(layout, box);
7144}
7146 auto box = text::open_layout_box(layout, indentation);
7147 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7148 if(this_slot != -1)
7149 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
7150 else
7151 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
7152 text::add_space_to_layout_box(ws, layout, box);
7153 text::add_to_layout_box(ws, layout, box,
7155 ? "can_build_railroad_here"
7156 : "cannot_build_railroad_here"));
7157 text::close_layout_box(layout, box);
7158}
7160 auto box = text::open_layout_box(layout, indentation);
7161 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7162 if(from_slot != -1)
7163 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
7164 else
7165 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
7166 text::add_space_to_layout_box(ws, layout, box);
7167 text::add_to_layout_box(ws, layout, box,
7169 (tval[0] & trigger::association_mask) == trigger::association_eq ? "can_build_fort_here" : "cannot_build_fort_here"));
7170 text::close_layout_box(layout, box);
7171}
7173 auto box = text::open_layout_box(layout, indentation);
7174 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7175 if(from_slot != -1)
7176 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
7177 else
7178 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
7179 text::add_space_to_layout_box(ws, layout, box);
7180 text::add_to_layout_box(ws, layout, box,
7182 (tval[0] & trigger::association_mask) == trigger::association_eq ? "can_build_fort_here" : "cannot_build_fort_here"));
7183 text::close_layout_box(layout, box);
7184}
7186 auto box = text::open_layout_box(layout, indentation);
7187 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7188 if(this_slot != -1)
7189 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
7190 else
7191 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
7192 text::add_space_to_layout_box(ws, layout, box);
7193 text::add_to_layout_box(ws, layout, box,
7195 (tval[0] & trigger::association_mask) == trigger::association_eq ? "can_build_fort_here" : "cannot_build_fort_here"));
7196 text::close_layout_box(layout, box);
7197}
7199 auto box = text::open_layout_box(layout, indentation);
7200 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7201 if(this_slot != -1)
7202 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
7203 else
7204 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
7205 text::add_space_to_layout_box(ws, layout, box);
7206 text::add_to_layout_box(ws, layout, box,
7208 (tval[0] & trigger::association_mask) == trigger::association_eq ? "can_build_fort_here" : "cannot_build_fort_here"));
7209 text::close_layout_box(layout, box);
7210}
7212 auto box = text::open_layout_box(layout, indentation);
7213 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7214 if(from_slot != -1)
7215 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
7216 else
7217 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
7218 text::add_space_to_layout_box(ws, layout, box);
7219 text::add_to_layout_box(ws, layout, box,
7221 ? "can_build_naval_base_here"
7222 : "cannot_build_naval_base_here"));
7223 text::close_layout_box(layout, box);
7224}
7226 auto box = text::open_layout_box(layout, indentation);
7227 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7228 if(from_slot != -1)
7229 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
7230 else
7231 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
7232 text::add_space_to_layout_box(ws, layout, box);
7233 text::add_to_layout_box(ws, layout, box,
7235 ? "can_build_naval_base_here"
7236 : "cannot_build_naval_base_here"));
7237 text::close_layout_box(layout, box);
7238}
7240 auto box = text::open_layout_box(layout, indentation);
7241 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7242 if(this_slot != -1)
7243 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
7244 else
7245 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
7246 text::add_space_to_layout_box(ws, layout, box);
7247 text::add_to_layout_box(ws, layout, box,
7249 ? "can_build_naval_base_here"
7250 : "cannot_build_naval_base_here"));
7251 text::close_layout_box(layout, box);
7252}
7254 auto box = text::open_layout_box(layout, indentation);
7255 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7256 if(this_slot != -1)
7257 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
7258 else
7259 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
7260 text::add_space_to_layout_box(ws, layout, box);
7261 text::add_to_layout_box(ws, layout, box,
7263 ? "can_build_naval_base_here"
7264 : "cannot_build_naval_base_here"));
7265 text::close_layout_box(layout, box);
7266}
7268 // stub: virtually unused
7269 auto box = text::open_layout_box(layout, indentation);
7270 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7272 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7273 else
7274 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7275 text::close_layout_box(layout, box);
7276}
7278 // stub: virtually unused
7279 auto box = text::open_layout_box(layout, indentation);
7280 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7282 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7283 else
7284 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7285 text::close_layout_box(layout, box);
7286}
7288 // stub: virtually unused
7289 auto box = text::open_layout_box(layout, indentation);
7290 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7292 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7293 else
7294 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7295 text::close_layout_box(layout, box);
7296}
7298 // stub: virtually unused
7299 auto box = text::open_layout_box(layout, indentation);
7300 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7302 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7303 else
7304 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7305 text::close_layout_box(layout, box);
7306}
7308 // stub: virtually unused
7309 auto box = text::open_layout_box(layout, indentation);
7310 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7312 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7313 else
7314 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7315 text::close_layout_box(layout, box);
7316}
7318 // stub: virtually unused
7319 auto box = text::open_layout_box(layout, indentation);
7320 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7322 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7323 else
7324 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7325 text::close_layout_box(layout, box);
7326}
7328 // stub: virtually unused
7329 auto box = text::open_layout_box(layout, indentation);
7330 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7332 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7333 else
7334 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7335 text::close_layout_box(layout, box);
7336}
7338 // stub: virtually unused
7339 auto box = text::open_layout_box(layout, indentation);
7340 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7342 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7343 else
7344 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7345 text::close_layout_box(layout, box);
7346}
7348 auto box = text::open_layout_box(layout, indentation);
7349 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7350 display_with_comparison(tval[0], text::produce_simple_string(ws, "work"), text::produce_simple_string(ws, "available_for"), ws,
7351 layout, box);
7352 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
7353 text::add_space_to_layout_box(ws, layout, box);
7354 text::close_layout_box(layout, box);
7355}
7357 auto box = text::open_layout_box(layout, indentation);
7358 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7359 display_with_comparison(tval[0], text::produce_simple_string(ws, "work"), text::produce_simple_string(ws, "available_for"), ws,
7360 layout, box);
7361 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
7362 text::add_space_to_layout_box(ws, layout, box);
7363 text::close_layout_box(layout, box);
7364}
7366 auto box = text::open_layout_box(layout, indentation);
7367 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7368 display_with_comparison(tval[0], text::produce_simple_string(ws, "work"), text::produce_simple_string(ws, "available_for"), ws,
7369 layout, box);
7370 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
7371 text::add_space_to_layout_box(ws, layout, box);
7372 text::close_layout_box(layout, box);
7373}
7375 auto box = text::open_layout_box(layout, indentation);
7376 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7377 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id));
7378 text::add_space_to_layout_box(ws, layout, box);
7380 text::fp_percentage{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7381 text::close_layout_box(layout, box);
7382}
7384 auto box = text::open_layout_box(layout, indentation);
7385 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7386 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id));
7387 text::add_space_to_layout_box(ws, layout, box);
7389 text::fp_percentage{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7390 text::close_layout_box(layout, box);
7391}
7393 auto box = text::open_layout_box(layout, indentation);
7394 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7395 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id));
7396 text::add_space_to_layout_box(ws, layout, box);
7398 text::fp_percentage{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7399 text::close_layout_box(layout, box);
7400}
7402 auto box = text::open_layout_box(layout, indentation);
7403 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7404 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id));
7405 text::add_space_to_layout_box(ws, layout, box);
7407 text::fp_percentage{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7408 text::close_layout_box(layout, box);
7409}
7411 auto box = text::open_layout_box(layout, indentation);
7412 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7413 text::add_to_layout_box(ws, layout, box, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id));
7414 text::add_space_to_layout_box(ws, layout, box);
7416 text::fp_percentage{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7417 text::close_layout_box(layout, box);
7418}
7420 auto box = text::open_layout_box(layout, indentation);
7421 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7422 text::add_to_layout_box(ws, layout, box, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id));
7423 text::add_space_to_layout_box(ws, layout, box);
7425 text::fp_percentage{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7426 text::close_layout_box(layout, box);
7427}
7429 auto box = text::open_layout_box(layout, indentation);
7430 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7431 text::add_to_layout_box(ws, layout, box, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id));
7432 text::add_space_to_layout_box(ws, layout, box);
7434 text::fp_percentage{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7435 text::close_layout_box(layout, box);
7436}
7438 auto box = text::open_layout_box(layout, indentation);
7439 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7440 text::add_to_layout_box(ws, layout, box, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id));
7441 text::add_space_to_layout_box(ws, layout, box);
7443 text::fp_percentage{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7444 text::close_layout_box(layout, box);
7445}
7447 auto box = text::open_layout_box(layout, indentation);
7448 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7449 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.issue_get_name(trigger::payload(tval[1]).iss_id)),
7450 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[2]).opt_id)), ws, layout, box);
7451 text::close_layout_box(layout, box);
7452}
7454 auto box = text::open_layout_box(layout, indentation);
7455 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7456 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.issue_get_name(trigger::payload(tval[1]).iss_id)),
7457 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[2]).opt_id)), ws, layout, box);
7458 text::close_layout_box(layout, box);
7459}
7461 auto box = text::open_layout_box(layout, indentation);
7462 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7463 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.issue_get_name(trigger::payload(tval[1]).iss_id)),
7464 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[2]).opt_id)), ws, layout, box);
7465 text::close_layout_box(layout, box);
7466}
7468 auto box = text::open_layout_box(layout, indentation);
7469 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7470 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.issue_get_name(trigger::payload(tval[1]).iss_id)),
7471 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[2]).opt_id)), ws, layout, box);
7472 text::close_layout_box(layout, box);
7473}
7475 auto box = text::open_layout_box(layout, indentation);
7476 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7477 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.reform_get_name(trigger::payload(tval[1]).ref_id)),
7478 text::produce_simple_string(ws, ws.world.reform_option_get_name(trigger::payload(tval[2]).ropt_id)), ws, layout, box);
7479 text::close_layout_box(layout, box);
7480}
7482 auto box = text::open_layout_box(layout, indentation);
7483 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7484 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.reform_get_name(trigger::payload(tval[1]).ref_id)),
7485 text::produce_simple_string(ws, ws.world.reform_option_get_name(trigger::payload(tval[2]).ropt_id)), ws, layout, box);
7486 text::close_layout_box(layout, box);
7487}
7489 auto box = text::open_layout_box(layout, indentation);
7490 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7491 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.reform_get_name(trigger::payload(tval[1]).ref_id)),
7492 text::produce_simple_string(ws, ws.world.reform_option_get_name(trigger::payload(tval[2]).ropt_id)), ws, layout, box);
7493 text::close_layout_box(layout, box);
7494}
7496 auto box = text::open_layout_box(layout, indentation);
7497 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7498 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.reform_get_name(trigger::payload(tval[1]).ref_id)),
7499 text::produce_simple_string(ws, ws.world.reform_option_get_name(trigger::payload(tval[2]).ropt_id)), ws, layout, box);
7500 text::close_layout_box(layout, box);
7501}
7503 auto box = text::open_layout_box(layout, indentation);
7504 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7505 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
7506 text::add_space_to_layout_box(ws, layout, box);
7507 display_with_comparison(tval[0], text::produce_simple_string(ws, "percentage"),
7509 text::close_layout_box(layout, box);
7510}
7512 auto box = text::open_layout_box(layout, indentation);
7513 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7514 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
7515 text::add_space_to_layout_box(ws, layout, box);
7516 display_with_comparison(tval[0], text::produce_simple_string(ws, "percentage"),
7518 text::close_layout_box(layout, box);
7519}
7521 auto box = text::open_layout_box(layout, indentation);
7522 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7523 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
7524 text::add_space_to_layout_box(ws, layout, box);
7525 display_with_comparison(tval[0], text::produce_simple_string(ws, "percentage"),
7527 text::close_layout_box(layout, box);
7528}
7530 auto box = text::open_layout_box(layout, indentation);
7531 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7532 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
7533 text::add_space_to_layout_box(ws, layout, box);
7534 display_with_comparison(tval[0], text::produce_simple_string(ws, "province_percentage"),
7536 text::close_layout_box(layout, box);
7537}
7539 auto box = text::open_layout_box(layout, indentation);
7540 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7541 text::add_to_layout_box(ws, layout, box, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id));
7542 text::add_space_to_layout_box(ws, layout, box);
7543 display_with_comparison(tval[0], text::produce_simple_string(ws, "stockpile"),
7544 text::fp_one_place{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7545 text::close_layout_box(layout, box);
7546}
7548 auto box = text::open_layout_box(layout, indentation);
7549 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7550 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7551 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
7552 text::close_layout_box(layout, box);
7553}
7555 auto box = text::open_layout_box(layout, indentation);
7556 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7557 if(from_slot != -1)
7558 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7560 ws.world.religion_get_name(ws.world.rebel_faction_get_religion(trigger::to_rebel(from_slot)))),
7561 ws, layout, box);
7562 else
7563 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7564 text::produce_simple_string(ws, "rebel_religion"), ws, layout, box);
7565 text::close_layout_box(layout, box);
7566}
7568 auto box = text::open_layout_box(layout, indentation);
7569 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7570 if(from_slot != -1)
7571 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7572 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.nation_get_religion(trigger::to_nation(from_slot)))),
7573 ws, layout, box);
7574 else
7575 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7576 text::produce_simple_string(ws, "from_nat_religion"), ws, layout, box);
7577 text::close_layout_box(layout, box);
7578}
7580 auto box = text::open_layout_box(layout, indentation);
7581 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7582 if(this_slot != -1)
7583 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7584 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.nation_get_religion(trigger::to_nation(this_slot)))),
7585 ws, layout, box);
7586 else
7587 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7588 text::produce_simple_string(ws, "this_nat_religion"), ws, layout, box);
7589 text::close_layout_box(layout, box);
7590}
7592 auto box = text::open_layout_box(layout, indentation);
7593 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7594 if(this_slot != -1)
7595 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7597 ws.world.religion_get_name(ws.world.nation_get_religion(
7598 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
7599 ws, layout, box);
7600 else
7601 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7602 text::produce_simple_string(ws, "this_nat_religion"), ws, layout, box);
7603 text::close_layout_box(layout, box);
7604}
7606 auto box = text::open_layout_box(layout, indentation);
7607 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7608 if(this_slot != -1)
7609 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7610 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.nation_get_religion(
7611 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
7612 ws, layout, box);
7613 else
7614 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7615 text::produce_simple_string(ws, "this_nat_religion"), ws, layout, box);
7616 text::close_layout_box(layout, box);
7617}
7619 auto box = text::open_layout_box(layout, indentation);
7620 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7621 if(this_slot != -1)
7622 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7624 ws.world.religion_get_name(ws.world.nation_get_religion(nations::owner_of_pop(ws, trigger::to_pop(this_slot))))),
7625 ws, layout, box);
7626 else
7627 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7628 text::produce_simple_string(ws, "this_nat_religion"), ws, layout, box);
7629 text::close_layout_box(layout, box);
7630}
7631
7633 auto box = text::open_layout_box(layout, indentation);
7634 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7635 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "tt_a_bank"), ws, layout, box);
7636 text::close_layout_box(layout, box);
7637}
7639 auto box = text::open_layout_box(layout, indentation);
7640 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7641 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "tt_a_university"), ws, layout, box);
7642 text::close_layout_box(layout, box);
7643}
7644
7646 auto ideology = trigger::payload(tval[1]).ideo_id;
7647 dcon::text_key new_name{ dcon::text_key::value_base_t(trigger::read_int32_t_from_payload(tval + 2)) };
7648
7649 if(ideology) {
7650 auto id_name = ws.world.ideology_get_name(ideology);
7651 auto box = text::open_layout_box(layout, indentation);
7652
7653 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7654
7657 auto left_str = text::resolve_string_substitution(ws, "pname_is", s);
7658 display_with_comparison(tval[0], left_str, new_name, ws, layout, box);
7659
7660 text::close_layout_box(layout, box);
7661 } else {
7662 auto box = text::open_layout_box(layout, indentation);
7663 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7664 display_with_comparison(tval[0], text::produce_simple_string(ws, "rpname_is"), new_name, ws, layout, box);
7665 text::close_layout_box(layout, box);
7666 }
7667}
7668
7670 auto ideology = trigger::payload(tval[1]).ideo_id;
7671 dcon::issue_option_id new_opt = trigger::payload(tval[2]).opt_id;
7672 auto opt_name = ws.world.issue_option_get_name(new_opt);
7673
7674 if(ideology) {
7675 auto id_name = ws.world.ideology_get_name(ideology);
7676 auto box = text::open_layout_box(layout, indentation);
7677
7678 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7679
7682 auto left_str = text::resolve_string_substitution(ws, "pposition_is", s);
7683 display_with_comparison(tval[0], left_str, opt_name, ws, layout, box);
7684
7685 text::close_layout_box(layout, box);
7686 } else {
7687 auto box = text::open_layout_box(layout, indentation);
7688 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7689 display_with_comparison(tval[0], text::produce_simple_string(ws, "rpposition_is"), opt_name, ws, layout, box);
7690 text::close_layout_box(layout, box);
7691 }
7692}
7693
7694constexpr inline void (*trigger_functions[])(TRIGGER_DISPLAY_PARAMS) = {
7695 tf_none,
7696 tf_year, // constexpr inline uint16_t year = 0x0001;
7697 tf_month, // constexpr inline uint16_t month = 0x0002;
7698 tf_port, // constexpr inline uint16_t port = 0x0003;
7699 tf_rank, // constexpr inline uint16_t rank = 0x0004;
7700 tf_technology, // constexpr inline uint16_t technology = 0x0005;
7701 tf_strata_rich, // constexpr inline uint16_t strata_rich = 0x0006;
7702 tf_life_rating_province, // constexpr inline uint16_t life_rating_province = 0x0007;
7703 tf_life_rating_state, // constexpr inline uint16_t life_rating_state = 0x0008;
7704 tf_has_empty_adjacent_state_province, // constexpr inline uint16_t has_empty_adjacent_state_province = 0x0009;
7705 tf_has_empty_adjacent_state_state, // constexpr inline uint16_t has_empty_adjacent_state_state = 0x000A;
7706 tf_state_id_province, // constexpr inline uint16_t state_id_province = 0x000B;
7707 tf_state_id_state, // constexpr inline uint16_t state_id_state = 0x000C;
7708 tf_cash_reserves, // constexpr inline uint16_t cash_reserves = 0x000D;
7709 tf_unemployment_nation, // constexpr inline uint16_t unemployment_nation = 0x000E;
7710 tf_unemployment_state, // constexpr inline uint16_t unemployment_state = 0x000F;
7711 tf_unemployment_province, // constexpr inline uint16_t unemployment_province = 0x0010;
7712 tf_unemployment_pop, // constexpr inline uint16_t unemployment_pop = 0x0011;
7713 tf_is_slave_nation, // constexpr inline uint16_t is_slave_nation = 0x0012;
7714 tf_is_slave_state, // constexpr inline uint16_t is_slave_state = 0x0013;
7715 tf_is_slave_province, // constexpr inline uint16_t is_slave_province = 0x0014;
7716 tf_is_slave_pop, // constexpr inline uint16_t is_slave_pop = 0x0015;
7717 tf_is_independant, // constexpr inline uint16_t is_independant = 0x0016;
7718 tf_has_national_minority_province, // constexpr inline uint16_t has_national_minority_province = 0x0017;
7719 tf_has_national_minority_state, // constexpr inline uint16_t has_national_minority_state = 0x0018;
7720 tf_has_national_minority_nation, // constexpr inline uint16_t has_national_minority_nation = 0x0019;
7721 tf_government_nation, // constexpr inline uint16_t government_nation = 0x001A;
7722 tf_government_pop, // constexpr inline uint16_t government_pop = 0x001B;
7723 tf_capital, // constexpr inline uint16_t capital = 0x001C;
7724 tf_tech_school, // constexpr inline uint16_t tech_school = 0x001D;
7725 tf_primary_culture, // constexpr inline uint16_t primary_culture = 0x001E;
7726 tf_accepted_culture, // constexpr inline uint16_t accepted_culture = 0x001F;
7727 tf_culture_pop, // constexpr inline uint16_t culture_pop = 0x0020;
7728 tf_culture_state, // constexpr inline uint16_t culture_state = 0x0021;
7729 tf_culture_province, // constexpr inline uint16_t culture_province = 0x0022;
7730 tf_culture_nation, // constexpr inline uint16_t culture_nation = 0x0023;
7731 tf_culture_pop_reb, // constexpr inline uint16_t culture_pop_reb = 0x0024;
7732 tf_culture_state_reb, // constexpr inline uint16_t culture_state_reb = 0x0025;
7733 tf_culture_province_reb, // constexpr inline uint16_t culture_province_reb = 0x0026;
7734 tf_culture_nation_reb, // constexpr inline uint16_t culture_nation_reb = 0x0027;
7735 tf_culture_from_nation, // constexpr inline uint16_t culture_from_nation = 0x0028;
7736 tf_culture_this_nation, // constexpr inline uint16_t culture_this_nation = 0x0029;
7737 tf_culture_this_state, // constexpr inline uint16_t culture_this_state = 0x002A;
7738 tf_culture_this_pop, // constexpr inline uint16_t culture_this_pop = 0x002B;
7739 tf_culture_this_province, // constexpr inline uint16_t culture_this_province = 0x002C;
7740 tf_culture_group_nation, // constexpr inline uint16_t culture_group_nation = 0x002D;
7741 tf_culture_group_pop, // constexpr inline uint16_t culture_group_pop = 0x002E;
7742 tf_culture_group_reb_nation, // constexpr inline uint16_t culture_group_reb_nation = 0x002F;
7743 tf_culture_group_reb_pop, // constexpr inline uint16_t culture_group_reb_pop = 0x0030;
7744 tf_culture_group_nation_from_nation, // constexpr inline uint16_t culture_group_nation_from_nation = 0x0031;
7745 tf_culture_group_pop_from_nation, // constexpr inline uint16_t culture_group_pop_from_nation = 0x0032;
7746 tf_culture_group_nation_this_nation, // constexpr inline uint16_t culture_group_nation_this_nation = 0x0033;
7747 tf_culture_group_pop_this_nation, // constexpr inline uint16_t culture_group_pop_this_nation = 0x0034;
7748 tf_culture_group_nation_this_province, // constexpr inline uint16_t culture_group_nation_this_province = 0x0035;
7749 tf_culture_group_pop_this_province, // constexpr inline uint16_t culture_group_pop_this_province = 0x0036;
7750 tf_culture_group_nation_this_state, // constexpr inline uint16_t culture_group_nation_this_state = 0x0037;
7751 tf_culture_group_pop_this_state, // constexpr inline uint16_t culture_group_pop_this_state = 0x0038;
7752 tf_culture_group_nation_this_pop, // constexpr inline uint16_t culture_group_nation_this_pop = 0x0039;
7753 tf_culture_group_pop_this_pop, // constexpr inline uint16_t culture_group_pop_this_pop = 0x003A;
7754 tf_religion, // constexpr inline uint16_t religion = 0x003B;
7755 tf_religion_reb, // constexpr inline uint16_t religion_reb = 0x003C;
7756 tf_religion_from_nation, // constexpr inline uint16_t religion_from_nation = 0x003D;
7757 tf_religion_this_nation, // constexpr inline uint16_t religion_this_nation = 0x003E;
7758 tf_religion_this_state, // constexpr inline uint16_t religion_this_state = 0x003F;
7759 tf_religion_this_province, // constexpr inline uint16_t religion_this_province = 0x0040;
7760 tf_religion_this_pop, // constexpr inline uint16_t religion_this_pop = 0x0041;
7761 tf_terrain_province, // constexpr inline uint16_t terrain_province = 0x0042;
7762 tf_terrain_pop, // constexpr inline uint16_t terrain_pop = 0x0043;
7763 tf_trade_goods, // constexpr inline uint16_t trade_goods = 0x0044;
7764 tf_is_secondary_power_pop, // constexpr inline uint16_t is_secondary_power_pop = 0x0045;
7765 tf_is_secondary_power_nation, // constexpr inline uint16_t is_secondary_power_nation = 0x0046;
7766 tf_has_faction_nation, // constexpr inline uint16_t has_faction_nation = 0x0047;
7767 tf_has_faction_pop, // constexpr inline uint16_t has_faction_pop = 0x0048;
7768 tf_has_unclaimed_cores, // constexpr inline uint16_t has_unclaimed_cores = 0x0049;
7769 tf_is_cultural_union_bool, // constexpr inline uint16_t is_cultural_union_bool = 0x004A;
7770 tf_is_cultural_union_this_self_pop, // constexpr inline uint16_t is_cultural_union_this_self_pop = 0x004B;
7771 tf_is_cultural_union_this_pop, // constexpr inline uint16_t is_cultural_union_this_pop = 0x004C;
7772 tf_is_cultural_union_this_state, // constexpr inline uint16_t is_cultural_union_this_state = 0x004D;
7773 tf_is_cultural_union_this_province, // constexpr inline uint16_t is_cultural_union_this_province = 0x004E;
7774 tf_is_cultural_union_this_nation, // constexpr inline uint16_t is_cultural_union_this_nation = 0x004F;
7775 tf_is_cultural_union_this_rebel, // constexpr inline uint16_t is_cultural_union_this_rebel = 0x0050;
7776 tf_is_cultural_union_tag_nation, // constexpr inline uint16_t is_cultural_union_tag_nation = 0x0051;
7777 tf_is_cultural_union_tag_this_pop, // constexpr inline uint16_t is_cultural_union_tag_this_pop = 0x0052;
7778 tf_is_cultural_union_tag_this_state, // constexpr inline uint16_t is_cultural_union_tag_this_state = 0x0053;
7779 tf_is_cultural_union_tag_this_province, // constexpr inline uint16_t is_cultural_union_tag_this_province = 0x0054;
7780 tf_is_cultural_union_tag_this_nation, // constexpr inline uint16_t is_cultural_union_tag_this_nation = 0x0055;
7781 tf_can_build_factory_pop, // constexpr inline uint16_t can_build_factory_pop = 0x0056;
7782 tf_war_pop, // constexpr inline uint16_t war_pop = 0x0057;
7783 tf_war_nation, // constexpr inline uint16_t war_nation = 0x0058;
7784 tf_war_exhaustion_nation, // constexpr inline uint16_t war_exhaustion_nation = 0x0059;
7785 tf_blockade, // constexpr inline uint16_t blockade = 0x005A;
7786 tf_owns, // constexpr inline uint16_t owns = 0x005B;
7787 tf_controls, // constexpr inline uint16_t controls = 0x005C;
7788 tf_is_core_integer, // constexpr inline uint16_t is_core_integer = 0x005D;
7789 tf_is_core_this_nation, // constexpr inline uint16_t is_core_this_nation = 0x005E;
7790 tf_is_core_this_state, // constexpr inline uint16_t is_core_this_state = 0x005F;
7791 tf_is_core_this_province, // constexpr inline uint16_t is_core_this_province = 0x0060;
7792 tf_is_core_this_pop, // constexpr inline uint16_t is_core_this_pop = 0x0061;
7793 tf_is_core_from_nation, // constexpr inline uint16_t is_core_from_nation = 0x0062;
7794 tf_is_core_reb, // constexpr inline uint16_t is_core_reb = 0x0063;
7795 tf_is_core_tag, // constexpr inline uint16_t is_core_tag = 0x0064;
7796 tf_num_of_revolts, // constexpr inline uint16_t num_of_revolts = 0x0065;
7797 tf_revolt_percentage, // constexpr inline uint16_t revolt_percentage = 0x0066;
7798 tf_num_of_cities_int, // constexpr inline uint16_t num_of_cities_int = 0x0067;
7799 tf_num_of_cities_from_nation, // constexpr inline uint16_t num_of_cities_from_nation = 0x0068;
7800 tf_num_of_cities_this_nation, // constexpr inline uint16_t num_of_cities_this_nation = 0x0069;
7801 tf_num_of_cities_this_state, // constexpr inline uint16_t num_of_cities_this_state = 0x006A;
7802 tf_num_of_cities_this_province, // constexpr inline uint16_t num_of_cities_this_province = 0x006B;
7803 tf_num_of_cities_this_pop, // constexpr inline uint16_t num_of_cities_this_pop = 0x006C;
7804 tf_num_of_ports, // constexpr inline uint16_t num_of_ports = 0x006D;
7805 tf_num_of_allies, // constexpr inline uint16_t num_of_allies = 0x006E;
7806 tf_num_of_vassals, // constexpr inline uint16_t num_of_vassals = 0x006F;
7807 tf_owned_by_tag, // constexpr inline uint16_t owned_by_tag = 0x0070;
7808 tf_owned_by_from_nation, // constexpr inline uint16_t owned_by_from_nation = 0x0071;
7809 tf_owned_by_this_nation, // constexpr inline uint16_t owned_by_this_nation = 0x0072;
7810 tf_owned_by_this_province, // constexpr inline uint16_t owned_by_this_province = 0x0073;
7811 tf_owned_by_this_state, // constexpr inline uint16_t owned_by_this_state = 0x0074;
7812 tf_owned_by_this_pop, // constexpr inline uint16_t owned_by_this_pop = 0x0075;
7813 tf_exists_bool, // constexpr inline uint16_t exists_bool = 0x0076;
7814 tf_exists_tag, // constexpr inline uint16_t exists_tag = 0x0077;
7815 tf_has_country_flag, // constexpr inline uint16_t has_country_flag = 0x0078;
7816 tf_continent_nation, // constexpr inline uint16_t continent_nation = 0x0079;
7817 tf_continent_state, // constexpr inline uint16_t continent_state = 0x007A;
7818 tf_continent_province, // constexpr inline uint16_t continent_province = 0x007B;
7819 tf_continent_pop, // constexpr inline uint16_t continent_pop = 0x007C;
7820 tf_continent_nation_this, // constexpr inline uint16_t continent_nation_this = 0x007D;
7821 tf_continent_state_this, // constexpr inline uint16_t continent_state_this = 0x007E;
7822 tf_continent_province_this, // constexpr inline uint16_t continent_province_this = 0x007F;
7823 tf_continent_pop_this, // constexpr inline uint16_t continent_pop_this = 0x0080;
7824 tf_continent_nation_from, // constexpr inline uint16_t continent_nation_from = 0x0081;
7825 tf_continent_state_from, // constexpr inline uint16_t continent_state_from = 0x0082;
7826 tf_continent_province_from, // constexpr inline uint16_t continent_province_from = 0x0083;
7827 tf_continent_pop_from, // constexpr inline uint16_t continent_pop_from = 0x0084;
7828 tf_casus_belli_tag, // constexpr inline uint16_t casus_belli_tag = 0x0085;
7829 tf_casus_belli_from, // constexpr inline uint16_t casus_belli_from = 0x0086;
7830 tf_casus_belli_this_nation, // constexpr inline uint16_t casus_belli_this_nation = 0x0087;
7831 tf_casus_belli_this_state, // constexpr inline uint16_t casus_belli_this_state = 0x0088;
7832 tf_casus_belli_this_province, // constexpr inline uint16_t casus_belli_this_province = 0x0089;
7833 tf_casus_belli_this_pop, // constexpr inline uint16_t casus_belli_this_pop = 0x008A;
7834 tf_military_access_tag, // constexpr inline uint16_t military_access_tag = 0x008B;
7835 tf_military_access_from, // constexpr inline uint16_t military_access_from = 0x008C;
7836 tf_military_access_this_nation, // constexpr inline uint16_t military_access_this_nation = 0x008D;
7837 tf_military_access_this_state, // constexpr inline uint16_t military_access_this_state = 0x008E;
7838 tf_military_access_this_province, // constexpr inline uint16_t military_access_this_province = 0x008F;
7839 tf_military_access_this_pop, // constexpr inline uint16_t military_access_this_pop = 0x0090;
7840 tf_prestige_value, // constexpr inline uint16_t prestige_value = 0x0091;
7841 tf_prestige_from, // constexpr inline uint16_t prestige_from = 0x0092;
7842 tf_prestige_this_nation, // constexpr inline uint16_t prestige_this_nation = 0x0093;
7843 tf_prestige_this_state, // constexpr inline uint16_t prestige_this_state = 0x0094;
7844 tf_prestige_this_province, // constexpr inline uint16_t prestige_this_province = 0x0095;
7845 tf_prestige_this_pop, // constexpr inline uint16_t prestige_this_pop = 0x0096;
7846 tf_badboy, // constexpr inline uint16_t badboy = 0x0097;
7847 tf_has_building_state, // constexpr inline uint16_t has_building_state = 0x0098;
7848 tf_has_building_fort, // constexpr inline uint16_t has_building_fort = 0x0099;
7849 tf_has_building_railroad, // constexpr inline uint16_t has_building_railroad = 0x009A;
7850 tf_has_building_naval_base, // constexpr inline uint16_t has_building_naval_base = 0x009B;
7851 tf_empty, // constexpr inline uint16_t empty = 0x009C;
7852 tf_is_blockaded, // constexpr inline uint16_t is_blockaded = 0x009D;
7853 tf_has_country_modifier, // constexpr inline uint16_t has_country_modifier = 0x009E;
7854 tf_has_province_modifier, // constexpr inline uint16_t has_province_modifier = 0x009F;
7855 tf_region, // constexpr inline uint16_t region = 0x00A0;
7856 tf_tag_tag, // constexpr inline uint16_t tag_tag = 0x00A1;
7857 tf_tag_this_nation, // constexpr inline uint16_t tag_this_nation = 0x00A2;
7858 tf_tag_this_province, // constexpr inline uint16_t tag_this_province = 0x00A3;
7859 tf_tag_from_nation, // constexpr inline uint16_t tag_from_nation = 0x00A4;
7860 tf_tag_from_province, // constexpr inline uint16_t tag_from_province = 0x00A5;
7861 tf_neighbour_tag, // constexpr inline uint16_t neighbour_tag = 0x00A6;
7862 tf_neighbour_this, // constexpr inline uint16_t neighbour_this = 0x00A7;
7863 tf_neighbour_from, // constexpr inline uint16_t neighbour_from = 0x00A8;
7864 tf_units_in_province_value, // constexpr inline uint16_t units_in_province_value = 0x00A9;
7865 tf_units_in_province_from, // constexpr inline uint16_t units_in_province_from = 0x00AA;
7866 tf_units_in_province_this_nation, // constexpr inline uint16_t units_in_province_this_nation = 0x00AB;
7867 tf_units_in_province_this_province, // constexpr inline uint16_t units_in_province_this_province = 0x00AC;
7868 tf_units_in_province_this_state, // constexpr inline uint16_t units_in_province_this_state = 0x00AD;
7869 tf_units_in_province_this_pop, // constexpr inline uint16_t units_in_province_this_pop = 0x00AE;
7870 tf_war_with_tag, // constexpr inline uint16_t war_with_tag = 0x00AF;
7871 tf_war_with_from, // constexpr inline uint16_t war_with_from = 0x00B0;
7872 tf_war_with_this_nation, // constexpr inline uint16_t war_with_this_nation = 0x00B1;
7873 tf_war_with_this_province, // constexpr inline uint16_t war_with_this_province = 0x00B2;
7874 tf_war_with_this_state, // constexpr inline uint16_t war_with_this_state = 0x00B3;
7875 tf_war_with_this_pop, // constexpr inline uint16_t war_with_this_pop = 0x00B4;
7876 tf_unit_in_battle, // constexpr inline uint16_t unit_in_battle = 0x00B5;
7877 tf_total_amount_of_divisions, // constexpr inline uint16_t total_amount_of_divisions = 0x00B6;
7878 tf_money, // constexpr inline uint16_t money = 0x00B7;
7879 tf_lost_national, // constexpr inline uint16_t lost_national = 0x00B8;
7880 tf_is_vassal, // constexpr inline uint16_t is_vassal = 0x00B9;
7881 tf_ruling_party_ideology_nation, // constexpr inline uint16_t ruling_party_ideology_pop = 0x00BA;
7882 tf_ruling_party_ideology_nation, // constexpr inline uint16_t ruling_party_ideology_nation = 0x00BB;
7883 tf_ruling_party, // constexpr inline uint16_t ruling_party = 0x00BC;
7884 tf_is_ideology_enabled, // constexpr inline uint16_t is_ideology_enabled = 0x00BD;
7885 tf_political_reform_want_nation, // constexpr inline uint16_t political_reform_want_nation = 0x00BE;
7886 tf_political_reform_want_pop, // constexpr inline uint16_t political_reform_want_pop = 0x00BF;
7887 tf_social_reform_want_nation, // constexpr inline uint16_t social_reform_want_nation = 0x00C0;
7888 tf_social_reform_want_pop, // constexpr inline uint16_t social_reform_want_pop = 0x00C1;
7889 tf_total_amount_of_ships, // constexpr inline uint16_t total_amount_of_ships = 0x00C2;
7890 tf_plurality, // constexpr inline uint16_t plurality = 0x00C3;
7891 tf_corruption, // constexpr inline uint16_t corruption = 0x00C4;
7892 tf_is_state_religion_pop, // constexpr inline uint16_t is_state_religion_pop = 0x00C5;
7893 tf_is_state_religion_province, // constexpr inline uint16_t is_state_religion_province = 0x00C6;
7894 tf_is_state_religion_state, // constexpr inline uint16_t is_state_religion_state = 0x00C7;
7895 tf_is_primary_culture_pop, // constexpr inline uint16_t is_primary_culture_pop = 0x00C8;
7896 tf_is_primary_culture_province, // constexpr inline uint16_t is_primary_culture_province = 0x00C9;
7897 tf_is_primary_culture_state, // constexpr inline uint16_t is_primary_culture_state = 0x00CA;
7898 tf_is_primary_culture_nation_this_pop, // constexpr inline uint16_t is_primary_culture_nation_this_pop = 0x00CB;
7899 tf_is_primary_culture_nation_this_nation, // constexpr inline uint16_t is_primary_culture_nation_this_nation = 0x00CC;
7900 tf_is_primary_culture_nation_this_state, // constexpr inline uint16_t is_primary_culture_nation_this_state = 0x00CD;
7901 tf_is_primary_culture_nation_this_province, // constexpr inline uint16_t is_primary_culture_nation_this_province = 0x00CE;
7902 tf_is_primary_culture_state_this_pop, // constexpr inline uint16_t is_primary_culture_state_this_pop = 0x00CF;
7903 tf_is_primary_culture_state_this_nation, // constexpr inline uint16_t is_primary_culture_state_this_nation = 0x00D0;
7904 tf_is_primary_culture_state_this_state, // constexpr inline uint16_t is_primary_culture_state_this_state = 0x00D1;
7905 tf_is_primary_culture_state_this_province, // constexpr inline uint16_t is_primary_culture_state_this_province = 0x00D2;
7906 tf_is_primary_culture_province_this_pop, // constexpr inline uint16_t is_primary_culture_province_this_pop = 0x00D3;
7907 tf_is_primary_culture_province_this_nation, // constexpr inline uint16_t is_primary_culture_province_this_nation = 0x00D4;
7908 tf_is_primary_culture_province_this_state, // constexpr inline uint16_t is_primary_culture_province_this_state = 0x00D5;
7909 tf_is_primary_culture_province_this_province, // constexpr inline uint16_t is_primary_culture_province_this_province = 0x00D6;
7910 tf_is_primary_culture_pop_this_pop, // constexpr inline uint16_t is_primary_culture_pop_this_pop = 0x00D7;
7911 tf_is_primary_culture_pop_this_nation, // constexpr inline uint16_t is_primary_culture_pop_this_nation = 0x00D8;
7912 tf_is_primary_culture_pop_this_state, // constexpr inline uint16_t is_primary_culture_pop_this_state = 0x00D9;
7913 tf_is_primary_culture_pop_this_province, // constexpr inline uint16_t is_primary_culture_pop_this_province = 0x00DA;
7914 tf_is_accepted_culture_pop, // constexpr inline uint16_t is_accepted_culture_pop = 0x00DB;
7915 tf_is_accepted_culture_province, // constexpr inline uint16_t is_accepted_culture_province = 0x00DC;
7916 tf_is_accepted_culture_state, // constexpr inline uint16_t is_accepted_culture_state = 0x00DD;
7917 tf_is_coastal_province, // constexpr inline uint16_t is_coastal_province = 0x00DE;
7918 tf_in_sphere_tag, // constexpr inline uint16_t in_sphere_tag = 0x00DF;
7919 tf_in_sphere_from, // constexpr inline uint16_t in_sphere_from = 0x00E0;
7920 tf_in_sphere_this_nation, // constexpr inline uint16_t in_sphere_this_nation = 0x00E1;
7921 tf_in_sphere_this_province, // constexpr inline uint16_t in_sphere_this_province = 0x00E2;
7922 tf_in_sphere_this_state, // constexpr inline uint16_t in_sphere_this_state = 0x00E3;
7923 tf_in_sphere_this_pop, // constexpr inline uint16_t in_sphere_this_pop = 0x00E4;
7924 tf_produces_nation, // constexpr inline uint16_t produces_nation = 0x00E5;
7925 tf_produces_state, // constexpr inline uint16_t produces_state = 0x00E6;
7926 tf_produces_province, // constexpr inline uint16_t produces_province = 0x00E7;
7927 tf_produces_pop, // constexpr inline uint16_t produces_pop = 0x00E8;
7928 tf_average_militancy_nation, // constexpr inline uint16_t average_militancy_nation = 0x00E9;
7929 tf_average_militancy_state, // constexpr inline uint16_t average_militancy_state = 0x00EA;
7930 tf_average_militancy_province, // constexpr inline uint16_t average_militancy_province = 0x00EB;
7931 tf_average_consciousness_nation, // constexpr inline uint16_t average_consciousness_nation = 0x00EC;
7932 tf_average_consciousness_state, // constexpr inline uint16_t average_consciousness_state = 0x00ED;
7933 tf_average_consciousness_province, // constexpr inline uint16_t average_consciousness_province = 0x00EE;
7934 tf_is_next_reform_nation, // constexpr inline uint16_t is_next_reform_nation = 0x00EF;
7935 tf_is_next_reform_pop, // constexpr inline uint16_t is_next_reform_pop = 0x00F0;
7936 tf_rebel_power_fraction, // constexpr inline uint16_t rebel_power_fraction = 0x00F1;
7937 tf_recruited_percentage_nation, // constexpr inline uint16_t recruited_percentage_nation = 0x00F2;
7938 tf_recruited_percentage_pop, // constexpr inline uint16_t recruited_percentage_pop = 0x00F3;
7939 tf_has_culture_core, // constexpr inline uint16_t has_culture_core = 0x00F4;
7940 tf_nationalism, // constexpr inline uint16_t nationalism = 0x00F5;
7941 tf_is_overseas, // constexpr inline uint16_t is_overseas = 0x00F6;
7942 tf_controlled_by_rebels, // constexpr inline uint16_t controlled_by_rebels = 0x00F7;
7943 tf_controlled_by_tag, // constexpr inline uint16_t controlled_by_tag = 0x00F8;
7944 tf_controlled_by_from, // constexpr inline uint16_t controlled_by_from = 0x00F9;
7945 tf_controlled_by_this_nation, // constexpr inline uint16_t controlled_by_this_nation = 0x00FA;
7946 tf_controlled_by_this_province, // constexpr inline uint16_t controlled_by_this_province = 0x00FB;
7947 tf_controlled_by_this_state, // constexpr inline uint16_t controlled_by_this_state = 0x00FC;
7948 tf_controlled_by_this_pop, // constexpr inline uint16_t controlled_by_this_pop = 0x00FD;
7949 tf_controlled_by_owner, // constexpr inline uint16_t controlled_by_owner = 0x00FE;
7950 tf_controlled_by_reb, // constexpr inline uint16_t controlled_by_reb = 0x00FF;
7951 tf_is_canal_enabled, // constexpr inline uint16_t is_canal_enabled = 0x0100;
7952 tf_is_state_capital, // constexpr inline uint16_t is_state_capital = 0x0101;
7953 tf_truce_with_tag, // constexpr inline uint16_t truce_with_tag = 0x0102;
7954 tf_truce_with_from, // constexpr inline uint16_t truce_with_from = 0x0103;
7955 tf_truce_with_this_nation, // constexpr inline uint16_t truce_with_this_nation = 0x0104;
7956 tf_truce_with_this_province, // constexpr inline uint16_t truce_with_this_province = 0x0105;
7957 tf_truce_with_this_state, // constexpr inline uint16_t truce_with_this_state = 0x0106;
7958 tf_truce_with_this_pop, // constexpr inline uint16_t truce_with_this_pop = 0x0107;
7959 tf_total_pops_nation, // constexpr inline uint16_t total_pops_nation = 0x0108;
7960 tf_total_pops_state, // constexpr inline uint16_t total_pops_state = 0x0109;
7961 tf_total_pops_province, // constexpr inline uint16_t total_pops_province = 0x010A;
7962 tf_total_pops_pop, // constexpr inline uint16_t total_pops_pop = 0x010B;
7963 tf_has_pop_type_nation, // constexpr inline uint16_t has_pop_type_nation = 0x010C;
7964 tf_has_pop_type_state, // constexpr inline uint16_t has_pop_type_state = 0x010D;
7965 tf_has_pop_type_province, // constexpr inline uint16_t has_pop_type_province = 0x010E;
7966 tf_has_pop_type_pop, // constexpr inline uint16_t has_pop_type_pop = 0x010F;
7967 tf_has_empty_adjacent_province, // constexpr inline uint16_t has_empty_adjacent_province = 0x0110;
7968 tf_has_leader, // constexpr inline uint16_t has_leader = 0x0111;
7969 tf_ai, // constexpr inline uint16_t ai = 0x0112;
7970 tf_can_create_vassals, // constexpr inline uint16_t can_create_vassals = 0x0113;
7971 tf_is_possible_vassal, // constexpr inline uint16_t is_possible_vassal = 0x0114;
7972 tf_province_id, // constexpr inline uint16_t province_id = 0x0115;
7973 tf_vassal_of_tag, // constexpr inline uint16_t vassal_of_tag = 0x0116;
7974 tf_vassal_of_from, // constexpr inline uint16_t vassal_of_from = 0x0117;
7975 tf_vassal_of_this_nation, // constexpr inline uint16_t vassal_of_this_nation = 0x0118;
7976 tf_vassal_of_this_province, // constexpr inline uint16_t vassal_of_this_province = 0x0119;
7977 tf_vassal_of_this_state, // constexpr inline uint16_t vassal_of_this_state = 0x011A;
7978 tf_vassal_of_this_pop, // constexpr inline uint16_t vassal_of_this_pop = 0x011B;
7979 tf_alliance_with_tag, // constexpr inline uint16_t alliance_with_tag = 0x011C;
7980 tf_alliance_with_from, // constexpr inline uint16_t alliance_with_from = 0x011D;
7981 tf_alliance_with_this_nation, // constexpr inline uint16_t alliance_with_this_nation = 0x011E;
7982 tf_alliance_with_this_province, // constexpr inline uint16_t alliance_with_this_province = 0x011F;
7983 tf_alliance_with_this_state, // constexpr inline uint16_t alliance_with_this_state = 0x0120;
7984 tf_alliance_with_this_pop, // constexpr inline uint16_t alliance_with_this_pop = 0x0121;
7985 tf_has_recently_lost_war, // constexpr inline uint16_t has_recently_lost_war = 0x0122;
7986 tf_is_mobilised, // constexpr inline uint16_t is_mobilised = 0x0123;
7987 tf_mobilisation_size, // constexpr inline uint16_t mobilisation_size = 0x0124;
7988 tf_crime_higher_than_education_nation, // constexpr inline uint16_t crime_higher_than_education_nation = 0x0125;
7989 tf_crime_higher_than_education_state, // constexpr inline uint16_t crime_higher_than_education_state = 0x0126;
7990 tf_crime_higher_than_education_province, // constexpr inline uint16_t crime_higher_than_education_province = 0x0127;
7991 tf_crime_higher_than_education_pop, // constexpr inline uint16_t crime_higher_than_education_pop = 0x0128;
7992 tf_agree_with_ruling_party, // constexpr inline uint16_t agree_with_ruling_party = 0x0129;
7993 tf_is_colonial_state, // constexpr inline uint16_t is_colonial_state = 0x012A;
7994 tf_is_colonial_province, // constexpr inline uint16_t is_colonial_province = 0x012B;
7995 tf_has_factories_state, // constexpr inline uint16_t has_factories_state = 0x012C;
7996 tf_in_default_tag, // constexpr inline uint16_t in_default_tag = 0x012D;
7997 tf_in_default_from, // constexpr inline uint16_t in_default_from = 0x012E;
7998 tf_in_default_this_nation, // constexpr inline uint16_t in_default_this_nation = 0x012F;
7999 tf_in_default_this_province, // constexpr inline uint16_t in_default_this_province = 0x0130;
8000 tf_in_default_this_state, // constexpr inline uint16_t in_default_this_state = 0x0131;
8001 tf_in_default_this_pop, // constexpr inline uint16_t in_default_this_pop = 0x0132;
8002 tf_total_num_of_ports, // constexpr inline uint16_t total_num_of_ports = 0x0133;
8003 tf_always, // constexpr inline uint16_t always = 0x0134;
8004 tf_election, // constexpr inline uint16_t election = 0x0135;
8005 tf_has_global_flag, // constexpr inline uint16_t has_global_flag = 0x0136;
8006 tf_is_capital, // constexpr inline uint16_t is_capital = 0x0137;
8007 tf_nationalvalue_nation, // constexpr inline uint16_t nationalvalue_nation = 0x0138;
8008 tf_industrial_score_value, // constexpr inline uint16_t industrial_score_value = 0x0139;
8009 tf_industrial_score_from_nation, // constexpr inline uint16_t industrial_score_from_nation = 0x013A;
8010 tf_industrial_score_this_nation, // constexpr inline uint16_t industrial_score_this_nation = 0x013B;
8011 tf_industrial_score_this_pop, // constexpr inline uint16_t industrial_score_this_pop = 0x013C;
8012 tf_industrial_score_this_state, // constexpr inline uint16_t industrial_score_this_state = 0x013D;
8013 tf_industrial_score_this_province, // constexpr inline uint16_t industrial_score_this_province = 0x013E;
8014 tf_military_score_value, // constexpr inline uint16_t military_score_value = 0x013F;
8015 tf_military_score_from_nation, // constexpr inline uint16_t military_score_from_nation = 0x0140;
8016 tf_military_score_this_nation, // constexpr inline uint16_t military_score_this_nation = 0x0141;
8017 tf_military_score_this_pop, // constexpr inline uint16_t military_score_this_pop = 0x0142;
8018 tf_military_score_this_state, // constexpr inline uint16_t military_score_this_state = 0x0143;
8019 tf_military_score_this_province, // constexpr inline uint16_t military_score_this_province = 0x0144;
8020 tf_civilized_nation, // constexpr inline uint16_t civilized_nation = 0x0145;
8021 tf_civilized_pop, // constexpr inline uint16_t civilized_pop = 0x0146;
8022 tf_civilized_province, // constexpr inline uint16_t civilized_province = 0x0147;
8023 tf_national_provinces_occupied, // constexpr inline uint16_t national_provinces_occupied = 0x0148;
8024 tf_is_greater_power_nation, // constexpr inline uint16_t is_greater_power_nation = 0x0149;
8025 tf_is_greater_power_pop, // constexpr inline uint16_t is_greater_power_pop = 0x014A;
8026 tf_rich_tax, // constexpr inline uint16_t rich_tax = 0x014B;
8027 tf_middle_tax, // constexpr inline uint16_t middle_tax = 0x014C;
8028 tf_poor_tax, // constexpr inline uint16_t poor_tax = 0x014D;
8029 tf_social_spending_nation, // constexpr inline uint16_t social_spending_nation = 0x014E;
8030 tf_social_spending_pop, // constexpr inline uint16_t social_spending_pop = 0x014F;
8031 tf_social_spending_province, // constexpr inline uint16_t social_spending_province = 0x0150;
8032 tf_colonial_nation, // constexpr inline uint16_t colonial_nation = 0x0151;
8033 tf_pop_majority_religion_nation, // constexpr inline uint16_t pop_majority_religion_nation = 0x0152;
8034 tf_pop_majority_religion_state, // constexpr inline uint16_t pop_majority_religion_state = 0x0153;
8035 tf_pop_majority_religion_province, // constexpr inline uint16_t pop_majority_religion_province = 0x0154;
8036 tf_pop_majority_culture_nation, // constexpr inline uint16_t pop_majority_culture_nation = 0x0155;
8037 tf_pop_majority_culture_state, // constexpr inline uint16_t pop_majority_culture_state = 0x0156;
8038 tf_pop_majority_culture_province, // constexpr inline uint16_t pop_majority_culture_province = 0x0157;
8039 tf_pop_majority_issue_nation, // constexpr inline uint16_t pop_majority_issue_nation = 0x0158;
8040 tf_pop_majority_issue_state, // constexpr inline uint16_t pop_majority_issue_state = 0x0159;
8041 tf_pop_majority_issue_province, // constexpr inline uint16_t pop_majority_issue_province = 0x015A;
8042 tf_pop_majority_issue_pop, // constexpr inline uint16_t pop_majority_issue_pop = 0x015B;
8043 tf_pop_majority_ideology_nation, // constexpr inline uint16_t pop_majority_ideology_nation = 0x015C;
8044 tf_pop_majority_ideology_state, // constexpr inline uint16_t pop_majority_ideology_state = 0x015D;
8045 tf_pop_majority_ideology_province, // constexpr inline uint16_t pop_majority_ideology_province = 0x015E;
8046 tf_pop_majority_ideology_pop, // constexpr inline uint16_t pop_majority_ideology_pop = 0x015F;
8047 tf_poor_strata_militancy_nation, // constexpr inline uint16_t poor_strata_militancy_nation = 0x0160;
8048 tf_poor_strata_militancy_state, // constexpr inline uint16_t poor_strata_militancy_state = 0x0161;
8049 tf_poor_strata_militancy_province, // constexpr inline uint16_t poor_strata_militancy_province = 0x0162;
8050 tf_poor_strata_militancy_pop, // constexpr inline uint16_t poor_strata_militancy_pop = 0x0163;
8051 tf_middle_strata_militancy_nation, // constexpr inline uint16_t middle_strata_militancy_nation = 0x0164;
8052 tf_middle_strata_militancy_state, // constexpr inline uint16_t middle_strata_militancy_state = 0x0165;
8053 tf_middle_strata_militancy_province, // constexpr inline uint16_t middle_strata_militancy_province = 0x0166;
8054 tf_middle_strata_militancy_pop, // constexpr inline uint16_t middle_strata_militancy_pop = 0x0167;
8055 tf_rich_strata_militancy_nation, // constexpr inline uint16_t rich_strata_militancy_nation = 0x0168;
8056 tf_rich_strata_militancy_state, // constexpr inline uint16_t rich_strata_militancy_state = 0x0169;
8057 tf_rich_strata_militancy_province, // constexpr inline uint16_t rich_strata_militancy_province = 0x016A;
8058 tf_rich_strata_militancy_pop, // constexpr inline uint16_t rich_strata_militancy_pop = 0x016B;
8059 tf_rich_tax_above_poor, // constexpr inline uint16_t rich_tax_above_poor = 0x016C;
8060 tf_culture_has_union_tag_pop, // constexpr inline uint16_t culture_has_union_tag_pop = 0x016D;
8061 tf_culture_has_union_tag_nation, // constexpr inline uint16_t culture_has_union_tag_nation = 0x016E;
8062 tf_this_culture_union_tag, // constexpr inline uint16_t this_culture_union_tag = 0x016F;
8063 tf_this_culture_union_from, // constexpr inline uint16_t this_culture_union_from = 0x0170;
8064 tf_this_culture_union_this_nation, // constexpr inline uint16_t this_culture_union_this_nation = 0x0171;
8065 tf_this_culture_union_this_province, // constexpr inline uint16_t this_culture_union_this_province = 0x0172;
8066 tf_this_culture_union_this_state, // constexpr inline uint16_t this_culture_union_this_state = 0x0173;
8067 tf_this_culture_union_this_pop, // constexpr inline uint16_t this_culture_union_this_pop = 0x0174;
8068 tf_this_culture_union_this_union_nation, // constexpr inline uint16_t this_culture_union_this_union_nation = 0x0175;
8069 tf_this_culture_union_this_union_province, // constexpr inline uint16_t this_culture_union_this_union_province = 0x0176;
8070 tf_this_culture_union_this_union_state, // constexpr inline uint16_t this_culture_union_this_union_state = 0x0177;
8071 tf_this_culture_union_this_union_pop, // constexpr inline uint16_t this_culture_union_this_union_pop = 0x0178;
8072 tf_minorities_nation, // constexpr inline uint16_t minorities_nation = 0x0179;
8073 tf_minorities_state, // constexpr inline uint16_t minorities_state = 0x017A;
8074 tf_minorities_province, // constexpr inline uint16_t minorities_province = 0x017B;
8075 tf_revanchism_nation, // constexpr inline uint16_t revanchism_nation = 0x017C;
8076 tf_revanchism_pop, // constexpr inline uint16_t revanchism_pop = 0x017D;
8077 tf_has_crime, // constexpr inline uint16_t has_crime = 0x017E;
8078 tf_num_of_substates, // constexpr inline uint16_t num_of_substates = 0x017F;
8079 tf_num_of_vassals_no_substates, // constexpr inline uint16_t num_of_vassals_no_substates = 0x0180;
8080 tf_brigades_compare_this, // constexpr inline uint16_t brigades_compare_this = 0x0181;
8081 tf_brigades_compare_from, // constexpr inline uint16_t brigades_compare_from = 0x0182;
8082 tf_constructing_cb_tag, // constexpr inline uint16_t constructing_cb_tag = 0x0183;
8083 tf_constructing_cb_from, // constexpr inline uint16_t constructing_cb_from = 0x0184;
8084 tf_constructing_cb_this_nation, // constexpr inline uint16_t constructing_cb_this_nation = 0x0185;
8085 tf_constructing_cb_this_province, // constexpr inline uint16_t constructing_cb_this_province = 0x0186;
8086 tf_constructing_cb_this_state, // constexpr inline uint16_t constructing_cb_this_state = 0x0187;
8087 tf_constructing_cb_this_pop, // constexpr inline uint16_t constructing_cb_this_pop = 0x0188;
8088 tf_constructing_cb_discovered, // constexpr inline uint16_t constructing_cb_discovered = 0x0189;
8089 tf_constructing_cb_progress, // constexpr inline uint16_t constructing_cb_progress = 0x018A;
8090 tf_civilization_progress, // constexpr inline uint16_t civilization_progress = 0x018B;
8091 tf_constructing_cb_type, // constexpr inline uint16_t constructing_cb_type = 0x018C;
8092 tf_is_our_vassal_tag, // constexpr inline uint16_t is_our_vassal_tag = 0x018D;
8093 tf_is_our_vassal_from, // constexpr inline uint16_t is_our_vassal_from = 0x018E;
8094 tf_is_our_vassal_this_nation, // constexpr inline uint16_t is_our_vassal_this_nation = 0x018F;
8095 tf_is_our_vassal_this_province, // constexpr inline uint16_t is_our_vassal_this_province = 0x0190;
8096 tf_is_our_vassal_this_state, // constexpr inline uint16_t is_our_vassal_this_state = 0x0191;
8097 tf_is_our_vassal_this_pop, // constexpr inline uint16_t is_our_vassal_this_pop = 0x0192;
8098 tf_substate_of_tag, // constexpr inline uint16_t substate_of_tag = 0x0193;
8099 tf_substate_of_from, // constexpr inline uint16_t substate_of_from = 0x0194;
8100 tf_substate_of_this_nation, // constexpr inline uint16_t substate_of_this_nation = 0x0195;
8101 tf_substate_of_this_province, // constexpr inline uint16_t substate_of_this_province = 0x0196;
8102 tf_substate_of_this_state, // constexpr inline uint16_t substate_of_this_state = 0x0197;
8103 tf_substate_of_this_pop, // constexpr inline uint16_t substate_of_this_pop = 0x0198;
8104 tf_is_substate, // constexpr inline uint16_t is_substate = 0x0199;
8105 tf_great_wars_enabled, // constexpr inline uint16_t great_wars_enabled = 0x019A;
8106 tf_can_nationalize, // constexpr inline uint16_t can_nationalize = 0x019B;
8107 tf_part_of_sphere, // constexpr inline uint16_t part_of_sphere = 0x019C;
8108 tf_is_sphere_leader_of_tag, // constexpr inline uint16_t is_sphere_leader_of_tag = 0x019D;
8109 tf_is_sphere_leader_of_from, // constexpr inline uint16_t is_sphere_leader_of_from = 0x019E;
8110 tf_is_sphere_leader_of_this_nation, // constexpr inline uint16_t is_sphere_leader_of_this_nation = 0x019F;
8111 tf_is_sphere_leader_of_this_province, // constexpr inline uint16_t is_sphere_leader_of_this_province = 0x01A0;
8112 tf_is_sphere_leader_of_this_state, // constexpr inline uint16_t is_sphere_leader_of_this_state = 0x01A1;
8113 tf_is_sphere_leader_of_this_pop, // constexpr inline uint16_t is_sphere_leader_of_this_pop = 0x01A2;
8114 tf_number_of_states, // constexpr inline uint16_t number_of_states = 0x01A3;
8115 tf_war_score, // constexpr inline uint16_t war_score = 0x01A4;
8116 tf_is_releasable_vassal_from, // constexpr inline uint16_t is_releasable_vassal_from = 0x01A5;
8117 tf_is_releasable_vassal_other, // constexpr inline uint16_t is_releasable_vassal_other = 0x01A6;
8118 tf_has_recent_imigration, // constexpr inline uint16_t has_recent_imigration = 0x01A7;
8119 tf_province_control_days, // constexpr inline uint16_t province_control_days = 0x01A8;
8120 tf_is_disarmed, // constexpr inline uint16_t is_disarmed = 0x01A9;
8121 tf_big_producer, // constexpr inline uint16_t big_producer = 0x01AA;
8122 tf_someone_can_form_union_tag_from, // constexpr inline uint16_t someone_can_form_union_tag_from = 0x01AB;
8123 tf_someone_can_form_union_tag_other, // constexpr inline uint16_t someone_can_form_union_tag_other = 0x01AC;
8124 tf_social_movement_strength, // constexpr inline uint16_t social_movement_strength = 0x01AD;
8125 tf_political_movement_strength, // constexpr inline uint16_t political_movement_strength = 0x01AE;
8126 tf_can_build_factory_in_capital_state, // constexpr inline uint16_t can_build_factory_in_capital_state = 0x01AF;
8127 tf_social_movement, // constexpr inline uint16_t social_movement = 0x01B0;
8128 tf_political_movement, // constexpr inline uint16_t political_movement = 0x01B1;
8129 tf_has_cultural_sphere, // constexpr inline uint16_t has_cultural_sphere = 0x01B2;
8130 tf_world_wars_enabled, // constexpr inline uint16_t world_wars_enabled = 0x01B3;
8131 tf_has_pop_culture_pop_this_pop, // constexpr inline uint16_t has_pop_culture_pop_this_pop = 0x01B4;
8132 tf_has_pop_culture_state_this_pop, // constexpr inline uint16_t has_pop_culture_state_this_pop = 0x01B5;
8133 tf_has_pop_culture_province_this_pop, // constexpr inline uint16_t has_pop_culture_province_this_pop = 0x01B6;
8134 tf_has_pop_culture_nation_this_pop, // constexpr inline uint16_t has_pop_culture_nation_this_pop = 0x01B7;
8135 tf_has_pop_culture_pop, // constexpr inline uint16_t has_pop_culture_pop = 0x01B8;
8136 tf_has_pop_culture_state, // constexpr inline uint16_t has_pop_culture_state = 0x01B9;
8137 tf_has_pop_culture_province, // constexpr inline uint16_t has_pop_culture_province = 0x01BA;
8138 tf_has_pop_culture_nation, // constexpr inline uint16_t has_pop_culture_nation = 0x01BB;
8139 tf_has_pop_religion_pop_this_pop, // constexpr inline uint16_t has_pop_religion_pop_this_pop = 0x01BC;
8140 tf_has_pop_religion_state_this_pop, // constexpr inline uint16_t has_pop_religion_state_this_pop = 0x01BD;
8141 tf_has_pop_religion_province_this_pop, // constexpr inline uint16_t has_pop_religion_province_this_pop = 0x01BE;
8142 tf_has_pop_religion_nation_this_pop, // constexpr inline uint16_t has_pop_religion_nation_this_pop = 0x01BF;
8143 tf_has_pop_religion_pop, // constexpr inline uint16_t has_pop_religion_pop = 0x01C0;
8144 tf_has_pop_religion_state, // constexpr inline uint16_t has_pop_religion_state = 0x01C1;
8145 tf_has_pop_religion_province, // constexpr inline uint16_t has_pop_religion_province = 0x01C2;
8146 tf_has_pop_religion_nation, // constexpr inline uint16_t has_pop_religion_nation = 0x01C3;
8147 tf_life_needs, // constexpr inline uint16_t life_needs = 0x01C4;
8148 tf_everyday_needs, // constexpr inline uint16_t everyday_needs = 0x01C5;
8149 tf_luxury_needs, // constexpr inline uint16_t luxury_needs = 0x01C6;
8150 tf_consciousness_pop, // constexpr inline uint16_t consciousness_pop = 0x01C7;
8151 tf_consciousness_province, // constexpr inline uint16_t consciousness_province = 0x01C8;
8152 tf_consciousness_state, // constexpr inline uint16_t consciousness_state = 0x01C9;
8153 tf_consciousness_nation, // constexpr inline uint16_t consciousness_nation = 0x01CA;
8154 tf_literacy_pop, // constexpr inline uint16_t literacy_pop = 0x01CB;
8155 tf_literacy_province, // constexpr inline uint16_t literacy_province = 0x01CC;
8156 tf_literacy_state, // constexpr inline uint16_t literacy_state = 0x01CD;
8157 tf_literacy_nation, // constexpr inline uint16_t literacy_nation = 0x01CE;
8158 tf_militancy_pop, // constexpr inline uint16_t militancy_pop = 0x01CF;
8159 tf_militancy_province, // constexpr inline uint16_t militancy_province = 0x01D0;
8160 tf_militancy_state, // constexpr inline uint16_t militancy_state = 0x01D1;
8161 tf_militancy_nation, // constexpr inline uint16_t militancy_nation = 0x01D2;
8162 tf_military_spending_pop, // constexpr inline uint16_t military_spending_pop = 0x01D3;
8163 tf_military_spending_province, // constexpr inline uint16_t military_spending_province = 0x01D4;
8164 tf_military_spending_state, // constexpr inline uint16_t military_spending_state = 0x01D5;
8165 tf_military_spending_nation, // constexpr inline uint16_t military_spending_nation = 0x01D6;
8166 tf_administration_spending_pop, // constexpr inline uint16_t administration_spending_pop = 0x01D7;
8167 tf_administration_spending_province, // constexpr inline uint16_t administration_spending_province = 0x01D8;
8168 tf_administration_spending_state, // constexpr inline uint16_t administration_spending_state = 0x01D9;
8169 tf_administration_spending_nation, // constexpr inline uint16_t administration_spending_nation = 0x01DA;
8170 tf_education_spending_pop, // constexpr inline uint16_t education_spending_pop = 0x01DB;
8171 tf_education_spending_province, // constexpr inline uint16_t education_spending_province = 0x01DC;
8172 tf_education_spending_state, // constexpr inline uint16_t education_spending_state = 0x01DD;
8173 tf_education_spending_nation, // constexpr inline uint16_t education_spending_nation = 0x01DE;
8174 tf_trade_goods_in_state_state, // constexpr inline uint16_t trade_goods_in_state_state = 0x01DF;
8175 tf_trade_goods_in_state_province, // constexpr inline uint16_t trade_goods_in_state_province = 0x01E0;
8176 tf_has_flashpoint, // constexpr inline uint16_t has_flashpoint = 0x01E1;
8177 tf_flashpoint_tension, // constexpr inline uint16_t flashpoint_tension = 0x01E2;
8178 tf_crisis_exist, // constexpr inline uint16_t crisis_exist = 0x01E3;
8179 tf_is_liberation_crisis, // constexpr inline uint16_t is_liberation_crisis = 0x01E4;
8180 tf_is_claim_crisis, // constexpr inline uint16_t is_claim_crisis = 0x01E5;
8181 tf_crisis_temperature, // constexpr inline uint16_t crisis_temperature = 0x01E6;
8182 tf_involved_in_crisis_pop, // constexpr inline uint16_t involved_in_crisis_pop = 0x01E7;
8183 tf_involved_in_crisis_nation, // constexpr inline uint16_t involved_in_crisis_nation = 0x01E8;
8184 tf_rich_strata_life_needs_nation, // constexpr inline uint16_t rich_strata_life_needs_nation = 0x01E9;
8185 tf_rich_strata_life_needs_state, // constexpr inline uint16_t rich_strata_life_needs_state = 0x01EA;
8186 tf_rich_strata_life_needs_province, // constexpr inline uint16_t rich_strata_life_needs_province = 0x01EB;
8187 tf_rich_strata_life_needs_pop, // constexpr inline uint16_t rich_strata_life_needs_pop = 0x01EC;
8188 tf_rich_strata_everyday_needs_nation, // constexpr inline uint16_t rich_strata_everyday_needs_nation = 0x01ED;
8189 tf_rich_strata_everyday_needs_state, // constexpr inline uint16_t rich_strata_everyday_needs_state = 0x01EE;
8190 tf_rich_strata_everyday_needs_province, // constexpr inline uint16_t rich_strata_everyday_needs_province = 0x01EF;
8191 tf_rich_strata_everyday_needs_pop, // constexpr inline uint16_t rich_strata_everyday_needs_pop = 0x01F0;
8192 tf_rich_strata_luxury_needs_nation, // constexpr inline uint16_t rich_strata_luxury_needs_nation = 0x01F1;
8193 tf_rich_strata_luxury_needs_state, // constexpr inline uint16_t rich_strata_luxury_needs_state = 0x01F2;
8194 tf_rich_strata_luxury_needs_province, // constexpr inline uint16_t rich_strata_luxury_needs_province = 0x01F3;
8195 tf_rich_strata_luxury_needs_pop, // constexpr inline uint16_t rich_strata_luxury_needs_pop = 0x01F4;
8196 tf_middle_strata_life_needs_nation, // constexpr inline uint16_t middle_strata_life_needs_nation = 0x01F5;
8197 tf_middle_strata_life_needs_state, // constexpr inline uint16_t middle_strata_life_needs_state = 0x01F6;
8198 tf_middle_strata_life_needs_province, // constexpr inline uint16_t middle_strata_life_needs_province = 0x01F7;
8199 tf_middle_strata_life_needs_pop, // constexpr inline uint16_t middle_strata_life_needs_pop = 0x01F8;
8200 tf_middle_strata_everyday_needs_nation, // constexpr inline uint16_t middle_strata_everyday_needs_nation = 0x01F9;
8201 tf_middle_strata_everyday_needs_state, // constexpr inline uint16_t middle_strata_everyday_needs_state = 0x01FA;
8202 tf_middle_strata_everyday_needs_province, // constexpr inline uint16_t middle_strata_everyday_needs_province = 0x01FB;
8203 tf_middle_strata_everyday_needs_pop, // constexpr inline uint16_t middle_strata_everyday_needs_pop = 0x01FC;
8204 tf_middle_strata_luxury_needs_nation, // constexpr inline uint16_t middle_strata_luxury_needs_nation = 0x01FD;
8205 tf_middle_strata_luxury_needs_state, // constexpr inline uint16_t middle_strata_luxury_needs_state = 0x01FE;
8206 tf_middle_strata_luxury_needs_province, // constexpr inline uint16_t middle_strata_luxury_needs_province = 0x01FF;
8207 tf_middle_strata_luxury_needs_pop, // constexpr inline uint16_t middle_strata_luxury_needs_pop = 0x0200;
8208 tf_poor_strata_life_needs_nation, // constexpr inline uint16_t poor_strata_life_needs_nation = 0x0201;
8209 tf_poor_strata_life_needs_state, // constexpr inline uint16_t poor_strata_life_needs_state = 0x0202;
8210 tf_poor_strata_life_needs_province, // constexpr inline uint16_t poor_strata_life_needs_province = 0x0203;
8211 tf_poor_strata_life_needs_pop, // constexpr inline uint16_t poor_strata_life_needs_pop = 0x0204;
8212 tf_poor_strata_everyday_needs_nation, // constexpr inline uint16_t poor_strata_everyday_needs_nation = 0x0205;
8213 tf_poor_strata_everyday_needs_state, // constexpr inline uint16_t poor_strata_everyday_needs_state = 0x0206;
8214 tf_poor_strata_everyday_needs_province, // constexpr inline uint16_t poor_strata_everyday_needs_province = 0x0207;
8215 tf_poor_strata_everyday_needs_pop, // constexpr inline uint16_t poor_strata_everyday_needs_pop = 0x0208;
8216 tf_poor_strata_luxury_needs_nation, // constexpr inline uint16_t poor_strata_luxury_needs_nation = 0x0209;
8217 tf_poor_strata_luxury_needs_state, // constexpr inline uint16_t poor_strata_luxury_needs_state = 0x020A;
8218 tf_poor_strata_luxury_needs_province, // constexpr inline uint16_t poor_strata_luxury_needs_province = 0x020B;
8219 tf_poor_strata_luxury_needs_pop, // constexpr inline uint16_t poor_strata_luxury_needs_pop = 0x020C;
8220 tf_diplomatic_influence_tag, // constexpr inline uint16_t diplomatic_influence_tag = 0x020D;
8221 tf_diplomatic_influence_this_nation, // constexpr inline uint16_t diplomatic_influence_this_nation = 0x020E;
8222 tf_diplomatic_influence_this_province, // constexpr inline uint16_t diplomatic_influence_this_province = 0x020F;
8223 tf_diplomatic_influence_from_nation, // constexpr inline uint16_t diplomatic_influence_from_nation = 0x0210;
8224 tf_diplomatic_influence_from_province, // constexpr inline uint16_t diplomatic_influence_from_province = 0x0211;
8225 tf_pop_unemployment_nation, // constexpr inline uint16_t pop_unemployment_nation = 0x0212;
8226 tf_pop_unemployment_state, // constexpr inline uint16_t pop_unemployment_state = 0x0213;
8227 tf_pop_unemployment_province, // constexpr inline uint16_t pop_unemployment_province = 0x0214;
8228 tf_pop_unemployment_pop, // constexpr inline uint16_t pop_unemployment_pop = 0x0215;
8229 tf_pop_unemployment_nation_this_pop, // constexpr inline uint16_t pop_unemployment_nation_this_pop = 0x0216;
8230 tf_pop_unemployment_state_this_pop, // constexpr inline uint16_t pop_unemployment_state_this_pop = 0x0217;
8231 tf_pop_unemployment_province_this_pop, // constexpr inline uint16_t pop_unemployment_province_this_pop = 0x0218;
8232 tf_relation_tag, // constexpr inline uint16_t relation_tag = 0x0219;
8233 tf_relation_this_nation, // constexpr inline uint16_t relation_this_nation = 0x021A;
8234 tf_relation_this_province, // constexpr inline uint16_t relation_this_province = 0x021B;
8235 tf_relation_from_nation, // constexpr inline uint16_t relation_from_nation = 0x021C;
8236 tf_relation_from_province, // constexpr inline uint16_t relation_from_province = 0x021D;
8237 tf_check_variable, // constexpr inline uint16_t check_variable = 0x021E;
8238 tf_upper_house, // constexpr inline uint16_t upper_house = 0x021F;
8239 tf_unemployment_by_type_nation, // constexpr inline uint16_t unemployment_by_type_nation = 0x0220;
8240 tf_unemployment_by_type_state, // constexpr inline uint16_t unemployment_by_type_state = 0x0221;
8241 tf_unemployment_by_type_province, // constexpr inline uint16_t unemployment_by_type_province = 0x0222;
8242 tf_unemployment_by_type_pop, // constexpr inline uint16_t unemployment_by_type_pop = 0x0223;
8243 tf_party_loyalty_nation_province_id, // constexpr inline uint16_t party_loyalty_nation_province_id = 0x0224;
8244 tf_party_loyalty_from_nation_province_id, // constexpr inline uint16_t party_loyalty_from_nation_province_id = 0x0225;
8245 tf_party_loyalty_province_province_id, // constexpr inline uint16_t party_loyalty_province_province_id = 0x0226;
8246 tf_party_loyalty_from_province_province_id, // constexpr inline uint16_t party_loyalty_from_province_province_id = 0x0227;
8247 tf_party_loyalty_nation_from_province, // constexpr inline uint16_t party_loyalty_nation_from_province = 0x0228;
8248 tf_party_loyalty_from_nation_scope_province, // constexpr inline uint16_t party_loyalty_from_nation_scope_province = 0x0229;
8249 tf_can_build_in_province_railroad_no_limit_from_nation, // constexpr inline uint16_t can_build_in_province_railroad_no_limit_from_nation = 0x022A;
8250 tf_can_build_in_province_railroad_yes_limit_from_nation, // constexpr inline uint16_t can_build_in_province_railroad_yes_limit_from_nation = 0x022B;
8251 tf_can_build_in_province_railroad_no_limit_this_nation, // constexpr inline uint16_t can_build_in_province_railroad_no_limit_this_nation = 0x022C;
8252 tf_can_build_in_province_railroad_yes_limit_this_nation, // constexpr inline uint16_t can_build_in_province_railroad_yes_limit_this_nation = 0x022D;
8253 tf_can_build_in_province_fort_no_limit_from_nation, // constexpr inline uint16_t can_build_in_province_fort_no_limit_from_nation = 0x022E;
8254 tf_can_build_in_province_fort_yes_limit_from_nation, // constexpr inline uint16_t can_build_in_province_fort_yes_limit_from_nation = 0x022F;
8255 tf_can_build_in_province_fort_no_limit_this_nation, // constexpr inline uint16_t can_build_in_province_fort_no_limit_this_nation = 0x0230;
8256 tf_can_build_in_province_fort_yes_limit_this_nation, // constexpr inline uint16_t can_build_in_province_fort_yes_limit_this_nation = 0x0231;
8257 tf_can_build_in_province_naval_base_no_limit_from_nation, // constexpr inline uint16_t can_build_in_province_naval_base_no_limit_from_nation = 0x0232;
8258 tf_can_build_in_province_naval_base_yes_limit_from_nation, // constexpr inline uint16_t can_build_in_province_naval_base_yes_limit_from_nation = 0x0233;
8259 tf_can_build_in_province_naval_base_no_limit_this_nation, // constexpr inline uint16_t can_build_in_province_naval_base_no_limit_this_nation = 0x0234;
8260 tf_can_build_in_province_naval_base_yes_limit_this_nation, // constexpr inline uint16_t can_build_in_province_naval_base_yes_limit_this_nation = 0x0235;
8261 tf_can_build_railway_in_capital_yes_whole_state_yes_limit, // constexpr inline uint16_t can_build_railway_in_capital_yes_whole_state_yes_limit = 0x0236;
8262 tf_can_build_railway_in_capital_yes_whole_state_no_limit, // constexpr inline uint16_t can_build_railway_in_capital_yes_whole_state_no_limit = 0x0237;
8263 tf_can_build_railway_in_capital_no_whole_state_yes_limit, // constexpr inline uint16_t can_build_railway_in_capital_no_whole_state_yes_limit = 0x0238;
8264 tf_can_build_railway_in_capital_no_whole_state_no_limit, // constexpr inline uint16_t can_build_railway_in_capital_no_whole_state_no_limit = 0x0239;
8265 tf_can_build_fort_in_capital_yes_whole_state_yes_limit, // constexpr inline uint16_t can_build_fort_in_capital_yes_whole_state_yes_limit = 0x023A;
8266 tf_can_build_fort_in_capital_yes_whole_state_no_limit, // constexpr inline uint16_t can_build_fort_in_capital_yes_whole_state_no_limit = 0x023B;
8267 tf_can_build_fort_in_capital_no_whole_state_yes_limit, // constexpr inline uint16_t can_build_fort_in_capital_no_whole_state_yes_limit = 0x023C;
8268 tf_can_build_fort_in_capital_no_whole_state_no_limit, // constexpr inline uint16_t can_build_fort_in_capital_no_whole_state_no_limit = 0x023D;
8269 tf_work_available_nation, // constexpr inline uint16_t work_available_nation = 0x023E;
8270 tf_work_available_state, // constexpr inline uint16_t work_available_state = 0x023F;
8271 tf_work_available_province, // constexpr inline uint16_t work_available_province = 0x0240;
8272 tf_unused_1, //compensate for missing slot
8273 tf_variable_ideology_name_nation, // constexpr inline uint16_t variable_ideology_name_nation = 0x0241;
8274 tf_variable_ideology_name_state, // constexpr inline uint16_t variable_ideology_name_state = 0x0242;
8275 tf_variable_ideology_name_province, // constexpr inline uint16_t variable_ideology_name_province = 0x0243;
8276 tf_variable_ideology_name_pop, // constexpr inline uint16_t variable_ideology_name_pop = 0x0244;
8277 tf_variable_issue_name_nation, // constexpr inline uint16_t variable_issue_name_nation = 0x0245;
8278 tf_variable_issue_name_state, // constexpr inline uint16_t variable_issue_name_state = 0x0246;
8279 tf_variable_issue_name_province, // constexpr inline uint16_t variable_issue_name_province = 0x0247;
8280 tf_variable_issue_name_pop, // constexpr inline uint16_t variable_issue_name_pop = 0x0248;
8281 tf_variable_issue_group_name_nation, // constexpr inline uint16_t variable_issue_group_name_nation = 0x0249;
8282 tf_variable_issue_group_name_state, // constexpr inline uint16_t variable_issue_group_name_state = 0x024A;
8283 tf_variable_issue_group_name_province, // constexpr inline uint16_t variable_issue_group_name_province = 0x024B;
8284 tf_variable_issue_group_name_pop, // constexpr inline uint16_t variable_issue_group_name_pop = 0x024C;
8285 tf_variable_pop_type_name_nation, // constexpr inline uint16_t variable_pop_type_name_nation = 0x024D;
8286 tf_variable_pop_type_name_state, // constexpr inline uint16_t variable_pop_type_name_state = 0x024E;
8287 tf_variable_pop_type_name_province, // constexpr inline uint16_t variable_pop_type_name_province = 0x024F;
8288 tf_variable_pop_type_name_pop, // constexpr inline uint16_t variable_pop_type_name_pop = 0x0250;
8289 tf_variable_good_name, // constexpr inline uint16_t variable_good_name = 0x0251;
8290 tf_strata_middle, // constexpr inline uint16_t strata_middle = 0x0252;
8291 tf_strata_poor, // constexpr inline uint16_t strata_poor = 0x0253;
8292 tf_party_loyalty_from_province_scope_province, // constexpr inline uint16_t party_loyalty_from_province_scope_province = 0x0254;
8293 tf_can_build_factory_nation, // constexpr inline uint16_t can_build_factory_nation = 0x0255;
8294 tf_can_build_factory_province, // constexpr inline uint16_t can_build_factory_province = 0x0256;
8295 tf_nationalvalue_pop, // constexpr inline uint16_t nationalvalue_pop = 0x0257;
8296 tf_nationalvalue_province, // constexpr inline uint16_t nationalvalue_province = 0x0258;
8297 tf_war_exhaustion_pop, // constexpr inline uint16_t war_exhaustion_pop = 0x0259;
8298 tf_has_culture_core_province_this_pop, // constexpr inline uint16_t has_culture_core_province_this_pop = 0x025A;
8299 tf_tag_pop, // constexpr inline uint16_t tag_pop = 0x025B;
8300 tf_has_country_flag, // constexpr inline uint16_t has_country_flag_pop = 0x025C;
8301 tf_has_country_flag, // constexpr inline uint16_t has_country_flag_province = 0x025D;
8302 tf_has_country_modifier_province, // constexpr inline uint16_t has_country_modifier_province = 0x025E;
8303 tf_religion_nation, // constexpr inline uint16_t religion_nation = 0x025F;
8304 tf_religion_nation_reb, // constexpr inline uint16_t religion_nation_reb = 0x0260;
8305 tf_religion_nation_from_nation, // constexpr inline uint16_t religion_nation_from_nation = 0x0261;
8306 tf_religion_nation_this_nation, // constexpr inline uint16_t religion_nation_this_nation = 0x0262;
8307 tf_religion_nation_this_state, // constexpr inline uint16_t religion_nation_this_state = 0x0263;
8308 tf_religion_nation_this_province, // constexpr inline uint16_t religion_nation_this_province = 0x0264;
8309 tf_religion_nation_this_pop, // constexpr inline uint16_t religion_nation_this_pop = 0x0265;
8310 tf_war_exhaustion_province, // constexpr inline uint16_t war_exhaustion_province = 0x0266;
8311 tf_is_greater_power_province, // constexpr inline uint16_t is_greater_power_province = 0x0267;
8312 tf_is_cultural_union_pop_this_pop, // constexpr inline uint16_t is_cultural_union_pop_this_pop = 0x0268;
8313 tf_has_building_factory, // constexpr inline uint16_t has_building_factory = 0x0269;
8314 tf_has_building_state_from_province, // constexpr inline uint16_t has_building_state_from_province = 0x026A;
8315 tf_has_building_factory_from_province, // constexpr inline uint16_t has_building_factory_from_province = 0x026B;
8316 tf_party_loyalty_generic, // constexpr inline uint16_t party_loyalty_generic = 0x026C;
8317 tf_invention, // constexpr inline uint16_t invention = 0x026D;
8318 tf_political_movement_from_reb, // constexpr inline uint16_t political_movement_from_reb = 0x026E;
8319 tf_social_movement_from_reb, // constexpr inline uint16_t social_movement_from_reb = 0x026F;
8320 tf_is_next_rreform_nation, // constexpr inline uint16_t is_next_rreform_nation = 0x0270;
8321 tf_is_next_rreform_pop, // constexpr inline uint16_t is_next_rreform_pop = 0x0271;
8322 tf_variable_reform_group_name_nation, // constexpr inline uint16_t variable_reform_group_name_nation = 0x0272;
8323 tf_variable_reform_group_name_state, // constexpr inline uint16_t variable_reform_group_name_state = 0x0273;
8324 tf_variable_reform_group_name_province, // constexpr inline uint16_t variable_reform_group_name_province = 0x0274;
8325 tf_variable_reform_group_name_pop, // constexpr inline uint16_t variable_reform_group_name_pop = 0x0275;
8326 tf_is_disarmed_pop, //constexpr inline uint16_t is_disarmed_pop = 0x0276;
8327 tf_owned_by_tag, //constexpr inline uint16_t owned_by_state_tag = 0x0277;
8328 tf_owned_by_from_nation, //constexpr inline uint16_t owned_by_state_from_nation = 0x0278;
8329 tf_owned_by_this_nation, //constexpr inline uint16_t owned_by_state_this_nation = 0x0279;
8330 tf_owned_by_this_province, //constexpr inline uint16_t owned_by_state_this_province = 0x027A;
8331 tf_owned_by_this_state, //constexpr inline uint16_t owned_by_state_this_state = 0x027B;
8332 tf_owned_by_this_pop, //constexpr inline uint16_t owned_by_state_this_pop = 0x027C;
8333 tf_units_in_province_tag, // constexpr inline uint16_t units_in_province_tag = 0x027D;
8334 tf_primary_culture_from_nation, //constexpr inline uint16_t primary_culture_from_nation = 0x027E;
8335 tf_primary_culture_from_province, //constexpr inline uint16_t primary_culture_from_province = 0x027F;
8336 tf_neighbour_this_province, //constexpr inline uint16_t neighbour_this_province = 0x0280;
8337 tf_neighbour_from_province, //constexpr inline uint16_t neighbour_from_province = 0x0281;
8338 tf_technology, //constexpr inline uint16_t technology_province = 0x0282;
8339 tf_invention, //constexpr inline uint16_t invention_province = 0x0283;
8340 tf_brigades_compare_province_this, //constexpr inline uint16_t brigades_compare_province_this = 0x0284;
8341 tf_brigades_compare_province_from, //constexpr inline uint16_t brigades_compare_province_from = 0x0285;
8342 tf_is_accepted_culture_nation_this_pop, //constexpr inline uint16_t is_accepted_culture_nation_this_pop = 0x0286;
8343 tf_is_accepted_culture_nation_this_nation, //constexpr inline uint16_t is_accepted_culture_nation_this_nation = 0x0287;
8344 tf_is_accepted_culture_nation_this_state, //constexpr inline uint16_t is_accepted_culture_nation_this_state = 0x0288;
8345 tf_is_accepted_culture_nation_this_province, //constexpr inline uint16_t is_accepted_culture_nation_this_province = 0x0289;
8346 tf_is_accepted_culture_state_this_pop, //constexpr inline uint16_t is_accepted_culture_state_this_pop = 0x028A;
8347 tf_is_accepted_culture_state_this_nation, //constexpr inline uint16_t is_accepted_culture_state_this_nation = 0x028B;
8348 tf_is_accepted_culture_state_this_state, //constexpr inline uint16_t is_accepted_culture_state_this_state = 0x028C;
8349 tf_is_accepted_culture_state_this_province, //constexpr inline uint16_t is_accepted_culture_state_this_province = 0x028D;
8350 tf_is_accepted_culture_province_this_pop, //constexpr inline uint16_t is_accepted_culture_province_this_pop = 0x028E;
8351 tf_is_accepted_culture_province_this_nation, //constexpr inline uint16_t is_accepted_culture_province_this_nation = 0x028F;
8352 tf_is_accepted_culture_province_this_state, //constexpr inline uint16_t is_accepted_culture_province_this_state = 0x0290;
8353 tf_is_accepted_culture_province_this_province, //constexpr inline uint16_t is_accepted_culture_province_this_province = 0x0291;
8354 tf_is_accepted_culture_pop_this_pop, //constexpr inline uint16_t is_accepted_culture_pop_this_pop = 0x0292;
8355 tf_is_accepted_culture_pop_this_nation, //constexpr inline uint16_t is_accepted_culture_pop_this_nation = 0x0293;
8356 tf_is_accepted_culture_pop_this_state, //constexpr inline uint16_t is_accepted_culture_pop_this_state = 0x0294;
8357 tf_is_accepted_culture_pop_this_province, //constexpr inline uint16_t is_accepted_culture_pop_this_province = 0x0295;
8358 tf_culture_group_province, //constexpr inline uint16_t culture_group_province = 0x0296;
8359 tf_culture_group_state, //constexpr inline uint16_t culture_group_state = 0x0297;
8360 tf_have_core_in_nation_tag, //constexpr inline uint16_t have_core_in_nation_tag = 0x0298;
8361 tf_have_core_in_nation_this, //constexpr inline uint16_t have_core_in_nation_this = 0x0299;
8362 tf_have_core_in_nation_from, //constexpr inline uint16_t have_core_in_nation_from = 0x029A;
8363 tf_owns, //constexpr inline uint16_t owns_province = 0x029B;
8364 tf_empty, //constexpr inline uint16_t empty_state = 0x029C;
8365 tf_is_overseas_pop, //constexpr inline uint16_t is_overseas_pop = 0x029D;
8366 tf_primary_culture_pop, //constexpr inline uint16_t primary_culture_pop = 0x029E;
8367 tf_plurality_pop, //constexpr inline uint16_t plurality_pop = 0x029F;
8368 tf_is_overseas, //constexpr inline uint16_t is_overseas_state = 0x02A0;
8369 tf_stronger_army_than_tag, //constexpr inline uint16_t stronger_army_than_tag = 0x02A1;
8370 tf_region, //constexpr inline uint16_t region_state = 0x02A2;
8371 tf_region_pop, //constexpr inline uint16_t region_pop = 0x02A3;
8372 tf_owns_region, //constexpr inline uint16_t owns_region = 0x02A4;
8373 tf_is_core_tag, //constexpr inline uint16_t is_core_state_tag = 0x02A5;
8374 tf_country_units_in_state_from, //constexpr inline uint16_t country_units_in_state_from = 0x02A6;
8375 tf_country_units_in_state_this_nation, //constexpr inline uint16_t country_units_in_state_this_nation = 0x02A7;
8376 tf_country_units_in_state_this_province, //constexpr inline uint16_t country_units_in_state_this_province = 0x02A8;
8377 tf_country_units_in_state_this_state, //constexpr inline uint16_t country_units_in_state_this_state = 0x02A9;
8378 tf_country_units_in_state_this_pop, //constexpr inline uint16_t country_units_in_state_this_pop = 0x02AA;
8379 tf_country_units_in_state_tag, //constexpr inline uint16_t country_units_in_state_tag = 0x02AB;
8380 tf_stronger_army_than_this_nation, //constexpr inline uint16_t stronger_army_than_this_nation = 0x02AC;
8381 tf_stronger_army_than_this_state, //constexpr inline uint16_t stronger_army_than_this_state = 0x02AD;
8382 tf_stronger_army_than_this_province, //constexpr inline uint16_t stronger_army_than_this_province = 0x02AE;
8383 tf_stronger_army_than_this_pop, //constexpr inline uint16_t stronger_army_than_this_pop = 0x02AF;
8384 tf_stronger_army_than_from_nation, //constexpr inline uint16_t stronger_army_than_from_nation = 0x02B0;
8385 tf_stronger_army_than_from_province, //constexpr inline uint16_t stronger_army_than_from_province = 0x02B1;
8386 tf_flashpoint_tension, //constexpr inline uint16_t flashpoint_tension_province = 0x02B2;
8387 tf_is_colonial_pop, //constexpr inline uint16_t is_colonial_pop = 0x02B3;
8388 tf_has_country_flag, // constexpr inline uint16_t has_country_flag_state = 0x02B4;
8389 tf_rich_tax, //constexpr inline uint16_t rich_tax_pop = 0x02B5;
8390 tf_middle_tax, //constexpr inline uint16_t middle_tax_pop = 0x02B6;
8391 tf_poor_tax, //constexpr inline uint16_t poor_tax_pop = 0x02B7;
8392 tf_is_core_pop_tag, //constexpr inline uint16_t is_core_pop_tag = 0x02B8;
8393 tf_is_core_boolean, //constexpr inline uint16_t is_core_boolean = 0x02B9;
8394 tf_is_core_this_nation, //constexpr inline uint16_t is_core_state_this_nation = 0x02BA;
8395 tf_is_core_this_province, //constexpr inline uint16_t is_core_state_this_province = 0x02BB;
8396 tf_is_core_this_pop, //constexpr inline uint16_t is_core_state_this_pop = 0x02BC;
8397 tf_is_core_from_nation, //constexpr inline uint16_t is_core_state_from_nation = 0x02BD;
8398 tf_ruling_party_ideology_nation, //constexpr inline uint16_t ruling_party_ideology_province = 0x02BE;
8399 tf_money_province, //constexpr inline uint16_t money_province = 0x02BF;
8400 tf_is_our_vassal_province_tag, //constexpr inline uint16_t is_our_vassal_province_tag = 0x02C0;
8401 tf_is_our_vassal_province_from, //constexpr inline uint16_t is_our_vassal_province_from = 0x02C1;
8402 tf_is_our_vassal_province_this_nation, //constexpr inline uint16_t is_our_vassal_province_this_nation = 0x02C2;
8403 tf_is_our_vassal_province_this_province, //constexpr inline uint16_t is_our_vassal_province_this_province = 0x02C3;
8404 tf_is_our_vassal_province_this_state, //constexpr inline uint16_t is_our_vassal_province_this_state = 0x02C4;
8405 tf_is_our_vassal_province_this_pop, //constexpr inline uint16_t is_our_vassal_province_this_pop = 0x02C5;
8406 tf_vassal_of_province_tag, //constexpr inline uint16_t vassal_of_province_tag = 0x02C6;
8407 tf_vassal_of_province_from, //constexpr inline uint16_t vassal_of_province_from = 0x02C7;
8408 tf_vassal_of_province_this_nation, //constexpr inline uint16_t vassal_of_province_this_nation = 0x02C8;
8409 tf_vassal_of_province_this_province, //constexpr inline uint16_t vassal_of_province_this_province = 0x02C9;
8410 tf_vassal_of_province_this_state, //constexpr inline uint16_t vassal_of_province_this_state = 0x02CA;
8411 tf_vassal_of_province_this_pop, //constexpr inline uint16_t vassal_of_province_this_pop = 0x02CB;
8412 tf_relation_this_pop, //constexpr inline uint16_t relation_this_pop = 0x02CC;
8413 tf_has_recently_lost_war, //constexpr inline uint16_t has_recently_lost_war_pop = 0x02CD;
8414 tf_technology, //constexpr inline uint16_t technology_pop = 0x02CE;
8415 tf_invention, //constexpr inline uint16_t invention_pop = 0x02CF;
8416 tf_in_default_bool, //constexpr inline uint16_t in_default_bool = 0x02D0;
8417 tf_is_state_capital_pop, //constexpr inline uint16_t is_state_capital_pop = 0x02D1;
8418 tf_region_proper, //constexpr inline uint16_t region_proper = 0x02D2;
8419 tf_region_proper, //constexpr inline uint16_t region_proper_state = 0x02D3;
8420 tf_region_proper_pop, //constexpr inline uint16_t region_proper_pop = 0x02D4;
8421 tf_owns_region_proper, //constexpr inline uint16_t owns_region_proper = 0x02D5;
8422 tf_pop_majority_religion_nation_this_nation, //constexpr inline uint16_t pop_majority_religion_nation_this_nation = 0x02D6;
8423 tf_military_score_tag, //constexpr inline uint16_t military_score_tag = 0x02D7;
8424 tf_industrial_score_tag, //constexpr inline uint16_t industrial_score_tag = 0x02D8;
8425 tf_has_factories_nation, // constexpr inline uint16_t has_factories_state = 0x02D9;
8426 tf_is_coastal_state, // constexpr inline uint16_t is_coastal_state = 0x02DA;
8427 tf_has_building_bank, // constexpr inline uint16_t has_building_bank = 0x02DB;
8428 tf_has_building_university, // constexpr inline uint16_t has_building_university = 0x02DC;
8429 tf_test, // constexpr inline uint16_t test = 0x02DD;
8430 tf_unit_has_leader, //constexpr inline uint16_t unit_has_leader = 0x02DF
8431 tf_has_national_focus_state, //constexpr inline uint16_t has_national_focus_state = 0x02E0
8432 tf_has_national_focus_province, //constexpr inline uint16_t has_national_focus_province = 0x02E1
8433 tf_party_name, //TRIGGER_BYTECODE_ELEMENT(0x02E2, party_name, 3)
8434 tf_party_position, //TRIGGER_BYTECODE_ELEMENT(0x02E3, party_position, 2)
8435 //
8436 // scopes
8437 //
8438
8439 tf_generic_scope, // constexpr uint16_t generic_scope = 0x0000; // or & and
8440 tf_x_neighbor_province_scope, // constexpr uint16_t x_neighbor_province_scope = 0x0001;
8441 tf_x_neighbor_country_scope_nation, // constexpr uint16_t x_neighbor_country_scope_nation = 0x0002;
8442 tf_x_neighbor_country_scope_pop, // constexpr uint16_t x_neighbor_country_scope_pop = 0x0003;
8443 tf_x_war_countries_scope_nation, // constexpr uint16_t x_war_countries_scope_nation = 0x0004;
8444 tf_x_war_countries_scope_pop, // constexpr uint16_t x_war_countries_scope_pop = 0x0005;
8445 tf_x_greater_power_scope, // constexpr uint16_t x_greater_power_scope = 0x0006;
8446 tf_x_owned_province_scope_state, // constexpr uint16_t x_owned_province_scope_state = 0x0007;
8447 tf_x_owned_province_scope_nation, // constexpr uint16_t x_owned_province_scope_nation = 0x0008;
8448 tf_x_core_scope_province, // constexpr uint16_t x_core_scope_province = 0x0009;
8449 tf_x_core_scope_nation, // constexpr uint16_t x_core_scope_nation = 0x000A;
8450 tf_x_state_scope, // constexpr uint16_t x_state_scope = 0x000B;
8451 tf_x_substate_scope, // constexpr uint16_t x_substate_scope = 0x000C;
8452 tf_x_sphere_member_scope, // constexpr uint16_t x_sphere_member_scope = 0x000D;
8453 tf_x_pop_scope_province, // constexpr uint16_t x_pop_scope_province = 0x000E;
8454 tf_x_pop_scope_state, // constexpr uint16_t x_pop_scope_state = 0x000F;
8455 tf_x_pop_scope_nation, // constexpr uint16_t x_pop_scope_nation = 0x0010;
8456 tf_x_provinces_in_variable_region, // constexpr uint16_t x_provinces_in_variable_region = 0x0011; // variable name
8457 tf_owner_scope_state, // constexpr uint16_t owner_scope_state = 0x0012;
8458 tf_owner_scope_province, // constexpr uint16_t owner_scope_province = 0x0013;
8459 tf_controller_scope, // constexpr uint16_t controller_scope = 0x0014;
8460 tf_location_scope, // constexpr uint16_t location_scope = 0x0015;
8461 tf_country_scope_state, // constexpr uint16_t country_scope_state = 0x0016;
8462 tf_country_scope_pop, // constexpr uint16_t country_scope_pop = 0x0017;
8463 tf_capital_scope, // constexpr uint16_t capital_scope = 0x0018;
8464 tf_this_scope_pop, // constexpr uint16_t this_scope_pop = 0x0019;
8465 tf_this_scope_nation, // constexpr uint16_t this_scope_nation = 0x001A;
8466 tf_this_scope_state, // constexpr uint16_t this_scope_state = 0x001B;
8467 tf_this_scope_province, // constexpr uint16_t this_scope_province = 0x001C;
8468 tf_from_scope_pop, // constexpr uint16_t from_scope_pop = 0x001D;
8469 tf_from_scope_nation, // constexpr uint16_t from_scope_nation = 0x001E;
8470 tf_from_scope_state, // constexpr uint16_t from_scope_state = 0x001F;
8471 tf_from_scope_province, // constexpr uint16_t from_scope_province = 0x0020;
8472 tf_sea_zone_scope, // constexpr uint16_t sea_zone_scope = 0x0021;
8473 tf_cultural_union_scope, // constexpr uint16_t cultural_union_scope = 0x0022;
8474 tf_overlord_scope, // constexpr uint16_t overlord_scope = 0x0023;
8475 tf_sphere_owner_scope, // constexpr uint16_t sphere_owner_scope = 0x0024;
8476 tf_independence_scope, // constexpr uint16_t independence_scope = 0x0025;
8477 tf_flashpoint_tag_scope, // constexpr uint16_t flashpoint_tag_scope = 0x0026;
8478 tf_crisis_state_scope, // constexpr uint16_t crisis_state_scope = 0x0027;
8479 tf_state_scope_pop, // constexpr uint16_t state_scope_pop = 0x0028;
8480 tf_state_scope_province, // constexpr uint16_t state_scope_province = 0x0029;
8481 tf_tag_scope, // constexpr uint16_t tag_scope = 0x002A; // variable name
8482 tf_integer_scope, // constexpr uint16_t integer_scope = 0x002B; // variable name
8483 tf_country_scope_nation, // constexpr uint16_t country_scope_nation = 0x002C;
8484 tf_country_scope_province, // constexpr uint16_t country_scope_province = 0x002D;
8485 tf_cultural_union_scope_pop, // constexpr uint16_t cultural_union_scope_pop = 0x002E;
8486 tf_capital_scope_province, // constexpr uint16_t capital_scope_province = 0x002F;
8487 tf_capital_scope_pop, //constexpr inline uint16_t capital_scope_pop = first_scope_code + 0x0030;
8488 tf_x_country_scope, //constexpr inline uint16_t x_country_scope = first_scope_code + 0x0031;
8489 tf_x_neighbor_province_scope_state, //constexpr inline uint16_t x_neighbor_province_scope_state = first_scope_code + 0x0032;
8490 tf_x_provinces_in_variable_region_proper, //constexpr inline uint16_t x_provinces_in_variable_region_proper = first_scope_code + 0x0033;
8491};
8492
8493// #define TRIGGER_DISPLAY_PARAMS uint16_t const* tval, sys::state& ws, text::columnar_layout& layout,
8494// int32_t primary_slot, int32_t this_slot, int32_t from_slot, int32_t indentation, bool show_condition
8495
8496void make_trigger_description(sys::state& ws, text::layout_base& layout, uint16_t const* tval, int32_t primary_slot,
8497 int32_t this_slot, int32_t from_slot, int32_t indentation, bool show_condition) {
8498 trigger_functions[*tval & trigger::code_mask](tval, ws, layout, primary_slot, this_slot, from_slot, indentation,
8499 show_condition);
8500}
8501
8502#undef TRIGGER_DISPLAY_PARAMS
8503
8504} // namespace trigger_tooltip
8505
8506void trigger_description(sys::state& state, text::layout_base& layout, dcon::trigger_key k, int32_t primary_slot,
8507 int32_t this_slot, int32_t from_slot) {
8508 if(!k)
8509 return;
8510
8511 trigger_tooltip::make_trigger_description(state, layout, state.trigger_data.data() + state.trigger_data_indices[k.index() + 1],
8512 primary_slot, this_slot, from_slot, 0, true);
8513}
8514
8515void multiplicative_value_modifier_description(sys::state& state, text::layout_base& layout, dcon::value_modifier_key modifier,
8516 int32_t primary_slot, int32_t this_slot, int32_t from_slot) {
8517 auto base = state.value_modifiers[modifier];
8518
8519 if(primary_slot != -1) {
8522 text::fp_two_places{trigger::evaluate_multiplicative_modifier(state, modifier, primary_slot, this_slot, from_slot)});
8523 auto box = text::open_layout_box(layout, 0);
8524 text::localised_format_box(state, layout, box, std::string_view("value_mod_product"), map);
8525 text::close_layout_box(layout, box);
8526 }
8527
8528 if(base.factor != 0.0f) {
8532 text::localised_format_box(state, layout, box, std::string_view("comwid_base"), map);
8533 text::close_layout_box(layout, box);
8534 }
8535
8536 for(uint32_t i = 0; i < base.segments_count; ++i) {
8537 auto seg = state.value_modifier_segments[base.first_segment_offset + i];
8538 if(seg.condition) {
8540 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);
8541
8542 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);
8543 text::close_layout_box(layout, box);
8544
8546 state.trigger_data.data() + state.trigger_data_indices[seg.condition.index() + 1], primary_slot, this_slot, from_slot,
8547 trigger_tooltip::indentation_amount * 2, primary_slot != -1);
8548 }
8549 }
8550}
8551
8552void additive_value_modifier_description(sys::state& state, text::layout_base& layout, dcon::value_modifier_key modifier,
8553 int32_t primary_slot, int32_t this_slot, int32_t from_slot) {
8554 auto base = state.value_modifiers[modifier];
8555
8556 if(base.factor == 1.0f) {
8559 text::fp_two_places{trigger::evaluate_additive_modifier(state, modifier, primary_slot, this_slot, from_slot)});
8560 auto box = text::open_layout_box(layout, 0);
8561 text::localised_format_box(state, layout, box, std::string_view("value_mod_sum"), map);
8562 text::close_layout_box(layout, box);
8563 } else {
8566 text::fp_two_places{ trigger::evaluate_additive_modifier(state, modifier, primary_slot, this_slot, from_slot) });
8568 text::fp_two_places{ base.factor });
8569 auto box = text::open_layout_box(layout, 0);
8570 text::localised_format_box(state, layout, box, std::string_view("value_mod_sum_factor"), map);
8571 text::close_layout_box(layout, box);
8572 }
8573
8574 {
8578 text::localised_format_box(state, layout, box, std::string_view("comwid_base"), map);
8579 text::close_layout_box(layout, box);
8580 }
8581
8582 for(uint32_t i = 0; i < base.segments_count; ++i) {
8583 auto seg = state.value_modifier_segments[base.first_segment_offset + i];
8584 if(seg.condition) {
8586 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);
8587
8588 text::add_to_layout_box(state, layout, box, text::fp_two_places{seg.factor},
8589 seg.factor >= 0.f ? text::text_color::green : text::text_color::red);
8590 text::close_layout_box(layout, box);
8591
8593 state.trigger_data.data() + state.trigger_data_indices[seg.condition.index() + 1], primary_slot, this_slot, from_slot,
8594 trigger_tooltip::indentation_amount * 2, primary_slot != -1);
8595 }
8596 }
8597}
8598
8599} // 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:133
bool evaluate(sys::state &state, dcon::trigger_key key, int32_t primary, int32_t this_slot, int32_t from_slot)
Definition: triggers.cpp:5865
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:119
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:5796
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:5782
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_party_position(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_party_name(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