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 if(ws.crisis_attacker_wargoals.size() > 0) {
1068 auto first_wg = ws.crisis_attacker_wargoals.at(0);
1069 auto target_nation = first_wg.target_nation;
1070 auto target_state_def = first_wg.state;
1071
1072 for(auto st : ws.world.in_state_instance) {
1073 if(st.get_nation_from_state_ownership() == target_nation && st.get_definition() == target_state_def) {
1074 auto cstate = st ? trigger::to_generic(st.id) : -1;
1075 return display_subtriggers(tval, ws, layout, cstate, this_slot, from_slot, indentation + indentation_amount,
1076 show_condition && cstate != -1);
1077 }
1078 }
1079 }
1080
1081}
1083 {
1084 auto box = text::open_layout_box(layout, indentation);
1085 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1086 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "containing_state"));
1087 text::add_space_to_layout_box(ws, layout, box);
1088 text::add_to_layout_box(ws, layout, box,
1089 primary_slot != -1 ? text::produce_simple_string(ws, ws.world.province_get_name(trigger::to_prov(primary_slot)))
1090 : text::produce_simple_string(ws, "singular_province"));
1091 text::close_layout_box(layout, box);
1092 }
1093
1094 if(ui_count_subtriggers(ws, tval) > 1) {
1095 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1097 text::close_layout_box(layout, box);
1098 }
1099
1100 auto st =
1101 primary_slot != -1 ? ws.world.province_get_state_membership(trigger::to_prov(primary_slot)) : dcon::state_instance_id{};
1102
1103 display_subtriggers(tval, ws, layout, st ? trigger::to_generic(st) : -1, this_slot, from_slot, indentation + indentation_amount,
1104 show_condition && st);
1105}
1107 {
1108 auto box = text::open_layout_box(layout, indentation);
1109 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1110 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "containing_state"));
1111 text::add_space_to_layout_box(ws, layout, box);
1112 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "singular_pop"));
1113 text::close_layout_box(layout, box);
1114 }
1115
1116 if(ui_count_subtriggers(ws, tval) > 1) {
1117 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1119 text::close_layout_box(layout, box);
1120 }
1121
1122 auto st = primary_slot != -1 ? ws.world.province_get_state_membership(
1123 ws.world.pop_get_province_from_pop_location(trigger::to_pop(primary_slot)))
1124 : dcon::state_instance_id{};
1125
1126 display_subtriggers(tval, ws, layout, st ? trigger::to_generic(st) : -1, this_slot, from_slot, indentation + indentation_amount,
1127 show_condition && st);
1128}
1130 auto tag = trigger::payload(tval[2]).tag_id;
1131 auto tag_holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
1132
1133 {
1134 auto box = text::open_layout_box(layout, indentation);
1135 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1136 text::add_to_layout_box(ws, layout, box,
1138 tag_holder ? text::get_name(ws, tag_holder) : ws.world.national_identity_get_name(tag)));
1139 text::close_layout_box(layout, box);
1140 }
1141
1142 if(ui_count_subtriggers(ws, tval) > 1) {
1143 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1145 text::close_layout_box(layout, box);
1146 }
1147
1148 display_subtriggers(tval, ws, layout, tag_holder ? trigger::to_generic(tag_holder) : -1, this_slot, from_slot,
1149 indentation + indentation_amount, show_condition && tag_holder);
1150}
1152 auto p = trigger::payload(tval[2]).prov_id;
1153
1154 {
1155 auto box = text::open_layout_box(layout, indentation);
1156 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1157 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, ws.world.province_get_name(p)));
1158 text::close_layout_box(layout, box);
1159 }
1160
1161 if(ui_count_subtriggers(ws, tval) > 1) {
1162 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1164 text::close_layout_box(layout, box);
1165 }
1166
1167 display_subtriggers(tval, ws, layout, trigger::to_generic(p), this_slot, from_slot, indentation + indentation_amount,
1168 show_condition);
1169}
1171 if(ui_count_subtriggers(ws, tval) > 1) {
1172 auto box = text::open_layout_box(layout, indentation);
1174 text::close_layout_box(layout, box);
1175 }
1176 display_subtriggers(tval, ws, layout, primary_slot, this_slot, from_slot, indentation + indentation_amount, show_condition);
1177}
1179 {
1180 auto box = text::open_layout_box(layout, indentation);
1181 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1182 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "owner_of"));
1183 text::add_space_to_layout_box(ws, layout, box);
1184 text::add_to_layout_box(ws, layout, box,
1185 primary_slot != -1 ? text::produce_simple_string(ws, ws.world.province_get_name(trigger::to_prov(primary_slot)))
1186 : text::produce_simple_string(ws, "singular_province"));
1187 text::close_layout_box(layout, box);
1188 }
1189
1190 if(ui_count_subtriggers(ws, tval) > 1) {
1191 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1193 text::close_layout_box(layout, box);
1194 }
1195
1196 display_subtriggers(tval, ws, layout,
1197 primary_slot != -1
1198 ? trigger::to_generic(ws.world.province_get_nation_from_province_ownership(trigger::to_prov(primary_slot)))
1199 : -1,
1200 this_slot, from_slot, indentation + indentation_amount, show_condition && primary_slot != -1);
1201}
1203 auto cultures = primary_slot != -1 ? ws.world.pop_get_culture(trigger::to_pop(primary_slot)) : dcon::culture_id{};
1204 auto cg = ws.world.culture_get_group_from_culture_group_membership(cultures);
1205 auto union_tags = ws.world.culture_group_get_identity_from_cultural_union_of(cg);
1206 auto group_holders = ws.world.national_identity_get_nation_from_identity_holder(union_tags);
1207
1208 {
1209 auto box = text::open_layout_box(layout, indentation);
1210 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1211 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "cultural_union_of"));
1212 text::add_space_to_layout_box(ws, layout, box);
1213 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "singular_pop"));
1214 text::close_layout_box(layout, box);
1215 }
1216 if(ui_count_subtriggers(ws, tval) > 1) {
1217 auto box = text::open_layout_box(layout, indentation + indentation_amount);
1219 text::close_layout_box(layout, box);
1220 }
1221
1222 display_subtriggers(tval, ws, layout, group_holders ? trigger::to_generic(group_holders) : -1, this_slot, from_slot,
1223 indentation + indentation_amount, show_condition && bool(group_holders));
1224}
1225
1227 auto box = text::open_layout_box(layout, indentation);
1228 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1229 display_with_comparison(tval[0], text::produce_simple_string(ws, "year"), int32_t(tval[1]), ws, layout, box);
1230 text::close_layout_box(layout, box);
1231}
1233 auto box = text::open_layout_box(layout, indentation);
1234 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1235 display_with_comparison(tval[0], text::produce_simple_string(ws, "month"), int32_t(tval[1]), ws, layout, box);
1236 text::close_layout_box(layout, box);
1237}
1238
1240 auto box = text::open_layout_box(layout, indentation);
1241 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1242 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_port"), ws, layout, box);
1243 text::close_layout_box(layout, box);
1244}
1246 auto box = text::open_layout_box(layout, indentation);
1247 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1248 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_rank"), int32_t(tval[1]), ws, layout, box);
1249 text::close_layout_box(layout, box);
1250}
1252 auto tech = trigger::payload(tval[1]).tech_id;
1253
1254 auto box = text::open_layout_box(layout, indentation);
1255 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1256 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "att_technology"), ws, layout, box);
1257 text::add_space_to_layout_box(ws, layout, box);
1258 text::add_to_layout_box(ws, layout, box, ws.world.technology_get_name(tech));
1259 text::close_layout_box(layout, box);
1260}
1262 auto tech = trigger::payload(tval[1]).invt_id;
1263
1264 auto box = text::open_layout_box(layout, indentation);
1265 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1266 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "invention"), ws, layout, box);
1267 text::add_space_to_layout_box(ws, layout, box);
1268 text::add_to_layout_box(ws, layout, box, ws.world.invention_get_name(tech));
1269 text::close_layout_box(layout, box);
1270}
1271
1273 auto box = text::open_layout_box(layout, indentation);
1274 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1276 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "meets_the_conditions_of"), text::text_color::white);
1277 } else {
1278 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "does_not_meet_the_conditions_of"), text::text_color::white);
1279 }
1280 auto sid = trigger::payload(tval[1]).str_id;
1281 text::add_to_layout_box(ws, layout, box, ws.world.stored_trigger_get_name(sid));
1282 text::close_layout_box(layout, box);
1283
1284 auto k = ws.world.stored_trigger_get_function(sid);
1285 trigger_tooltip::make_trigger_description(ws, layout, ws.trigger_data.data() + ws.trigger_data_indices[k.index() + 1],
1286 primary_slot, this_slot, from_slot, indentation + indentation_amount, show_condition);
1287}
1288
1290 auto box = text::open_layout_box(layout, indentation);
1291 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1292 display_with_comparison(tval[0], text::produce_simple_string(ws, "strata"), text::produce_simple_string(ws, "rich"), ws, layout,
1293 box);
1294 text::close_layout_box(layout, box);
1295}
1297 auto box = text::open_layout_box(layout, indentation);
1298 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1300 layout, box);
1301 text::close_layout_box(layout, box);
1302}
1304 auto box = text::open_layout_box(layout, indentation);
1305 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1306 display_with_comparison(tval[0], text::produce_simple_string(ws, "strata"), text::produce_simple_string(ws, "poor"), ws, layout,
1307 box);
1308 text::close_layout_box(layout, box);
1309}
1311 auto box = text::open_layout_box(layout, indentation);
1312 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1313 display_with_comparison(tval[0], text::produce_simple_string(ws, "life_rating"),
1314 int32_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
1315 text::close_layout_box(layout, box);
1316}
1318 auto box = text::open_layout_box(layout, indentation);
1319 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1320 display_with_comparison(tval[0], text::produce_simple_string(ws, "minimum_state_life_rating"),
1321 int32_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
1322 text::close_layout_box(layout, box);
1323}
1325 auto box = text::open_layout_box(layout, indentation);
1326 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1327 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "an_empty_adj_prov"), ws, layout, box);
1328 text::close_layout_box(layout, box);
1329}
1331 auto box = text::open_layout_box(layout, indentation);
1332 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1333 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "an_empty_adj_prov"), ws, layout, box);
1334 text::close_layout_box(layout, box);
1335}
1337 auto it = (tval[0] & trigger::association_mask) == trigger::association_eq
1338 ? ws.lookup_key(std::string_view("belongs_to_same_state"))
1339 : ws.lookup_key(std::string_view("does_not_belong_to_same_state"));
1340 if(it) {
1343
1344 auto box = text::open_layout_box(layout, indentation);
1345 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1346 text::add_to_layout_box(ws, layout, box, it, map);
1347 text::close_layout_box(layout, box);
1348 }
1349}
1351 auto it = (tval[0] & trigger::association_mask) == trigger::association_eq
1352 ? ws.lookup_key(std::string_view("contains_blank"))
1353 : ws.lookup_key(std::string_view("does_not_contain_blank"));
1354 if(it) {
1357
1358 auto box = text::open_layout_box(layout, indentation);
1359 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1360 text::add_to_layout_box(ws, layout, box, it, map);
1361 text::close_layout_box(layout, box);
1362 }
1363}
1365 auto box = text::open_layout_box(layout, indentation);
1366 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1367 display_with_comparison(tval[0], text::produce_simple_string(ws, "pop_savings"),
1368 text::fp_three_places{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
1369 text::add_space_to_layout_box(ws, layout, box);
1370 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "times_target_needs_spending"));
1371 text::close_layout_box(layout, box);
1372}
1374 auto box = text::open_layout_box(layout, indentation);
1375 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1376 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
1377 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
1378 text::close_layout_box(layout, box);
1379}
1381 auto box = text::open_layout_box(layout, indentation);
1382 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1383 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
1384 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
1385 text::close_layout_box(layout, box);
1386}
1388 auto box = text::open_layout_box(layout, indentation);
1389 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1390 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
1391 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
1392 text::close_layout_box(layout, box);
1393}
1395 auto box = text::open_layout_box(layout, indentation);
1396 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1397 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
1398 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
1399 text::close_layout_box(layout, box);
1400}
1402 auto box = text::open_layout_box(layout, indentation);
1403 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1405 ws, layout, box);
1406 text::close_layout_box(layout, box);
1407}
1409 auto box = text::open_layout_box(layout, indentation);
1410 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1411 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_slave_state"), ws, layout, box);
1412 text::close_layout_box(layout, box);
1413}
1415 auto box = text::open_layout_box(layout, indentation);
1416 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1417 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_slave_state"), ws, layout, box);
1418 text::close_layout_box(layout, box);
1419}
1421 auto box = text::open_layout_box(layout, indentation);
1422 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1423 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_slave"), ws, layout, box);
1424 text::close_layout_box(layout, box);
1425}
1427 auto box = text::open_layout_box(layout, indentation);
1428 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1429 display_with_comparison(tval[0], text::produce_simple_string(ws, "an_independent_nation"), ws, layout, box);
1430 text::close_layout_box(layout, box);
1431}
1433 auto box = text::open_layout_box(layout, indentation);
1434 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1435 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "non_prim_culture_pops"), ws, layout, box);
1436 text::close_layout_box(layout, box);
1437}
1439 auto box = text::open_layout_box(layout, indentation);
1440 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1441 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "non_prim_culture_pops"), ws, layout, box);
1442 text::close_layout_box(layout, box);
1443}
1445 auto box = text::open_layout_box(layout, indentation);
1446 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1447 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "non_prim_culture_pops"), ws, layout, box);
1448 text::close_layout_box(layout, box);
1449}
1451 auto gov = trigger::payload(tval[1]).gov_id;
1452 auto box = text::open_layout_box(layout, indentation);
1453 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1454 display_with_comparison(tval[0], text::produce_simple_string(ws, "government"),
1455 text::produce_simple_string(ws, ws.world.government_type_get_name(gov)), ws, layout, box);
1456 text::close_layout_box(layout, box);
1457}
1459 auto gov = trigger::payload(tval[1]).gov_id;
1460 auto box = text::open_layout_box(layout, indentation);
1461 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1462 display_with_comparison(tval[0], text::produce_simple_string(ws, "government"),
1463 text::produce_simple_string(ws, ws.world.government_type_get_name(gov)), ws, layout, box);
1464 text::close_layout_box(layout, box);
1465}
1467 auto prov = trigger::payload(tval[1]).prov_id;
1468 auto box = text::open_layout_box(layout, indentation);
1469 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1471 text::produce_simple_string(ws, ws.world.province_get_name(prov)), ws, layout, box);
1472 text::close_layout_box(layout, box);
1473}
1475 auto t = trigger::payload(tval[1]).mod_id;
1476 auto box = text::open_layout_box(layout, indentation);
1477 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1478 display_with_comparison(tval[0], text::produce_simple_string(ws, "technology_school"),
1479 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
1480 text::close_layout_box(layout, box);
1481}
1483 auto t = trigger::payload(tval[1]).cul_id;
1484 auto box = text::open_layout_box(layout, indentation);
1485 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1486 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
1487 text::produce_simple_string(ws, ws.world.culture_get_name(t)), ws, layout, box);
1488 text::close_layout_box(layout, box);
1489}
1491 auto t = trigger::payload(tval[1]).cul_id;
1492 auto box = text::open_layout_box(layout, indentation);
1493 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1494 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture_pop"),
1495 text::produce_simple_string(ws, ws.world.culture_get_name(t)), ws, layout, box);
1496 text::close_layout_box(layout, box);
1497}
1498
1500 auto box = text::open_layout_box(layout, indentation);
1501 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1502
1503 std::string sub;
1504 if(from_slot != -1)
1505 sub = text::produce_simple_string(ws, ws.world.nation_get_primary_culture(trigger::to_nation(from_slot)).get_name());
1506 else
1507 sub = text::produce_simple_string(ws, "from_nation");
1508 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"), sub, ws, layout, box);
1509 text::close_layout_box(layout, box);
1510}
1511
1513 auto box = text::open_layout_box(layout, indentation);
1514 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1515
1516 std::string sub;
1517 if(from_slot != -1)
1518 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());
1519 else
1520 sub = text::produce_simple_string(ws, "from_nation");
1521 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"), sub, ws, layout, box);
1522 text::close_layout_box(layout, box);
1523}
1524
1526 auto t = trigger::payload(tval[1]).cul_id;
1527 auto box = text::open_layout_box(layout, indentation);
1528 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1529 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(t)),
1530 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
1531 text::close_layout_box(layout, box);
1532}
1534 auto t = trigger::payload(tval[1]).cul_id;
1535 auto box = text::open_layout_box(layout, indentation);
1536 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1538 text::produce_simple_string(ws, ws.world.culture_get_name(t)), ws, layout, box);
1539 text::close_layout_box(layout, box);
1540}
1542 auto t = trigger::payload(tval[1]).cul_id;
1543 auto box = text::open_layout_box(layout, indentation);
1544 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1545 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
1546 text::produce_simple_string(ws, ws.world.culture_get_name(t)), ws, layout, box);
1547 text::close_layout_box(layout, box);
1548}
1550 auto t = trigger::payload(tval[1]).cul_id;
1551 auto box = text::open_layout_box(layout, indentation);
1552 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1553 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
1554 text::produce_simple_string(ws, ws.world.culture_get_name(t)), ws, layout, box);
1555 text::close_layout_box(layout, box);
1556}
1558 auto t = trigger::payload(tval[1]).cul_id;
1559 auto box = text::open_layout_box(layout, indentation);
1560 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1561 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(t)),
1562 text::produce_simple_string(ws, "a_primary_or_accepted"), ws, layout, box);
1563 text::close_layout_box(layout, box);
1564}
1566 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_primary_culture(trigger::to_rebel(from_slot)) : dcon::culture_id{};
1567
1568 auto box = text::open_layout_box(layout, indentation);
1569 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1571 rc ? text::produce_simple_string(ws, ws.world.culture_get_name(rc)) : text::produce_simple_string(ws, "rebel_culture"), ws,
1572 layout, box);
1573}
1575 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_primary_culture(trigger::to_rebel(from_slot)) : dcon::culture_id{};
1576
1577 auto box = text::open_layout_box(layout, indentation);
1578 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1579 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
1580 rc ? text::produce_simple_string(ws, ws.world.culture_get_name(rc)) : text::produce_simple_string(ws, "rebel_culture"), ws,
1581 layout, box);
1582 text::close_layout_box(layout, box);
1583}
1585 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_primary_culture(trigger::to_rebel(from_slot)) : dcon::culture_id{};
1586
1587 auto box = text::open_layout_box(layout, indentation);
1588 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1589 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
1590 rc ? text::produce_simple_string(ws, ws.world.culture_get_name(rc)) : text::produce_simple_string(ws, "rebel_culture"), ws,
1591 layout, box);
1592 text::close_layout_box(layout, box);
1593}
1595 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_primary_culture(trigger::to_rebel(from_slot)) : dcon::culture_id{};
1596
1597 auto box = text::open_layout_box(layout, indentation);
1598 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1600 rc ? text::produce_simple_string(ws, ws.world.culture_get_name(rc)) : text::produce_simple_string(ws, "rebel_culture"),
1601 text::produce_simple_string(ws, "a_primary_or_accepted"), ws, layout, box);
1602 text::close_layout_box(layout, box);
1603}
1605 auto box = text::open_layout_box(layout, indentation);
1606 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1608 text::produce_simple_string(ws, "this_nation_prim_culture"), ws, layout, box);
1609 text::close_layout_box(layout, box);
1610}
1612 auto box = text::open_layout_box(layout, indentation);
1613 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1615 text::produce_simple_string(ws, "from_nation_prim_culture"), ws, layout, box);
1616 text::close_layout_box(layout, box);
1617}
1619 auto box = text::open_layout_box(layout, indentation);
1620 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1622 text::produce_simple_string(ws, "this_nation_prim_culture"), ws, layout, box);
1623 text::close_layout_box(layout, box);
1624}
1626 auto box = text::open_layout_box(layout, indentation);
1627 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1629 text::produce_simple_string(ws, "this_nation_prim_culture"), ws, layout, box);
1630 text::close_layout_box(layout, box);
1631}
1633 auto box = text::open_layout_box(layout, indentation);
1634 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1636 text::produce_simple_string(ws, "this_nation_prim_culture"), ws, layout, box);
1637 text::close_layout_box(layout, box);
1638}
1640 auto cg = trigger::payload(tval[1]).culgrp_id;
1641 auto box = text::open_layout_box(layout, indentation);
1642 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1643 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture_group"),
1644 text::produce_simple_string(ws, ws.world.culture_group_get_name(cg)), ws, layout, box);
1645 text::close_layout_box(layout, box);
1646}
1648 auto cg = trigger::payload(tval[1]).culgrp_id;
1649 auto box = text::open_layout_box(layout, indentation);
1650 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1651 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1652 text::produce_simple_string(ws, ws.world.culture_group_get_name(cg)), ws, layout, box);
1653 text::close_layout_box(layout, box);
1654}
1656 auto cg = trigger::payload(tval[1]).culgrp_id;
1657 auto box = text::open_layout_box(layout, indentation);
1658 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1659 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture_group"),
1660 text::produce_simple_string(ws, ws.world.culture_group_get_name(cg)), ws, layout, box);
1661 text::close_layout_box(layout, box);
1662}
1664 auto cg = trigger::payload(tval[1]).culgrp_id;
1665 auto box = text::open_layout_box(layout, indentation);
1666 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1667 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture_group"),
1668 text::produce_simple_string(ws, ws.world.culture_group_get_name(cg)), ws, layout, box);
1669 text::close_layout_box(layout, box);
1670}
1672 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_primary_culture(trigger::to_rebel(from_slot)) : dcon::culture_id{};
1673 auto rg = ws.world.culture_get_group_from_culture_group_membership(rc);
1674
1675 auto box = text::open_layout_box(layout, indentation);
1676 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1677 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1678 rg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(rg))
1679 : text::produce_simple_string(ws, "rebel_culture_group"),
1680 ws, layout, box);
1681 text::close_layout_box(layout, box);
1682}
1684 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_primary_culture(trigger::to_rebel(from_slot)) : dcon::culture_id{};
1685 auto rg = ws.world.culture_get_group_from_culture_group_membership(rc);
1686
1687 auto box = text::open_layout_box(layout, indentation);
1688 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1689 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1690 rg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(rg))
1691 : text::produce_simple_string(ws, "rebel_culture_group"),
1692 ws, layout, box);
1693 text::close_layout_box(layout, box);
1694}
1696 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)) : dcon::culture_id{};
1697 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1698
1699 auto box = text::open_layout_box(layout, indentation);
1700 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1701 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1702 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1703 : text::produce_simple_string(ws, "this_nation_culture_group"),
1704 ws, layout, box);
1705 text::close_layout_box(layout, box);
1706}
1708 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)) : dcon::culture_id{};
1709 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1710
1711 auto box = text::open_layout_box(layout, indentation);
1712 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1713 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1714 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1715 : text::produce_simple_string(ws, "this_nation_culture_group"),
1716 ws, layout, box);
1717 text::close_layout_box(layout, box);
1718}
1720 auto rc = from_slot != -1 ? ws.world.nation_get_primary_culture(trigger::to_nation(from_slot)) : dcon::culture_id{};
1721 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1722
1723 auto box = text::open_layout_box(layout, indentation);
1724 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1725 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1726 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1727 : text::produce_simple_string(ws, "from_nation_culture_group"),
1728 ws, layout, box);
1729 text::close_layout_box(layout, box);
1730}
1732 auto rc = from_slot != -1 ? ws.world.nation_get_primary_culture(trigger::to_nation(from_slot)) : dcon::culture_id{};
1733 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1734
1735 auto box = text::open_layout_box(layout, indentation);
1736 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1737 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1738 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1739 : text::produce_simple_string(ws, "from_nation_culture_group"),
1740 ws, layout, box);
1741 text::close_layout_box(layout, box);
1742}
1744 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(
1745 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)))
1746 : dcon::culture_id{};
1747 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1748
1749 auto box = text::open_layout_box(layout, indentation);
1750 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1751 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1752 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1753 : text::produce_simple_string(ws, "this_province_culture_group"),
1754 ws, layout, box);
1755 text::close_layout_box(layout, box);
1756}
1758 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(
1759 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)))
1760 : dcon::culture_id{};
1761 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1762
1763 auto box = text::open_layout_box(layout, indentation);
1764 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1765 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1766 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1767 : text::produce_simple_string(ws, "this_province_culture_group"),
1768 ws, layout, box);
1769 text::close_layout_box(layout, box);
1770}
1772 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(
1773 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)))
1774 : dcon::culture_id{};
1775 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1776
1777 auto box = text::open_layout_box(layout, indentation);
1778 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1779 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1780 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1781 : text::produce_simple_string(ws, "this_state_culture_group"),
1782 ws, layout, box);
1783 text::close_layout_box(layout, box);
1784}
1786 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(
1787 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)))
1788 : dcon::culture_id{};
1789 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1790
1791 auto box = text::open_layout_box(layout, indentation);
1792 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1793 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1794 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1795 : text::produce_simple_string(ws, "this_state_culture_group"),
1796 ws, layout, box);
1797 text::close_layout_box(layout, box);
1798}
1800 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(nations::owner_of_pop(ws, trigger::to_pop(this_slot)))
1801 : dcon::culture_id{};
1802 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1803
1804 auto box = text::open_layout_box(layout, indentation);
1805 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1806 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1807 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1808 : text::produce_simple_string(ws, "this_pop_culture_group"),
1809 ws, layout, box);
1810 text::close_layout_box(layout, box);
1811}
1813 auto rc = this_slot != -1 ? ws.world.nation_get_primary_culture(nations::owner_of_pop(ws, trigger::to_pop(this_slot)))
1814 : dcon::culture_id{};
1815 auto cg = ws.world.culture_get_group_from_culture_group_membership(rc);
1816
1817 auto box = text::open_layout_box(layout, indentation);
1818 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1819 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture_group"),
1820 cg ? text::produce_simple_string(ws, ws.world.culture_group_get_name(cg))
1821 : text::produce_simple_string(ws, "this_pop_culture_group"),
1822 ws, layout, box);
1823 text::close_layout_box(layout, box);
1824}
1826 auto t = trigger::payload(tval[1]).rel_id;
1827 auto box = text::open_layout_box(layout, indentation);
1828 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1830 text::produce_simple_string(ws, ws.world.religion_get_name(t)), ws, layout, box);
1831 text::close_layout_box(layout, box);
1832}
1834 auto rc = from_slot != -1 ? ws.world.rebel_faction_get_religion(trigger::to_rebel(from_slot)) : dcon::religion_id{};
1835 auto box = text::open_layout_box(layout, indentation);
1836 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1838 rc ? text::produce_simple_string(ws, ws.world.religion_get_name(rc)) : text::produce_simple_string(ws, "rebel_religion"),
1839 ws, layout, box);
1840 text::close_layout_box(layout, box);
1841}
1843 auto rc = from_slot != -1 ? ws.world.nation_get_religion(trigger::to_nation(from_slot)) : dcon::religion_id{};
1844 auto box = text::open_layout_box(layout, indentation);
1845 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1847 rc ? text::produce_simple_string(ws, ws.world.religion_get_name(rc))
1848 : text::produce_simple_string(ws, "from_nation_religion"),
1849 ws, layout, box);
1850 text::close_layout_box(layout, box);
1851}
1853 auto rc = this_slot != -1 ? ws.world.nation_get_religion(trigger::to_nation(this_slot)) : dcon::religion_id{};
1854 auto box = text::open_layout_box(layout, indentation);
1855 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1857 rc ? text::produce_simple_string(ws, ws.world.religion_get_name(rc))
1858 : text::produce_simple_string(ws, "this_nation_religion"),
1859 ws, layout, box);
1860 text::close_layout_box(layout, box);
1861}
1863 auto rc = this_slot != -1 ? ws.world.nation_get_religion(
1864 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)))
1865 : dcon::religion_id{};
1866 auto box = text::open_layout_box(layout, indentation);
1867 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1869 rc ? text::produce_simple_string(ws, ws.world.religion_get_name(rc))
1870 : text::produce_simple_string(ws, "this_state_religion"),
1871 ws, layout, box);
1872 text::close_layout_box(layout, box);
1873}
1875 auto rc = this_slot != -1
1876 ? ws.world.nation_get_religion(ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)))
1877 : 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))
1882 : text::produce_simple_string(ws, "this_province_religion"),
1883 ws, layout, box);
1884 text::close_layout_box(layout, box);
1885}
1887 auto rc =
1888 this_slot != -1 ? ws.world.nation_get_religion(nations::owner_of_pop(ws, trigger::to_pop(this_slot))) : dcon::religion_id{};
1889 auto box = text::open_layout_box(layout, indentation);
1890 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1892 rc ? text::produce_simple_string(ws, ws.world.religion_get_name(rc)) : text::produce_simple_string(ws, "this_pop_religion"),
1893 ws, layout, box);
1894 text::close_layout_box(layout, box);
1895}
1897 auto t = trigger::payload(tval[1]).mod_id;
1898 auto box = text::open_layout_box(layout, indentation);
1899 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1900 display_with_comparison(tval[0], text::produce_simple_string(ws, "province_terrain"),
1901 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
1902 text::close_layout_box(layout, box);
1903}
1905 auto t = trigger::payload(tval[1]).mod_id;
1906 auto box = text::open_layout_box(layout, indentation);
1907 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1908 display_with_comparison(tval[0], text::produce_simple_string(ws, "province_terrain"),
1909 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
1910 text::close_layout_box(layout, box);
1911}
1913 auto t = trigger::payload(tval[1]).com_id;
1914 auto box = text::open_layout_box(layout, indentation);
1915 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1916 display_with_comparison(tval[0], text::produce_simple_string(ws, "rgo_production"),
1917 text::produce_simple_string(ws, ws.world.commodity_get_name(t)), ws, layout, box);
1918 text::close_layout_box(layout, box);
1919}
1920
1922 auto box = text::open_layout_box(layout, indentation);
1923 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1924 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_secondary_power"), ws, layout, box);
1925 text::close_layout_box(layout, box);
1926}
1928 auto box = text::open_layout_box(layout, indentation);
1929 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1930 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_secondary_power"), ws, layout, box);
1931 text::close_layout_box(layout, box);
1932}
1934 auto t = trigger::payload(tval[1]).reb_id;
1935 auto box = text::open_layout_box(layout, indentation);
1936 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1937 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.rebel_type_get_name(t)),
1938 text::produce_simple_string(ws, "an_active_rebel"), ws, layout, box);
1939 text::close_layout_box(layout, box);
1940}
1942 auto t = trigger::payload(tval[1]).reb_id;
1943 auto box = text::open_layout_box(layout, indentation);
1944 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1945 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_member_of"), ws, layout, box);
1946 text::add_space_to_layout_box(ws, layout, box);
1947 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, ws.world.rebel_type_get_name(t)));
1948 text::close_layout_box(layout, box);
1949}
1951 auto box = text::open_layout_box(layout, indentation);
1952 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1953 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "unclaimed_cores"), ws, layout, box);
1954 text::close_layout_box(layout, box);
1955}
1957 auto box = text::open_layout_box(layout, indentation);
1958 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1959 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_cultural_union"), ws, layout, box);
1960 text::close_layout_box(layout, box);
1961}
1963 auto box = text::open_layout_box(layout, indentation);
1964 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1965 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_pop"),
1966 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
1967 text::close_layout_box(layout, box);
1968}
1970 auto box = text::open_layout_box(layout, indentation);
1971 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1972 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_pop"),
1973 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
1974 text::close_layout_box(layout, box);
1975}
1977 auto box = text::open_layout_box(layout, indentation);
1978 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1979 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
1980 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
1981 text::close_layout_box(layout, box);
1982}
1984 auto box = text::open_layout_box(layout, indentation);
1985 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1986 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
1987 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
1988 text::close_layout_box(layout, box);
1989}
1991 auto box = text::open_layout_box(layout, indentation);
1992 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
1993 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
1994 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
1995 text::close_layout_box(layout, box);
1996}
1998 auto box = text::open_layout_box(layout, indentation);
1999 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2000 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
2001 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
2002 text::close_layout_box(layout, box);
2003}
2005 auto box = text::open_layout_box(layout, indentation);
2006 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2007 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
2008 text::produce_simple_string(ws, "the_rebel_ind_nation"), ws, layout, box);
2009 text::close_layout_box(layout, box);
2010}
2012 auto tag = trigger::payload(tval[1]).tag_id;
2013 auto holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
2014 auto box = text::open_layout_box(layout, indentation);
2015 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2016 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
2017 text::produce_simple_string(ws, holder ? text::get_name(ws, holder) : ws.world.national_identity_get_name(tag)), ws,
2018 layout, box);
2019 text::close_layout_box(layout, box);
2020}
2022 auto tag = trigger::payload(tval[1]).tag_id;
2023 auto holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
2024 auto box = text::open_layout_box(layout, indentation);
2025 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2026 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
2027 text::produce_simple_string(ws, holder ? text::get_name(ws, holder) : ws.world.national_identity_get_name(tag)), ws,
2028 layout, box);
2029 text::close_layout_box(layout, box);
2030}
2032 auto tag = trigger::payload(tval[1]).tag_id;
2033 auto holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
2034 auto box = text::open_layout_box(layout, indentation);
2035 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2036 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
2037 text::produce_simple_string(ws, holder ? text::get_name(ws, holder) : ws.world.national_identity_get_name(tag)), ws,
2038 layout, box);
2039 text::close_layout_box(layout, box);
2040}
2042 auto tag = trigger::payload(tval[1]).tag_id;
2043 auto holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
2044 auto box = text::open_layout_box(layout, indentation);
2045 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2046 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
2047 text::produce_simple_string(ws, holder ? text::get_name(ws, holder) : ws.world.national_identity_get_name(tag)), ws,
2048 layout, box);
2049 text::close_layout_box(layout, box);
2050}
2052 auto tag = trigger::payload(tval[1]).tag_id;
2053 auto holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
2054 auto box = text::open_layout_box(layout, indentation);
2055 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2056 display_with_comparison(tval[0], text::produce_simple_string(ws, "union_for_nation"),
2057 text::produce_simple_string(ws, holder ? text::get_name(ws, holder) : ws.world.national_identity_get_name(tag)), ws,
2058 layout, box);
2059 text::close_layout_box(layout, box);
2060}
2062 auto tag = trigger::payload(tval[1]).tag_id;
2063 auto holder = ws.world.national_identity_get_nation_from_identity_holder(tag);
2064 auto box = text::open_layout_box(layout, indentation);
2065 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_core_ob"), ws, layout, box);
2066 text::add_space_to_layout_box(ws, layout, box);
2067 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)));
2068 text::close_layout_box(layout, box);
2069}
2071 auto box = text::open_layout_box(layout, indentation);
2072 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_core_ob"), ws, layout, box);
2073 text::add_space_to_layout_box(ws, layout, box);
2074 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"));
2075 text::close_layout_box(layout, box);
2076}
2078 auto box = text::open_layout_box(layout, indentation);
2079 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_core_ob"), ws, layout, box);
2080 text::add_space_to_layout_box(ws, layout, box);
2081 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"));
2082 text::close_layout_box(layout, box);
2083}
2084
2086 auto box = text::open_layout_box(layout, indentation);
2087 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2088 text::add_to_layout_box(ws, layout, box,
2090 ? "capitalists_can_build"
2091 : "capitalists_cannot_build"));
2092 text::close_layout_box(layout, box);
2093}
2095 auto box = text::open_layout_box(layout, indentation);
2096 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2097 text::add_to_layout_box(ws, layout, box,
2099 ? "capitalists_can_build"
2100 : "capitalists_cannot_build"));
2101 text::close_layout_box(layout, box);
2102}
2104 auto box = text::open_layout_box(layout, indentation);
2105 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2106 text::add_to_layout_box(ws, layout, box,
2108 ? "capitalists_can_build"
2109 : "capitalists_cannot_build"));
2110 text::close_layout_box(layout, box);
2111}
2113 auto box = text::open_layout_box(layout, indentation);
2114 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2115 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war"), ws, layout, box);
2116 text::close_layout_box(layout, box);
2117}
2119 auto box = text::open_layout_box(layout, indentation);
2120 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2121 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war"), ws, layout, box);
2122 text::close_layout_box(layout, box);
2123}
2125 auto box = text::open_layout_box(layout, indentation);
2126 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2127 display_with_comparison(tval[0], text::produce_simple_string(ws, "war_exhaustion"),
2128 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2129 text::close_layout_box(layout, box);
2130}
2132 auto box = text::open_layout_box(layout, indentation);
2133 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2134 display_with_comparison(tval[0], text::produce_simple_string(ws, "war_exhaustion"),
2135 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2136 text::close_layout_box(layout, box);
2137}
2139 auto box = text::open_layout_box(layout, indentation);
2140 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2141 display_with_comparison(tval[0], text::produce_simple_string(ws, "war_exhaustion"),
2142 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2143 text::close_layout_box(layout, box);
2144}
2146 auto box = text::open_layout_box(layout, indentation);
2147 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2148 display_with_comparison(tval[0], text::produce_simple_string(ws, "total_blockade"),
2149 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2150 text::close_layout_box(layout, box);
2151}
2153 auto box = text::open_layout_box(layout, indentation);
2154 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2155 display_with_comparison(tval[0], text::produce_simple_string(ws, "tb_diplomacy_diplopoints"),
2156 text::fp_one_place{ trigger::read_float_from_payload(tval + 1) }, ws, layout, box);
2157 text::close_layout_box(layout, box);
2158}
2160 auto p = trigger::payload(tval[1]).prov_id;
2161
2162 auto box = text::open_layout_box(layout, indentation);
2163 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2164 text::add_to_layout_box(ws, layout, box,
2166 (tval[0] & trigger::association_mask) == trigger::association_eq ? "owns" : "does_not_own"));
2167 text::add_space_to_layout_box(ws, layout, box);
2168 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, ws.world.province_get_name(p)));
2169 text::close_layout_box(layout, box);
2170}
2172 auto p = trigger::payload(tval[1]).prov_id;
2173
2174 auto box = text::open_layout_box(layout, indentation);
2175 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2176 text::add_to_layout_box(ws, layout, box,
2178 (tval[0] & trigger::association_mask) == trigger::association_eq ? "controls" : "does_not_control"));
2179 text::add_space_to_layout_box(ws, layout, box);
2180 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, ws.world.province_get_name(p)));
2181 text::close_layout_box(layout, box);
2182}
2184 auto box = text::open_layout_box(layout, indentation);
2185 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2186 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_core_in"), ws, layout, box);
2187 text::add_space_to_layout_box(ws, layout, box);
2188 text::add_to_layout_box(ws, layout, box,
2189 text::produce_simple_string(ws, ws.world.province_get_name(trigger::payload(tval[1]).prov_id)));
2190 text::close_layout_box(layout, box);
2191}
2193 auto box = text::open_layout_box(layout, indentation);
2194 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2195 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2196 text::add_space_to_layout_box(ws, layout, box);
2197 if(this_slot != -1)
2198 text::add_to_layout_box(ws, layout, box, text::get_name(ws, trigger::to_nation(this_slot)));
2199 else
2200 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2201 text::close_layout_box(layout, box);
2202}
2204 auto box = text::open_layout_box(layout, indentation);
2205 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2206 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2207 text::add_space_to_layout_box(ws, layout, box);
2208 if(this_slot != -1)
2209 text::add_to_layout_box(ws, layout, box,
2210 text::get_name(ws, ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))));
2211 else
2212 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2213 text::close_layout_box(layout, box);
2214}
2216 auto box = text::open_layout_box(layout, indentation);
2217 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2218 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2219 text::add_space_to_layout_box(ws, layout, box);
2220 if(this_slot != -1)
2221 text::add_to_layout_box(ws, layout, box,
2222 text::get_name(ws, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))));
2223 else
2224 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2225 text::close_layout_box(layout, box);
2226}
2228 auto box = text::open_layout_box(layout, indentation);
2229 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2230 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2231 text::add_space_to_layout_box(ws, layout, box);
2232 if(this_slot != -1)
2233 text::add_to_layout_box(ws, layout, box, text::get_name(ws, nations::owner_of_pop(ws, trigger::to_pop(this_slot))));
2234 else
2235 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2236 text::close_layout_box(layout, box);
2237}
2239 auto box = text::open_layout_box(layout, indentation);
2240 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2241 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2242 text::add_space_to_layout_box(ws, layout, box);
2243 if(from_slot != -1)
2244 text::add_to_layout_box(ws, layout, box, text::get_name(ws, trigger::to_nation(from_slot)));
2245 else
2246 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2247 text::close_layout_box(layout, box);
2248}
2250 auto box = text::open_layout_box(layout, indentation);
2251 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2252 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2253 text::add_space_to_layout_box(ws, layout, box);
2254 if(from_slot != -1) {
2255 auto tg = ws.world.rebel_faction_get_defection_target(trigger::to_rebel(from_slot));
2256 auto h = ws.world.national_identity_get_nation_from_identity_holder(tg);
2257 text::add_to_layout_box(ws, layout, box, h ? text::get_name(ws, h) : ws.world.national_identity_get_name(tg));
2258 } else
2259 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "the_rebel_ind_nation"));
2260 text::close_layout_box(layout, box);
2261}
2263 auto tg = trigger::payload(tval[1]).tag_id;
2264 auto h = ws.world.national_identity_get_nation_from_identity_holder(tg);
2265
2266 auto box = text::open_layout_box(layout, indentation);
2267 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2268 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of"), ws, layout, box);
2269 text::add_space_to_layout_box(ws, layout, box);
2270 text::add_to_layout_box(ws, layout, box, h ? text::get_name(ws,h) : ws.world.national_identity_get_name(tg));
2271 text::close_layout_box(layout, box);
2272}
2274 auto tg = trigger::payload(tval[1]).tag_id;
2275 auto h = ws.world.national_identity_get_nation_from_identity_holder(tg);
2276
2277 auto box = text::open_layout_box(layout, indentation);
2278 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2279 display_with_comparison(tval[0], text::produce_simple_string(ws, "located_in_a_core_of"), ws, layout, box);
2280 text::add_space_to_layout_box(ws, layout, box);
2281 text::add_to_layout_box(ws, layout, box, h ? text::get_name(ws, h) : ws.world.national_identity_get_name(tg));
2282 text::close_layout_box(layout, box);
2283}
2285 auto box = text::open_layout_box(layout, indentation);
2286 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2287 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_core_of_owner"), ws, layout, box);
2288 text::close_layout_box(layout, box);
2289}
2291 auto box = text::open_layout_box(layout, indentation);
2292 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2293 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_of_reb_control"), int64_t(tval[1]), ws, layout, box);
2294 text::close_layout_box(layout, box);
2295}
2297 auto box = text::open_layout_box(layout, indentation);
2298 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2299 display_with_comparison(tval[0], text::produce_simple_string(ws, "percentage_reb_control"),
2300 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2301 text::close_layout_box(layout, box);
2302}
2304 auto box = text::open_layout_box(layout, indentation);
2305 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2306 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_owned_provinces"), int64_t(tval[1]), ws, layout, box);
2307 text::close_layout_box(layout, box);
2308}
2310 auto box = text::open_layout_box(layout, indentation);
2311 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2312 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_owned_provinces"),
2313 text::produce_simple_string(ws, "num_provinces_owned_by"), ws, layout, box);
2314 text::add_space_to_layout_box(ws, layout, box);
2315 text::add_to_layout_box(ws, layout, box,
2316 from_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(from_slot)))
2317 : text::produce_simple_string(ws, "from_nation"));
2318 text::close_layout_box(layout, box);
2319}
2321 auto box = text::open_layout_box(layout, indentation);
2322 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2323 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_owned_provinces"),
2324 text::produce_simple_string(ws, "num_provinces_owned_by"), ws, layout, box);
2325 text::add_space_to_layout_box(ws, layout, box);
2326 text::add_to_layout_box(ws, layout, box,
2327 this_slot != -1 ? text::produce_simple_string(ws, text::get_name(ws, trigger::to_nation(this_slot)))
2328 : text::produce_simple_string(ws, "this_nation"));
2329 text::close_layout_box(layout, box);
2330}
2332 auto box = text::open_layout_box(layout, indentation);
2333 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2334 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_owned_provinces"),
2335 text::produce_simple_string(ws, "num_provinces_owned_by"), ws, layout, box);
2336 text::add_space_to_layout_box(ws, layout, box);
2337 text::add_to_layout_box(ws, layout, box,
2338 this_slot != -1
2340 text::get_name(ws, ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))
2341 : text::produce_simple_string(ws, "this_nation"));
2342 text::close_layout_box(layout, box);
2343}
2345 auto box = text::open_layout_box(layout, indentation);
2346 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2347 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_owned_provinces"),
2348 text::produce_simple_string(ws, "num_provinces_owned_by"), ws, layout, box);
2349 text::add_space_to_layout_box(ws, layout, box);
2350 text::add_to_layout_box(ws, layout, box,
2351 this_slot != -1
2353 text::get_name(ws, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))
2354 : text::produce_simple_string(ws, "this_nation"));
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_owned_provinces"),
2361 text::produce_simple_string(ws, "num_provinces_owned_by"), ws, layout, box);
2362 text::add_space_to_layout_box(ws, layout, box);
2363 text::add_to_layout_box(ws, layout, box,
2364 this_slot != -1
2366 : text::produce_simple_string(ws, "this_nation"));
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, "num_of_ports_connected"), int64_t(tval[1]), ws, layout, box);
2373 text::close_layout_box(layout, box);
2374}
2376 auto box = text::open_layout_box(layout, indentation);
2377 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2378 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_of_allies"), int64_t(tval[1]), ws, layout, box);
2379 text::close_layout_box(layout, box);
2380}
2382 auto box = text::open_layout_box(layout, indentation);
2383 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2384 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_of_vassals"), int64_t(tval[1]), ws, layout, box);
2385 text::close_layout_box(layout, box);
2386}
2388 auto box = text::open_layout_box(layout, indentation);
2389 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2390 display_with_comparison(tval[0], text::produce_simple_string(ws, "owned_by"), ws, layout, box);
2391 text::add_space_to_layout_box(ws, layout, box);
2392 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
2393 text::close_layout_box(layout, box);
2394}
2396 auto box = text::open_layout_box(layout, indentation);
2397 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2398 display_with_comparison(tval[0], text::produce_simple_string(ws, "owned_by"), ws, layout, box);
2399 text::add_space_to_layout_box(ws, layout, box);
2400 if(this_slot != -1)
2401 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2402 else
2403 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2404 text::close_layout_box(layout, box);
2405}
2407 auto box = text::open_layout_box(layout, indentation);
2408 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2409 display_with_comparison(tval[0], text::produce_simple_string(ws, "owned_by"), ws, layout, box);
2410 text::add_space_to_layout_box(ws, layout, box);
2411 if(from_slot != -1)
2412 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2413 else
2414 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2415 text::close_layout_box(layout, box);
2416}
2418 auto box = text::open_layout_box(layout, indentation);
2419 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2420 display_with_comparison(tval[0], text::produce_simple_string(ws, "owned_by"), ws, layout, box);
2421 text::add_space_to_layout_box(ws, layout, box);
2422 if(this_slot != -1)
2423 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
2424 else
2425 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2426 text::close_layout_box(layout, box);
2427}
2429 auto box = text::open_layout_box(layout, indentation);
2430 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2431 display_with_comparison(tval[0], text::produce_simple_string(ws, "owned_by"), ws, layout, box);
2432 text::add_space_to_layout_box(ws, layout, box);
2433 if(this_slot != -1)
2434 text::add_to_layout_box(ws, layout, box,
2435 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
2436 else
2437 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2438 text::close_layout_box(layout, box);
2439}
2441 auto box = text::open_layout_box(layout, indentation);
2442 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2443 display_with_comparison(tval[0], text::produce_simple_string(ws, "owned_by"), ws, layout, box);
2444 text::add_space_to_layout_box(ws, layout, box);
2445 if(this_slot != -1)
2446 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
2447 else
2448 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2449 text::close_layout_box(layout, box);
2450}
2452 auto box = text::open_layout_box(layout, indentation);
2453 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2454 text::add_to_layout_box(ws, layout, box,
2456 (tval[0] & trigger::association_mask) == trigger::association_eq ? "exists" : "does_not_exist"));
2457 text::close_layout_box(layout, box);
2458}
2460 auto box = text::open_layout_box(layout, indentation);
2461 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2462 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
2463 text::add_space_to_layout_box(ws, layout, box);
2464 text::add_to_layout_box(ws, layout, box,
2466 (tval[0] & trigger::association_mask) == trigger::association_eq ? "exists" : "does_not_exist"));
2467 text::close_layout_box(layout, box);
2468}
2470 if(ws.user_settings.spoilers) {
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);
2474 text::produce_simple_string(ws, ws.national_definitions.flag_variable_names[trigger::payload(tval[1]).natf_id]),
2475 text::produce_simple_string(ws, "att_set"), ws, layout, box);
2476 text::close_layout_box(layout, box);
2477 }
2478}
2480 auto t = trigger::payload(tval[1]).mod_id;
2481 auto box = text::open_layout_box(layout, indentation);
2482 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2483 display_with_comparison(tval[0], text::produce_simple_string(ws, "continent"),
2484 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
2485 text::close_layout_box(layout, box);
2486}
2488 auto t = trigger::payload(tval[1]).mod_id;
2489 auto box = text::open_layout_box(layout, indentation);
2490 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2491 display_with_comparison(tval[0], text::produce_simple_string(ws, "continent"),
2492 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
2493 text::close_layout_box(layout, box);
2494}
2496 auto t = trigger::payload(tval[1]).mod_id;
2497 auto box = text::open_layout_box(layout, indentation);
2498 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2499 display_with_comparison(tval[0], text::produce_simple_string(ws, "continent"),
2500 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
2501 text::close_layout_box(layout, box);
2502}
2504 auto t = trigger::payload(tval[1]).mod_id;
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, "continent"),
2508 text::produce_simple_string(ws, ws.world.modifier_get_name(t)), ws, layout, box);
2509 text::close_layout_box(layout, box);
2510}
2512 auto box = text::open_layout_box(layout, indentation);
2513 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2514 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2515 text::add_space_to_layout_box(ws, layout, box);
2516 if(this_slot != -1)
2517 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2518 else
2519 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2520 text::close_layout_box(layout, box);
2521}
2523 auto box = text::open_layout_box(layout, indentation);
2524 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2525 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2526 text::add_space_to_layout_box(ws, layout, box);
2527 if(this_slot != -1)
2528 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2529 else
2530 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2531 text::close_layout_box(layout, box);
2532}
2534 auto box = text::open_layout_box(layout, indentation);
2535 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2536 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2537 text::add_space_to_layout_box(ws, layout, box);
2538 if(this_slot != -1)
2539 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2540 else
2541 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2542 text::close_layout_box(layout, box);
2543}
2545 auto box = text::open_layout_box(layout, indentation);
2546 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2547 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2548 text::add_space_to_layout_box(ws, layout, box);
2549 if(this_slot != -1)
2550 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2551 else
2552 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2553 text::close_layout_box(layout, box);
2554}
2556 auto box = text::open_layout_box(layout, indentation);
2557 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2558 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2559 text::add_space_to_layout_box(ws, layout, box);
2560 if(from_slot != -1)
2561 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2562 else
2563 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2564 text::close_layout_box(layout, box);
2565}
2567 auto box = text::open_layout_box(layout, indentation);
2568 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2569 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2570 text::add_space_to_layout_box(ws, layout, box);
2571 if(from_slot != -1)
2572 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2573 else
2574 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2575 text::close_layout_box(layout, box);
2576}
2578 auto box = text::open_layout_box(layout, indentation);
2579 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2580 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2581 text::add_space_to_layout_box(ws, layout, box);
2582 if(from_slot != -1)
2583 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2584 else
2585 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2586 text::close_layout_box(layout, box);
2587}
2589 auto box = text::open_layout_box(layout, indentation);
2590 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2591 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_continent"), ws, layout, box);
2592 text::add_space_to_layout_box(ws, layout, box);
2593 if(from_slot != -1)
2594 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2595 else
2596 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2597 text::close_layout_box(layout, box);
2598}
2600 auto box = text::open_layout_box(layout, indentation);
2601 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2602 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_casus_belli_against"), ws, layout, box);
2603 text::add_space_to_layout_box(ws, layout, box);
2604 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
2605 text::close_layout_box(layout, box);
2606}
2608 auto box = text::open_layout_box(layout, indentation);
2609 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2610 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_casus_belli_against"), ws, layout, box);
2611 text::add_space_to_layout_box(ws, layout, box);
2612 if(from_slot != -1)
2613 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2614 else
2615 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2616 text::close_layout_box(layout, box);
2617}
2619 auto box = text::open_layout_box(layout, indentation);
2620 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2621 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_casus_belli_against"), ws, layout, box);
2622 text::add_space_to_layout_box(ws, layout, box);
2623 if(this_slot != -1)
2624 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2625 else
2626 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2627 text::close_layout_box(layout, box);
2628}
2630 auto box = text::open_layout_box(layout, indentation);
2631 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2632 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_casus_belli_against"), ws, layout, box);
2633 text::add_space_to_layout_box(ws, layout, box);
2634 if(this_slot != -1)
2635 text::add_to_layout_box(ws, layout, box,
2636 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
2637 else
2638 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2639 text::close_layout_box(layout, box);
2640}
2642 auto box = text::open_layout_box(layout, indentation);
2643 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2644 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_casus_belli_against"), ws, layout, box);
2645 text::add_space_to_layout_box(ws, layout, box);
2646 if(this_slot != -1)
2647 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
2648 else
2649 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2650 text::close_layout_box(layout, box);
2651}
2653 auto box = text::open_layout_box(layout, indentation);
2654 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2655 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_casus_belli_against"), ws, layout, box);
2656 text::add_space_to_layout_box(ws, layout, box);
2657 if(this_slot != -1)
2658 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
2659 else
2660 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2661 text::close_layout_box(layout, box);
2662}
2664 auto box = text::open_layout_box(layout, indentation);
2665 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2666 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "military_access_with"), ws, layout, box);
2667 text::add_space_to_layout_box(ws, layout, box);
2668 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
2669 text::close_layout_box(layout, box);
2670}
2672 auto box = text::open_layout_box(layout, indentation);
2673 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2674 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "military_access_with"), ws, layout, box);
2675 text::add_space_to_layout_box(ws, layout, box);
2676 if(from_slot != -1)
2677 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2678 else
2679 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2680 text::close_layout_box(layout, box);
2681}
2683 auto box = text::open_layout_box(layout, indentation);
2684 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2685 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "military_access_with"), ws, layout, box);
2686 text::add_space_to_layout_box(ws, layout, box);
2687 if(this_slot != -1)
2688 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2689 else
2690 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2691 text::close_layout_box(layout, box);
2692}
2694 auto box = text::open_layout_box(layout, indentation);
2695 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2696 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "military_access_with"), ws, layout, box);
2697 text::add_space_to_layout_box(ws, layout, box);
2698 if(this_slot != -1)
2699 text::add_to_layout_box(ws, layout, box,
2700 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
2701 else
2702 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2703 text::close_layout_box(layout, box);
2704}
2706 auto box = text::open_layout_box(layout, indentation);
2707 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2708 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "military_access_with"), ws, layout, box);
2709 text::add_space_to_layout_box(ws, layout, box);
2710 if(this_slot != -1)
2711 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
2712 else
2713 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
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_has_comparison(tval[0], text::produce_simple_string(ws, "military_access_with"), ws, layout, box);
2720 text::add_space_to_layout_box(ws, layout, box);
2721 if(this_slot != -1)
2722 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
2723 else
2724 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2725 text::close_layout_box(layout, box);
2726}
2728 auto box = text::open_layout_box(layout, indentation);
2729 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2731 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2732 text::close_layout_box(layout, box);
2733}
2735 auto box = text::open_layout_box(layout, indentation);
2736 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2737 display_with_comparison(tval[0], text::produce_simple_string(ws, "prestige"), text::produce_simple_string(ws, "prestige_of"),
2738 ws, layout, box);
2739 text::add_space_to_layout_box(ws, layout, box);
2740 if(from_slot != -1)
2741 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
2742 else
2743 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
2744 text::close_layout_box(layout, box);
2745}
2747 auto box = text::open_layout_box(layout, indentation);
2748 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2749 display_with_comparison(tval[0], text::produce_simple_string(ws, "prestige"), text::produce_simple_string(ws, "prestige_of"),
2750 ws, layout, box);
2751 text::add_space_to_layout_box(ws, layout, box);
2752 if(this_slot != -1)
2753 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2754 else
2755 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2756 text::close_layout_box(layout, box);
2757}
2759 auto box = text::open_layout_box(layout, indentation);
2760 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2761 display_with_comparison(tval[0], text::produce_simple_string(ws, "prestige"), text::produce_simple_string(ws, "prestige_of"),
2762 ws, layout, box);
2763 text::add_space_to_layout_box(ws, layout, box);
2764 if(this_slot != -1)
2765 text::add_to_layout_box(ws, layout, box,
2766 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
2767 else
2768 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2769 text::close_layout_box(layout, box);
2770}
2772 auto box = text::open_layout_box(layout, indentation);
2773 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2774 display_with_comparison(tval[0], text::produce_simple_string(ws, "prestige"), text::produce_simple_string(ws, "prestige_of"),
2775 ws, layout, box);
2776 text::add_space_to_layout_box(ws, layout, box);
2777 if(this_slot != -1)
2778 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
2779 else
2780 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2781 text::close_layout_box(layout, box);
2782}
2784 auto box = text::open_layout_box(layout, indentation);
2785 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2786 display_with_comparison(tval[0], text::produce_simple_string(ws, "prestige"), text::produce_simple_string(ws, "prestige_of"),
2787 ws, layout, box);
2788 text::add_space_to_layout_box(ws, layout, box);
2789 if(this_slot != -1)
2790 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
2791 else
2792 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2793 text::close_layout_box(layout, box);
2794}
2796 auto box = text::open_layout_box(layout, indentation);
2797 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2799 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
2800 text::close_layout_box(layout, box);
2801}
2803 auto box = text::open_layout_box(layout, indentation);
2804 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2805 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_fort"), ws, layout, box);
2806 text::close_layout_box(layout, box);
2807}
2809 auto box = text::open_layout_box(layout, indentation);
2810 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2811 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_railroad"), ws, layout, box);
2812 text::close_layout_box(layout, box);
2813}
2815 auto box = text::open_layout_box(layout, indentation);
2816 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2817 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_naval_base"), ws, layout, box);
2818 text::close_layout_box(layout, box);
2819}
2820
2822 auto box = text::open_layout_box(layout, indentation);
2823 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2824 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_factory"), ws, layout, box);
2825 text::close_layout_box(layout, box);
2826}
2828 auto box = text::open_layout_box(layout, indentation);
2829 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2831 text::produce_simple_string(ws, ws.world.factory_type_get_name(trigger::payload(tval[1]).fac_id)), ws, layout, box);
2832 text::close_layout_box(layout, box);
2833}
2835 auto box = text::open_layout_box(layout, indentation);
2836 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2838 text::produce_simple_string(ws, ws.world.factory_type_get_name(trigger::payload(tval[1]).fac_id)), 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, "a_factory"), ws, layout, box);
2845 text::close_layout_box(layout, box);
2846}
2848 auto box = text::open_layout_box(layout, indentation);
2849 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2850 display_with_comparison(tval[0], text::produce_simple_string(ws, "empty"), ws, layout, box);
2851 text::close_layout_box(layout, box);
2852}
2854 auto box = text::open_layout_box(layout, indentation);
2855 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2856 display_with_comparison(tval[0], text::produce_simple_string(ws, "blockaded"), ws, layout, box);
2857 text::close_layout_box(layout, box);
2858}
2860 auto box = text::open_layout_box(layout, indentation);
2861 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2862 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "national_modifier"), ws, layout, box);
2863 text::add_space_to_layout_box(ws, layout, box);
2864 text::add_to_layout_box(ws, layout, box, ws.world.modifier_get_name(trigger::payload(tval[1]).mod_id));
2865 text::close_layout_box(layout, box);
2866}
2868 auto box = text::open_layout_box(layout, indentation);
2869 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2870 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "national_modifier"), ws, layout, box);
2871 text::add_space_to_layout_box(ws, layout, box);
2872 text::add_to_layout_box(ws, layout, box, ws.world.modifier_get_name(trigger::payload(tval[1]).mod_id));
2873 text::close_layout_box(layout, box);
2874}
2876 auto box = text::open_layout_box(layout, indentation);
2877 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2878 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "provincial_modifier"), ws, layout, box);
2879 text::add_space_to_layout_box(ws, layout, box);
2880 text::add_to_layout_box(ws, layout, box, ws.world.modifier_get_name(trigger::payload(tval[1]).mod_id));
2881 text::close_layout_box(layout, box);
2882}
2884 auto box = text::open_layout_box(layout, indentation);
2885 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2886 display_with_comparison(tval[0], text::produce_simple_string(ws, "part_of"), ws, layout, box);
2887 text::add_space_to_layout_box(ws, layout, box);
2888 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).state_id);
2889 text::close_layout_box(layout, box);
2890}
2892 auto box = text::open_layout_box(layout, indentation);
2893 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2894 display_with_comparison(tval[0], text::produce_simple_string(ws, "part_of"), ws, layout, box);
2895 text::add_space_to_layout_box(ws, layout, box);
2896 text::add_to_layout_box(ws, layout, box, ws.world.region_get_name(trigger::payload(tval[1]).reg_id));
2897 text::close_layout_box(layout, box);
2898}
2900 auto box = text::open_layout_box(layout, indentation);
2901 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2902 display_with_comparison(tval[0], text::produce_simple_string(ws, "the_owner_of_region"), ws, layout, box);
2903 text::add_space_to_layout_box(ws, layout, box);
2904 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).state_id);
2905 text::close_layout_box(layout, box);
2906}
2908 auto box = text::open_layout_box(layout, indentation);
2909 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2910 display_with_comparison(tval[0], text::produce_simple_string(ws, "the_owner_of_region"), ws, layout, box);
2911 text::add_space_to_layout_box(ws, layout, box);
2912 text::add_to_layout_box(ws, layout, box, ws.world.region_get_name(trigger::payload(tval[1]).reg_id));
2913 text::close_layout_box(layout, box);
2914}
2916 auto box = text::open_layout_box(layout, indentation);
2917 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2918 display_with_comparison(tval[0], text::produce_simple_string(ws, "located_in"), ws, layout, box);
2919 text::add_space_to_layout_box(ws, layout, box);
2920 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).state_id);
2921 text::close_layout_box(layout, box);
2922}
2924 auto box = text::open_layout_box(layout, indentation);
2925 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2926 display_with_comparison(tval[0], text::produce_simple_string(ws, "located_in"), ws, layout, box);
2927 text::add_space_to_layout_box(ws, layout, box);
2928 text::add_to_layout_box(ws, layout, box, ws.world.region_get_name(trigger::payload(tval[1]).reg_id));
2929 text::close_layout_box(layout, box);
2930}
2932 auto box = text::open_layout_box(layout, indentation);
2933 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2934 display_with_comparison(tval[0], trigger::payload(tval[1]).tag_id, ws, layout, box);
2935 text::close_layout_box(layout, box);
2936}
2938 auto box = text::open_layout_box(layout, indentation);
2939 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2940 if(this_slot != -1)
2941 display_with_comparison(tval[0], trigger::to_nation(this_slot), ws, layout, box);
2942 else
2943 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
2944 text::close_layout_box(layout, box);
2945}
2947 auto box = text::open_layout_box(layout, indentation);
2948 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2949 if(this_slot != -1)
2950 display_with_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)), ws,
2951 layout, box);
2952 else
2953 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
2954 text::close_layout_box(layout, box);
2955}
2957 auto box = text::open_layout_box(layout, indentation);
2958 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2959 if(from_slot != -1)
2960 display_with_comparison(tval[0], trigger::to_nation(from_slot), ws, layout, box);
2961 else
2962 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"), ws, layout, box);
2963 text::close_layout_box(layout, box);
2964}
2966 auto box = text::open_layout_box(layout, indentation);
2967 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2968 if(from_slot != -1)
2969 display_with_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(from_slot)), ws,
2970 layout, box);
2971 else
2972 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"), ws, layout, box);
2973 text::close_layout_box(layout, box);
2974}
2976 auto box = text::open_layout_box(layout, indentation);
2977 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2978 display_with_comparison(tval[0], text::produce_simple_string(ws, "owner"), trigger::payload(tval[1]).tag_id, ws, layout, box);
2979 text::close_layout_box(layout, box);
2980}
2982 auto box = text::open_layout_box(layout, indentation);
2983 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2984 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_border_with"), ws, layout, box);
2985 text::add_space_to_layout_box(ws, layout, box);
2986 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
2987 text::close_layout_box(layout, box);
2988}
2990 auto box = text::open_layout_box(layout, indentation);
2991 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
2992 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_border_with"), ws, layout, box);
2993 text::add_space_to_layout_box(ws, layout, box);
2994 if(this_slot != -1)
2995 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
2996 else
2997 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
2998 text::close_layout_box(layout, box);
2999}
3001 auto box = text::open_layout_box(layout, indentation);
3002 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3003 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_border_with"), ws, layout, box);
3004 text::add_space_to_layout_box(ws, layout, box);
3005 if(from_slot != -1)
3006 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
3007 else
3008 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
3009 text::close_layout_box(layout, box);
3010}
3012 auto box = text::open_layout_box(layout, indentation);
3013 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3014 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_border_with"), ws, layout, box);
3015 text::add_space_to_layout_box(ws, layout, box);
3016 if(this_slot != -1)
3017 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
3018 else
3019 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3020 text::close_layout_box(layout, box);
3021}
3023 auto box = text::open_layout_box(layout, indentation);
3024 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3025 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_border_with"), ws, layout, box);
3026 text::add_space_to_layout_box(ws, layout, box);
3027 if(from_slot != -1)
3028 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(from_slot)));
3029 else
3030 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
3031 text::close_layout_box(layout, box);
3032}
3033
3035 auto box = text::open_layout_box(layout, indentation);
3036 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3037 if(from_slot != -1)
3038 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
3039 else
3040 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
3041 text::add_space_to_layout_box(ws, layout, box);
3042 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_state"), int64_t(tval[1]), ws, layout, box);
3043 text::close_layout_box(layout, box);
3044}
3046 auto box = text::open_layout_box(layout, indentation);
3047 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3048 if(this_slot != -1)
3049 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
3050 else
3051 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3052 text::add_space_to_layout_box(ws, layout, box);
3053 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_state"), int64_t(tval[1]), ws, layout, box);
3054 text::close_layout_box(layout, box);
3055}
3057 auto box = text::open_layout_box(layout, indentation);
3058 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3059 if(this_slot != -1)
3060 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
3061 else
3062 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3063 text::add_space_to_layout_box(ws, layout, box);
3064 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_state"), int64_t(tval[1]), ws, layout, box);
3065 text::close_layout_box(layout, box);
3066}
3068 auto box = text::open_layout_box(layout, indentation);
3069 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3070 if(this_slot != -1)
3071 text::add_to_layout_box(ws, layout, box,
3072 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
3073 else
3074 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3075 text::add_space_to_layout_box(ws, layout, box);
3076 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_state"), int64_t(tval[1]), ws, layout, box);
3077 text::close_layout_box(layout, box);
3078}
3080 auto box = text::open_layout_box(layout, indentation);
3081 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3082 if(this_slot != -1)
3083 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
3084 else
3085 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3086 text::add_space_to_layout_box(ws, layout, box);
3087 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_state"), int64_t(tval[1]), ws, layout, box);
3088 text::close_layout_box(layout, box);
3089}
3091 auto box = text::open_layout_box(layout, indentation);
3092 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3093 text::add_to_layout_box(ws, layout, box, ws.world.national_identity_get_nation_from_identity_holder(trigger::payload(tval[1]).tag_id));
3094 text::add_space_to_layout_box(ws, layout, box);
3095 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_state"), ws, layout, box);
3096 text::close_layout_box(layout, box);
3097}
3098
3100 auto box = text::open_layout_box(layout, indentation);
3101 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3102 display_with_comparison(tval[0], text::produce_simple_string(ws, "units_in_province"), int64_t(tval[1]), ws, layout, box);
3103 text::close_layout_box(layout, box);
3104}
3106 auto box = text::open_layout_box(layout, indentation);
3107 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3108 text::add_to_layout_box(ws, layout, box, ws.world.national_identity_get_nation_from_identity_holder(trigger::payload(tval[1]).tag_id));
3109 text::add_space_to_layout_box(ws, layout, box);
3110 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_province"), ws, layout, box);
3111 text::close_layout_box(layout, box);
3112}
3114 auto box = text::open_layout_box(layout, indentation);
3115 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3116 if(from_slot != -1)
3117 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
3118 else
3119 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
3120 text::add_space_to_layout_box(ws, layout, box);
3121 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_province"), int64_t(tval[1]), ws, layout, box);
3122 text::close_layout_box(layout, box);
3123}
3125 auto box = text::open_layout_box(layout, indentation);
3126 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3127 if(this_slot != -1)
3128 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
3129 else
3130 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3131 text::add_space_to_layout_box(ws, layout, box);
3132 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_province"), int64_t(tval[1]), ws, layout, box);
3133 text::close_layout_box(layout, box);
3134}
3136 auto box = text::open_layout_box(layout, indentation);
3137 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3138 if(this_slot != -1)
3139 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
3140 else
3141 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3142 text::add_space_to_layout_box(ws, layout, box);
3143 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_province"), int64_t(tval[1]), ws, layout, box);
3144 text::close_layout_box(layout, box);
3145}
3147 auto box = text::open_layout_box(layout, indentation);
3148 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3149 if(this_slot != -1)
3150 text::add_to_layout_box(ws, layout, box,
3151 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
3152 else
3153 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3154 text::add_space_to_layout_box(ws, layout, box);
3155 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_province"), int64_t(tval[1]), ws, layout, box);
3156 text::close_layout_box(layout, box);
3157}
3159 auto box = text::open_layout_box(layout, indentation);
3160 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3161 if(this_slot != -1)
3162 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
3163 else
3164 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3165 text::add_space_to_layout_box(ws, layout, box);
3166 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "units_in_the_province"), int64_t(tval[1]), ws, layout, box);
3167 text::close_layout_box(layout, box);
3168}
3170 auto box = text::open_layout_box(layout, indentation);
3171 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3172 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war_against"), ws, layout, box);
3173 text::add_space_to_layout_box(ws, layout, box);
3174 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
3175 text::close_layout_box(layout, box);
3176}
3178 auto box = text::open_layout_box(layout, indentation);
3179 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3180 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war_against"), ws, layout, box);
3181 text::add_space_to_layout_box(ws, layout, box);
3182 if(from_slot != -1)
3183 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
3184 else
3185 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
3186 text::close_layout_box(layout, box);
3187}
3189 auto box = text::open_layout_box(layout, indentation);
3190 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3191 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war_against"), ws, layout, box);
3192 text::add_space_to_layout_box(ws, layout, box);
3193 if(this_slot != -1)
3194 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
3195 else
3196 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3197 text::close_layout_box(layout, box);
3198}
3200 auto box = text::open_layout_box(layout, indentation);
3201 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3202 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war_against"), ws, layout, box);
3203 text::add_space_to_layout_box(ws, layout, box);
3204 if(this_slot != -1)
3205 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
3206 else
3207 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3208 text::close_layout_box(layout, box);
3209}
3211 auto box = text::open_layout_box(layout, indentation);
3212 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3213 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war_against"), ws, layout, box);
3214 text::add_space_to_layout_box(ws, layout, box);
3215 if(this_slot != -1)
3216 text::add_to_layout_box(ws, layout, box,
3217 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
3218 else
3219 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3220 text::close_layout_box(layout, box);
3221}
3223 auto box = text::open_layout_box(layout, indentation);
3224 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3225 display_with_comparison(tval[0], text::produce_simple_string(ws, "at_war_against"), ws, layout, box);
3226 text::add_space_to_layout_box(ws, layout, box);
3227 if(this_slot != -1)
3228 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
3229 else
3230 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3231 text::close_layout_box(layout, box);
3232}
3234 auto box = text::open_layout_box(layout, indentation);
3235 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3236 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "an_ongoing_battle"), ws, layout, box);
3237 text::close_layout_box(layout, box);
3238}
3240 auto box = text::open_layout_box(layout, indentation);
3241 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3242 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "an_assigned_leader"), ws, layout, box);
3243 text::close_layout_box(layout, box);
3244}
3246 auto box = text::open_layout_box(layout, indentation);
3247 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3248 display_with_comparison(tval[0], text::produce_simple_string(ws, "has_national_focus"),
3249 text::produce_simple_string(ws, ws.world.national_focus_get_name(trigger::payload(tval[1]).nf_id)), ws, layout, box);
3250 text::close_layout_box(layout, box);
3251}
3253 auto box = text::open_layout_box(layout, indentation);
3254 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3255 display_with_comparison(tval[0], text::produce_simple_string(ws, "has_national_focus"),
3256 text::produce_simple_string(ws, ws.world.national_focus_get_name(trigger::payload(tval[1]).nf_id)), ws, layout, box);
3257 text::close_layout_box(layout, box);
3258}
3260 auto box = text::open_layout_box(layout, indentation);
3261 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3262 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_of_divisions"), int64_t(tval[1]), ws, layout, box);
3263 text::close_layout_box(layout, box);
3264}
3266 auto box = text::open_layout_box(layout, indentation);
3267 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3269 text::fp_currency{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3270 text::close_layout_box(layout, box);
3271}
3273 auto box = text::open_layout_box(layout, indentation);
3274 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3275 display_with_comparison(tval[0], text::produce_simple_string(ws, "o_treasury"),
3276 text::fp_currency{ trigger::read_float_from_payload(tval + 1) }, ws, layout, box);
3277 text::close_layout_box(layout, box);
3278}
3280 auto box = text::open_layout_box(layout, indentation);
3281 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3282 display_with_comparison(tval[0], text::produce_simple_string(ws, "percentage_unowned_cores"),
3283 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3284 text::close_layout_box(layout, box);
3285}
3287 auto box = text::open_layout_box(layout, indentation);
3288 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3289 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal"), ws, layout, box);
3290 text::close_layout_box(layout, box);
3291}
3293 auto box = text::open_layout_box(layout, indentation);
3294 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3295 display_with_comparison(tval[0], text::produce_simple_string(ws, "ruling_party_ideology"),
3296 text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id)), ws, layout, box);
3297 text::close_layout_box(layout, box);
3298}
3300 auto box = text::open_layout_box(layout, indentation);
3301 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3302 display_with_comparison(tval[0], text::produce_simple_string(ws, "ruling_party"),
3303 text::produce_simple_string(ws, ws.world.political_party_get_name(trigger::payload(tval[1]).par_id)), ws, layout, box);
3304 text::close_layout_box(layout, box);
3305}
3307 auto box = text::open_layout_box(layout, indentation);
3308 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3309 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id)),
3310 text::produce_simple_string(ws, "enabled"), ws, layout, box);
3311 text::close_layout_box(layout, box);
3312}
3314 auto box = text::open_layout_box(layout, indentation);
3315 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3316 display_with_comparison(tval[0], text::produce_simple_string(ws, "political_reform_desire"),
3317 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3318 text::close_layout_box(layout, box);
3319}
3321 auto box = text::open_layout_box(layout, indentation);
3322 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3323 display_with_comparison(tval[0], text::produce_simple_string(ws, "political_reform_desire"),
3324 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3325 text::close_layout_box(layout, box);
3326}
3328 auto box = text::open_layout_box(layout, indentation);
3329 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3330 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_reform_desire"),
3331 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3332 text::close_layout_box(layout, box);
3333}
3335 auto box = text::open_layout_box(layout, indentation);
3336 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3337 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_reform_desire"),
3338 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3339 text::close_layout_box(layout, box);
3340}
3342 auto box = text::open_layout_box(layout, indentation);
3343 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3344 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_of_ships"), int64_t(tval[1]), ws, layout, box);
3345 text::close_layout_box(layout, box);
3346}
3348 auto box = text::open_layout_box(layout, indentation);
3349 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3350 display_with_comparison(tval[0], text::produce_simple_string(ws, "plurality"),
3351 text::fp_percentage{trigger::read_float_from_payload(tval + 1) / 10000.0f}, ws, layout, box);
3352 text::close_layout_box(layout, box);
3353}
3355 auto box = text::open_layout_box(layout, indentation);
3356 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3357 display_with_comparison(tval[0], text::produce_simple_string(ws, "plurality_pop"),
3358 text::fp_percentage{ trigger::read_float_from_payload(tval + 1) / 10000.0f }, ws, layout, box);
3359 text::close_layout_box(layout, box);
3360}
3362 auto box = text::open_layout_box(layout, indentation);
3363 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3364 display_with_comparison(tval[0], text::produce_simple_string(ws, "crime_percent"),
3365 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3366 text::close_layout_box(layout, box);
3367}
3369 auto box = text::open_layout_box(layout, indentation);
3370 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3371 display_with_comparison(tval[0], text::produce_simple_string(ws, "member_of_nat_religion"), ws, layout, box);
3372 text::close_layout_box(layout, box);
3373}
3375 auto box = text::open_layout_box(layout, indentation);
3376 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3377 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
3378 text::produce_simple_string(ws, "dominant_religion"), ws, layout, box);
3379 text::close_layout_box(layout, box);
3380}
3382 auto box = text::open_layout_box(layout, indentation);
3383 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3384 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
3385 text::produce_simple_string(ws, "dominant_religion"), ws, layout, box);
3386 text::close_layout_box(layout, box);
3387}
3389 auto box = text::open_layout_box(layout, indentation);
3390 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3392 text::produce_simple_string(ws, "owner_primary_culture"), ws, layout, box);
3393 text::close_layout_box(layout, box);
3394}
3396 auto box = text::open_layout_box(layout, indentation);
3397 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3398 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3399 text::produce_simple_string(ws, "owner_primary_culture"), ws, layout, box);
3400 text::close_layout_box(layout, box);
3401}
3403 auto box = text::open_layout_box(layout, indentation);
3404 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3405 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3406 text::produce_simple_string(ws, "owner_primary_culture"), ws, layout, box);
3407 text::close_layout_box(layout, box);
3408}
3410 auto box = text::open_layout_box(layout, indentation);
3411 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3412 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3413 text::produce_simple_string(ws, "this_pop_culture"), ws, layout, box);
3414 text::close_layout_box(layout, box);
3415}
3417 auto box = text::open_layout_box(layout, indentation);
3418 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3419 if(this_slot != -1)
3420 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3422 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))),
3423 ws, layout, box);
3424 else
3425 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3426 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3427 text::close_layout_box(layout, box);
3428}
3430 auto box = text::open_layout_box(layout, indentation);
3431 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3432 if(this_slot != -1)
3433 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3435 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3436 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
3437 ws, layout, box);
3438 else
3439 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3440 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3441 text::close_layout_box(layout, box);
3442}
3444 auto box = text::open_layout_box(layout, indentation);
3445 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3446 if(this_slot != -1)
3447 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3448 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3449 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3450 ws, layout, box);
3451 else
3452 display_with_comparison(tval[0], text::produce_simple_string(ws, "primary_culture"),
3453 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3454 text::close_layout_box(layout, box);
3455}
3457 auto box = text::open_layout_box(layout, indentation);
3458 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3459 if(this_slot != -1)
3460 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3462 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))),
3463 ws, layout, box);
3464 else
3465 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3466 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3467 text::close_layout_box(layout, box);
3468}
3470 auto box = text::open_layout_box(layout, indentation);
3471 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3472 if(this_slot != -1)
3473 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3474 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3475 nations::owner_of_pop(ws, trigger::to_pop(this_slot))))),
3476 ws, layout, box);
3477 else
3478 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3479 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3480 text::close_layout_box(layout, box);
3481}
3483 auto box = text::open_layout_box(layout, indentation);
3484 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3485 if(this_slot != -1)
3486 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3488 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3489 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
3490 ws, layout, box);
3491 else
3492 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3493 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3494 text::close_layout_box(layout, box);
3495}
3497 auto box = text::open_layout_box(layout, indentation);
3498 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3499 if(this_slot != -1)
3500 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3501 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3502 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3503 ws, layout, box);
3504 else
3505 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3506 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3507 text::close_layout_box(layout, box);
3508}
3510 auto box = text::open_layout_box(layout, indentation);
3511 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3512 if(this_slot != -1)
3513 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3515 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))),
3516 ws, layout, box);
3517 else
3518 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3519 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3520 text::close_layout_box(layout, box);
3521}
3523 auto box = text::open_layout_box(layout, indentation);
3524 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3525 if(this_slot != -1)
3526 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3527 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3528 nations::owner_of_pop(ws, trigger::to_pop(this_slot))))),
3529 ws, layout, box);
3530 else
3531 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3532 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3533 text::close_layout_box(layout, box);
3534}
3536 auto box = text::open_layout_box(layout, indentation);
3537 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3538 if(this_slot != -1)
3539 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3541 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3542 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
3543 ws, layout, box);
3544 else
3545 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3546 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3547 text::close_layout_box(layout, box);
3548}
3550 auto box = text::open_layout_box(layout, indentation);
3551 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3552 if(this_slot != -1)
3553 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3554 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3555 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3556 ws, layout, box);
3557 else
3558 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3559 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3560 text::close_layout_box(layout, box);
3561}
3563 auto box = text::open_layout_box(layout, indentation);
3564 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3565 if(this_slot != -1)
3568 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))),
3569 ws, layout, box);
3570 else
3572 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3573 text::close_layout_box(layout, box);
3574}
3576 auto box = text::open_layout_box(layout, indentation);
3577 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3578 if(this_slot != -1)
3580 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3581 nations::owner_of_pop(ws, trigger::to_pop(this_slot))))),
3582 ws, layout, box);
3583 else
3585 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3586 text::close_layout_box(layout, box);
3587}
3589 auto box = text::open_layout_box(layout, indentation);
3590 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3591 if(this_slot != -1)
3594 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3595 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
3596 ws, layout, box);
3597 else
3599 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3600 text::close_layout_box(layout, box);
3601}
3603 auto box = text::open_layout_box(layout, indentation);
3604 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3605 if(this_slot != -1)
3607 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3608 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3609 ws, layout, box);
3610 else
3612 text::produce_simple_string(ws, "this_nation_primary_culture"), ws, layout, box);
3613 text::close_layout_box(layout, box);
3614}
3615
3616
3618 auto box = text::open_layout_box(layout, indentation);
3619 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3620 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_pop_culture"),
3621 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3622 text::close_layout_box(layout, box);
3623}
3625 auto box = text::open_layout_box(layout, indentation);
3626 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3627 if(this_slot != -1)
3629 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))), text::produce_simple_string(ws, "an_accepted_culture"),
3630 ws, layout, box);
3631 else
3632 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3633 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3634 text::close_layout_box(layout, box);
3635}
3637 auto box = text::open_layout_box(layout, indentation);
3638 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3639 if(this_slot != -1)
3641 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3642 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))), text::produce_simple_string(ws, "an_accepted_culture"),
3643 ws, layout, box);
3644 else
3645 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3646 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3647 text::close_layout_box(layout, box);
3648}
3650 auto box = text::open_layout_box(layout, indentation);
3651 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3652 if(this_slot != -1)
3653 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3654 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3655 text::produce_simple_string(ws, "an_accepted_culture"),
3656 ws, layout, box);
3657 else
3658 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3659 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3660 text::close_layout_box(layout, box);
3661}
3663 auto box = text::open_layout_box(layout, indentation);
3664 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3665 if(this_slot != -1)
3667 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))),
3668 text::produce_simple_string(ws, "an_accepted_culture"),
3669 ws, layout, box);
3670 else
3671 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3672 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3673 text::close_layout_box(layout, box);
3674}
3676 auto box = text::open_layout_box(layout, indentation);
3677 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3678 if(this_slot != -1)
3679 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3680 nations::owner_of_pop(ws, trigger::to_pop(this_slot))))),
3681 text::produce_simple_string(ws, "this_nation_primary_culture"),
3682 ws, layout, box);
3683 else
3684 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3685 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3686 text::close_layout_box(layout, box);
3687}
3689 auto box = text::open_layout_box(layout, indentation);
3690 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3691 if(this_slot != -1)
3693 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3694 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
3695 text::produce_simple_string(ws, "an_accepted_culture"),
3696 ws, layout, box);
3697 else
3698 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3699 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3700 text::close_layout_box(layout, box);
3701}
3703 auto box = text::open_layout_box(layout, indentation);
3704 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3705 if(this_slot != -1)
3706 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3707 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3708 text::produce_simple_string(ws, "an_accepted_culture"),
3709 ws, layout, box);
3710 else
3711 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3712 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3713 text::close_layout_box(layout, box);
3714}
3716 auto box = text::open_layout_box(layout, indentation);
3717 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3718 if(this_slot != -1)
3720 ws.world.culture_get_name(ws.world.nation_get_primary_culture(trigger::to_nation(this_slot)))),
3721 text::produce_simple_string(ws, "an_accepted_culture"),
3722 ws, layout, box);
3723 else
3724 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3725 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3726 text::close_layout_box(layout, box);
3727}
3729 auto box = text::open_layout_box(layout, indentation);
3730 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3731 if(this_slot != -1)
3732 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3733 nations::owner_of_pop(ws, trigger::to_pop(this_slot))))),
3734 text::produce_simple_string(ws, "an_accepted_culture"),
3735 ws, layout, box);
3736 else
3737 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3738 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3739 text::close_layout_box(layout, box);
3740}
3742 auto box = text::open_layout_box(layout, indentation);
3743 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3744 if(this_slot != -1)
3746 ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3747 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
3748 text::produce_simple_string(ws, "an_accepted_culture"),
3749 ws, layout, box);
3750 else
3751 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3752 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3753 text::close_layout_box(layout, box);
3754}
3756 auto box = text::open_layout_box(layout, indentation);
3757 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3758 if(this_slot != -1)
3759 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.nation_get_primary_culture(
3760 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
3761 text::produce_simple_string(ws, "an_accepted_culture"),
3762 ws, layout, box);
3763 else
3764 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation_primary_culture"),
3765 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3766 text::close_layout_box(layout, box);
3767}
3769 auto box = text::open_layout_box(layout, indentation);
3770 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3771
3772 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_pop_culture"),
3773 text::produce_simple_string(ws, "this_nation_accepted_culture"),
3774 ws, layout, box);
3775
3776 text::close_layout_box(layout, box);
3777}
3779 auto box = text::open_layout_box(layout, indentation);
3780 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3781
3782 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_pop_culture"),
3783 text::produce_simple_string(ws, "this_nation_accepted_culture"),
3784 ws, layout, box);
3785
3786 text::close_layout_box(layout, box);
3787}
3789 auto box = text::open_layout_box(layout, indentation);
3790 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3791
3792 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_pop_culture"),
3793 text::produce_simple_string(ws, "this_nation_accepted_culture"),
3794 ws, layout, box);
3795
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
3802 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_pop_culture"),
3803 text::produce_simple_string(ws, "this_nation_accepted_culture"),
3804 ws, layout, box);
3805
3806 text::close_layout_box(layout, box);
3807}
3808
3810 auto box = text::open_layout_box(layout, indentation);
3811 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3812 display_with_comparison(tval[0], text::produce_simple_string(ws, "culture"), text::produce_simple_string(ws, "an_accepted_culture"), ws,
3813 layout, box);
3814 text::close_layout_box(layout, box);
3815}
3817 auto box = text::open_layout_box(layout, indentation);
3818 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3819 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3820 text::produce_simple_string(ws, "an_accepted_culture"), ws, layout, box);
3821 text::close_layout_box(layout, box);
3822}
3824 auto box = text::open_layout_box(layout, indentation);
3825 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3826 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
3827 text::produce_simple_string(ws, "an_accepted"), ws, layout, box);
3828 text::close_layout_box(layout, box);
3829}
3831 auto box = text::open_layout_box(layout, indentation);
3832 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3833 display_with_comparison(tval[0], text::produce_simple_string(ws, "coastal"), ws, layout, box);
3834 text::close_layout_box(layout, box);
3835}
3837 auto box = text::open_layout_box(layout, indentation);
3838 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3839 display_with_comparison(tval[0], text::produce_simple_string(ws, "coastal"), ws, layout, box);
3840 text::close_layout_box(layout, box);
3841}
3843 auto box = text::open_layout_box(layout, indentation);
3844 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3845 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere_of"), ws, layout, box);
3846 text::add_space_to_layout_box(ws, layout, box);
3847 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
3848 text::close_layout_box(layout, box);
3849}
3851 auto box = text::open_layout_box(layout, indentation);
3852 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3853 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere_of"), ws, layout, box);
3854 text::add_space_to_layout_box(ws, layout, box);
3855 if(from_slot != -1)
3856 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
3857 else
3858 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
3859 text::close_layout_box(layout, box);
3860}
3862 auto box = text::open_layout_box(layout, indentation);
3863 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3864 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere_of"), ws, layout, box);
3865 text::add_space_to_layout_box(ws, layout, box);
3866 if(this_slot != -1)
3867 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
3868 else
3869 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3870 text::close_layout_box(layout, box);
3871}
3873 auto box = text::open_layout_box(layout, indentation);
3874 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3875 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere_of"), ws, layout, box);
3876 text::add_space_to_layout_box(ws, layout, box);
3877 if(this_slot != -1)
3878 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
3879 else
3880 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3881 text::close_layout_box(layout, box);
3882}
3884 auto box = text::open_layout_box(layout, indentation);
3885 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3886 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere_of"), ws, layout, box);
3887 text::add_space_to_layout_box(ws, layout, box);
3888 if(this_slot != -1)
3889 text::add_to_layout_box(ws, layout, box,
3890 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
3891 else
3892 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3893 text::close_layout_box(layout, box);
3894}
3896 auto box = text::open_layout_box(layout, indentation);
3897 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3898 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere_of"), ws, layout, box);
3899 text::add_space_to_layout_box(ws, layout, box);
3900 if(this_slot != -1)
3901 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
3902 else
3903 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
3904 text::close_layout_box(layout, box);
3905}
3907 auto box = text::open_layout_box(layout, indentation);
3908 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3909 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_producer_of"), ws, layout, box);
3910 text::add_space_to_layout_box(ws, layout, box);
3911 text::add_to_layout_box(ws, layout, box, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id));
3912 text::close_layout_box(layout, box);
3913}
3915 auto box = text::open_layout_box(layout, indentation);
3916 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3917 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_producer_of"), ws, layout, box);
3918 text::add_space_to_layout_box(ws, layout, box);
3919 text::add_to_layout_box(ws, layout, box, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id));
3920 text::close_layout_box(layout, box);
3921}
3923 auto box = text::open_layout_box(layout, indentation);
3924 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3925 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_producer_of"), ws, layout, box);
3926 text::add_space_to_layout_box(ws, layout, box);
3927 text::add_to_layout_box(ws, layout, box, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id));
3928 text::close_layout_box(layout, box);
3929}
3930
3932 auto box = text::open_layout_box(layout, indentation);
3933 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3934 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_producer_of"), ws, layout, box);
3935 text::add_space_to_layout_box(ws, layout, box);
3936 text::add_to_layout_box(ws, layout, box, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id));
3937 text::close_layout_box(layout, box);
3938}
3940 auto box = text::open_layout_box(layout, indentation);
3941 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3942 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
3943 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3944 text::close_layout_box(layout, box);
3945}
3947 auto box = text::open_layout_box(layout, indentation);
3948 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3949 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
3950 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3951 text::close_layout_box(layout, box);
3952}
3954 auto box = text::open_layout_box(layout, indentation);
3955 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3956 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
3957 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3958 text::close_layout_box(layout, box);
3959}
3961 auto box = text::open_layout_box(layout, indentation);
3962 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3963 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
3964 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3965 text::close_layout_box(layout, box);
3966}
3968 auto box = text::open_layout_box(layout, indentation);
3969 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3970 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
3971 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3972 text::close_layout_box(layout, box);
3973}
3975 auto box = text::open_layout_box(layout, indentation);
3976 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3977 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
3978 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
3979 text::close_layout_box(layout, box);
3980}
3982 auto box = text::open_layout_box(layout, indentation);
3983 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3984 display_with_comparison(tval[0], text::produce_simple_string(ws, "next_reform"),
3985 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id)), ws, layout, box);
3986 text::close_layout_box(layout, box);
3987}
3989 auto box = text::open_layout_box(layout, indentation);
3990 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3991 display_with_comparison(tval[0], text::produce_simple_string(ws, "next_reform"),
3992 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id)), ws, layout, box);
3993 text::close_layout_box(layout, box);
3994}
3996 auto box = text::open_layout_box(layout, indentation);
3997 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
3998 display_with_comparison(tval[0], text::produce_simple_string(ws, "next_reform"),
3999 text::produce_simple_string(ws, ws.world.reform_option_get_name(trigger::payload(tval[1]).ropt_id)), ws, layout, box);
4000 text::close_layout_box(layout, box);
4001}
4003 auto box = text::open_layout_box(layout, indentation);
4004 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4005 display_with_comparison(tval[0], text::produce_simple_string(ws, "next_reform"),
4006 text::produce_simple_string(ws, ws.world.reform_option_get_name(trigger::payload(tval[1]).ropt_id)), ws, layout, box);
4007 text::close_layout_box(layout, box);
4008}
4010 auto box = text::open_layout_box(layout, indentation);
4011 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4012 text::add_to_layout_box(ws, layout, box,
4013 text::produce_simple_string(ws, (tval[0] & trigger::association_mask) == trigger::association_eq ? "never" : "always"));
4014 text::close_layout_box(layout, box);
4015}
4017 auto box = text::open_layout_box(layout, indentation);
4018 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4019 display_with_comparison(tval[0], text::produce_simple_string(ws, "percentage_recruited"),
4020 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
4021 text::close_layout_box(layout, box);
4022}
4024 auto box = text::open_layout_box(layout, indentation);
4025 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4026 display_with_comparison(tval[0], text::produce_simple_string(ws, "percentage_recruited"),
4027 text::fp_percentage{trigger::read_float_from_payload(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, "in_cultural_core_prov"), 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, "in_cultural_core_prov"), 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, "nationalism"), int64_t(tval[1]), 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, "overseas"), ws, layout, box);
4052 text::close_layout_box(layout, box);
4053}
4055 auto box = text::open_layout_box(layout, indentation);
4056 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4057 display_with_comparison(tval[0], text::produce_simple_string(ws, "overseas_pop"), ws, layout, box);
4058 text::close_layout_box(layout, box);
4059}
4061 auto box = text::open_layout_box(layout, indentation);
4062 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4063 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by_rebel"), ws, layout, box);
4064 text::close_layout_box(layout, box);
4065}
4067 auto box = text::open_layout_box(layout, indentation);
4068 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4069 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4070 text::add_space_to_layout_box(ws, layout, box);
4071 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4072 text::close_layout_box(layout, box);
4073}
4075 auto box = text::open_layout_box(layout, indentation);
4076 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4077 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4078 text::add_space_to_layout_box(ws, layout, box);
4079 if(from_slot != -1)
4080 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4081 else
4082 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4083 text::close_layout_box(layout, box);
4084}
4086 auto box = text::open_layout_box(layout, indentation);
4087 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4088 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4089 text::add_space_to_layout_box(ws, layout, box);
4090 if(this_slot != -1)
4091 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4092 else
4093 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4094 text::close_layout_box(layout, box);
4095}
4097 auto box = text::open_layout_box(layout, indentation);
4098 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4099 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4100 text::add_space_to_layout_box(ws, layout, box);
4101 if(this_slot != -1)
4102 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4103 else
4104 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4105 text::close_layout_box(layout, box);
4106}
4108 auto box = text::open_layout_box(layout, indentation);
4109 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4110 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4111 text::add_space_to_layout_box(ws, layout, box);
4112 if(this_slot != -1)
4113 text::add_to_layout_box(ws, layout, box,
4114 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4115 else
4116 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4117 text::close_layout_box(layout, box);
4118}
4120 auto box = text::open_layout_box(layout, indentation);
4121 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4122 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4123 text::add_space_to_layout_box(ws, layout, box);
4124 if(this_slot != -1)
4125 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4126 else
4127 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4128 text::close_layout_box(layout, box);
4129}
4131 auto box = text::open_layout_box(layout, indentation);
4132 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4133 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by"), ws, layout, box);
4134 text::add_space_to_layout_box(ws, layout, box);
4135 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "owner"));
4136 text::close_layout_box(layout, box);
4137}
4139 auto box = text::open_layout_box(layout, indentation);
4140 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4141 display_with_comparison(tval[0], text::produce_simple_string(ws, "controlled_by_rebel"), ws, layout, box);
4142 text::close_layout_box(layout, box);
4143}
4145 auto box = text::open_layout_box(layout, indentation);
4146 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4147 display_with_comparison(tval[0], text::produce_simple_string(ws, std::string("canal_") + std::to_string(tval[1])),
4148 text::produce_simple_string(ws, "enabled"), ws, layout, box);
4149 text::close_layout_box(layout, box);
4150}
4152 auto box = text::open_layout_box(layout, indentation);
4153 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4154 display_with_comparison(tval[0], text::produce_simple_string(ws, "loc_state_capital"), ws, layout, box);
4155 text::close_layout_box(layout, box);
4156}
4158 auto box = text::open_layout_box(layout, indentation);
4159 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4160 display_with_comparison(tval[0], text::produce_simple_string(ws, "state_capital"), ws, layout, box);
4161 text::close_layout_box(layout, box);
4162}
4164 auto box = text::open_layout_box(layout, indentation);
4165 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4166 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_truce_with"), ws, layout, box);
4167 text::add_space_to_layout_box(ws, layout, box);
4168 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4169 text::close_layout_box(layout, box);
4170}
4172 auto box = text::open_layout_box(layout, indentation);
4173 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4174 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_truce_with"), ws, layout, box);
4175 text::add_space_to_layout_box(ws, layout, box);
4176 if(from_slot != -1)
4177 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4178 else
4179 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4180 text::close_layout_box(layout, box);
4181}
4183 auto box = text::open_layout_box(layout, indentation);
4184 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4185 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_truce_with"), ws, layout, box);
4186 text::add_space_to_layout_box(ws, layout, box);
4187 if(this_slot != -1)
4188 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4189 else
4190 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4191 text::close_layout_box(layout, box);
4192}
4194 auto box = text::open_layout_box(layout, indentation);
4195 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4196 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_truce_with"), ws, layout, box);
4197 text::add_space_to_layout_box(ws, layout, box);
4198 if(this_slot != -1)
4199 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4200 else
4201 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4202 text::close_layout_box(layout, box);
4203}
4205 auto box = text::open_layout_box(layout, indentation);
4206 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4207 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_truce_with"), ws, layout, box);
4208 text::add_space_to_layout_box(ws, layout, box);
4209 if(this_slot != -1)
4210 text::add_to_layout_box(ws, layout, box,
4211 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4212 else
4213 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
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_has_comparison(tval[0], text::produce_simple_string(ws, "a_truce_with"), ws, layout, box);
4220 text::add_space_to_layout_box(ws, layout, box);
4221 if(this_slot != -1)
4222 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4223 else
4224 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4225 text::close_layout_box(layout, box);
4226}
4228 auto box = text::open_layout_box(layout, indentation);
4229 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4230 display_with_comparison(tval[0], text::produce_simple_string(ws, "att_population"),
4231 int64_t(trigger::read_float_from_payload(tval + 1)), ws, layout, box);
4232 text::close_layout_box(layout, box);
4233}
4235 auto box = text::open_layout_box(layout, indentation);
4236 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4237 display_with_comparison(tval[0], text::produce_simple_string(ws, "att_population"),
4238 int64_t(trigger::read_float_from_payload(tval + 1)), ws, layout, box);
4239 text::close_layout_box(layout, box);
4240}
4242 auto box = text::open_layout_box(layout, indentation);
4243 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4244 display_with_comparison(tval[0], text::produce_simple_string(ws, "att_population"),
4245 int64_t(trigger::read_float_from_payload(tval + 1)), ws, layout, box);
4246 text::close_layout_box(layout, box);
4247}
4249 auto box = text::open_layout_box(layout, indentation);
4250 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4251 display_with_comparison(tval[0], text::produce_simple_string(ws, "att_population"),
4252 int64_t(trigger::read_float_from_payload(tval + 1)), ws, layout, box);
4253 text::close_layout_box(layout, box);
4254}
4256 auto box = text::open_layout_box(layout, indentation);
4257 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4258 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_of_type"), ws, layout, box);
4259 text::add_space_to_layout_box(ws, layout, box);
4260 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
4261 text::close_layout_box(layout, box);
4262}
4264 auto box = text::open_layout_box(layout, indentation);
4265 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4266 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_of_type"), ws, layout, box);
4267 text::add_space_to_layout_box(ws, layout, box);
4268 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
4269 text::close_layout_box(layout, box);
4270}
4272 auto box = text::open_layout_box(layout, indentation);
4273 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4274 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_of_type"), ws, layout, box);
4275 text::add_space_to_layout_box(ws, layout, box);
4276 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
4277 text::close_layout_box(layout, box);
4278}
4280 auto box = text::open_layout_box(layout, indentation);
4281 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4282 display_with_comparison(tval[0], text::produce_simple_string(ws, "of_type_plain"), ws, layout, box);
4283 text::add_space_to_layout_box(ws, layout, box);
4284 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
4285 text::close_layout_box(layout, box);
4286}
4288 auto box = text::open_layout_box(layout, indentation);
4289 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4290 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "an_empty_adj_prov"), ws, layout, box);
4291 text::close_layout_box(layout, box);
4292}
4294 auto box = text::open_layout_box(layout, indentation);
4295 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4296 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_leader_named"), ws, layout, box);
4297 text::add_space_to_layout_box(ws, layout, box);
4298 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)))));
4299 text::close_layout_box(layout, box);
4300}
4302 auto box = text::open_layout_box(layout, indentation);
4303 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4304 display_with_comparison(tval[0], text::produce_simple_string(ws, "ai_controlled"), ws, layout, box);
4305 text::close_layout_box(layout, box);
4306}
4308 auto box = text::open_layout_box(layout, indentation);
4309 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4310 display_with_comparison(tval[0], text::produce_simple_string(ws, "able_to_create_vassals"), ws, layout, box);
4311 text::close_layout_box(layout, box);
4312}
4314 auto box = text::open_layout_box(layout, indentation);
4315 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4316 display_with_comparison(tval[0], trigger::payload(tval[1]).tag_id, text::produce_simple_string(ws, "a_possible_vassal"), ws,
4317 layout, box);
4318 text::close_layout_box(layout, box);
4319}
4321 auto box = text::open_layout_box(layout, indentation);
4322 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4323 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.province_get_name(trigger::payload(tval[1]).prov_id)),
4324 ws, layout, box);
4325 text::close_layout_box(layout, box);
4326}
4328 auto box = text::open_layout_box(layout, indentation);
4329 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4330 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4331 text::add_space_to_layout_box(ws, layout, box);
4332 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4333 text::close_layout_box(layout, box);
4334}
4336 auto box = text::open_layout_box(layout, indentation);
4337 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4338 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4339 text::add_space_to_layout_box(ws, layout, box);
4340 if(from_slot != -1)
4341 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4342 else
4343 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4344 text::close_layout_box(layout, box);
4345}
4347 auto box = text::open_layout_box(layout, indentation);
4348 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4349 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4350 text::add_space_to_layout_box(ws, layout, box);
4351 if(this_slot != -1)
4352 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4353 else
4354 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4355 text::close_layout_box(layout, box);
4356}
4358 auto box = text::open_layout_box(layout, indentation);
4359 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4360 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4361 text::add_space_to_layout_box(ws, layout, box);
4362 if(this_slot != -1)
4363 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4364 else
4365 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4366 text::close_layout_box(layout, box);
4367}
4369 auto box = text::open_layout_box(layout, indentation);
4370 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4371 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4372 text::add_space_to_layout_box(ws, layout, box);
4373 if(this_slot != -1)
4374 text::add_to_layout_box(ws, layout, box,
4375 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4376 else
4377 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4378 text::close_layout_box(layout, box);
4379}
4381 auto box = text::open_layout_box(layout, indentation);
4382 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4383 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4384 text::add_space_to_layout_box(ws, layout, box);
4385 if(this_slot != -1)
4386 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4387 else
4388 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4389 text::close_layout_box(layout, box);
4390}
4391
4392
4394 auto box = text::open_layout_box(layout, indentation);
4395 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4396 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
4397 text::add_space_to_layout_box(ws, layout, box);
4398 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4399 text::add_space_to_layout_box(ws, layout, box);
4400 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4401 text::close_layout_box(layout, box);
4402}
4404 auto box = text::open_layout_box(layout, indentation);
4405 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4406 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
4407 text::add_space_to_layout_box(ws, layout, box);
4408 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4409 text::add_space_to_layout_box(ws, layout, box);
4410 if(from_slot != -1)
4411 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4412 else
4413 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4414 text::close_layout_box(layout, box);
4415}
4417 auto box = text::open_layout_box(layout, indentation);
4418 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4419 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
4420 text::add_space_to_layout_box(ws, layout, box);
4421 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4422 text::add_space_to_layout_box(ws, layout, box);
4423 if(this_slot != -1)
4424 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4425 else
4426 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4427 text::close_layout_box(layout, box);
4428}
4430 auto box = text::open_layout_box(layout, indentation);
4431 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4432 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
4433 text::add_space_to_layout_box(ws, layout, box);
4434 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4435 text::add_space_to_layout_box(ws, layout, box);
4436 if(this_slot != -1)
4437 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4438 else
4439 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4440 text::close_layout_box(layout, box);
4441}
4443 auto box = text::open_layout_box(layout, indentation);
4444 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4445 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
4446 text::add_space_to_layout_box(ws, layout, box);
4447 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4448 text::add_space_to_layout_box(ws, layout, box);
4449 if(this_slot != -1)
4450 text::add_to_layout_box(ws, layout, box,
4451 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4452 else
4453 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4454 text::close_layout_box(layout, box);
4455}
4457 auto box = text::open_layout_box(layout, indentation);
4458 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4459 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
4460 text::add_space_to_layout_box(ws, layout, box);
4461 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_vassal_of"), ws, layout, box);
4462 text::add_space_to_layout_box(ws, layout, box);
4463 if(this_slot != -1)
4464 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4465 else
4466 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4467 text::close_layout_box(layout, box);
4468}
4469
4471 auto box = text::open_layout_box(layout, indentation);
4472 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4473 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate_of"), ws, layout, box);
4474 text::add_space_to_layout_box(ws, layout, box);
4475 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4476 text::close_layout_box(layout, box);
4477}
4479 auto box = text::open_layout_box(layout, indentation);
4480 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4481 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate_of"), ws, layout, box);
4482 text::add_space_to_layout_box(ws, layout, box);
4483 if(from_slot != -1)
4484 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4485 else
4486 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4487 text::close_layout_box(layout, box);
4488}
4490 auto box = text::open_layout_box(layout, indentation);
4491 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4492 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate_of"), ws, layout, box);
4493 text::add_space_to_layout_box(ws, layout, box);
4494 if(this_slot != -1)
4495 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4496 else
4497 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4498 text::close_layout_box(layout, box);
4499}
4501 auto box = text::open_layout_box(layout, indentation);
4502 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4503 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate_of"), ws, layout, box);
4504 text::add_space_to_layout_box(ws, layout, box);
4505 if(this_slot != -1)
4506 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4507 else
4508 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4509 text::close_layout_box(layout, box);
4510}
4512 auto box = text::open_layout_box(layout, indentation);
4513 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4514 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate_of"), ws, layout, box);
4515 text::add_space_to_layout_box(ws, layout, box);
4516 if(this_slot != -1)
4517 text::add_to_layout_box(ws, layout, box,
4518 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4519 else
4520 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4521 text::close_layout_box(layout, box);
4522}
4524 auto box = text::open_layout_box(layout, indentation);
4525 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4526 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate_of"), ws, layout, box);
4527 text::add_space_to_layout_box(ws, layout, box);
4528 if(this_slot != -1)
4529 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4530 else
4531 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4532 text::close_layout_box(layout, box);
4533}
4535 auto box = text::open_layout_box(layout, indentation);
4536 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4537 display_with_comparison(tval[0], text::produce_simple_string(ws, "allied_to"), ws, layout, box);
4538 text::add_space_to_layout_box(ws, layout, box);
4539 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4540 text::close_layout_box(layout, box);
4541}
4543 auto box = text::open_layout_box(layout, indentation);
4544 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4545 display_with_comparison(tval[0], text::produce_simple_string(ws, "allied_to"), ws, layout, box);
4546 text::add_space_to_layout_box(ws, layout, box);
4547 if(from_slot != -1)
4548 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4549 else
4550 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4551 text::close_layout_box(layout, box);
4552}
4554 auto box = text::open_layout_box(layout, indentation);
4555 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4556 display_with_comparison(tval[0], text::produce_simple_string(ws, "allied_to"), ws, layout, box);
4557 text::add_space_to_layout_box(ws, layout, box);
4558 if(this_slot != -1)
4559 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4560 else
4561 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4562 text::close_layout_box(layout, box);
4563}
4565 auto box = text::open_layout_box(layout, indentation);
4566 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4567 display_with_comparison(tval[0], text::produce_simple_string(ws, "allied_to"), ws, layout, box);
4568 text::add_space_to_layout_box(ws, layout, box);
4569 if(this_slot != -1)
4570 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4571 else
4572 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4573 text::close_layout_box(layout, box);
4574}
4576 auto box = text::open_layout_box(layout, indentation);
4577 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4578 display_with_comparison(tval[0], text::produce_simple_string(ws, "allied_to"), ws, layout, box);
4579 text::add_space_to_layout_box(ws, layout, box);
4580 if(this_slot != -1)
4581 text::add_to_layout_box(ws, layout, box,
4582 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4583 else
4584 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4585 text::close_layout_box(layout, box);
4586}
4588 auto box = text::open_layout_box(layout, indentation);
4589 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4590 display_with_comparison(tval[0], text::produce_simple_string(ws, "allied_to"), ws, layout, box);
4591 text::add_space_to_layout_box(ws, layout, box);
4592 if(this_slot != -1)
4593 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4594 else
4595 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4596 text::close_layout_box(layout, box);
4597}
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 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "has_recently_lost_war"));
4603 text::close_layout_box(layout, box);
4604 } else {
4605 auto box = text::open_layout_box(layout, indentation);
4606 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4607 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "has_not_recently_lost_war"));
4608 text::close_layout_box(layout, box);
4609 }
4610}
4612 auto box = text::open_layout_box(layout, indentation);
4613 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4614 display_with_comparison(tval[0], text::produce_simple_string(ws, "mobilized"), ws, layout, box);
4615 text::close_layout_box(layout, box);
4616}
4618 auto box = text::open_layout_box(layout, indentation);
4619 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4620 display_with_comparison(tval[0], text::produce_simple_string(ws, "mobilization_size"),
4621 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
4622 text::close_layout_box(layout, box);
4623}
4625 auto box = text::open_layout_box(layout, indentation);
4626 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4627 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
4628 text::produce_simple_string(ws, "greater_than_edu_spending"), ws, layout, box);
4629 text::close_layout_box(layout, box);
4630}
4632 auto box = text::open_layout_box(layout, indentation);
4633 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4634 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
4635 text::produce_simple_string(ws, "greater_than_edu_spending"), ws, layout, box);
4636 text::close_layout_box(layout, box);
4637}
4639 auto box = text::open_layout_box(layout, indentation);
4640 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4641 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
4642 text::produce_simple_string(ws, "greater_than_edu_spending"), ws, layout, box);
4643 text::close_layout_box(layout, box);
4644}
4646 auto box = text::open_layout_box(layout, indentation);
4647 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4648 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
4649 text::produce_simple_string(ws, "greater_than_edu_spending"), ws, layout, box);
4650 text::close_layout_box(layout, box);
4651}
4653 auto box = text::open_layout_box(layout, indentation);
4654 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4655 display_with_comparison(tval[0], text::produce_simple_string(ws, "support_for_rp"),
4656 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, 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_comparison(tval[0], text::produce_simple_string(ws, "colonial"), 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_comparison(tval[0], text::produce_simple_string(ws, "colonial"), 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, "colonial_pop"), 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_has_comparison(tval[0], text::produce_simple_string(ws, "a_factory"), ws, layout, box);
4681 text::close_layout_box(layout, box);
4682}
4684 auto box = text::open_layout_box(layout, indentation);
4685 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4686 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_factory"), ws, layout, box);
4687 text::close_layout_box(layout, box);
4688}
4690 auto box = text::open_layout_box(layout, indentation);
4691 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4692 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_bnkrpt"), ws, layout, box);
4693 text::close_layout_box(layout, box);
4694}
4696 auto box = text::open_layout_box(layout, indentation);
4697 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4698 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_default_to"), ws, layout, box);
4699 text::add_space_to_layout_box(ws, layout, box);
4700 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4701 text::close_layout_box(layout, box);
4702}
4704 auto box = text::open_layout_box(layout, indentation);
4705 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4706 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_default_to"), ws, layout, box);
4707 text::add_space_to_layout_box(ws, layout, box);
4708 if(from_slot != -1)
4709 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4710 else
4711 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4712 text::close_layout_box(layout, box);
4713}
4715 auto box = text::open_layout_box(layout, indentation);
4716 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4717 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_default_to"), ws, layout, box);
4718 text::add_space_to_layout_box(ws, layout, box);
4719 if(this_slot != -1)
4720 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4721 else
4722 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4723 text::close_layout_box(layout, box);
4724}
4726 auto box = text::open_layout_box(layout, indentation);
4727 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4728 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_default_to"), ws, layout, box);
4729 text::add_space_to_layout_box(ws, layout, box);
4730 if(this_slot != -1)
4731 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4732 else
4733 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4734 text::close_layout_box(layout, box);
4735}
4737 auto box = text::open_layout_box(layout, indentation);
4738 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4739 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_default_to"), ws, layout, box);
4740 text::add_space_to_layout_box(ws, layout, box);
4741 if(this_slot != -1)
4742 text::add_to_layout_box(ws, layout, box,
4743 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4744 else
4745 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4746 text::close_layout_box(layout, box);
4747}
4749 auto box = text::open_layout_box(layout, indentation);
4750 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4751 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_default_to"), ws, layout, box);
4752 text::add_space_to_layout_box(ws, layout, box);
4753 if(this_slot != -1)
4754 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4755 else
4756 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4757 text::close_layout_box(layout, box);
4758}
4760 auto box = text::open_layout_box(layout, indentation);
4761 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4762 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_of_ports"), int64_t(tval[1]), ws, layout, box);
4763 text::close_layout_box(layout, box);
4764}
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);
4768
4770 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
4771 else
4772 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
4773
4774 text::close_layout_box(layout, box);
4775}
4777 auto box = text::open_layout_box(layout, indentation);
4778 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4779 display_with_comparison(tval[0], text::produce_simple_string(ws, "holding_an_election"), ws, layout, box);
4780 text::close_layout_box(layout, box);
4781}
4783 if(ws.user_settings.spoilers) {
4784 auto box = text::open_layout_box(layout, indentation);
4785 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4787 text::produce_simple_string(ws, ws.national_definitions.global_flag_variable_names[trigger::payload(tval[1]).glob_id]),
4788 text::produce_simple_string(ws, "set_globally"), ws, layout, box);
4789 text::close_layout_box(layout, box);
4790 }
4791}
4793 auto box = text::open_layout_box(layout, indentation);
4794 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4795 display_with_comparison(tval[0], text::produce_simple_string(ws, "capital"), ws, layout, box);
4796 text::close_layout_box(layout, box);
4797}
4799 auto box = text::open_layout_box(layout, indentation);
4800 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4801 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_value"),
4802 text::produce_simple_string(ws, ws.world.modifier_get_name(trigger::payload(tval[1]).mod_id)), ws, layout, box);
4803 text::close_layout_box(layout, box);
4804}
4806 auto box = text::open_layout_box(layout, indentation);
4807 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4808 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_value"),
4809 text::produce_simple_string(ws, ws.world.modifier_get_name(trigger::payload(tval[1]).mod_id)), ws, layout, box);
4810 text::close_layout_box(layout, box);
4811}
4813 auto box = text::open_layout_box(layout, indentation);
4814 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4815 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_value"),
4816 text::produce_simple_string(ws, ws.world.modifier_get_name(trigger::payload(tval[1]).mod_id)), ws, layout, box);
4817 text::close_layout_box(layout, box);
4818}
4820 auto box = text::open_layout_box(layout, indentation);
4821 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4822 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4823 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
4824 text::close_layout_box(layout, box);
4825}
4827 auto box = text::open_layout_box(layout, indentation);
4828 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4829 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4830 text::produce_simple_string(ws, "industrial_score_of"), ws, layout, box);
4831 text::add_space_to_layout_box(ws, layout, box);
4832 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4833 text::close_layout_box(layout, box);
4834}
4836 auto box = text::open_layout_box(layout, indentation);
4837 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4838 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4839 text::produce_simple_string(ws, "industrial_score_of"), ws, layout, box);
4840 text::add_space_to_layout_box(ws, layout, box);
4841 if(from_slot != -1)
4842 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4843 else
4844 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4845 text::close_layout_box(layout, box);
4846}
4848 auto box = text::open_layout_box(layout, indentation);
4849 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4850 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4851 text::produce_simple_string(ws, "industrial_score_of"), ws, layout, box);
4852 text::add_space_to_layout_box(ws, layout, box);
4853 if(this_slot != -1)
4854 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4855 else
4856 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4857 text::close_layout_box(layout, box);
4858}
4860 auto box = text::open_layout_box(layout, indentation);
4861 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4862 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4863 text::produce_simple_string(ws, "industrial_score_of"), ws, layout, box);
4864 text::add_space_to_layout_box(ws, layout, box);
4865 if(this_slot != -1)
4866 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4867 else
4868 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4869 text::close_layout_box(layout, box);
4870}
4872 auto box = text::open_layout_box(layout, indentation);
4873 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4874 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4875 text::produce_simple_string(ws, "industrial_score_of"), ws, layout, box);
4876 text::add_space_to_layout_box(ws, layout, box);
4877 if(this_slot != -1)
4878 text::add_to_layout_box(ws, layout, box,
4879 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4880 else
4881 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4882 text::close_layout_box(layout, box);
4883}
4885 auto box = text::open_layout_box(layout, indentation);
4886 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4887 display_with_comparison(tval[0], text::produce_simple_string(ws, "industrial_score"),
4888 text::produce_simple_string(ws, "industrial_score_of"), ws, layout, box);
4889 text::add_space_to_layout_box(ws, layout, box);
4890 if(this_slot != -1)
4891 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4892 else
4893 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4894 text::close_layout_box(layout, box);
4895}
4897 auto box = text::open_layout_box(layout, indentation);
4898 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4899 display_with_comparison(tval[0], text::produce_simple_string(ws, "military_score"),
4900 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
4901 text::close_layout_box(layout, box);
4902}
4904 auto box = text::open_layout_box(layout, indentation);
4905 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4906 display_with_comparison(tval[0], text::produce_simple_string(ws, "military_score"),
4907 text::produce_simple_string(ws, "military_score_of"), ws, layout, box);
4908 text::add_space_to_layout_box(ws, layout, box);
4909 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
4910 text::close_layout_box(layout, box);
4911}
4913 auto box = text::open_layout_box(layout, indentation);
4914 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4915 display_with_comparison(tval[0], text::produce_simple_string(ws, "military_score"),
4916 text::produce_simple_string(ws, "military_score_of"), ws, layout, box);
4917 text::add_space_to_layout_box(ws, layout, box);
4918 if(from_slot != -1)
4919 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
4920 else
4921 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
4922 text::close_layout_box(layout, box);
4923}
4925 auto box = text::open_layout_box(layout, indentation);
4926 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4927 display_with_comparison(tval[0], text::produce_simple_string(ws, "military_score"),
4928 text::produce_simple_string(ws, "military_score_of"), ws, layout, box);
4929 text::add_space_to_layout_box(ws, layout, box);
4930 if(this_slot != -1)
4931 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
4932 else
4933 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4934 text::close_layout_box(layout, box);
4935}
4937 auto box = text::open_layout_box(layout, indentation);
4938 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4939 display_with_comparison(tval[0], text::produce_simple_string(ws, "military_score"),
4940 text::produce_simple_string(ws, "military_score_of"), ws, layout, box);
4941 text::add_space_to_layout_box(ws, layout, box);
4942 if(this_slot != -1)
4943 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
4944 else
4945 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
4946 text::close_layout_box(layout, box);
4947}
4949 auto box = text::open_layout_box(layout, indentation);
4950 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4951 display_with_comparison(tval[0], text::produce_simple_string(ws, "military_score"),
4952 text::produce_simple_string(ws, "military_score_of"), ws, layout, box);
4953 text::add_space_to_layout_box(ws, layout, box);
4954 if(this_slot != -1)
4955 text::add_to_layout_box(ws, layout, box,
4956 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
4957 else
4958 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
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, "military_score"),
4965 text::produce_simple_string(ws, "military_score_of"), ws, layout, box);
4966 text::add_space_to_layout_box(ws, layout, box);
4967 if(this_slot != -1)
4968 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
4969 else
4970 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
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, "civilized"), ws, layout, box);
4977 text::close_layout_box(layout, box);
4978}
4980 auto box = text::open_layout_box(layout, indentation);
4981 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4982 display_with_comparison(tval[0], text::produce_simple_string(ws, "civilized"), ws, layout, box);
4983 text::close_layout_box(layout, box);
4984}
4986 auto box = text::open_layout_box(layout, indentation);
4987 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4988 display_with_comparison(tval[0], text::produce_simple_string(ws, "civilized"), ws, layout, box);
4989 text::close_layout_box(layout, box);
4990}
4992 auto box = text::open_layout_box(layout, indentation);
4993 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
4994 display_with_comparison(tval[0], text::produce_simple_string(ws, "percent_occupied"),
4995 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, 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);
5001 display_with_comparison(tval[0], text::produce_simple_string(ws, "great_power"), ws, layout, box);
5002 text::close_layout_box(layout, box);
5003}
5005 auto box = text::open_layout_box(layout, indentation);
5006 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5007 display_with_comparison(tval[0], text::produce_simple_string(ws, "great_power"), ws, layout, box);
5008 text::close_layout_box(layout, box);
5009}
5011 auto box = text::open_layout_box(layout, indentation);
5012 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5013 display_with_comparison(tval[0], text::produce_simple_string(ws, "great_power"), ws, layout, box);
5014 text::close_layout_box(layout, box);
5015}
5017 auto box = text::open_layout_box(layout, indentation);
5018 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5020 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5021 text::close_layout_box(layout, box);
5022}
5024 auto box = text::open_layout_box(layout, indentation);
5025 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5026 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_tax"),
5027 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5028 text::close_layout_box(layout, box);
5029}
5031 auto box = text::open_layout_box(layout, indentation);
5032 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5034 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5035 text::close_layout_box(layout, box);
5036}
5038 auto box = text::open_layout_box(layout, indentation);
5039 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5040 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_spending"),
5041 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5042 text::close_layout_box(layout, box);
5043}
5045 auto box = text::open_layout_box(layout, indentation);
5046 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5047 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_spending"),
5048 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5049 text::close_layout_box(layout, box);
5050}
5052 auto box = text::open_layout_box(layout, indentation);
5053 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5054 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_spending"),
5055 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5056 text::close_layout_box(layout, box);
5057}
5059 auto box = text::open_layout_box(layout, indentation);
5060 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5061 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_spending"),
5062 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5063 text::close_layout_box(layout, box);
5064}
5066 auto box = text::open_layout_box(layout, indentation);
5067 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5068 display_with_comparison(tval[0], text::produce_simple_string(ws, "mil_spending"),
5069 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5070 text::close_layout_box(layout, box);
5071}
5073 auto box = text::open_layout_box(layout, indentation);
5074 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5075 display_with_comparison(tval[0], text::produce_simple_string(ws, "mil_spending"),
5076 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5077 text::close_layout_box(layout, box);
5078}
5080 auto box = text::open_layout_box(layout, indentation);
5081 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5082 display_with_comparison(tval[0], text::produce_simple_string(ws, "mil_spending"),
5083 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5084 text::close_layout_box(layout, box);
5085}
5087 auto box = text::open_layout_box(layout, indentation);
5088 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5089 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
5090 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5091 text::close_layout_box(layout, box);
5092}
5094 auto box = text::open_layout_box(layout, indentation);
5095 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5096 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
5097 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5098 text::close_layout_box(layout, box);
5099}
5101 auto box = text::open_layout_box(layout, indentation);
5102 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5103 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
5104 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5105 text::close_layout_box(layout, box);
5106}
5108 auto box = text::open_layout_box(layout, indentation);
5109 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5110 display_with_comparison(tval[0], text::produce_simple_string(ws, "admin_spending"),
5111 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5112 text::close_layout_box(layout, box);
5113}
5115 auto box = text::open_layout_box(layout, indentation);
5116 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5117 display_with_comparison(tval[0], text::produce_simple_string(ws, "edu_spending"),
5118 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5119 text::close_layout_box(layout, box);
5120}
5122 auto box = text::open_layout_box(layout, indentation);
5123 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5124 display_with_comparison(tval[0], text::produce_simple_string(ws, "edu_spending"),
5125 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5126 text::close_layout_box(layout, box);
5127}
5129 auto box = text::open_layout_box(layout, indentation);
5130 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5131 display_with_comparison(tval[0], text::produce_simple_string(ws, "edu_spending"),
5132 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5133 text::close_layout_box(layout, box);
5134}
5136 auto box = text::open_layout_box(layout, indentation);
5137 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5138 display_with_comparison(tval[0], text::produce_simple_string(ws, "edu_spending"),
5139 text::int_percentage{trigger::payload(tval[1]).signed_value}, ws, layout, box);
5140 text::close_layout_box(layout, box);
5141}
5143 auto box = text::open_layout_box(layout, indentation);
5144 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5145 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "colonies"), 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
5159 if(this_slot != -1)
5160 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_religion"),
5161 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.nation_get_religion(trigger::to_nation(this_slot)))), ws, layout, box);
5162 else
5163 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_religion"), text::produce_simple_string(ws, "same_rel_as_this"), ws, layout, box);
5164 text::close_layout_box(layout, box);
5165}
5167 auto box = text::open_layout_box(layout, indentation);
5168 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5169 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_religion"),
5170 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
5171 text::close_layout_box(layout, box);
5172}
5174 auto box = text::open_layout_box(layout, indentation);
5175 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5176 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_religion"),
5177 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
5178 text::close_layout_box(layout, box);
5179}
5181 auto box = text::open_layout_box(layout, indentation);
5182 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5183 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
5184 text::produce_simple_string(ws, ws.world.culture_get_name(trigger::payload(tval[1]).cul_id)), ws, layout, box);
5185 text::close_layout_box(layout, box);
5186}
5188 auto box = text::open_layout_box(layout, indentation);
5189 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5190 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
5191 text::produce_simple_string(ws, ws.world.culture_get_name(trigger::payload(tval[1]).cul_id)), ws, layout, box);
5192 text::close_layout_box(layout, box);
5193}
5195 auto box = text::open_layout_box(layout, indentation);
5196 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5197 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_culture"),
5198 text::produce_simple_string(ws, ws.world.culture_get_name(trigger::payload(tval[1]).cul_id)), ws, layout, box);
5199 text::close_layout_box(layout, box);
5200}
5202 auto box = text::open_layout_box(layout, indentation);
5203 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5204 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_issue"),
5205 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id)), ws, layout, box);
5206 text::close_layout_box(layout, box);
5207}
5209 auto box = text::open_layout_box(layout, indentation);
5210 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5211 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_issue"),
5212 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id)), ws, layout, box);
5213 text::close_layout_box(layout, box);
5214}
5216 auto box = text::open_layout_box(layout, indentation);
5217 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5218 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_issue"),
5219 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id)), ws, layout, box);
5220 text::close_layout_box(layout, box);
5221}
5223 auto box = text::open_layout_box(layout, indentation);
5224 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5225 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_issue"),
5226 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id)), ws, layout, box);
5227 text::close_layout_box(layout, box);
5228}
5230 auto box = text::open_layout_box(layout, indentation);
5231 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5232 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_ideology"),
5233 text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id)), ws, layout, box);
5234 text::close_layout_box(layout, box);
5235}
5237 auto box = text::open_layout_box(layout, indentation);
5238 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5239 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_ideology"),
5240 text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id)), ws, layout, box);
5241 text::close_layout_box(layout, box);
5242}
5244 auto box = text::open_layout_box(layout, indentation);
5245 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5246 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_ideology"),
5247 text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id)), ws, layout, box);
5248 text::close_layout_box(layout, box);
5249}
5251 auto box = text::open_layout_box(layout, indentation);
5252 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5253 display_with_comparison(tval[0], text::produce_simple_string(ws, "dominant_ideology"),
5254 text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[1]).ideo_id)), ws, layout, box);
5255 text::close_layout_box(layout, box);
5256}
5258 auto box = text::open_layout_box(layout, indentation);
5259 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5260 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_militancy"),
5261 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5262 text::close_layout_box(layout, box);
5263}
5265 auto box = text::open_layout_box(layout, indentation);
5266 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5267 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_militancy"),
5268 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5269 text::close_layout_box(layout, box);
5270}
5272 auto box = text::open_layout_box(layout, indentation);
5273 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5274 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_militancy"),
5275 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5276 text::close_layout_box(layout, box);
5277}
5279 auto box = text::open_layout_box(layout, indentation);
5280 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5281 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_militancy"),
5282 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5283 text::close_layout_box(layout, box);
5284}
5286 auto box = text::open_layout_box(layout, indentation);
5287 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5288 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_militancy"),
5289 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5290 text::close_layout_box(layout, box);
5291}
5293 auto box = text::open_layout_box(layout, indentation);
5294 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5295 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_militancy"),
5296 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5297 text::close_layout_box(layout, box);
5298}
5300 auto box = text::open_layout_box(layout, indentation);
5301 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5302 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_militancy"),
5303 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5304 text::close_layout_box(layout, box);
5305}
5307 auto box = text::open_layout_box(layout, indentation);
5308 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5309 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_militancy"),
5310 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5311 text::close_layout_box(layout, box);
5312}
5314 auto box = text::open_layout_box(layout, indentation);
5315 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5316 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_militancy"),
5317 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5318 text::close_layout_box(layout, box);
5319}
5321 auto box = text::open_layout_box(layout, indentation);
5322 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5323 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_militancy"),
5324 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5325 text::close_layout_box(layout, box);
5326}
5328 auto box = text::open_layout_box(layout, indentation);
5329 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5330 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_militancy"),
5331 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5332 text::close_layout_box(layout, box);
5333}
5335 auto box = text::open_layout_box(layout, indentation);
5336 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5337 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_militancy"),
5338 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5339 text::close_layout_box(layout, box);
5340}
5342 auto box = text::open_layout_box(layout, indentation);
5343 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5344 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_tax"), text::produce_simple_string(ws, "gt_poor_tax"),
5345 ws, layout, box);
5346 text::close_layout_box(layout, box);
5347}
5349 auto box = text::open_layout_box(layout, indentation);
5350 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5351 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_cultural_union"), ws, layout, box);
5352 text::close_layout_box(layout, box);
5353}
5355 auto box = text::open_layout_box(layout, indentation);
5356 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5357 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "a_cultural_union"), 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 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"), trigger::payload(tval[1]).tag_id, ws,
5364 layout, box);
5365 text::close_layout_box(layout, box);
5366}
5368 auto box = text::open_layout_box(layout, indentation);
5369 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5370 if(from_slot != -1)
5371 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"), trigger::to_nation(from_slot), ws, layout,
5372 box);
5373 else
5374 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5375 text::produce_simple_string(ws, "from_nation"), ws, layout, box);
5376 text::close_layout_box(layout, box);
5377}
5379 auto box = text::open_layout_box(layout, indentation);
5380 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5381 if(this_slot != -1)
5382 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"), trigger::to_nation(this_slot), ws, layout,
5383 box);
5384 else
5385 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5386 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5387 text::close_layout_box(layout, box);
5388}
5390 auto box = text::open_layout_box(layout, indentation);
5391 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5392 if(this_slot != -1)
5393 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5394 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)), ws, layout, box);
5395 else
5396 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5397 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5398 text::close_layout_box(layout, box);
5399}
5401 auto box = text::open_layout_box(layout, indentation);
5402 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5403 if(this_slot != -1)
5404 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5405 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)), ws, layout, box);
5406 else
5407 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5408 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5409 text::close_layout_box(layout, box);
5410}
5412 auto box = text::open_layout_box(layout, indentation);
5413 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5414 if(this_slot != -1)
5415 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5416 nations::owner_of_pop(ws, trigger::to_pop(this_slot)), ws, layout, box);
5417 else
5418 display_with_comparison(tval[0], text::produce_simple_string(ws, "cultural_union"),
5419 text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5420 text::close_layout_box(layout, box);
5421}
5423 auto box = text::open_layout_box(layout, indentation);
5424 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5425 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_cultural_union"), ws, layout, box);
5426 text::add_space_to_layout_box(ws, layout, box);
5427 if(this_slot != -1)
5428 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
5429 else
5430 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5431 text::close_layout_box(layout, box);
5432}
5434 auto box = text::open_layout_box(layout, indentation);
5435 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5436 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_cultural_union"), ws, layout, box);
5437 text::add_space_to_layout_box(ws, layout, box);
5438 if(this_slot != -1)
5439 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
5440 else
5441 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5442 text::close_layout_box(layout, box);
5443}
5445 auto box = text::open_layout_box(layout, indentation);
5446 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5447 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_cultural_union"), ws, layout, box);
5448 text::add_space_to_layout_box(ws, layout, box);
5449 if(this_slot != -1)
5450 text::add_to_layout_box(ws, layout, box,
5451 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
5452 else
5453 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5454 text::close_layout_box(layout, box);
5455}
5457 auto box = text::open_layout_box(layout, indentation);
5458 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5459 display_with_comparison(tval[0], text::produce_simple_string(ws, "same_cultural_union"), ws, layout, box);
5460 text::add_space_to_layout_box(ws, layout, box);
5461 if(this_slot != -1)
5462 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
5463 else
5464 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
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_has_comparison(tval[0], text::produce_simple_string(ws, "non_accepted_pops"), ws, layout, box);
5471 text::close_layout_box(layout, box);
5472}
5474 auto box = text::open_layout_box(layout, indentation);
5475 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5476 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "non_accepted_pops"), ws, layout, box);
5477 text::close_layout_box(layout, box);
5478}
5480 auto box = text::open_layout_box(layout, indentation);
5481 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5482 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "non_accepted_pops"), ws, layout, box);
5483 text::close_layout_box(layout, box);
5484}
5486 auto box = text::open_layout_box(layout, indentation);
5487 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5488 display_with_comparison(tval[0], text::produce_simple_string(ws, "revanchism"),
5489 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5490 text::close_layout_box(layout, box);
5491}
5493 auto box = text::open_layout_box(layout, indentation);
5494 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5495 display_with_comparison(tval[0], text::produce_simple_string(ws, "revanchism"),
5496 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
5497 text::close_layout_box(layout, box);
5498}
5500 auto box = text::open_layout_box(layout, indentation);
5501 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5502 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "crime"), ws, layout, box);
5503 text::close_layout_box(layout, box);
5504}
5506 auto box = text::open_layout_box(layout, indentation);
5507 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5508 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_substates"), int64_t(tval[1]), ws, layout, box);
5509 text::close_layout_box(layout, box);
5510}
5512 auto box = text::open_layout_box(layout, indentation);
5513 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5514 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_vassals_no_substates"), int64_t(tval[1]), ws, layout,
5515 box);
5516 text::close_layout_box(layout, box);
5517}
5519 auto box = text::open_layout_box(layout, indentation);
5520 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5522 text::produce_simple_string(ws, "num_regiments"),
5523 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5524 text::add_space_to_layout_box(ws, layout, box);
5525 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
5526 text::close_layout_box(layout, box);
5527}
5529 auto box = text::open_layout_box(layout, indentation);
5530 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5532 text::produce_simple_string(ws, "num_regiments"),
5533 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5534 text::add_space_to_layout_box(ws, layout, box);
5535 if(this_slot != -1)
5536 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
5537 else
5538 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5539 text::close_layout_box(layout, box);
5540}
5542 auto box = text::open_layout_box(layout, indentation);
5543 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5545 text::produce_simple_string(ws, "num_regiments"),
5546 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5547 text::add_space_to_layout_box(ws, layout, box);
5548 if(this_slot != -1)
5549 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
5550 else
5551 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5552 text::close_layout_box(layout, box);
5553}
5555 auto box = text::open_layout_box(layout, indentation);
5556 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5558 text::produce_simple_string(ws, "num_regiments"),
5559 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5560 text::add_space_to_layout_box(ws, layout, box);
5561 if(this_slot != -1)
5562 text::add_to_layout_box(ws, layout, box, ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
5563 else
5564 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5565 text::close_layout_box(layout, box);
5566}
5568 auto box = text::open_layout_box(layout, indentation);
5569 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5571 text::produce_simple_string(ws, "num_regiments"),
5572 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5573 text::add_space_to_layout_box(ws, layout, box);
5574 if(this_slot != -1)
5575 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
5576 else
5577 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5578 text::close_layout_box(layout, box);
5579}
5581 auto box = text::open_layout_box(layout, indentation);
5582 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5584 text::produce_simple_string(ws, "num_regiments"),
5585 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5586 text::add_space_to_layout_box(ws, layout, box);
5587 if(from_slot != -1)
5588 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
5589 else
5590 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
5591 text::close_layout_box(layout, box);
5592}
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);
5597 text::produce_simple_string(ws, "num_regiments"),
5598 text::produce_simple_string(ws, "num_regiments_of"), ws, layout, box);
5599 text::add_space_to_layout_box(ws, layout, box);
5600 if(from_slot != -1)
5601 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(from_slot)));
5602 else
5603 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
5604 text::close_layout_box(layout, box);
5605}
5607 auto factor = trigger::read_float_from_payload(tval + 1);
5610 auto factor_str = text::resolve_string_substitution(ws, "times_num_regiments_of", s);
5611
5612 auto box = text::open_layout_box(layout, indentation);
5613 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5614 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_regiments"),
5615 factor_str, ws, layout, box);
5616 text::add_space_to_layout_box(ws, layout, box);
5617 if(this_slot != -1)
5618 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
5619 else
5620 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5621 text::close_layout_box(layout, box);
5622}
5624 auto factor = trigger::read_float_from_payload(tval + 1);
5627 auto factor_str = text::resolve_string_substitution(ws, "times_num_regiments_of", s);
5628
5629 auto box = text::open_layout_box(layout, indentation);
5630 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5631 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_regiments"),
5632 factor_str, ws, layout, box);
5633 text::add_space_to_layout_box(ws, layout, box);
5634 if(from_slot != -1)
5635 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
5636 else
5637 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
5638 text::close_layout_box(layout, box);
5639}
5641 auto factor = trigger::read_float_from_payload(tval + 1);
5644 auto factor_str = text::resolve_string_substitution(ws, "times_num_regiments_of", s);
5645
5646 auto box = text::open_layout_box(layout, indentation);
5647 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5648 display_with_comparison(tval[0], text::produce_simple_string(ws, "owner_num_regiments"),
5649 factor_str, ws, layout, box);
5650 text::add_space_to_layout_box(ws, layout, box);
5651 if(this_slot != -1)
5652 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
5653 else
5654 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5655 text::close_layout_box(layout, box);
5656}
5658 auto factor = trigger::read_float_from_payload(tval + 1);
5661 auto factor_str = text::resolve_string_substitution(ws, "times_num_regiments_of", s);
5662
5663 auto box = text::open_layout_box(layout, indentation);
5664 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5665 display_with_comparison(tval[0], text::produce_simple_string(ws, "owner_num_regiments"),
5666 factor_str, ws, layout, box);
5667 text::add_space_to_layout_box(ws, layout, box);
5668 if(from_slot != -1)
5669 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
5670 else
5671 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
5672 text::close_layout_box(layout, box);
5673}
5675 auto box = text::open_layout_box(layout, indentation);
5676 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5677 display_with_comparison(tval[0], text::produce_simple_string(ws, "fabricating_on"), ws, layout, box);
5678 text::add_space_to_layout_box(ws, layout, box);
5679 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
5680 text::close_layout_box(layout, box);
5681}
5683 auto box = text::open_layout_box(layout, indentation);
5684 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5685 display_with_comparison(tval[0], text::produce_simple_string(ws, "fabricating_on"), ws, layout, box);
5686 text::add_space_to_layout_box(ws, layout, box);
5687 if(from_slot != -1)
5688 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
5689 else
5690 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
5691 text::close_layout_box(layout, box);
5692}
5694 auto box = text::open_layout_box(layout, indentation);
5695 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5696 display_with_comparison(tval[0], text::produce_simple_string(ws, "fabricating_on"), ws, layout, box);
5697 text::add_space_to_layout_box(ws, layout, box);
5698 if(this_slot != -1)
5699 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
5700 else
5701 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5702 text::close_layout_box(layout, box);
5703}
5705 auto box = text::open_layout_box(layout, indentation);
5706 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5707 display_with_comparison(tval[0], text::produce_simple_string(ws, "fabricating_on"), ws, layout, box);
5708 text::add_space_to_layout_box(ws, layout, box);
5709 if(this_slot != -1)
5710 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
5711 else
5712 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5713 text::close_layout_box(layout, box);
5714}
5716 auto box = text::open_layout_box(layout, indentation);
5717 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5718 display_with_comparison(tval[0], text::produce_simple_string(ws, "fabricating_on"), ws, layout, box);
5719 text::add_space_to_layout_box(ws, layout, box);
5720 if(this_slot != -1)
5721 text::add_to_layout_box(ws, layout, box,
5722 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
5723 else
5724 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5725 text::close_layout_box(layout, box);
5726}
5728 auto box = text::open_layout_box(layout, indentation);
5729 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5730 display_with_comparison(tval[0], text::produce_simple_string(ws, "fabricating_on"), ws, layout, box);
5731 text::add_space_to_layout_box(ws, layout, box);
5732 if(this_slot != -1)
5733 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
5734 else
5735 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5736 text::close_layout_box(layout, box);
5737}
5739 auto box = text::open_layout_box(layout, indentation);
5740 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5742 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "cb_discovered"));
5743 else
5744 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "cb_not_discovered"));
5745 text::close_layout_box(layout, box);
5746}
5748 auto box = text::open_layout_box(layout, indentation);
5749 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5750 display_with_comparison(tval[0], text::produce_simple_string(ws, "cb_progress"),
5751 text::fp_percentage{trigger::read_float_from_payload(tval + 1) / 100.0f}, ws, layout, box);
5752 text::close_layout_box(layout, box);
5753}
5755 auto box = text::open_layout_box(layout, indentation);
5756 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5757 display_with_comparison(tval[0], text::produce_simple_string(ws, "civ_progress"),
5758 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
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 display_with_comparison(tval[0], text::produce_simple_string(ws, "constructing_a"), ws, layout, box);
5765 text::add_space_to_layout_box(ws, layout, box);
5766 text::add_to_layout_box(ws, layout, box, ws.world.cb_type_get_name(trigger::payload(tval[1]).cb_id));
5767 text::add_space_to_layout_box(ws, layout, box);
5768 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "casus_belli"));
5769 text::close_layout_box(layout, box);
5770}
5772 auto box = text::open_layout_box(layout, indentation);
5773 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5774 display_with_has_comparison(tval[0], trigger::payload(tval[1]).tag_id, ws, layout, box);
5775 text::add_space_to_layout_box(ws, layout, box);
5776 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5777 text::close_layout_box(layout, box);
5778}
5780 auto box = text::open_layout_box(layout, indentation);
5781 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5782 if(from_slot != -1)
5783 display_with_has_comparison(tval[0], trigger::to_nation(from_slot), ws, layout, box);
5784 else
5785 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "from_nation"), ws, layout, box);
5786 text::add_space_to_layout_box(ws, layout, box);
5787 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5788 text::close_layout_box(layout, box);
5789}
5791 auto box = text::open_layout_box(layout, indentation);
5792 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5793 if(this_slot != -1)
5794 display_with_has_comparison(tval[0], trigger::to_nation(this_slot), ws, layout, box);
5795 else
5796 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5797 text::add_space_to_layout_box(ws, layout, box);
5798 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5799 text::close_layout_box(layout, box);
5800}
5802 auto box = text::open_layout_box(layout, indentation);
5803 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5804 if(this_slot != -1)
5805 display_with_has_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)), ws,
5806 layout, box);
5807 else
5808 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5809 text::add_space_to_layout_box(ws, layout, box);
5810 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5811 text::close_layout_box(layout, box);
5812}
5814 auto box = text::open_layout_box(layout, indentation);
5815 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5816 if(this_slot != -1)
5817 display_with_has_comparison(tval[0], ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)),
5818 ws, layout, box);
5819 else
5820 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5821 text::add_space_to_layout_box(ws, layout, box);
5822 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5823 text::close_layout_box(layout, box);
5824}
5826 auto box = text::open_layout_box(layout, indentation);
5827 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5828 if(this_slot != -1)
5829 display_with_has_comparison(tval[0], nations::owner_of_pop(ws, trigger::to_pop(this_slot)), ws, layout, box);
5830 else
5831 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5832 text::add_space_to_layout_box(ws, layout, box);
5833 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5834 text::close_layout_box(layout, box);
5835}
5836
5837
5839 auto box = text::open_layout_box(layout, indentation);
5840 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5841 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
5842 text::add_space_to_layout_box(ws, layout, box);
5843 display_with_has_comparison(tval[0], trigger::payload(tval[1]).tag_id, ws, layout, box);
5844 text::add_space_to_layout_box(ws, layout, box);
5845 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5846 text::close_layout_box(layout, box);
5847}
5849 auto box = text::open_layout_box(layout, indentation);
5850 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5851 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
5852 text::add_space_to_layout_box(ws, layout, box);
5853 if(from_slot != -1)
5854 display_with_has_comparison(tval[0], trigger::to_nation(from_slot), ws, layout, box);
5855 else
5856 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "from_nation"), ws, layout, box);
5857 text::add_space_to_layout_box(ws, layout, box);
5858 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5859 text::close_layout_box(layout, box);
5860}
5862 auto box = text::open_layout_box(layout, indentation);
5863 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5864 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
5865 text::add_space_to_layout_box(ws, layout, box);
5866 if(this_slot != -1)
5867 display_with_has_comparison(tval[0], trigger::to_nation(this_slot), ws, layout, box);
5868 else
5869 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5870 text::add_space_to_layout_box(ws, layout, box);
5871 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5872 text::close_layout_box(layout, box);
5873}
5875 auto box = text::open_layout_box(layout, indentation);
5876 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5877 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
5878 text::add_space_to_layout_box(ws, layout, box);
5879 if(this_slot != -1)
5880 display_with_has_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)), ws,
5881 layout, box);
5882 else
5883 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5884 text::add_space_to_layout_box(ws, layout, box);
5885 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5886 text::close_layout_box(layout, box);
5887}
5889 auto box = text::open_layout_box(layout, indentation);
5890 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5891 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
5892 text::add_space_to_layout_box(ws, layout, box);
5893 if(this_slot != -1)
5894 display_with_has_comparison(tval[0], ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)),
5895 ws, layout, box);
5896 else
5897 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5898 text::add_space_to_layout_box(ws, layout, box);
5899 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5900 text::close_layout_box(layout, box);
5901}
5903 auto box = text::open_layout_box(layout, indentation);
5904 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5905 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "o_of_prov"));
5906 text::add_space_to_layout_box(ws, layout, box);
5907 if(this_slot != -1)
5908 display_with_has_comparison(tval[0], nations::owner_of_pop(ws, trigger::to_pop(this_slot)), ws, layout, box);
5909 else
5910 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), ws, layout, box);
5911 text::add_space_to_layout_box(ws, layout, box);
5912 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "as_a_vassal"));
5913 text::close_layout_box(layout, box);
5914}
5915
5917 auto box = text::open_layout_box(layout, indentation);
5918 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5919 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_substate"), ws, layout, box);
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);
5926 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "gw_enabled"));
5927 else
5928 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "gw_not_enabled"));
5929 text::close_layout_box(layout, box);
5930}
5932 auto box = text::open_layout_box(layout, indentation);
5933 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5935 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "can_perform_nationalization"));
5936 else
5937 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "cannot_perform_nationalization"));
5938 text::close_layout_box(layout, box);
5939}
5941 auto box = text::open_layout_box(layout, indentation);
5942 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5943 display_with_comparison(tval[0], text::produce_simple_string(ws, "in_sphere"), ws, layout, box);
5944 text::close_layout_box(layout, box);
5945}
5947 auto box = text::open_layout_box(layout, indentation);
5948 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5949 display_with_comparison(tval[0], text::produce_simple_string(ws, "sphere_leader_of"), ws, layout, box);
5950 text::add_space_to_layout_box(ws, layout, box);
5951 text::add_to_layout_box(ws, layout, box, trigger::payload(tval[1]).tag_id);
5952 text::close_layout_box(layout, box);
5953}
5955 auto box = text::open_layout_box(layout, indentation);
5956 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5957 display_with_comparison(tval[0], text::produce_simple_string(ws, "sphere_leader_of"), ws, layout, box);
5958 text::add_space_to_layout_box(ws, layout, box);
5959 if(from_slot != -1)
5960 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
5961 else
5962 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
5963 text::close_layout_box(layout, box);
5964}
5966 auto box = text::open_layout_box(layout, indentation);
5967 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5968 display_with_comparison(tval[0], text::produce_simple_string(ws, "sphere_leader_of"), ws, layout, box);
5969 text::add_space_to_layout_box(ws, layout, box);
5970 if(this_slot != -1)
5971 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
5972 else
5973 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5974 text::close_layout_box(layout, box);
5975}
5977 auto box = text::open_layout_box(layout, indentation);
5978 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5979 display_with_comparison(tval[0], text::produce_simple_string(ws, "sphere_leader_of"), ws, layout, box);
5980 text::add_space_to_layout_box(ws, layout, box);
5981 if(this_slot != -1)
5982 text::add_to_layout_box(ws, layout, box, ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)));
5983 else
5984 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5985 text::close_layout_box(layout, box);
5986}
5988 auto box = text::open_layout_box(layout, indentation);
5989 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
5990 display_with_comparison(tval[0], text::produce_simple_string(ws, "sphere_leader_of"), ws, layout, box);
5991 text::add_space_to_layout_box(ws, layout, box);
5992 if(this_slot != -1)
5993 text::add_to_layout_box(ws, layout, box,
5994 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot)));
5995 else
5996 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
5997 text::close_layout_box(layout, box);
5998}
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);
6002 display_with_comparison(tval[0], text::produce_simple_string(ws, "sphere_leader_of"), ws, layout, box);
6003 text::add_space_to_layout_box(ws, layout, box);
6004 if(this_slot != -1)
6005 text::add_to_layout_box(ws, layout, box, nations::owner_of_pop(ws, trigger::to_pop(this_slot)));
6006 else
6007 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
6008 text::close_layout_box(layout, box);
6009}
6011 auto box = text::open_layout_box(layout, indentation);
6012 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6013 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_states"), int64_t(tval[1]), ws, layout, box);
6014 text::close_layout_box(layout, box);
6015}
6017 // stub for apparently unused trigger
6018 auto box = text::open_layout_box(layout, indentation);
6019 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6021 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6022 else
6023 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6024 text::close_layout_box(layout, box);
6025}
6027 auto box = text::open_layout_box(layout, indentation);
6028 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6029 if(from_slot != -1)
6030 display_with_comparison(tval[0], trigger::to_nation(from_slot), text::produce_simple_string(ws, "a_releasable_vassal"), ws,
6031 layout, box);
6032 else
6033 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"),
6034 text::produce_simple_string(ws, "a_releasable_vassal"), 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, "a_releasable_vassal"), 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_has_comparison(tval[0], text::produce_simple_string(ws, "recent_immigration"), ws, layout, box);
6047 text::close_layout_box(layout, box);
6048}
6050 auto box = text::open_layout_box(layout, indentation);
6051 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6052 display_with_comparison(tval[0], text::produce_simple_string(ws, "num_control_days"), int64_t(tval[1]), ws, layout, box);
6053 text::close_layout_box(layout, box);
6054}
6056 auto box = text::open_layout_box(layout, indentation);
6057 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6058 display_with_comparison(tval[0], text::produce_simple_string(ws, "disarmed"), ws, layout, box);
6059 text::close_layout_box(layout, box);
6060}
6062 auto box = text::open_layout_box(layout, indentation);
6063 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6064 display_with_comparison(tval[0], text::produce_simple_string(ws, "disarmed_pop"), ws, layout, box);
6065 text::close_layout_box(layout, box);
6066}
6068 // stub: used only rarely in ai chances and would be expensive to test
6069 auto box = text::open_layout_box(layout, indentation);
6070 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6072 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6073 else
6074 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6075 text::close_layout_box(layout, box);
6076}
6078 // stub: apparently unused
6079 auto box = text::open_layout_box(layout, indentation);
6080 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6082 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6083 else
6084 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6085 text::close_layout_box(layout, box);
6086}
6088 // stub: apparently unused
6089 auto box = text::open_layout_box(layout, indentation);
6090 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6092 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6093 else
6094 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6095 text::close_layout_box(layout, box);
6096}
6098 auto box = text::open_layout_box(layout, indentation);
6099 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6100 display_with_comparison(tval[0], text::produce_simple_string(ws, "social_mov_support"),
6101 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6102 text::close_layout_box(layout, box);
6103}
6105 auto box = text::open_layout_box(layout, indentation);
6106 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6107 display_with_comparison(tval[0], text::produce_simple_string(ws, "political_mov_support"),
6108 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6109 text::close_layout_box(layout, box);
6110}
6112 // stub: virtually unused
6113 auto box = text::open_layout_box(layout, indentation);
6114 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6116 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6117 else
6118 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6119 text::close_layout_box(layout, box);
6120}
6122 auto box = text::open_layout_box(layout, indentation);
6123 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6124 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_member_of_social_mov"), ws, layout, box);
6125 text::close_layout_box(layout, box);
6126}
6128 auto box = text::open_layout_box(layout, indentation);
6129 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6130 display_with_comparison(tval[0], text::produce_simple_string(ws, "a_member_of_political_mov"), ws, layout, box);
6131 text::close_layout_box(layout, box);
6132}
6134 // stub: implementation unclear
6135 auto box = text::open_layout_box(layout, indentation);
6136 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6138 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6139 else
6140 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6141 text::close_layout_box(layout, box);
6142}
6144 // stub: implementation unclear
6145 auto box = text::open_layout_box(layout, indentation);
6146 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6148 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
6149 else
6150 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
6151 text::close_layout_box(layout, box);
6152}
6154 auto box = text::open_layout_box(layout, indentation);
6155 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6156 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "cultural_sphere_members"), ws, layout, box);
6157 text::close_layout_box(layout, box);
6158}
6160 auto box = text::open_layout_box(layout, indentation);
6161 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6163 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "ww_enabled"));
6164 else
6165 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "ww_not_enabled"));
6166 text::close_layout_box(layout, box);
6167}
6169 auto box = text::open_layout_box(layout, indentation);
6170 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6171 if(this_slot != -1)
6173 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.pop_get_culture(trigger::to_pop(this_slot)))), ws,
6174 layout, box);
6175 else
6177 text::produce_simple_string(ws, "this_pop_culture"), ws, layout, box);
6178 text::close_layout_box(layout, box);
6179}
6181 auto box = text::open_layout_box(layout, indentation);
6182 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6183 if(this_slot != -1) {
6185 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.pop_get_culture(trigger::to_pop(this_slot)))), ws,
6186 layout, box);
6187 text::add_space_to_layout_box(ws, layout, box);
6188 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6189 } else {
6190 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_with"), ws, layout, box);
6191 text::add_space_to_layout_box(ws, layout, box);
6192 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_culture"));
6193 }
6194 text::close_layout_box(layout, box);
6195}
6197 auto box = text::open_layout_box(layout, indentation);
6198 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6199 if(this_slot != -1) {
6201 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.pop_get_culture(trigger::to_pop(this_slot)))), ws,
6202 layout, box);
6203 text::add_space_to_layout_box(ws, layout, box);
6204 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6205 } else {
6206 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_with"), ws, layout, box);
6207 text::add_space_to_layout_box(ws, layout, box);
6208 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_culture"));
6209 }
6210 text::close_layout_box(layout, box);
6211}
6213 auto box = text::open_layout_box(layout, indentation);
6214 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6215 if(this_slot != -1) {
6217 text::produce_simple_string(ws, ws.world.culture_get_name(ws.world.pop_get_culture(trigger::to_pop(this_slot)))), ws,
6218 layout, box);
6219 text::add_space_to_layout_box(ws, layout, box);
6220 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6221 } else {
6222 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_with"), ws, layout, box);
6223 text::add_space_to_layout_box(ws, layout, box);
6224 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_culture"));
6225 }
6226 text::close_layout_box(layout, box);
6227}
6229 auto box = text::open_layout_box(layout, indentation);
6230 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6232 text::produce_simple_string(ws, ws.world.culture_get_name(trigger::payload(tval[1]).cul_id)), ws, layout, box);
6233 text::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.culture_get_name(trigger::payload(tval[1]).cul_id)), ws, layout, box);
6249 text::add_space_to_layout_box(ws, layout, box);
6250 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6251 text::close_layout_box(layout, box);
6252}
6254 auto box = text::open_layout_box(layout, indentation);
6255 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6257 text::produce_simple_string(ws, ws.world.culture_get_name(trigger::payload(tval[1]).cul_id)), ws, 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 text::close_layout_box(layout, box);
6261}
6263 auto box = text::open_layout_box(layout, indentation);
6264 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6266 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
6267 text::close_layout_box(layout, box);
6268}
6270 auto box = text::open_layout_box(layout, indentation);
6271 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6272 if(this_slot != -1) {
6274 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.pop_get_religion(trigger::to_pop(this_slot)))), ws,
6275 layout, box);
6276 text::add_space_to_layout_box(ws, layout, box);
6277 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6278 } else {
6279 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_with"), ws, layout, box);
6280 text::add_space_to_layout_box(ws, layout, box);
6281 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_religion"));
6282 }
6283 text::close_layout_box(layout, box);
6284}
6286 auto box = text::open_layout_box(layout, indentation);
6287 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6288 if(this_slot != -1) {
6290 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.pop_get_religion(trigger::to_pop(this_slot)))), ws,
6291 layout, box);
6292 text::add_space_to_layout_box(ws, layout, box);
6293 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6294 } else {
6295 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_with"), ws, layout, box);
6296 text::add_space_to_layout_box(ws, layout, box);
6297 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_religion"));
6298 }
6299 text::close_layout_box(layout, box);
6300}
6302 auto box = text::open_layout_box(layout, indentation);
6303 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6304 if(this_slot != -1) {
6306 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.pop_get_religion(trigger::to_pop(this_slot)))), ws,
6307 layout, box);
6308 text::add_space_to_layout_box(ws, layout, box);
6309 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6310 } else {
6311 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "pops_with"), ws, layout, box);
6312 text::add_space_to_layout_box(ws, layout, box);
6313 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_religion"));
6314 }
6315 text::close_layout_box(layout, box);
6316}
6318 auto box = text::open_layout_box(layout, indentation);
6319 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6321 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
6322 text::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);
6337 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
6338 text::add_space_to_layout_box(ws, layout, box);
6339 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6340 text::close_layout_box(layout, box);
6341}
6343 auto box = text::open_layout_box(layout, indentation);
6344 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6346 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
6347 text::add_space_to_layout_box(ws, layout, box);
6348 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "pops"));
6349 text::close_layout_box(layout, box);
6350}
6352 auto box = text::open_layout_box(layout, indentation);
6353 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6354 display_with_comparison(tval[0], text::produce_simple_string(ws, "life_needs_satisfaction"),
6355 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6356 text::close_layout_box(layout, box);
6357}
6359 auto box = text::open_layout_box(layout, indentation);
6360 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6361 display_with_comparison(tval[0], text::produce_simple_string(ws, "everyday_needs_satisfaction"),
6362 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6363 text::close_layout_box(layout, box);
6364}
6366 auto box = text::open_layout_box(layout, indentation);
6367 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6368 display_with_comparison(tval[0], text::produce_simple_string(ws, "luxury_needs_satisfaction"),
6369 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6370 text::close_layout_box(layout, box);
6371}
6373 auto box = text::open_layout_box(layout, indentation);
6374 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6375 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
6376 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6377 text::close_layout_box(layout, box);
6378}
6380 auto box = text::open_layout_box(layout, indentation);
6381 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6382 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
6383 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6384 text::close_layout_box(layout, box);
6385}
6387 auto box = text::open_layout_box(layout, indentation);
6388 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6389 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
6390 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6391 text::close_layout_box(layout, box);
6392}
6394 auto box = text::open_layout_box(layout, indentation);
6395 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6396 display_with_comparison(tval[0], text::produce_simple_string(ws, "consciousness"),
6397 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6398 text::close_layout_box(layout, box);
6399}
6401 auto box = text::open_layout_box(layout, indentation);
6402 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6404 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6405 text::close_layout_box(layout, box);
6406}
6408 auto box = text::open_layout_box(layout, indentation);
6409 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6411 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6412 text::close_layout_box(layout, box);
6413}
6415 auto box = text::open_layout_box(layout, indentation);
6416 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6418 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6419 text::close_layout_box(layout, box);
6420}
6422 auto box = text::open_layout_box(layout, indentation);
6423 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6425 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6426 text::close_layout_box(layout, box);
6427}
6429 auto box = text::open_layout_box(layout, indentation);
6430 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6431 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
6432 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6433 text::close_layout_box(layout, box);
6434}
6436 auto box = text::open_layout_box(layout, indentation);
6437 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6438 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
6439 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6440 text::close_layout_box(layout, box);
6441}
6443 auto box = text::open_layout_box(layout, indentation);
6444 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6445 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
6446 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6447 text::close_layout_box(layout, box);
6448}
6450 auto box = text::open_layout_box(layout, indentation);
6451 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6452 display_with_comparison(tval[0], text::produce_simple_string(ws, "militancy"),
6453 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6454 text::close_layout_box(layout, box);
6455}
6457 auto box = text::open_layout_box(layout, indentation);
6458 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6459 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id)),
6460 text::produce_simple_string(ws, "present_in_state"), ws, layout, box);
6461 text::close_layout_box(layout, box);
6462}
6464 auto box = text::open_layout_box(layout, indentation);
6465 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6466 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id)),
6467 text::produce_simple_string(ws, "present_in_state"), ws, layout, box);
6468 text::close_layout_box(layout, box);
6469}
6471 auto box = text::open_layout_box(layout, indentation);
6472 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6473 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "flashpoint"), ws, layout, box);
6474 text::close_layout_box(layout, box);
6475}
6477 auto box = text::open_layout_box(layout, indentation);
6478 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6479 display_with_comparison(tval[0], text::produce_simple_string(ws, "flashpoint_tension"),
6480 text::fp_one_place{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6481 text::close_layout_box(layout, box);
6482}
6484 auto box = text::open_layout_box(layout, indentation);
6485 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6486 display_with_comparison(tval[0], text::produce_simple_string(ws, "there"), text::produce_simple_string(ws, "an_ongoing_crisis"),
6487 ws, layout, box);
6488 text::close_layout_box(layout, box);
6489}
6491 auto box = text::open_layout_box(layout, indentation);
6492 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6493 display_with_comparison(tval[0], text::produce_simple_string(ws, "current_crisis"),
6494 text::produce_simple_string(ws, "liberation_crisis"), ws, layout, box);
6495 text::close_layout_box(layout, box);
6496}
6498 auto box = text::open_layout_box(layout, indentation);
6499 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6500 display_with_comparison(tval[0], text::produce_simple_string(ws, "current_crisis"),
6501 text::produce_simple_string(ws, "claim_crisis"), ws, layout, box);
6502 text::close_layout_box(layout, box);
6503}
6505 auto box = text::open_layout_box(layout, indentation);
6506 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6507 display_with_comparison(tval[0], text::produce_simple_string(ws, "crisis_temperature_plain"),
6508 int64_t(trigger::read_float_from_payload(tval + 1)), ws, layout, box);
6509 text::close_layout_box(layout, box);
6510}
6512 auto box = text::open_layout_box(layout, indentation);
6513 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6514 display_with_comparison(tval[0], text::produce_simple_string(ws, "involved_in_crisis"), ws, layout, box);
6515 text::close_layout_box(layout, box);
6516}
6518 auto box = text::open_layout_box(layout, indentation);
6519 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6520 display_with_comparison(tval[0], text::produce_simple_string(ws, "involved_in_crisis"), ws, layout, box);
6521 text::close_layout_box(layout, box);
6522}
6524 auto box = text::open_layout_box(layout, indentation);
6525 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6526 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_life_needs_satisfaction"),
6527 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6528 text::close_layout_box(layout, box);
6529}
6531 auto box = text::open_layout_box(layout, indentation);
6532 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6533 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_life_needs_satisfaction"),
6534 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6535 text::close_layout_box(layout, box);
6536}
6538 auto box = text::open_layout_box(layout, indentation);
6539 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6540 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_life_needs_satisfaction"),
6541 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6542 text::close_layout_box(layout, box);
6543}
6545 auto box = text::open_layout_box(layout, indentation);
6546 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6547 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_life_needs_satisfaction"),
6548 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6549 text::close_layout_box(layout, box);
6550}
6552 auto box = text::open_layout_box(layout, indentation);
6553 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6554 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_everyday_needs_satisfaction"),
6555 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6556 text::close_layout_box(layout, box);
6557}
6559 auto box = text::open_layout_box(layout, indentation);
6560 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6561 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_everyday_needs_satisfaction"),
6562 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6563 text::close_layout_box(layout, box);
6564}
6566 auto box = text::open_layout_box(layout, indentation);
6567 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6568 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_everyday_needs_satisfaction"),
6569 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6570 text::close_layout_box(layout, box);
6571}
6573 auto box = text::open_layout_box(layout, indentation);
6574 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6575 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_everyday_needs_satisfaction"),
6576 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6577 text::close_layout_box(layout, box);
6578}
6580 auto box = text::open_layout_box(layout, indentation);
6581 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6582 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_luxury_needs_satisfaction"),
6583 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6584 text::close_layout_box(layout, box);
6585}
6587 auto box = text::open_layout_box(layout, indentation);
6588 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6589 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_luxury_needs_satisfaction"),
6590 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6591 text::close_layout_box(layout, box);
6592}
6594 auto box = text::open_layout_box(layout, indentation);
6595 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6596 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_luxury_needs_satisfaction"),
6597 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6598 text::close_layout_box(layout, box);
6599}
6601 auto box = text::open_layout_box(layout, indentation);
6602 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6603 display_with_comparison(tval[0], text::produce_simple_string(ws, "rich_luxury_needs_satisfaction"),
6604 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6605 text::close_layout_box(layout, box);
6606}
6608 auto box = text::open_layout_box(layout, indentation);
6609 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6610 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_life_needs_satisfaction"),
6611 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6612 text::close_layout_box(layout, box);
6613}
6615 auto box = text::open_layout_box(layout, indentation);
6616 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6617 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_life_needs_satisfaction"),
6618 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6619 text::close_layout_box(layout, box);
6620}
6622 auto box = text::open_layout_box(layout, indentation);
6623 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6624 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_life_needs_satisfaction"),
6625 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6626 text::close_layout_box(layout, box);
6627}
6629 auto box = text::open_layout_box(layout, indentation);
6630 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6631 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_life_needs_satisfaction"),
6632 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6633 text::close_layout_box(layout, box);
6634}
6636 auto box = text::open_layout_box(layout, indentation);
6637 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6638 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_everyday_needs_satisfaction"),
6639 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6640 text::close_layout_box(layout, box);
6641}
6643 auto box = text::open_layout_box(layout, indentation);
6644 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6645 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_everyday_needs_satisfaction"),
6646 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6647 text::close_layout_box(layout, box);
6648}
6650 auto box = text::open_layout_box(layout, indentation);
6651 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6652 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_everyday_needs_satisfaction"),
6653 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6654 text::close_layout_box(layout, box);
6655}
6657 auto box = text::open_layout_box(layout, indentation);
6658 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6659 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_everyday_needs_satisfaction"),
6660 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6661 text::close_layout_box(layout, box);
6662}
6664 auto box = text::open_layout_box(layout, indentation);
6665 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6666 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_luxury_needs_satisfaction"),
6667 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6668 text::close_layout_box(layout, box);
6669}
6671 auto box = text::open_layout_box(layout, indentation);
6672 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6673 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_luxury_needs_satisfaction"),
6674 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6675 text::close_layout_box(layout, box);
6676}
6678 auto box = text::open_layout_box(layout, indentation);
6679 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6680 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_luxury_needs_satisfaction"),
6681 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6682 text::close_layout_box(layout, box);
6683}
6685 auto box = text::open_layout_box(layout, indentation);
6686 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6687 display_with_comparison(tval[0], text::produce_simple_string(ws, "middle_luxury_needs_satisfaction"),
6688 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6689 text::close_layout_box(layout, box);
6690}
6692 auto box = text::open_layout_box(layout, indentation);
6693 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6694 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_life_needs_satisfaction"),
6695 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6696 text::close_layout_box(layout, box);
6697}
6699 auto box = text::open_layout_box(layout, indentation);
6700 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6701 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_life_needs_satisfaction"),
6702 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6703 text::close_layout_box(layout, box);
6704}
6706 auto box = text::open_layout_box(layout, indentation);
6707 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6708 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_life_needs_satisfaction"),
6709 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6710 text::close_layout_box(layout, box);
6711}
6713 auto box = text::open_layout_box(layout, indentation);
6714 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6715 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_life_needs_satisfaction"),
6716 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6717 text::close_layout_box(layout, box);
6718}
6720 auto box = text::open_layout_box(layout, indentation);
6721 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6722 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_everyday_needs_satisfaction"),
6723 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6724 text::close_layout_box(layout, box);
6725}
6727 auto box = text::open_layout_box(layout, indentation);
6728 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6729 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_everyday_needs_satisfaction"),
6730 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6731 text::close_layout_box(layout, box);
6732}
6734 auto box = text::open_layout_box(layout, indentation);
6735 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6736 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_everyday_needs_satisfaction"),
6737 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6738 text::close_layout_box(layout, box);
6739}
6741 auto box = text::open_layout_box(layout, indentation);
6742 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6743 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_everyday_needs_satisfaction"),
6744 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6745 text::close_layout_box(layout, box);
6746}
6748 auto box = text::open_layout_box(layout, indentation);
6749 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6750 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_luxury_needs_satisfaction"),
6751 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6752 text::close_layout_box(layout, box);
6753}
6755 auto box = text::open_layout_box(layout, indentation);
6756 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6757 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_luxury_needs_satisfaction"),
6758 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6759 text::close_layout_box(layout, box);
6760}
6762 auto box = text::open_layout_box(layout, indentation);
6763 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6764 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_luxury_needs_satisfaction"),
6765 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6766 text::close_layout_box(layout, box);
6767}
6769 auto box = text::open_layout_box(layout, indentation);
6770 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6771 display_with_comparison(tval[0], text::produce_simple_string(ws, "poor_luxury_needs_satisfaction"),
6772 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6773 text::close_layout_box(layout, box);
6774}
6776 auto box = text::open_layout_box(layout, indentation);
6777 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6778 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "dip_influence_over"));
6779 text::add_space_to_layout_box(ws, layout, box);
6780 display_with_comparison(tval[0], trigger::payload(tval[2]).tag_id, int64_t(tval[1]), ws, layout, box);
6781 text::close_layout_box(layout, box);
6782}
6784 auto box = text::open_layout_box(layout, indentation);
6785 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6786 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "dip_influence_over"));
6787 text::add_space_to_layout_box(ws, layout, box);
6788 if(this_slot != -1)
6789 display_with_comparison(tval[0], trigger::to_nation(this_slot), int64_t(tval[1]), ws, layout, box);
6790 else
6791 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), int64_t(tval[1]), ws, layout, box);
6792 text::close_layout_box(layout, box);
6793}
6795 auto box = text::open_layout_box(layout, indentation);
6796 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6797 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "dip_influence_over"));
6798 text::add_space_to_layout_box(ws, layout, box);
6799 if(this_slot != -1)
6800 display_with_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)),
6801 int64_t(tval[1]), ws, layout, box);
6802 else
6803 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"), int64_t(tval[1]), ws, layout, box);
6804 text::close_layout_box(layout, box);
6805}
6807 auto box = text::open_layout_box(layout, indentation);
6808 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6809 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "dip_influence_over"));
6810 text::add_space_to_layout_box(ws, layout, box);
6811 if(from_slot != -1)
6812 display_with_comparison(tval[0], trigger::to_nation(from_slot), int64_t(tval[1]), ws, layout, box);
6813 else
6814 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"), int64_t(tval[1]), ws, layout, box);
6815 text::close_layout_box(layout, box);
6816}
6818 auto box = text::open_layout_box(layout, indentation);
6819 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6820 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "dip_influence_over"));
6821 text::add_space_to_layout_box(ws, layout, box);
6822 if(from_slot != -1)
6823 display_with_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(from_slot)),
6824 int64_t(tval[1]), ws, layout, box);
6825 else
6826 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"), int64_t(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 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[3]).popt_id));
6842 text::add_space_to_layout_box(ws, layout, box);
6843 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6844 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6845 text::close_layout_box(layout, box);
6846}
6848 auto box = text::open_layout_box(layout, indentation);
6849 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6850 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[3]).popt_id));
6851 text::add_space_to_layout_box(ws, layout, box);
6852 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6853 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6854 text::close_layout_box(layout, box);
6855}
6857 auto box = text::open_layout_box(layout, indentation);
6858 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6859 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6860 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6861 text::close_layout_box(layout, box);
6862}
6864 auto box = text::open_layout_box(layout, indentation);
6865 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6866 if(this_slot != -1)
6867 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(ws.world.pop_get_poptype(trigger::to_pop(this_slot))));
6868 else
6869 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_type"));
6870 text::add_space_to_layout_box(ws, layout, box);
6871 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6872 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6873 text::close_layout_box(layout, box);
6874}
6876 auto box = text::open_layout_box(layout, indentation);
6877 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6878 if(this_slot != -1)
6879 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(ws.world.pop_get_poptype(trigger::to_pop(this_slot))));
6880 else
6881 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_type"));
6882 text::add_space_to_layout_box(ws, layout, box);
6883 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6884 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6885 text::close_layout_box(layout, box);
6886}
6888 auto box = text::open_layout_box(layout, indentation);
6889 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6890 if(this_slot != -1)
6891 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(ws.world.pop_get_poptype(trigger::to_pop(this_slot))));
6892 else
6893 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_pop_type"));
6894 text::add_space_to_layout_box(ws, layout, box);
6895 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
6896 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6897 text::close_layout_box(layout, box);
6898}
6900 auto box = text::open_layout_box(layout, indentation);
6901 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6902 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "relationship_with"));
6903 text::add_space_to_layout_box(ws, layout, box);
6904 display_with_comparison(tval[0], trigger::payload(tval[2]).tag_id, int64_t(trigger::payload(tval[1]).signed_value), ws, layout,
6905 box);
6906 text::close_layout_box(layout, box);
6907}
6909 auto box = text::open_layout_box(layout, indentation);
6910 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6911 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "relationship_with"));
6912 text::add_space_to_layout_box(ws, layout, box);
6913 if(this_slot != -1)
6914 display_with_comparison(tval[0], trigger::to_nation(this_slot), int64_t(trigger::payload(tval[1]).signed_value), ws, layout,
6915 box);
6916 else
6917 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"),
6918 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6919 text::close_layout_box(layout, box);
6920}
6922 auto box = text::open_layout_box(layout, indentation);
6923 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6924 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "relationship_with"));
6925 text::add_space_to_layout_box(ws, layout, box);
6926 if(this_slot != -1)
6927 display_with_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot)),
6928 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6929 else
6930 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"),
6931 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6932 text::close_layout_box(layout, box);
6933}
6935 auto box = text::open_layout_box(layout, indentation);
6936 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6937 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "relationship_with"));
6938 text::add_space_to_layout_box(ws, layout, box);
6939 if(this_slot != -1)
6941 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6942 else
6943 display_with_comparison(tval[0], text::produce_simple_string(ws, "this_nation"),
6944 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6945 text::close_layout_box(layout, box);
6946}
6948 auto box = text::open_layout_box(layout, indentation);
6949 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6950 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "relationship_with"));
6951 text::add_space_to_layout_box(ws, layout, box);
6952 if(from_slot != -1)
6953 display_with_comparison(tval[0], trigger::to_nation(from_slot), int64_t(trigger::payload(tval[1]).signed_value), ws, layout,
6954 box);
6955 else
6956 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"),
6957 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6958 text::close_layout_box(layout, box);
6959}
6961 auto box = text::open_layout_box(layout, indentation);
6962 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6963 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "relationship_with"));
6964 text::add_space_to_layout_box(ws, layout, box);
6965 if(from_slot != -1)
6966 display_with_comparison(tval[0], ws.world.province_get_nation_from_province_ownership(trigger::to_prov(from_slot)),
6967 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
6968 else
6969 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_nation"),
6970 int64_t(trigger::payload(tval[1]).signed_value), 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);
6977 text::produce_simple_string(ws, ws.national_definitions.variable_names[trigger::payload(tval[3]).natv_id]),
6978 text::fp_two_places{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
6979 text::close_layout_box(layout, box);
6980}
6982 auto box = text::open_layout_box(layout, indentation);
6983 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
6984 text::add_to_layout_box(ws, layout, box,
6985 text::produce_simple_string(ws, ws.world.ideology_get_name(trigger::payload(tval[3]).ideo_id)));
6986 text::add_space_to_layout_box(ws, layout, box);
6987 display_with_comparison(tval[0], text::produce_simple_string(ws, "support_in_uh"),
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"),
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 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[3]).popt_id));
7013 text::add_space_to_layout_box(ws, layout, box);
7014 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment"),
7015 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
7016 text::close_layout_box(layout, box);
7017}
7019 auto box = text::open_layout_box(layout, indentation);
7020 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7021 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[3]).popt_id));
7022 text::add_space_to_layout_box(ws, layout, box);
7023 display_with_comparison(tval[0], text::produce_simple_string(ws, "unemployment_in_state"),
7024 text::fp_percentage{trigger::read_float_from_payload(tval + 1)}, ws, layout, box);
7025 text::close_layout_box(layout, box);
7026}
7028 auto box = text::open_layout_box(layout, indentation);
7029 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7030
7031 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[3]).ideo_id));
7032 text::add_space_to_layout_box(ws, layout, box);
7033 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "support_in"));
7034 text::add_space_to_layout_box(ws, layout, box);
7035 display_with_comparison(tval[0], trigger::payload(tval[1]).prov_id, int64_t(trigger::payload(tval[2]).signed_value), ws, layout,
7036 box);
7037 text::close_layout_box(layout, box);
7038}
7040 auto box = text::open_layout_box(layout, indentation);
7041 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7042
7043 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[3]).ideo_id));
7044 text::add_space_to_layout_box(ws, layout, box);
7045 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "support_in"));
7046 text::add_space_to_layout_box(ws, layout, box);
7047 display_with_comparison(tval[0], trigger::payload(tval[1]).prov_id, int64_t(trigger::payload(tval[2]).signed_value), ws, layout,
7048 box);
7049 text::close_layout_box(layout, box);
7050}
7052 auto box = text::open_layout_box(layout, indentation);
7053 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7054
7055 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[3]).ideo_id));
7056 text::add_space_to_layout_box(ws, layout, box);
7057 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "support_in"));
7058 text::add_space_to_layout_box(ws, layout, box);
7059 display_with_comparison(tval[0], trigger::payload(tval[1]).prov_id, int64_t(trigger::payload(tval[2]).signed_value), ws, layout,
7060 box);
7061 text::close_layout_box(layout, box);
7062}
7064 auto box = text::open_layout_box(layout, indentation);
7065 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7066
7067 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[3]).ideo_id));
7068 text::add_space_to_layout_box(ws, layout, box);
7069 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "support_in"));
7070 text::add_space_to_layout_box(ws, layout, box);
7071 display_with_comparison(tval[0], trigger::payload(tval[1]).prov_id, int64_t(trigger::payload(tval[2]).signed_value), ws, layout,
7072 box);
7073 text::close_layout_box(layout, box);
7074}
7076 auto box = text::open_layout_box(layout, indentation);
7077 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7078
7079 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[2]).ideo_id));
7080 text::add_space_to_layout_box(ws, layout, box);
7081 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "support_in"));
7082 text::add_space_to_layout_box(ws, layout, box);
7083 if(from_slot != -1)
7084 display_with_comparison(tval[0], trigger::to_prov(from_slot), int64_t(trigger::payload(tval[1]).signed_value), ws, layout,
7085 box);
7086 else
7087 display_with_comparison(tval[0], text::produce_simple_string(ws, "from_province"),
7088 int64_t(trigger::payload(tval[1]).signed_value), ws, layout, box);
7089 text::close_layout_box(layout, box);
7090}
7092 auto box = text::open_layout_box(layout, indentation);
7093 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7094
7095 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[2]).ideo_id));
7096 text::add_space_to_layout_box(ws, layout, box);
7097 display_with_comparison(tval[0], text::produce_simple_string(ws, "support"), int64_t(trigger::payload(tval[1]).signed_value),
7098 ws, layout, box);
7099 text::close_layout_box(layout, box);
7100}
7102 auto box = text::open_layout_box(layout, indentation);
7103 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7104
7105 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[2]).ideo_id));
7106 text::add_space_to_layout_box(ws, layout, box);
7107 display_with_comparison(tval[0], text::produce_simple_string(ws, "support"), int64_t(trigger::payload(tval[1]).signed_value),
7108 ws, layout, box);
7109 text::close_layout_box(layout, box);
7110}
7112 auto box = text::open_layout_box(layout, indentation);
7113 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7114
7115 text::add_to_layout_box(ws, layout, box, ws.world.ideology_get_name(trigger::payload(tval[2]).ideo_id));
7116 text::add_space_to_layout_box(ws, layout, box);
7117 display_with_comparison(tval[0], text::produce_simple_string(ws, "support"), int64_t(trigger::payload(tval[1]).signed_value),
7118 ws, layout, box);
7119 text::close_layout_box(layout, box);
7120}
7122 auto box = text::open_layout_box(layout, indentation);
7123 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7124 if(from_slot != -1)
7125 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
7126 else
7127 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
7128 text::add_space_to_layout_box(ws, layout, box);
7129 text::add_to_layout_box(ws, layout, box,
7131 ? "can_build_railroad_here"
7132 : "cannot_build_railroad_here"));
7133 text::close_layout_box(layout, box);
7134}
7136 auto box = text::open_layout_box(layout, indentation);
7137 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7138 if(from_slot != -1)
7139 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
7140 else
7141 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
7142 text::add_space_to_layout_box(ws, layout, box);
7143 text::add_to_layout_box(ws, layout, box,
7145 ? "can_build_railroad_here"
7146 : "cannot_build_railroad_here"));
7147 text::close_layout_box(layout, box);
7148}
7150 auto box = text::open_layout_box(layout, indentation);
7151 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7152 if(this_slot != -1)
7153 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
7154 else
7155 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
7156 text::add_space_to_layout_box(ws, layout, box);
7157 text::add_to_layout_box(ws, layout, box,
7159 ? "can_build_railroad_here"
7160 : "cannot_build_railroad_here"));
7161 text::close_layout_box(layout, box);
7162}
7164 auto box = text::open_layout_box(layout, indentation);
7165 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7166 if(this_slot != -1)
7167 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
7168 else
7169 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
7170 text::add_space_to_layout_box(ws, layout, box);
7171 text::add_to_layout_box(ws, layout, box,
7173 ? "can_build_railroad_here"
7174 : "cannot_build_railroad_here"));
7175 text::close_layout_box(layout, box);
7176}
7178 auto box = text::open_layout_box(layout, indentation);
7179 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7180 if(from_slot != -1)
7181 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
7182 else
7183 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
7184 text::add_space_to_layout_box(ws, layout, box);
7185 text::add_to_layout_box(ws, layout, box,
7187 (tval[0] & trigger::association_mask) == trigger::association_eq ? "can_build_fort_here" : "cannot_build_fort_here"));
7188 text::close_layout_box(layout, box);
7189}
7191 auto box = text::open_layout_box(layout, indentation);
7192 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7193 if(from_slot != -1)
7194 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
7195 else
7196 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
7197 text::add_space_to_layout_box(ws, layout, box);
7198 text::add_to_layout_box(ws, layout, box,
7200 (tval[0] & trigger::association_mask) == trigger::association_eq ? "can_build_fort_here" : "cannot_build_fort_here"));
7201 text::close_layout_box(layout, box);
7202}
7204 auto box = text::open_layout_box(layout, indentation);
7205 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7206 if(this_slot != -1)
7207 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
7208 else
7209 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
7210 text::add_space_to_layout_box(ws, layout, box);
7211 text::add_to_layout_box(ws, layout, box,
7213 (tval[0] & trigger::association_mask) == trigger::association_eq ? "can_build_fort_here" : "cannot_build_fort_here"));
7214 text::close_layout_box(layout, box);
7215}
7217 auto box = text::open_layout_box(layout, indentation);
7218 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7219 if(this_slot != -1)
7220 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
7221 else
7222 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
7223 text::add_space_to_layout_box(ws, layout, box);
7224 text::add_to_layout_box(ws, layout, box,
7226 (tval[0] & trigger::association_mask) == trigger::association_eq ? "can_build_fort_here" : "cannot_build_fort_here"));
7227 text::close_layout_box(layout, box);
7228}
7230 auto box = text::open_layout_box(layout, indentation);
7231 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7232 if(from_slot != -1)
7233 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
7234 else
7235 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
7236 text::add_space_to_layout_box(ws, layout, box);
7237 text::add_to_layout_box(ws, layout, box,
7239 ? "can_build_naval_base_here"
7240 : "cannot_build_naval_base_here"));
7241 text::close_layout_box(layout, box);
7242}
7244 auto box = text::open_layout_box(layout, indentation);
7245 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7246 if(from_slot != -1)
7247 text::add_to_layout_box(ws, layout, box, trigger::to_nation(from_slot));
7248 else
7249 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "from_nation"));
7250 text::add_space_to_layout_box(ws, layout, box);
7251 text::add_to_layout_box(ws, layout, box,
7253 ? "can_build_naval_base_here"
7254 : "cannot_build_naval_base_here"));
7255 text::close_layout_box(layout, box);
7256}
7258 auto box = text::open_layout_box(layout, indentation);
7259 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7260 if(this_slot != -1)
7261 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
7262 else
7263 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
7264 text::add_space_to_layout_box(ws, layout, box);
7265 text::add_to_layout_box(ws, layout, box,
7267 ? "can_build_naval_base_here"
7268 : "cannot_build_naval_base_here"));
7269 text::close_layout_box(layout, box);
7270}
7272 auto box = text::open_layout_box(layout, indentation);
7273 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7274 if(this_slot != -1)
7275 text::add_to_layout_box(ws, layout, box, trigger::to_nation(this_slot));
7276 else
7277 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "this_nation"));
7278 text::add_space_to_layout_box(ws, layout, box);
7279 text::add_to_layout_box(ws, layout, box,
7281 ? "can_build_naval_base_here"
7282 : "cannot_build_naval_base_here"));
7283 text::close_layout_box(layout, box);
7284}
7286 // stub: virtually unused
7287 auto box = text::open_layout_box(layout, indentation);
7288 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7290 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7291 else
7292 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7293 text::close_layout_box(layout, box);
7294}
7296 // stub: virtually unused
7297 auto box = text::open_layout_box(layout, indentation);
7298 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7300 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7301 else
7302 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7303 text::close_layout_box(layout, box);
7304}
7306 // stub: virtually unused
7307 auto box = text::open_layout_box(layout, indentation);
7308 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7310 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7311 else
7312 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7313 text::close_layout_box(layout, box);
7314}
7316 // stub: virtually unused
7317 auto box = text::open_layout_box(layout, indentation);
7318 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7320 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7321 else
7322 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7323 text::close_layout_box(layout, box);
7324}
7326 // stub: virtually unused
7327 auto box = text::open_layout_box(layout, indentation);
7328 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7330 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7331 else
7332 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7333 text::close_layout_box(layout, box);
7334}
7336 // stub: virtually unused
7337 auto box = text::open_layout_box(layout, indentation);
7338 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7340 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7341 else
7342 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7343 text::close_layout_box(layout, box);
7344}
7346 // stub: virtually unused
7347 auto box = text::open_layout_box(layout, indentation);
7348 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7350 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7351 else
7352 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
7353 text::close_layout_box(layout, box);
7354}
7356 // stub: virtually unused
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);
7360 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "always"));
7361 else
7362 text::add_to_layout_box(ws, layout, box, text::produce_simple_string(ws, "never"));
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 display_with_comparison(tval[0], text::produce_simple_string(ws, "work"), text::produce_simple_string(ws, "available_for"), ws,
7378 layout, box);
7379 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
7380 text::add_space_to_layout_box(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 display_with_comparison(tval[0], text::produce_simple_string(ws, "work"), text::produce_simple_string(ws, "available_for"), ws,
7387 layout, box);
7388 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
7389 text::add_space_to_layout_box(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.ideology_get_name(trigger::payload(tval[1]).ideo_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.ideology_get_name(trigger::payload(tval[1]).ideo_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 text::add_to_layout_box(ws, layout, box, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id));
7450 text::add_space_to_layout_box(ws, layout, box);
7452 text::fp_percentage{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7453 text::close_layout_box(layout, box);
7454}
7456 auto box = text::open_layout_box(layout, indentation);
7457 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7458 text::add_to_layout_box(ws, layout, box, ws.world.issue_option_get_name(trigger::payload(tval[1]).opt_id));
7459 text::add_space_to_layout_box(ws, layout, box);
7461 text::fp_percentage{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7462 text::close_layout_box(layout, box);
7463}
7465 auto box = text::open_layout_box(layout, indentation);
7466 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7467 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.issue_get_name(trigger::payload(tval[1]).iss_id)),
7468 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[2]).opt_id)), ws, layout, box);
7469 text::close_layout_box(layout, box);
7470}
7472 auto box = text::open_layout_box(layout, indentation);
7473 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7474 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.issue_get_name(trigger::payload(tval[1]).iss_id)),
7475 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[2]).opt_id)), ws, layout, box);
7476 text::close_layout_box(layout, box);
7477}
7479 auto box = text::open_layout_box(layout, indentation);
7480 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7481 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.issue_get_name(trigger::payload(tval[1]).iss_id)),
7482 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[2]).opt_id)), ws, layout, box);
7483 text::close_layout_box(layout, box);
7484}
7486 auto box = text::open_layout_box(layout, indentation);
7487 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7488 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.issue_get_name(trigger::payload(tval[1]).iss_id)),
7489 text::produce_simple_string(ws, ws.world.issue_option_get_name(trigger::payload(tval[2]).opt_id)), ws, layout, box);
7490 text::close_layout_box(layout, box);
7491}
7493 auto box = text::open_layout_box(layout, indentation);
7494 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7495 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.reform_get_name(trigger::payload(tval[1]).ref_id)),
7496 text::produce_simple_string(ws, ws.world.reform_option_get_name(trigger::payload(tval[2]).ropt_id)), ws, layout, box);
7497 text::close_layout_box(layout, box);
7498}
7500 auto box = text::open_layout_box(layout, indentation);
7501 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7502 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.reform_get_name(trigger::payload(tval[1]).ref_id)),
7503 text::produce_simple_string(ws, ws.world.reform_option_get_name(trigger::payload(tval[2]).ropt_id)), ws, layout, box);
7504 text::close_layout_box(layout, box);
7505}
7507 auto box = text::open_layout_box(layout, indentation);
7508 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7509 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.reform_get_name(trigger::payload(tval[1]).ref_id)),
7510 text::produce_simple_string(ws, ws.world.reform_option_get_name(trigger::payload(tval[2]).ropt_id)), ws, layout, box);
7511 text::close_layout_box(layout, box);
7512}
7514 auto box = text::open_layout_box(layout, indentation);
7515 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7516 display_with_comparison(tval[0], text::produce_simple_string(ws, ws.world.reform_get_name(trigger::payload(tval[1]).ref_id)),
7517 text::produce_simple_string(ws, ws.world.reform_option_get_name(trigger::payload(tval[2]).ropt_id)), ws, layout, box);
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, "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.pop_type_get_name(trigger::payload(tval[1]).popt_id));
7542 text::add_space_to_layout_box(ws, layout, box);
7543 display_with_comparison(tval[0], text::produce_simple_string(ws, "percentage"),
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 text::add_to_layout_box(ws, layout, box, ws.world.pop_type_get_name(trigger::payload(tval[1]).popt_id));
7551 text::add_space_to_layout_box(ws, layout, box);
7552 display_with_comparison(tval[0], text::produce_simple_string(ws, "province_percentage"),
7554 text::close_layout_box(layout, box);
7555}
7557 auto box = text::open_layout_box(layout, indentation);
7558 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7559 text::add_to_layout_box(ws, layout, box, ws.world.commodity_get_name(trigger::payload(tval[1]).com_id));
7560 text::add_space_to_layout_box(ws, layout, box);
7561 display_with_comparison(tval[0], text::produce_simple_string(ws, "stockpile"),
7562 text::fp_one_place{trigger::read_float_from_payload(tval + 2)}, ws, layout, box);
7563 text::close_layout_box(layout, box);
7564}
7566 auto box = text::open_layout_box(layout, indentation);
7567 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7568 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7569 text::produce_simple_string(ws, ws.world.religion_get_name(trigger::payload(tval[1]).rel_id)), ws, layout, box);
7570 text::close_layout_box(layout, box);
7571}
7573 auto box = text::open_layout_box(layout, indentation);
7574 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7575 if(from_slot != -1)
7576 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7578 ws.world.religion_get_name(ws.world.rebel_faction_get_religion(trigger::to_rebel(from_slot)))),
7579 ws, layout, box);
7580 else
7581 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7582 text::produce_simple_string(ws, "rebel_religion"), ws, layout, box);
7583 text::close_layout_box(layout, box);
7584}
7586 auto box = text::open_layout_box(layout, indentation);
7587 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7588 if(from_slot != -1)
7589 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7590 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.nation_get_religion(trigger::to_nation(from_slot)))),
7591 ws, layout, box);
7592 else
7593 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7594 text::produce_simple_string(ws, "from_nat_religion"), ws, layout, box);
7595 text::close_layout_box(layout, box);
7596}
7598 auto box = text::open_layout_box(layout, indentation);
7599 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7600 if(this_slot != -1)
7601 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7602 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.nation_get_religion(trigger::to_nation(this_slot)))),
7603 ws, layout, box);
7604 else
7605 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7606 text::produce_simple_string(ws, "this_nat_religion"), ws, layout, box);
7607 text::close_layout_box(layout, box);
7608}
7610 auto box = text::open_layout_box(layout, indentation);
7611 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7612 if(this_slot != -1)
7613 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7615 ws.world.religion_get_name(ws.world.nation_get_religion(
7616 ws.world.state_instance_get_nation_from_state_ownership(trigger::to_state(this_slot))))),
7617 ws, layout, box);
7618 else
7619 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7620 text::produce_simple_string(ws, "this_nat_religion"), ws, layout, box);
7621 text::close_layout_box(layout, box);
7622}
7624 auto box = text::open_layout_box(layout, indentation);
7625 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7626 if(this_slot != -1)
7627 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7628 text::produce_simple_string(ws, ws.world.religion_get_name(ws.world.nation_get_religion(
7629 ws.world.province_get_nation_from_province_ownership(trigger::to_prov(this_slot))))),
7630 ws, layout, box);
7631 else
7632 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7633 text::produce_simple_string(ws, "this_nat_religion"), ws, layout, box);
7634 text::close_layout_box(layout, box);
7635}
7637 auto box = text::open_layout_box(layout, indentation);
7638 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7639 if(this_slot != -1)
7640 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7642 ws.world.religion_get_name(ws.world.nation_get_religion(nations::owner_of_pop(ws, trigger::to_pop(this_slot))))),
7643 ws, layout, box);
7644 else
7645 display_with_comparison(tval[0], text::produce_simple_string(ws, "national_religion"),
7646 text::produce_simple_string(ws, "this_nat_religion"), ws, layout, box);
7647 text::close_layout_box(layout, box);
7648}
7649
7651 auto box = text::open_layout_box(layout, indentation);
7652 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7653 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "tt_a_bank"), ws, layout, box);
7654 text::close_layout_box(layout, box);
7655}
7657 auto box = text::open_layout_box(layout, indentation);
7658 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7659 display_with_has_comparison(tval[0], text::produce_simple_string(ws, "tt_a_university"), ws, layout, box);
7660 text::close_layout_box(layout, box);
7661}
7662
7664 auto ideology = trigger::payload(tval[1]).ideo_id;
7665 dcon::text_key new_name{ dcon::text_key::value_base_t(trigger::read_int32_t_from_payload(tval + 2)) };
7666
7667 if(ideology) {
7668 auto id_name = ws.world.ideology_get_name(ideology);
7669 auto box = text::open_layout_box(layout, indentation);
7670
7671 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7672
7675 auto left_str = text::resolve_string_substitution(ws, "pname_is", s);
7676 display_with_comparison(tval[0], left_str, new_name, ws, layout, box);
7677
7678 text::close_layout_box(layout, box);
7679 } else {
7680 auto box = text::open_layout_box(layout, indentation);
7681 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7682 display_with_comparison(tval[0], text::produce_simple_string(ws, "rpname_is"), new_name, ws, layout, box);
7683 text::close_layout_box(layout, box);
7684 }
7685}
7686
7688 auto ideology = trigger::payload(tval[1]).ideo_id;
7689 dcon::issue_option_id new_opt = trigger::payload(tval[2]).opt_id;
7690 auto opt_name = ws.world.issue_option_get_name(new_opt);
7691
7692 if(ideology) {
7693 auto id_name = ws.world.ideology_get_name(ideology);
7694 auto box = text::open_layout_box(layout, indentation);
7695
7696 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7697
7700 auto left_str = text::resolve_string_substitution(ws, "pposition_is", s);
7701 display_with_comparison(tval[0], left_str, opt_name, ws, layout, box);
7702
7703 text::close_layout_box(layout, box);
7704 } else {
7705 auto box = text::open_layout_box(layout, indentation);
7706 make_condition(tval, ws, layout, primary_slot, this_slot, from_slot, indentation, show_condition, box);
7707 display_with_comparison(tval[0], text::produce_simple_string(ws, "rpposition_is"), opt_name, ws, layout, box);
7708 text::close_layout_box(layout, box);
7709 }
7710}
7711
7712constexpr inline void (*trigger_functions[])(TRIGGER_DISPLAY_PARAMS) = {
7713 tf_none,
7714 tf_year, // constexpr inline uint16_t year = 0x0001;
7715 tf_month, // constexpr inline uint16_t month = 0x0002;
7716 tf_port, // constexpr inline uint16_t port = 0x0003;
7717 tf_rank, // constexpr inline uint16_t rank = 0x0004;
7718 tf_technology, // constexpr inline uint16_t technology = 0x0005;
7719 tf_strata_rich, // constexpr inline uint16_t strata_rich = 0x0006;
7720 tf_life_rating_province, // constexpr inline uint16_t life_rating_province = 0x0007;
7721 tf_life_rating_state, // constexpr inline uint16_t life_rating_state = 0x0008;
7722 tf_has_empty_adjacent_state_province, // constexpr inline uint16_t has_empty_adjacent_state_province = 0x0009;
7723 tf_has_empty_adjacent_state_state, // constexpr inline uint16_t has_empty_adjacent_state_state = 0x000A;
7724 tf_state_id_province, // constexpr inline uint16_t state_id_province = 0x000B;
7725 tf_state_id_state, // constexpr inline uint16_t state_id_state = 0x000C;
7726 tf_cash_reserves, // constexpr inline uint16_t cash_reserves = 0x000D;
7727 tf_unemployment_nation, // constexpr inline uint16_t unemployment_nation = 0x000E;
7728 tf_unemployment_state, // constexpr inline uint16_t unemployment_state = 0x000F;
7729 tf_unemployment_province, // constexpr inline uint16_t unemployment_province = 0x0010;
7730 tf_unemployment_pop, // constexpr inline uint16_t unemployment_pop = 0x0011;
7731 tf_is_slave_nation, // constexpr inline uint16_t is_slave_nation = 0x0012;
7732 tf_is_slave_state, // constexpr inline uint16_t is_slave_state = 0x0013;
7733 tf_is_slave_province, // constexpr inline uint16_t is_slave_province = 0x0014;
7734 tf_is_slave_pop, // constexpr inline uint16_t is_slave_pop = 0x0015;
7735 tf_is_independant, // constexpr inline uint16_t is_independant = 0x0016;
7736 tf_has_national_minority_province, // constexpr inline uint16_t has_national_minority_province = 0x0017;
7737 tf_has_national_minority_state, // constexpr inline uint16_t has_national_minority_state = 0x0018;
7738 tf_has_national_minority_nation, // constexpr inline uint16_t has_national_minority_nation = 0x0019;
7739 tf_government_nation, // constexpr inline uint16_t government_nation = 0x001A;
7740 tf_government_pop, // constexpr inline uint16_t government_pop = 0x001B;
7741 tf_capital, // constexpr inline uint16_t capital = 0x001C;
7742 tf_tech_school, // constexpr inline uint16_t tech_school = 0x001D;
7743 tf_primary_culture, // constexpr inline uint16_t primary_culture = 0x001E;
7744 tf_accepted_culture, // constexpr inline uint16_t accepted_culture = 0x001F;
7745 tf_culture_pop, // constexpr inline uint16_t culture_pop = 0x0020;
7746 tf_culture_state, // constexpr inline uint16_t culture_state = 0x0021;
7747 tf_culture_province, // constexpr inline uint16_t culture_province = 0x0022;
7748 tf_culture_nation, // constexpr inline uint16_t culture_nation = 0x0023;
7749 tf_culture_pop_reb, // constexpr inline uint16_t culture_pop_reb = 0x0024;
7750 tf_culture_state_reb, // constexpr inline uint16_t culture_state_reb = 0x0025;
7751 tf_culture_province_reb, // constexpr inline uint16_t culture_province_reb = 0x0026;
7752 tf_culture_nation_reb, // constexpr inline uint16_t culture_nation_reb = 0x0027;
7753 tf_culture_from_nation, // constexpr inline uint16_t culture_from_nation = 0x0028;
7754 tf_culture_this_nation, // constexpr inline uint16_t culture_this_nation = 0x0029;
7755 tf_culture_this_state, // constexpr inline uint16_t culture_this_state = 0x002A;
7756 tf_culture_this_pop, // constexpr inline uint16_t culture_this_pop = 0x002B;
7757 tf_culture_this_province, // constexpr inline uint16_t culture_this_province = 0x002C;
7758 tf_culture_group_nation, // constexpr inline uint16_t culture_group_nation = 0x002D;
7759 tf_culture_group_pop, // constexpr inline uint16_t culture_group_pop = 0x002E;
7760 tf_culture_group_reb_nation, // constexpr inline uint16_t culture_group_reb_nation = 0x002F;
7761 tf_culture_group_reb_pop, // constexpr inline uint16_t culture_group_reb_pop = 0x0030;
7762 tf_culture_group_nation_from_nation, // constexpr inline uint16_t culture_group_nation_from_nation = 0x0031;
7763 tf_culture_group_pop_from_nation, // constexpr inline uint16_t culture_group_pop_from_nation = 0x0032;
7764 tf_culture_group_nation_this_nation, // constexpr inline uint16_t culture_group_nation_this_nation = 0x0033;
7765 tf_culture_group_pop_this_nation, // constexpr inline uint16_t culture_group_pop_this_nation = 0x0034;
7766 tf_culture_group_nation_this_province, // constexpr inline uint16_t culture_group_nation_this_province = 0x0035;
7767 tf_culture_group_pop_this_province, // constexpr inline uint16_t culture_group_pop_this_province = 0x0036;
7768 tf_culture_group_nation_this_state, // constexpr inline uint16_t culture_group_nation_this_state = 0x0037;
7769 tf_culture_group_pop_this_state, // constexpr inline uint16_t culture_group_pop_this_state = 0x0038;
7770 tf_culture_group_nation_this_pop, // constexpr inline uint16_t culture_group_nation_this_pop = 0x0039;
7771 tf_culture_group_pop_this_pop, // constexpr inline uint16_t culture_group_pop_this_pop = 0x003A;
7772 tf_religion, // constexpr inline uint16_t religion = 0x003B;
7773 tf_religion_reb, // constexpr inline uint16_t religion_reb = 0x003C;
7774 tf_religion_from_nation, // constexpr inline uint16_t religion_from_nation = 0x003D;
7775 tf_religion_this_nation, // constexpr inline uint16_t religion_this_nation = 0x003E;
7776 tf_religion_this_state, // constexpr inline uint16_t religion_this_state = 0x003F;
7777 tf_religion_this_province, // constexpr inline uint16_t religion_this_province = 0x0040;
7778 tf_religion_this_pop, // constexpr inline uint16_t religion_this_pop = 0x0041;
7779 tf_terrain_province, // constexpr inline uint16_t terrain_province = 0x0042;
7780 tf_terrain_pop, // constexpr inline uint16_t terrain_pop = 0x0043;
7781 tf_trade_goods, // constexpr inline uint16_t trade_goods = 0x0044;
7782 tf_is_secondary_power_pop, // constexpr inline uint16_t is_secondary_power_pop = 0x0045;
7783 tf_is_secondary_power_nation, // constexpr inline uint16_t is_secondary_power_nation = 0x0046;
7784 tf_has_faction_nation, // constexpr inline uint16_t has_faction_nation = 0x0047;
7785 tf_has_faction_pop, // constexpr inline uint16_t has_faction_pop = 0x0048;
7786 tf_has_unclaimed_cores, // constexpr inline uint16_t has_unclaimed_cores = 0x0049;
7787 tf_is_cultural_union_bool, // constexpr inline uint16_t is_cultural_union_bool = 0x004A;
7788 tf_is_cultural_union_this_self_pop, // constexpr inline uint16_t is_cultural_union_this_self_pop = 0x004B;
7789 tf_is_cultural_union_this_pop, // constexpr inline uint16_t is_cultural_union_this_pop = 0x004C;
7790 tf_is_cultural_union_this_state, // constexpr inline uint16_t is_cultural_union_this_state = 0x004D;
7791 tf_is_cultural_union_this_province, // constexpr inline uint16_t is_cultural_union_this_province = 0x004E;
7792 tf_is_cultural_union_this_nation, // constexpr inline uint16_t is_cultural_union_this_nation = 0x004F;
7793 tf_is_cultural_union_this_rebel, // constexpr inline uint16_t is_cultural_union_this_rebel = 0x0050;
7794 tf_is_cultural_union_tag_nation, // constexpr inline uint16_t is_cultural_union_tag_nation = 0x0051;
7795 tf_is_cultural_union_tag_this_pop, // constexpr inline uint16_t is_cultural_union_tag_this_pop = 0x0052;
7796 tf_is_cultural_union_tag_this_state, // constexpr inline uint16_t is_cultural_union_tag_this_state = 0x0053;
7797 tf_is_cultural_union_tag_this_province, // constexpr inline uint16_t is_cultural_union_tag_this_province = 0x0054;
7798 tf_is_cultural_union_tag_this_nation, // constexpr inline uint16_t is_cultural_union_tag_this_nation = 0x0055;
7799 tf_can_build_factory_pop, // constexpr inline uint16_t can_build_factory_pop = 0x0056;
7800 tf_war_pop, // constexpr inline uint16_t war_pop = 0x0057;
7801 tf_war_nation, // constexpr inline uint16_t war_nation = 0x0058;
7802 tf_war_exhaustion_nation, // constexpr inline uint16_t war_exhaustion_nation = 0x0059;
7803 tf_blockade, // constexpr inline uint16_t blockade = 0x005A;
7804 tf_owns, // constexpr inline uint16_t owns = 0x005B;
7805 tf_controls, // constexpr inline uint16_t controls = 0x005C;
7806 tf_is_core_integer, // constexpr inline uint16_t is_core_integer = 0x005D;
7807 tf_is_core_this_nation, // constexpr inline uint16_t is_core_this_nation = 0x005E;
7808 tf_is_core_this_state, // constexpr inline uint16_t is_core_this_state = 0x005F;
7809 tf_is_core_this_province, // constexpr inline uint16_t is_core_this_province = 0x0060;
7810 tf_is_core_this_pop, // constexpr inline uint16_t is_core_this_pop = 0x0061;
7811 tf_is_core_from_nation, // constexpr inline uint16_t is_core_from_nation = 0x0062;
7812 tf_is_core_reb, // constexpr inline uint16_t is_core_reb = 0x0063;
7813 tf_is_core_tag, // constexpr inline uint16_t is_core_tag = 0x0064;
7814 tf_num_of_revolts, // constexpr inline uint16_t num_of_revolts = 0x0065;
7815 tf_revolt_percentage, // constexpr inline uint16_t revolt_percentage = 0x0066;
7816 tf_num_of_cities_int, // constexpr inline uint16_t num_of_cities_int = 0x0067;
7817 tf_num_of_cities_from_nation, // constexpr inline uint16_t num_of_cities_from_nation = 0x0068;
7818 tf_num_of_cities_this_nation, // constexpr inline uint16_t num_of_cities_this_nation = 0x0069;
7819 tf_num_of_cities_this_state, // constexpr inline uint16_t num_of_cities_this_state = 0x006A;
7820 tf_num_of_cities_this_province, // constexpr inline uint16_t num_of_cities_this_province = 0x006B;
7821 tf_num_of_cities_this_pop, // constexpr inline uint16_t num_of_cities_this_pop = 0x006C;
7822 tf_num_of_ports, // constexpr inline uint16_t num_of_ports = 0x006D;
7823 tf_num_of_allies, // constexpr inline uint16_t num_of_allies = 0x006E;
7824 tf_num_of_vassals, // constexpr inline uint16_t num_of_vassals = 0x006F;
7825 tf_owned_by_tag, // constexpr inline uint16_t owned_by_tag = 0x0070;
7826 tf_owned_by_from_nation, // constexpr inline uint16_t owned_by_from_nation = 0x0071;
7827 tf_owned_by_this_nation, // constexpr inline uint16_t owned_by_this_nation = 0x0072;
7828 tf_owned_by_this_province, // constexpr inline uint16_t owned_by_this_province = 0x0073;
7829 tf_owned_by_this_state, // constexpr inline uint16_t owned_by_this_state = 0x0074;
7830 tf_owned_by_this_pop, // constexpr inline uint16_t owned_by_this_pop = 0x0075;
7831 tf_exists_bool, // constexpr inline uint16_t exists_bool = 0x0076;
7832 tf_exists_tag, // constexpr inline uint16_t exists_tag = 0x0077;
7833 tf_has_country_flag, // constexpr inline uint16_t has_country_flag = 0x0078;
7834 tf_continent_nation, // constexpr inline uint16_t continent_nation = 0x0079;
7835 tf_continent_state, // constexpr inline uint16_t continent_state = 0x007A;
7836 tf_continent_province, // constexpr inline uint16_t continent_province = 0x007B;
7837 tf_continent_pop, // constexpr inline uint16_t continent_pop = 0x007C;
7838 tf_continent_nation_this, // constexpr inline uint16_t continent_nation_this = 0x007D;
7839 tf_continent_state_this, // constexpr inline uint16_t continent_state_this = 0x007E;
7840 tf_continent_province_this, // constexpr inline uint16_t continent_province_this = 0x007F;
7841 tf_continent_pop_this, // constexpr inline uint16_t continent_pop_this = 0x0080;
7842 tf_continent_nation_from, // constexpr inline uint16_t continent_nation_from = 0x0081;
7843 tf_continent_state_from, // constexpr inline uint16_t continent_state_from = 0x0082;
7844 tf_continent_province_from, // constexpr inline uint16_t continent_province_from = 0x0083;
7845 tf_continent_pop_from, // constexpr inline uint16_t continent_pop_from = 0x0084;
7846 tf_casus_belli_tag, // constexpr inline uint16_t casus_belli_tag = 0x0085;
7847 tf_casus_belli_from, // constexpr inline uint16_t casus_belli_from = 0x0086;
7848 tf_casus_belli_this_nation, // constexpr inline uint16_t casus_belli_this_nation = 0x0087;
7849 tf_casus_belli_this_state, // constexpr inline uint16_t casus_belli_this_state = 0x0088;
7850 tf_casus_belli_this_province, // constexpr inline uint16_t casus_belli_this_province = 0x0089;
7851 tf_casus_belli_this_pop, // constexpr inline uint16_t casus_belli_this_pop = 0x008A;
7852 tf_military_access_tag, // constexpr inline uint16_t military_access_tag = 0x008B;
7853 tf_military_access_from, // constexpr inline uint16_t military_access_from = 0x008C;
7854 tf_military_access_this_nation, // constexpr inline uint16_t military_access_this_nation = 0x008D;
7855 tf_military_access_this_state, // constexpr inline uint16_t military_access_this_state = 0x008E;
7856 tf_military_access_this_province, // constexpr inline uint16_t military_access_this_province = 0x008F;
7857 tf_military_access_this_pop, // constexpr inline uint16_t military_access_this_pop = 0x0090;
7858 tf_prestige_value, // constexpr inline uint16_t prestige_value = 0x0091;
7859 tf_prestige_from, // constexpr inline uint16_t prestige_from = 0x0092;
7860 tf_prestige_this_nation, // constexpr inline uint16_t prestige_this_nation = 0x0093;
7861 tf_prestige_this_state, // constexpr inline uint16_t prestige_this_state = 0x0094;
7862 tf_prestige_this_province, // constexpr inline uint16_t prestige_this_province = 0x0095;
7863 tf_prestige_this_pop, // constexpr inline uint16_t prestige_this_pop = 0x0096;
7864 tf_badboy, // constexpr inline uint16_t badboy = 0x0097;
7865 tf_has_building_state, // constexpr inline uint16_t has_building_state = 0x0098;
7866 tf_has_building_fort, // constexpr inline uint16_t has_building_fort = 0x0099;
7867 tf_has_building_railroad, // constexpr inline uint16_t has_building_railroad = 0x009A;
7868 tf_has_building_naval_base, // constexpr inline uint16_t has_building_naval_base = 0x009B;
7869 tf_empty, // constexpr inline uint16_t empty = 0x009C;
7870 tf_is_blockaded, // constexpr inline uint16_t is_blockaded = 0x009D;
7871 tf_has_country_modifier, // constexpr inline uint16_t has_country_modifier = 0x009E;
7872 tf_has_province_modifier, // constexpr inline uint16_t has_province_modifier = 0x009F;
7873 tf_region, // constexpr inline uint16_t region = 0x00A0;
7874 tf_tag_tag, // constexpr inline uint16_t tag_tag = 0x00A1;
7875 tf_tag_this_nation, // constexpr inline uint16_t tag_this_nation = 0x00A2;
7876 tf_tag_this_province, // constexpr inline uint16_t tag_this_province = 0x00A3;
7877 tf_tag_from_nation, // constexpr inline uint16_t tag_from_nation = 0x00A4;
7878 tf_tag_from_province, // constexpr inline uint16_t tag_from_province = 0x00A5;
7879 tf_neighbour_tag, // constexpr inline uint16_t neighbour_tag = 0x00A6;
7880 tf_neighbour_this, // constexpr inline uint16_t neighbour_this = 0x00A7;
7881 tf_neighbour_from, // constexpr inline uint16_t neighbour_from = 0x00A8;
7882 tf_units_in_province_value, // constexpr inline uint16_t units_in_province_value = 0x00A9;
7883 tf_units_in_province_from, // constexpr inline uint16_t units_in_province_from = 0x00AA;
7884 tf_units_in_province_this_nation, // constexpr inline uint16_t units_in_province_this_nation = 0x00AB;
7885 tf_units_in_province_this_province, // constexpr inline uint16_t units_in_province_this_province = 0x00AC;
7886 tf_units_in_province_this_state, // constexpr inline uint16_t units_in_province_this_state = 0x00AD;
7887 tf_units_in_province_this_pop, // constexpr inline uint16_t units_in_province_this_pop = 0x00AE;
7888 tf_war_with_tag, // constexpr inline uint16_t war_with_tag = 0x00AF;
7889 tf_war_with_from, // constexpr inline uint16_t war_with_from = 0x00B0;
7890 tf_war_with_this_nation, // constexpr inline uint16_t war_with_this_nation = 0x00B1;
7891 tf_war_with_this_province, // constexpr inline uint16_t war_with_this_province = 0x00B2;
7892 tf_war_with_this_state, // constexpr inline uint16_t war_with_this_state = 0x00B3;
7893 tf_war_with_this_pop, // constexpr inline uint16_t war_with_this_pop = 0x00B4;
7894 tf_unit_in_battle, // constexpr inline uint16_t unit_in_battle = 0x00B5;
7895 tf_total_amount_of_divisions, // constexpr inline uint16_t total_amount_of_divisions = 0x00B6;
7896 tf_money, // constexpr inline uint16_t money = 0x00B7;
7897 tf_lost_national, // constexpr inline uint16_t lost_national = 0x00B8;
7898 tf_is_vassal, // constexpr inline uint16_t is_vassal = 0x00B9;
7899 tf_ruling_party_ideology_nation, // constexpr inline uint16_t ruling_party_ideology_pop = 0x00BA;
7900 tf_ruling_party_ideology_nation, // constexpr inline uint16_t ruling_party_ideology_nation = 0x00BB;
7901 tf_ruling_party, // constexpr inline uint16_t ruling_party = 0x00BC;
7902 tf_is_ideology_enabled, // constexpr inline uint16_t is_ideology_enabled = 0x00BD;
7903 tf_political_reform_want_nation, // constexpr inline uint16_t political_reform_want_nation = 0x00BE;
7904 tf_political_reform_want_pop, // constexpr inline uint16_t political_reform_want_pop = 0x00BF;
7905 tf_social_reform_want_nation, // constexpr inline uint16_t social_reform_want_nation = 0x00C0;
7906 tf_social_reform_want_pop, // constexpr inline uint16_t social_reform_want_pop = 0x00C1;
7907 tf_total_amount_of_ships, // constexpr inline uint16_t total_amount_of_ships = 0x00C2;
7908 tf_plurality, // constexpr inline uint16_t plurality = 0x00C3;
7909 tf_corruption, // constexpr inline uint16_t corruption = 0x00C4;
7910 tf_is_state_religion_pop, // constexpr inline uint16_t is_state_religion_pop = 0x00C5;
7911 tf_is_state_religion_province, // constexpr inline uint16_t is_state_religion_province = 0x00C6;
7912 tf_is_state_religion_state, // constexpr inline uint16_t is_state_religion_state = 0x00C7;
7913 tf_is_primary_culture_pop, // constexpr inline uint16_t is_primary_culture_pop = 0x00C8;
7914 tf_is_primary_culture_province, // constexpr inline uint16_t is_primary_culture_province = 0x00C9;
7915 tf_is_primary_culture_state, // constexpr inline uint16_t is_primary_culture_state = 0x00CA;
7916 tf_is_primary_culture_nation_this_pop, // constexpr inline uint16_t is_primary_culture_nation_this_pop = 0x00CB;
7917 tf_is_primary_culture_nation_this_nation, // constexpr inline uint16_t is_primary_culture_nation_this_nation = 0x00CC;
7918 tf_is_primary_culture_nation_this_state, // constexpr inline uint16_t is_primary_culture_nation_this_state = 0x00CD;
7919 tf_is_primary_culture_nation_this_province, // constexpr inline uint16_t is_primary_culture_nation_this_province = 0x00CE;
7920 tf_is_primary_culture_state_this_pop, // constexpr inline uint16_t is_primary_culture_state_this_pop = 0x00CF;
7921 tf_is_primary_culture_state_this_nation, // constexpr inline uint16_t is_primary_culture_state_this_nation = 0x00D0;
7922 tf_is_primary_culture_state_this_state, // constexpr inline uint16_t is_primary_culture_state_this_state = 0x00D1;
7923 tf_is_primary_culture_state_this_province, // constexpr inline uint16_t is_primary_culture_state_this_province = 0x00D2;
7924 tf_is_primary_culture_province_this_pop, // constexpr inline uint16_t is_primary_culture_province_this_pop = 0x00D3;
7925 tf_is_primary_culture_province_this_nation, // constexpr inline uint16_t is_primary_culture_province_this_nation = 0x00D4;
7926 tf_is_primary_culture_province_this_state, // constexpr inline uint16_t is_primary_culture_province_this_state = 0x00D5;
7927 tf_is_primary_culture_province_this_province, // constexpr inline uint16_t is_primary_culture_province_this_province = 0x00D6;
7928 tf_is_primary_culture_pop_this_pop, // constexpr inline uint16_t is_primary_culture_pop_this_pop = 0x00D7;
7929 tf_is_primary_culture_pop_this_nation, // constexpr inline uint16_t is_primary_culture_pop_this_nation = 0x00D8;
7930 tf_is_primary_culture_pop_this_state, // constexpr inline uint16_t is_primary_culture_pop_this_state = 0x00D9;
7931 tf_is_primary_culture_pop_this_province, // constexpr inline uint16_t is_primary_culture_pop_this_province = 0x00DA;
7932 tf_is_accepted_culture_pop, // constexpr inline uint16_t is_accepted_culture_pop = 0x00DB;
7933 tf_is_accepted_culture_province, // constexpr inline uint16_t is_accepted_culture_province = 0x00DC;
7934 tf_is_accepted_culture_state, // constexpr inline uint16_t is_accepted_culture_state = 0x00DD;
7935 tf_is_coastal_province, // constexpr inline uint16_t is_coastal_province = 0x00DE;
7936 tf_in_sphere_tag, // constexpr inline uint16_t in_sphere_tag = 0x00DF;
7937 tf_in_sphere_from, // constexpr inline uint16_t in_sphere_from = 0x00E0;
7938 tf_in_sphere_this_nation, // constexpr inline uint16_t in_sphere_this_nation = 0x00E1;
7939 tf_in_sphere_this_province, // constexpr inline uint16_t in_sphere_this_province = 0x00E2;
7940 tf_in_sphere_this_state, // constexpr inline uint16_t in_sphere_this_state = 0x00E3;
7941 tf_in_sphere_this_pop, // constexpr inline uint16_t in_sphere_this_pop = 0x00E4;
7942 tf_produces_nation, // constexpr inline uint16_t produces_nation = 0x00E5;
7943 tf_produces_state, // constexpr inline uint16_t produces_state = 0x00E6;
7944 tf_produces_province, // constexpr inline uint16_t produces_province = 0x00E7;
7945 tf_produces_pop, // constexpr inline uint16_t produces_pop = 0x00E8;
7946 tf_average_militancy_nation, // constexpr inline uint16_t average_militancy_nation = 0x00E9;
7947 tf_average_militancy_state, // constexpr inline uint16_t average_militancy_state = 0x00EA;
7948 tf_average_militancy_province, // constexpr inline uint16_t average_militancy_province = 0x00EB;
7949 tf_average_consciousness_nation, // constexpr inline uint16_t average_consciousness_nation = 0x00EC;
7950 tf_average_consciousness_state, // constexpr inline uint16_t average_consciousness_state = 0x00ED;
7951 tf_average_consciousness_province, // constexpr inline uint16_t average_consciousness_province = 0x00EE;
7952 tf_is_next_reform_nation, // constexpr inline uint16_t is_next_reform_nation = 0x00EF;
7953 tf_is_next_reform_pop, // constexpr inline uint16_t is_next_reform_pop = 0x00F0;
7954 tf_rebel_power_fraction, // constexpr inline uint16_t rebel_power_fraction = 0x00F1;
7955 tf_recruited_percentage_nation, // constexpr inline uint16_t recruited_percentage_nation = 0x00F2;
7956 tf_recruited_percentage_pop, // constexpr inline uint16_t recruited_percentage_pop = 0x00F3;
7957 tf_has_culture_core, // constexpr inline uint16_t has_culture_core = 0x00F4;
7958 tf_nationalism, // constexpr inline uint16_t nationalism = 0x00F5;
7959 tf_is_overseas, // constexpr inline uint16_t is_overseas = 0x00F6;
7960 tf_controlled_by_rebels, // constexpr inline uint16_t controlled_by_rebels = 0x00F7;
7961 tf_controlled_by_tag, // constexpr inline uint16_t controlled_by_tag = 0x00F8;
7962 tf_controlled_by_from, // constexpr inline uint16_t controlled_by_from = 0x00F9;
7963 tf_controlled_by_this_nation, // constexpr inline uint16_t controlled_by_this_nation = 0x00FA;
7964 tf_controlled_by_this_province, // constexpr inline uint16_t controlled_by_this_province = 0x00FB;
7965 tf_controlled_by_this_state, // constexpr inline uint16_t controlled_by_this_state = 0x00FC;
7966 tf_controlled_by_this_pop, // constexpr inline uint16_t controlled_by_this_pop = 0x00FD;
7967 tf_controlled_by_owner, // constexpr inline uint16_t controlled_by_owner = 0x00FE;
7968 tf_controlled_by_reb, // constexpr inline uint16_t controlled_by_reb = 0x00FF;
7969 tf_is_canal_enabled, // constexpr inline uint16_t is_canal_enabled = 0x0100;
7970 tf_is_state_capital, // constexpr inline uint16_t is_state_capital = 0x0101;
7971 tf_truce_with_tag, // constexpr inline uint16_t truce_with_tag = 0x0102;
7972 tf_truce_with_from, // constexpr inline uint16_t truce_with_from = 0x0103;
7973 tf_truce_with_this_nation, // constexpr inline uint16_t truce_with_this_nation = 0x0104;
7974 tf_truce_with_this_province, // constexpr inline uint16_t truce_with_this_province = 0x0105;
7975 tf_truce_with_this_state, // constexpr inline uint16_t truce_with_this_state = 0x0106;
7976 tf_truce_with_this_pop, // constexpr inline uint16_t truce_with_this_pop = 0x0107;
7977 tf_total_pops_nation, // constexpr inline uint16_t total_pops_nation = 0x0108;
7978 tf_total_pops_state, // constexpr inline uint16_t total_pops_state = 0x0109;
7979 tf_total_pops_province, // constexpr inline uint16_t total_pops_province = 0x010A;
7980 tf_total_pops_pop, // constexpr inline uint16_t total_pops_pop = 0x010B;
7981 tf_has_pop_type_nation, // constexpr inline uint16_t has_pop_type_nation = 0x010C;
7982 tf_has_pop_type_state, // constexpr inline uint16_t has_pop_type_state = 0x010D;
7983 tf_has_pop_type_province, // constexpr inline uint16_t has_pop_type_province = 0x010E;
7984 tf_has_pop_type_pop, // constexpr inline uint16_t has_pop_type_pop = 0x010F;
7985 tf_has_empty_adjacent_province, // constexpr inline uint16_t has_empty_adjacent_province = 0x0110;
7986 tf_has_leader, // constexpr inline uint16_t has_leader = 0x0111;
7987 tf_ai, // constexpr inline uint16_t ai = 0x0112;
7988 tf_can_create_vassals, // constexpr inline uint16_t can_create_vassals = 0x0113;
7989 tf_is_possible_vassal, // constexpr inline uint16_t is_possible_vassal = 0x0114;
7990 tf_province_id, // constexpr inline uint16_t province_id = 0x0115;
7991 tf_vassal_of_tag, // constexpr inline uint16_t vassal_of_tag = 0x0116;
7992 tf_vassal_of_from, // constexpr inline uint16_t vassal_of_from = 0x0117;
7993 tf_vassal_of_this_nation, // constexpr inline uint16_t vassal_of_this_nation = 0x0118;
7994 tf_vassal_of_this_province, // constexpr inline uint16_t vassal_of_this_province = 0x0119;
7995 tf_vassal_of_this_state, // constexpr inline uint16_t vassal_of_this_state = 0x011A;
7996 tf_vassal_of_this_pop, // constexpr inline uint16_t vassal_of_this_pop = 0x011B;
7997 tf_alliance_with_tag, // constexpr inline uint16_t alliance_with_tag = 0x011C;
7998 tf_alliance_with_from, // constexpr inline uint16_t alliance_with_from = 0x011D;
7999 tf_alliance_with_this_nation, // constexpr inline uint16_t alliance_with_this_nation = 0x011E;
8000 tf_alliance_with_this_province, // constexpr inline uint16_t alliance_with_this_province = 0x011F;
8001 tf_alliance_with_this_state, // constexpr inline uint16_t alliance_with_this_state = 0x0120;
8002 tf_alliance_with_this_pop, // constexpr inline uint16_t alliance_with_this_pop = 0x0121;
8003 tf_has_recently_lost_war, // constexpr inline uint16_t has_recently_lost_war = 0x0122;
8004 tf_is_mobilised, // constexpr inline uint16_t is_mobilised = 0x0123;
8005 tf_mobilisation_size, // constexpr inline uint16_t mobilisation_size = 0x0124;
8006 tf_crime_higher_than_education_nation, // constexpr inline uint16_t crime_higher_than_education_nation = 0x0125;
8007 tf_crime_higher_than_education_state, // constexpr inline uint16_t crime_higher_than_education_state = 0x0126;
8008 tf_crime_higher_than_education_province, // constexpr inline uint16_t crime_higher_than_education_province = 0x0127;
8009 tf_crime_higher_than_education_pop, // constexpr inline uint16_t crime_higher_than_education_pop = 0x0128;
8010 tf_agree_with_ruling_party, // constexpr inline uint16_t agree_with_ruling_party = 0x0129;
8011 tf_is_colonial_state, // constexpr inline uint16_t is_colonial_state = 0x012A;
8012 tf_is_colonial_province, // constexpr inline uint16_t is_colonial_province = 0x012B;
8013 tf_has_factories_state, // constexpr inline uint16_t has_factories_state = 0x012C;
8014 tf_in_default_tag, // constexpr inline uint16_t in_default_tag = 0x012D;
8015 tf_in_default_from, // constexpr inline uint16_t in_default_from = 0x012E;
8016 tf_in_default_this_nation, // constexpr inline uint16_t in_default_this_nation = 0x012F;
8017 tf_in_default_this_province, // constexpr inline uint16_t in_default_this_province = 0x0130;
8018 tf_in_default_this_state, // constexpr inline uint16_t in_default_this_state = 0x0131;
8019 tf_in_default_this_pop, // constexpr inline uint16_t in_default_this_pop = 0x0132;
8020 tf_total_num_of_ports, // constexpr inline uint16_t total_num_of_ports = 0x0133;
8021 tf_always, // constexpr inline uint16_t always = 0x0134;
8022 tf_election, // constexpr inline uint16_t election = 0x0135;
8023 tf_has_global_flag, // constexpr inline uint16_t has_global_flag = 0x0136;
8024 tf_is_capital, // constexpr inline uint16_t is_capital = 0x0137;
8025 tf_nationalvalue_nation, // constexpr inline uint16_t nationalvalue_nation = 0x0138;
8026 tf_industrial_score_value, // constexpr inline uint16_t industrial_score_value = 0x0139;
8027 tf_industrial_score_from_nation, // constexpr inline uint16_t industrial_score_from_nation = 0x013A;
8028 tf_industrial_score_this_nation, // constexpr inline uint16_t industrial_score_this_nation = 0x013B;
8029 tf_industrial_score_this_pop, // constexpr inline uint16_t industrial_score_this_pop = 0x013C;
8030 tf_industrial_score_this_state, // constexpr inline uint16_t industrial_score_this_state = 0x013D;
8031 tf_industrial_score_this_province, // constexpr inline uint16_t industrial_score_this_province = 0x013E;
8032 tf_military_score_value, // constexpr inline uint16_t military_score_value = 0x013F;
8033 tf_military_score_from_nation, // constexpr inline uint16_t military_score_from_nation = 0x0140;
8034 tf_military_score_this_nation, // constexpr inline uint16_t military_score_this_nation = 0x0141;
8035 tf_military_score_this_pop, // constexpr inline uint16_t military_score_this_pop = 0x0142;
8036 tf_military_score_this_state, // constexpr inline uint16_t military_score_this_state = 0x0143;
8037 tf_military_score_this_province, // constexpr inline uint16_t military_score_this_province = 0x0144;
8038 tf_civilized_nation, // constexpr inline uint16_t civilized_nation = 0x0145;
8039 tf_civilized_pop, // constexpr inline uint16_t civilized_pop = 0x0146;
8040 tf_civilized_province, // constexpr inline uint16_t civilized_province = 0x0147;
8041 tf_national_provinces_occupied, // constexpr inline uint16_t national_provinces_occupied = 0x0148;
8042 tf_is_greater_power_nation, // constexpr inline uint16_t is_greater_power_nation = 0x0149;
8043 tf_is_greater_power_pop, // constexpr inline uint16_t is_greater_power_pop = 0x014A;
8044 tf_rich_tax, // constexpr inline uint16_t rich_tax = 0x014B;
8045 tf_middle_tax, // constexpr inline uint16_t middle_tax = 0x014C;
8046 tf_poor_tax, // constexpr inline uint16_t poor_tax = 0x014D;
8047 tf_social_spending_nation, // constexpr inline uint16_t social_spending_nation = 0x014E;
8048 tf_social_spending_pop, // constexpr inline uint16_t social_spending_pop = 0x014F;
8049 tf_social_spending_province, // constexpr inline uint16_t social_spending_province = 0x0150;
8050 tf_colonial_nation, // constexpr inline uint16_t colonial_nation = 0x0151;
8051 tf_pop_majority_religion_nation, // constexpr inline uint16_t pop_majority_religion_nation = 0x0152;
8052 tf_pop_majority_religion_state, // constexpr inline uint16_t pop_majority_religion_state = 0x0153;
8053 tf_pop_majority_religion_province, // constexpr inline uint16_t pop_majority_religion_province = 0x0154;
8054 tf_pop_majority_culture_nation, // constexpr inline uint16_t pop_majority_culture_nation = 0x0155;
8055 tf_pop_majority_culture_state, // constexpr inline uint16_t pop_majority_culture_state = 0x0156;
8056 tf_pop_majority_culture_province, // constexpr inline uint16_t pop_majority_culture_province = 0x0157;
8057 tf_pop_majority_issue_nation, // constexpr inline uint16_t pop_majority_issue_nation = 0x0158;
8058 tf_pop_majority_issue_state, // constexpr inline uint16_t pop_majority_issue_state = 0x0159;
8059 tf_pop_majority_issue_province, // constexpr inline uint16_t pop_majority_issue_province = 0x015A;
8060 tf_pop_majority_issue_pop, // constexpr inline uint16_t pop_majority_issue_pop = 0x015B;
8061 tf_pop_majority_ideology_nation, // constexpr inline uint16_t pop_majority_ideology_nation = 0x015C;
8062 tf_pop_majority_ideology_state, // constexpr inline uint16_t pop_majority_ideology_state = 0x015D;
8063 tf_pop_majority_ideology_province, // constexpr inline uint16_t pop_majority_ideology_province = 0x015E;
8064 tf_pop_majority_ideology_pop, // constexpr inline uint16_t pop_majority_ideology_pop = 0x015F;
8065 tf_poor_strata_militancy_nation, // constexpr inline uint16_t poor_strata_militancy_nation = 0x0160;
8066 tf_poor_strata_militancy_state, // constexpr inline uint16_t poor_strata_militancy_state = 0x0161;
8067 tf_poor_strata_militancy_province, // constexpr inline uint16_t poor_strata_militancy_province = 0x0162;
8068 tf_poor_strata_militancy_pop, // constexpr inline uint16_t poor_strata_militancy_pop = 0x0163;
8069 tf_middle_strata_militancy_nation, // constexpr inline uint16_t middle_strata_militancy_nation = 0x0164;
8070 tf_middle_strata_militancy_state, // constexpr inline uint16_t middle_strata_militancy_state = 0x0165;
8071 tf_middle_strata_militancy_province, // constexpr inline uint16_t middle_strata_militancy_province = 0x0166;
8072 tf_middle_strata_militancy_pop, // constexpr inline uint16_t middle_strata_militancy_pop = 0x0167;
8073 tf_rich_strata_militancy_nation, // constexpr inline uint16_t rich_strata_militancy_nation = 0x0168;
8074 tf_rich_strata_militancy_state, // constexpr inline uint16_t rich_strata_militancy_state = 0x0169;
8075 tf_rich_strata_militancy_province, // constexpr inline uint16_t rich_strata_militancy_province = 0x016A;
8076 tf_rich_strata_militancy_pop, // constexpr inline uint16_t rich_strata_militancy_pop = 0x016B;
8077 tf_rich_tax_above_poor, // constexpr inline uint16_t rich_tax_above_poor = 0x016C;
8078 tf_culture_has_union_tag_pop, // constexpr inline uint16_t culture_has_union_tag_pop = 0x016D;
8079 tf_culture_has_union_tag_nation, // constexpr inline uint16_t culture_has_union_tag_nation = 0x016E;
8080 tf_this_culture_union_tag, // constexpr inline uint16_t this_culture_union_tag = 0x016F;
8081 tf_this_culture_union_from, // constexpr inline uint16_t this_culture_union_from = 0x0170;
8082 tf_this_culture_union_this_nation, // constexpr inline uint16_t this_culture_union_this_nation = 0x0171;
8083 tf_this_culture_union_this_province, // constexpr inline uint16_t this_culture_union_this_province = 0x0172;
8084 tf_this_culture_union_this_state, // constexpr inline uint16_t this_culture_union_this_state = 0x0173;
8085 tf_this_culture_union_this_pop, // constexpr inline uint16_t this_culture_union_this_pop = 0x0174;
8086 tf_this_culture_union_this_union_nation, // constexpr inline uint16_t this_culture_union_this_union_nation = 0x0175;
8087 tf_this_culture_union_this_union_province, // constexpr inline uint16_t this_culture_union_this_union_province = 0x0176;
8088 tf_this_culture_union_this_union_state, // constexpr inline uint16_t this_culture_union_this_union_state = 0x0177;
8089 tf_this_culture_union_this_union_pop, // constexpr inline uint16_t this_culture_union_this_union_pop = 0x0178;
8090 tf_minorities_nation, // constexpr inline uint16_t minorities_nation = 0x0179;
8091 tf_minorities_state, // constexpr inline uint16_t minorities_state = 0x017A;
8092 tf_minorities_province, // constexpr inline uint16_t minorities_province = 0x017B;
8093 tf_revanchism_nation, // constexpr inline uint16_t revanchism_nation = 0x017C;
8094 tf_revanchism_pop, // constexpr inline uint16_t revanchism_pop = 0x017D;
8095 tf_has_crime, // constexpr inline uint16_t has_crime = 0x017E;
8096 tf_num_of_substates, // constexpr inline uint16_t num_of_substates = 0x017F;
8097 tf_num_of_vassals_no_substates, // constexpr inline uint16_t num_of_vassals_no_substates = 0x0180;
8098 tf_brigades_compare_this, // constexpr inline uint16_t brigades_compare_this = 0x0181;
8099 tf_brigades_compare_from, // constexpr inline uint16_t brigades_compare_from = 0x0182;
8100 tf_constructing_cb_tag, // constexpr inline uint16_t constructing_cb_tag = 0x0183;
8101 tf_constructing_cb_from, // constexpr inline uint16_t constructing_cb_from = 0x0184;
8102 tf_constructing_cb_this_nation, // constexpr inline uint16_t constructing_cb_this_nation = 0x0185;
8103 tf_constructing_cb_this_province, // constexpr inline uint16_t constructing_cb_this_province = 0x0186;
8104 tf_constructing_cb_this_state, // constexpr inline uint16_t constructing_cb_this_state = 0x0187;
8105 tf_constructing_cb_this_pop, // constexpr inline uint16_t constructing_cb_this_pop = 0x0188;
8106 tf_constructing_cb_discovered, // constexpr inline uint16_t constructing_cb_discovered = 0x0189;
8107 tf_constructing_cb_progress, // constexpr inline uint16_t constructing_cb_progress = 0x018A;
8108 tf_civilization_progress, // constexpr inline uint16_t civilization_progress = 0x018B;
8109 tf_constructing_cb_type, // constexpr inline uint16_t constructing_cb_type = 0x018C;
8110 tf_is_our_vassal_tag, // constexpr inline uint16_t is_our_vassal_tag = 0x018D;
8111 tf_is_our_vassal_from, // constexpr inline uint16_t is_our_vassal_from = 0x018E;
8112 tf_is_our_vassal_this_nation, // constexpr inline uint16_t is_our_vassal_this_nation = 0x018F;
8113 tf_is_our_vassal_this_province, // constexpr inline uint16_t is_our_vassal_this_province = 0x0190;
8114 tf_is_our_vassal_this_state, // constexpr inline uint16_t is_our_vassal_this_state = 0x0191;
8115 tf_is_our_vassal_this_pop, // constexpr inline uint16_t is_our_vassal_this_pop = 0x0192;
8116 tf_substate_of_tag, // constexpr inline uint16_t substate_of_tag = 0x0193;
8117 tf_substate_of_from, // constexpr inline uint16_t substate_of_from = 0x0194;
8118 tf_substate_of_this_nation, // constexpr inline uint16_t substate_of_this_nation = 0x0195;
8119 tf_substate_of_this_province, // constexpr inline uint16_t substate_of_this_province = 0x0196;
8120 tf_substate_of_this_state, // constexpr inline uint16_t substate_of_this_state = 0x0197;
8121 tf_substate_of_this_pop, // constexpr inline uint16_t substate_of_this_pop = 0x0198;
8122 tf_is_substate, // constexpr inline uint16_t is_substate = 0x0199;
8123 tf_great_wars_enabled, // constexpr inline uint16_t great_wars_enabled = 0x019A;
8124 tf_can_nationalize, // constexpr inline uint16_t can_nationalize = 0x019B;
8125 tf_part_of_sphere, // constexpr inline uint16_t part_of_sphere = 0x019C;
8126 tf_is_sphere_leader_of_tag, // constexpr inline uint16_t is_sphere_leader_of_tag = 0x019D;
8127 tf_is_sphere_leader_of_from, // constexpr inline uint16_t is_sphere_leader_of_from = 0x019E;
8128 tf_is_sphere_leader_of_this_nation, // constexpr inline uint16_t is_sphere_leader_of_this_nation = 0x019F;
8129 tf_is_sphere_leader_of_this_province, // constexpr inline uint16_t is_sphere_leader_of_this_province = 0x01A0;
8130 tf_is_sphere_leader_of_this_state, // constexpr inline uint16_t is_sphere_leader_of_this_state = 0x01A1;
8131 tf_is_sphere_leader_of_this_pop, // constexpr inline uint16_t is_sphere_leader_of_this_pop = 0x01A2;
8132 tf_number_of_states, // constexpr inline uint16_t number_of_states = 0x01A3;
8133 tf_war_score, // constexpr inline uint16_t war_score = 0x01A4;
8134 tf_is_releasable_vassal_from, // constexpr inline uint16_t is_releasable_vassal_from = 0x01A5;
8135 tf_is_releasable_vassal_other, // constexpr inline uint16_t is_releasable_vassal_other = 0x01A6;
8136 tf_has_recent_imigration, // constexpr inline uint16_t has_recent_imigration = 0x01A7;
8137 tf_province_control_days, // constexpr inline uint16_t province_control_days = 0x01A8;
8138 tf_is_disarmed, // constexpr inline uint16_t is_disarmed = 0x01A9;
8139 tf_big_producer, // constexpr inline uint16_t big_producer = 0x01AA;
8140 tf_someone_can_form_union_tag_from, // constexpr inline uint16_t someone_can_form_union_tag_from = 0x01AB;
8141 tf_someone_can_form_union_tag_other, // constexpr inline uint16_t someone_can_form_union_tag_other = 0x01AC;
8142 tf_social_movement_strength, // constexpr inline uint16_t social_movement_strength = 0x01AD;
8143 tf_political_movement_strength, // constexpr inline uint16_t political_movement_strength = 0x01AE;
8144 tf_can_build_factory_in_capital_state, // constexpr inline uint16_t can_build_factory_in_capital_state = 0x01AF;
8145 tf_social_movement, // constexpr inline uint16_t social_movement = 0x01B0;
8146 tf_political_movement, // constexpr inline uint16_t political_movement = 0x01B1;
8147 tf_has_cultural_sphere, // constexpr inline uint16_t has_cultural_sphere = 0x01B2;
8148 tf_world_wars_enabled, // constexpr inline uint16_t world_wars_enabled = 0x01B3;
8149 tf_has_pop_culture_pop_this_pop, // constexpr inline uint16_t has_pop_culture_pop_this_pop = 0x01B4;
8150 tf_has_pop_culture_state_this_pop, // constexpr inline uint16_t has_pop_culture_state_this_pop = 0x01B5;
8151 tf_has_pop_culture_province_this_pop, // constexpr inline uint16_t has_pop_culture_province_this_pop = 0x01B6;
8152 tf_has_pop_culture_nation_this_pop, // constexpr inline uint16_t has_pop_culture_nation_this_pop = 0x01B7;
8153 tf_has_pop_culture_pop, // constexpr inline uint16_t has_pop_culture_pop = 0x01B8;
8154 tf_has_pop_culture_state, // constexpr inline uint16_t has_pop_culture_state = 0x01B9;
8155 tf_has_pop_culture_province, // constexpr inline uint16_t has_pop_culture_province = 0x01BA;
8156 tf_has_pop_culture_nation, // constexpr inline uint16_t has_pop_culture_nation = 0x01BB;
8157 tf_has_pop_religion_pop_this_pop, // constexpr inline uint16_t has_pop_religion_pop_this_pop = 0x01BC;
8158 tf_has_pop_religion_state_this_pop, // constexpr inline uint16_t has_pop_religion_state_this_pop = 0x01BD;
8159 tf_has_pop_religion_province_this_pop, // constexpr inline uint16_t has_pop_religion_province_this_pop = 0x01BE;
8160 tf_has_pop_religion_nation_this_pop, // constexpr inline uint16_t has_pop_religion_nation_this_pop = 0x01BF;
8161 tf_has_pop_religion_pop, // constexpr inline uint16_t has_pop_religion_pop = 0x01C0;
8162 tf_has_pop_religion_state, // constexpr inline uint16_t has_pop_religion_state = 0x01C1;
8163 tf_has_pop_religion_province, // constexpr inline uint16_t has_pop_religion_province = 0x01C2;
8164 tf_has_pop_religion_nation, // constexpr inline uint16_t has_pop_religion_nation = 0x01C3;
8165 tf_life_needs, // constexpr inline uint16_t life_needs = 0x01C4;
8166 tf_everyday_needs, // constexpr inline uint16_t everyday_needs = 0x01C5;
8167 tf_luxury_needs, // constexpr inline uint16_t luxury_needs = 0x01C6;
8168 tf_consciousness_pop, // constexpr inline uint16_t consciousness_pop = 0x01C7;
8169 tf_consciousness_province, // constexpr inline uint16_t consciousness_province = 0x01C8;
8170 tf_consciousness_state, // constexpr inline uint16_t consciousness_state = 0x01C9;
8171 tf_consciousness_nation, // constexpr inline uint16_t consciousness_nation = 0x01CA;
8172 tf_literacy_pop, // constexpr inline uint16_t literacy_pop = 0x01CB;
8173 tf_literacy_province, // constexpr inline uint16_t literacy_province = 0x01CC;
8174 tf_literacy_state, // constexpr inline uint16_t literacy_state = 0x01CD;
8175 tf_literacy_nation, // constexpr inline uint16_t literacy_nation = 0x01CE;
8176 tf_militancy_pop, // constexpr inline uint16_t militancy_pop = 0x01CF;
8177 tf_militancy_province, // constexpr inline uint16_t militancy_province = 0x01D0;
8178 tf_militancy_state, // constexpr inline uint16_t militancy_state = 0x01D1;
8179 tf_militancy_nation, // constexpr inline uint16_t militancy_nation = 0x01D2;
8180 tf_military_spending_pop, // constexpr inline uint16_t military_spending_pop = 0x01D3;
8181 tf_military_spending_province, // constexpr inline uint16_t military_spending_province = 0x01D4;
8182 tf_military_spending_state, // constexpr inline uint16_t military_spending_state = 0x01D5;
8183 tf_military_spending_nation, // constexpr inline uint16_t military_spending_nation = 0x01D6;
8184 tf_administration_spending_pop, // constexpr inline uint16_t administration_spending_pop = 0x01D7;
8185 tf_administration_spending_province, // constexpr inline uint16_t administration_spending_province = 0x01D8;
8186 tf_administration_spending_state, // constexpr inline uint16_t administration_spending_state = 0x01D9;
8187 tf_administration_spending_nation, // constexpr inline uint16_t administration_spending_nation = 0x01DA;
8188 tf_education_spending_pop, // constexpr inline uint16_t education_spending_pop = 0x01DB;
8189 tf_education_spending_province, // constexpr inline uint16_t education_spending_province = 0x01DC;
8190 tf_education_spending_state, // constexpr inline uint16_t education_spending_state = 0x01DD;
8191 tf_education_spending_nation, // constexpr inline uint16_t education_spending_nation = 0x01DE;
8192 tf_trade_goods_in_state_state, // constexpr inline uint16_t trade_goods_in_state_state = 0x01DF;
8193 tf_trade_goods_in_state_province, // constexpr inline uint16_t trade_goods_in_state_province = 0x01E0;
8194 tf_has_flashpoint, // constexpr inline uint16_t has_flashpoint = 0x01E1;
8195 tf_flashpoint_tension, // constexpr inline uint16_t flashpoint_tension = 0x01E2;
8196 tf_crisis_exist, // constexpr inline uint16_t crisis_exist = 0x01E3;
8197 tf_is_liberation_crisis, // constexpr inline uint16_t is_liberation_crisis = 0x01E4;
8198 tf_is_claim_crisis, // constexpr inline uint16_t is_claim_crisis = 0x01E5;
8199 tf_crisis_temperature, // constexpr inline uint16_t crisis_temperature = 0x01E6;
8200 tf_involved_in_crisis_pop, // constexpr inline uint16_t involved_in_crisis_pop = 0x01E7;
8201 tf_involved_in_crisis_nation, // constexpr inline uint16_t involved_in_crisis_nation = 0x01E8;
8202 tf_rich_strata_life_needs_nation, // constexpr inline uint16_t rich_strata_life_needs_nation = 0x01E9;
8203 tf_rich_strata_life_needs_state, // constexpr inline uint16_t rich_strata_life_needs_state = 0x01EA;
8204 tf_rich_strata_life_needs_province, // constexpr inline uint16_t rich_strata_life_needs_province = 0x01EB;
8205 tf_rich_strata_life_needs_pop, // constexpr inline uint16_t rich_strata_life_needs_pop = 0x01EC;
8206 tf_rich_strata_everyday_needs_nation, // constexpr inline uint16_t rich_strata_everyday_needs_nation = 0x01ED;
8207 tf_rich_strata_everyday_needs_state, // constexpr inline uint16_t rich_strata_everyday_needs_state = 0x01EE;
8208 tf_rich_strata_everyday_needs_province, // constexpr inline uint16_t rich_strata_everyday_needs_province = 0x01EF;
8209 tf_rich_strata_everyday_needs_pop, // constexpr inline uint16_t rich_strata_everyday_needs_pop = 0x01F0;
8210 tf_rich_strata_luxury_needs_nation, // constexpr inline uint16_t rich_strata_luxury_needs_nation = 0x01F1;
8211 tf_rich_strata_luxury_needs_state, // constexpr inline uint16_t rich_strata_luxury_needs_state = 0x01F2;
8212 tf_rich_strata_luxury_needs_province, // constexpr inline uint16_t rich_strata_luxury_needs_province = 0x01F3;
8213 tf_rich_strata_luxury_needs_pop, // constexpr inline uint16_t rich_strata_luxury_needs_pop = 0x01F4;
8214 tf_middle_strata_life_needs_nation, // constexpr inline uint16_t middle_strata_life_needs_nation = 0x01F5;
8215 tf_middle_strata_life_needs_state, // constexpr inline uint16_t middle_strata_life_needs_state = 0x01F6;
8216 tf_middle_strata_life_needs_province, // constexpr inline uint16_t middle_strata_life_needs_province = 0x01F7;
8217 tf_middle_strata_life_needs_pop, // constexpr inline uint16_t middle_strata_life_needs_pop = 0x01F8;
8218 tf_middle_strata_everyday_needs_nation, // constexpr inline uint16_t middle_strata_everyday_needs_nation = 0x01F9;
8219 tf_middle_strata_everyday_needs_state, // constexpr inline uint16_t middle_strata_everyday_needs_state = 0x01FA;
8220 tf_middle_strata_everyday_needs_province, // constexpr inline uint16_t middle_strata_everyday_needs_province = 0x01FB;
8221 tf_middle_strata_everyday_needs_pop, // constexpr inline uint16_t middle_strata_everyday_needs_pop = 0x01FC;
8222 tf_middle_strata_luxury_needs_nation, // constexpr inline uint16_t middle_strata_luxury_needs_nation = 0x01FD;
8223 tf_middle_strata_luxury_needs_state, // constexpr inline uint16_t middle_strata_luxury_needs_state = 0x01FE;
8224 tf_middle_strata_luxury_needs_province, // constexpr inline uint16_t middle_strata_luxury_needs_province = 0x01FF;
8225 tf_middle_strata_luxury_needs_pop, // constexpr inline uint16_t middle_strata_luxury_needs_pop = 0x0200;
8226 tf_poor_strata_life_needs_nation, // constexpr inline uint16_t poor_strata_life_needs_nation = 0x0201;
8227 tf_poor_strata_life_needs_state, // constexpr inline uint16_t poor_strata_life_needs_state = 0x0202;
8228 tf_poor_strata_life_needs_province, // constexpr inline uint16_t poor_strata_life_needs_province = 0x0203;
8229 tf_poor_strata_life_needs_pop, // constexpr inline uint16_t poor_strata_life_needs_pop = 0x0204;
8230 tf_poor_strata_everyday_needs_nation, // constexpr inline uint16_t poor_strata_everyday_needs_nation = 0x0205;
8231 tf_poor_strata_everyday_needs_state, // constexpr inline uint16_t poor_strata_everyday_needs_state = 0x0206;
8232 tf_poor_strata_everyday_needs_province, // constexpr inline uint16_t poor_strata_everyday_needs_province = 0x0207;
8233 tf_poor_strata_everyday_needs_pop, // constexpr inline uint16_t poor_strata_everyday_needs_pop = 0x0208;
8234 tf_poor_strata_luxury_needs_nation, // constexpr inline uint16_t poor_strata_luxury_needs_nation = 0x0209;
8235 tf_poor_strata_luxury_needs_state, // constexpr inline uint16_t poor_strata_luxury_needs_state = 0x020A;
8236 tf_poor_strata_luxury_needs_province, // constexpr inline uint16_t poor_strata_luxury_needs_province = 0x020B;
8237 tf_poor_strata_luxury_needs_pop, // constexpr inline uint16_t poor_strata_luxury_needs_pop = 0x020C;
8238 tf_diplomatic_influence_tag, // constexpr inline uint16_t diplomatic_influence_tag = 0x020D;
8239 tf_diplomatic_influence_this_nation, // constexpr inline uint16_t diplomatic_influence_this_nation = 0x020E;
8240 tf_diplomatic_influence_this_province, // constexpr inline uint16_t diplomatic_influence_this_province = 0x020F;
8241 tf_diplomatic_influence_from_nation, // constexpr inline uint16_t diplomatic_influence_from_nation = 0x0210;
8242 tf_diplomatic_influence_from_province, // constexpr inline uint16_t diplomatic_influence_from_province = 0x0211;
8243 tf_pop_unemployment_nation, // constexpr inline uint16_t pop_unemployment_nation = 0x0212;
8244 tf_pop_unemployment_state, // constexpr inline uint16_t pop_unemployment_state = 0x0213;
8245 tf_pop_unemployment_province, // constexpr inline uint16_t pop_unemployment_province = 0x0214;
8246 tf_pop_unemployment_pop, // constexpr inline uint16_t pop_unemployment_pop = 0x0215;
8247 tf_pop_unemployment_nation_this_pop, // constexpr inline uint16_t pop_unemployment_nation_this_pop = 0x0216;
8248 tf_pop_unemployment_state_this_pop, // constexpr inline uint16_t pop_unemployment_state_this_pop = 0x0217;
8249 tf_pop_unemployment_province_this_pop, // constexpr inline uint16_t pop_unemployment_province_this_pop = 0x0218;
8250 tf_relation_tag, // constexpr inline uint16_t relation_tag = 0x0219;
8251 tf_relation_this_nation, // constexpr inline uint16_t relation_this_nation = 0x021A;
8252 tf_relation_this_province, // constexpr inline uint16_t relation_this_province = 0x021B;
8253 tf_relation_from_nation, // constexpr inline uint16_t relation_from_nation = 0x021C;
8254 tf_relation_from_province, // constexpr inline uint16_t relation_from_province = 0x021D;
8255 tf_check_variable, // constexpr inline uint16_t check_variable = 0x021E;
8256 tf_upper_house, // constexpr inline uint16_t upper_house = 0x021F;
8257 tf_unemployment_by_type_nation, // constexpr inline uint16_t unemployment_by_type_nation = 0x0220;
8258 tf_unemployment_by_type_state, // constexpr inline uint16_t unemployment_by_type_state = 0x0221;
8259 tf_unemployment_by_type_province, // constexpr inline uint16_t unemployment_by_type_province = 0x0222;
8260 tf_unemployment_by_type_pop, // constexpr inline uint16_t unemployment_by_type_pop = 0x0223;
8261 tf_party_loyalty_nation_province_id, // constexpr inline uint16_t party_loyalty_nation_province_id = 0x0224;
8262 tf_party_loyalty_from_nation_province_id, // constexpr inline uint16_t party_loyalty_from_nation_province_id = 0x0225;
8263 tf_party_loyalty_province_province_id, // constexpr inline uint16_t party_loyalty_province_province_id = 0x0226;
8264 tf_party_loyalty_from_province_province_id, // constexpr inline uint16_t party_loyalty_from_province_province_id = 0x0227;
8265 tf_party_loyalty_nation_from_province, // constexpr inline uint16_t party_loyalty_nation_from_province = 0x0228;
8266 tf_party_loyalty_from_nation_scope_province, // constexpr inline uint16_t party_loyalty_from_nation_scope_province = 0x0229;
8267 tf_can_build_in_province_railroad_no_limit_from_nation, // constexpr inline uint16_t can_build_in_province_railroad_no_limit_from_nation = 0x022A;
8268 tf_can_build_in_province_railroad_yes_limit_from_nation, // constexpr inline uint16_t can_build_in_province_railroad_yes_limit_from_nation = 0x022B;
8269 tf_can_build_in_province_railroad_no_limit_this_nation, // constexpr inline uint16_t can_build_in_province_railroad_no_limit_this_nation = 0x022C;
8270 tf_can_build_in_province_railroad_yes_limit_this_nation, // constexpr inline uint16_t can_build_in_province_railroad_yes_limit_this_nation = 0x022D;
8271 tf_can_build_in_province_fort_no_limit_from_nation, // constexpr inline uint16_t can_build_in_province_fort_no_limit_from_nation = 0x022E;
8272 tf_can_build_in_province_fort_yes_limit_from_nation, // constexpr inline uint16_t can_build_in_province_fort_yes_limit_from_nation = 0x022F;
8273 tf_can_build_in_province_fort_no_limit_this_nation, // constexpr inline uint16_t can_build_in_province_fort_no_limit_this_nation = 0x0230;
8274 tf_can_build_in_province_fort_yes_limit_this_nation, // constexpr inline uint16_t can_build_in_province_fort_yes_limit_this_nation = 0x0231;
8275 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;
8276 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;
8277 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;
8278 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;
8279 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;
8280 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;
8281 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;
8282 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;
8283 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;
8284 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;
8285 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;
8286 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;
8287 tf_work_available_nation, // constexpr inline uint16_t work_available_nation = 0x023E;
8288 tf_work_available_state, // constexpr inline uint16_t work_available_state = 0x023F;
8289 tf_work_available_province, // constexpr inline uint16_t work_available_province = 0x0240;
8290 tf_unused_1, //compensate for missing slot
8291 tf_variable_ideology_name_nation, // constexpr inline uint16_t variable_ideology_name_nation = 0x0241;
8292 tf_variable_ideology_name_state, // constexpr inline uint16_t variable_ideology_name_state = 0x0242;
8293 tf_variable_ideology_name_province, // constexpr inline uint16_t variable_ideology_name_province = 0x0243;
8294 tf_variable_ideology_name_pop, // constexpr inline uint16_t variable_ideology_name_pop = 0x0244;
8295 tf_variable_issue_name_nation, // constexpr inline uint16_t variable_issue_name_nation = 0x0245;
8296 tf_variable_issue_name_state, // constexpr inline uint16_t variable_issue_name_state = 0x0246;
8297 tf_variable_issue_name_province, // constexpr inline uint16_t variable_issue_name_province = 0x0247;
8298 tf_variable_issue_name_pop, // constexpr inline uint16_t variable_issue_name_pop = 0x0248;
8299 tf_variable_issue_group_name_nation, // constexpr inline uint16_t variable_issue_group_name_nation = 0x0249;
8300 tf_variable_issue_group_name_state, // constexpr inline uint16_t variable_issue_group_name_state = 0x024A;
8301 tf_variable_issue_group_name_province, // constexpr inline uint16_t variable_issue_group_name_province = 0x024B;
8302 tf_variable_issue_group_name_pop, // constexpr inline uint16_t variable_issue_group_name_pop = 0x024C;
8303 tf_variable_pop_type_name_nation, // constexpr inline uint16_t variable_pop_type_name_nation = 0x024D;
8304 tf_variable_pop_type_name_state, // constexpr inline uint16_t variable_pop_type_name_state = 0x024E;
8305 tf_variable_pop_type_name_province, // constexpr inline uint16_t variable_pop_type_name_province = 0x024F;
8306 tf_variable_pop_type_name_pop, // constexpr inline uint16_t variable_pop_type_name_pop = 0x0250;
8307 tf_variable_good_name, // constexpr inline uint16_t variable_good_name = 0x0251;
8308 tf_strata_middle, // constexpr inline uint16_t strata_middle = 0x0252;
8309 tf_strata_poor, // constexpr inline uint16_t strata_poor = 0x0253;
8310 tf_party_loyalty_from_province_scope_province, // constexpr inline uint16_t party_loyalty_from_province_scope_province = 0x0254;
8311 tf_can_build_factory_nation, // constexpr inline uint16_t can_build_factory_nation = 0x0255;
8312 tf_can_build_factory_province, // constexpr inline uint16_t can_build_factory_province = 0x0256;
8313 tf_nationalvalue_pop, // constexpr inline uint16_t nationalvalue_pop = 0x0257;
8314 tf_nationalvalue_province, // constexpr inline uint16_t nationalvalue_province = 0x0258;
8315 tf_war_exhaustion_pop, // constexpr inline uint16_t war_exhaustion_pop = 0x0259;
8316 tf_has_culture_core_province_this_pop, // constexpr inline uint16_t has_culture_core_province_this_pop = 0x025A;
8317 tf_tag_pop, // constexpr inline uint16_t tag_pop = 0x025B;
8318 tf_has_country_flag, // constexpr inline uint16_t has_country_flag_pop = 0x025C;
8319 tf_has_country_flag, // constexpr inline uint16_t has_country_flag_province = 0x025D;
8320 tf_has_country_modifier_province, // constexpr inline uint16_t has_country_modifier_province = 0x025E;
8321 tf_religion_nation, // constexpr inline uint16_t religion_nation = 0x025F;
8322 tf_religion_nation_reb, // constexpr inline uint16_t religion_nation_reb = 0x0260;
8323 tf_religion_nation_from_nation, // constexpr inline uint16_t religion_nation_from_nation = 0x0261;
8324 tf_religion_nation_this_nation, // constexpr inline uint16_t religion_nation_this_nation = 0x0262;
8325 tf_religion_nation_this_state, // constexpr inline uint16_t religion_nation_this_state = 0x0263;
8326 tf_religion_nation_this_province, // constexpr inline uint16_t religion_nation_this_province = 0x0264;
8327 tf_religion_nation_this_pop, // constexpr inline uint16_t religion_nation_this_pop = 0x0265;
8328 tf_war_exhaustion_province, // constexpr inline uint16_t war_exhaustion_province = 0x0266;
8329 tf_is_greater_power_province, // constexpr inline uint16_t is_greater_power_province = 0x0267;
8330 tf_is_cultural_union_pop_this_pop, // constexpr inline uint16_t is_cultural_union_pop_this_pop = 0x0268;
8331 tf_has_building_factory, // constexpr inline uint16_t has_building_factory = 0x0269;
8332 tf_has_building_state_from_province, // constexpr inline uint16_t has_building_state_from_province = 0x026A;
8333 tf_has_building_factory_from_province, // constexpr inline uint16_t has_building_factory_from_province = 0x026B;
8334 tf_party_loyalty_generic, // constexpr inline uint16_t party_loyalty_generic = 0x026C;
8335 tf_invention, // constexpr inline uint16_t invention = 0x026D;
8336 tf_political_movement_from_reb, // constexpr inline uint16_t political_movement_from_reb = 0x026E;
8337 tf_social_movement_from_reb, // constexpr inline uint16_t social_movement_from_reb = 0x026F;
8338 tf_is_next_rreform_nation, // constexpr inline uint16_t is_next_rreform_nation = 0x0270;
8339 tf_is_next_rreform_pop, // constexpr inline uint16_t is_next_rreform_pop = 0x0271;
8340 tf_variable_reform_group_name_nation, // constexpr inline uint16_t variable_reform_group_name_nation = 0x0272;
8341 tf_variable_reform_group_name_state, // constexpr inline uint16_t variable_reform_group_name_state = 0x0273;
8342 tf_variable_reform_group_name_province, // constexpr inline uint16_t variable_reform_group_name_province = 0x0274;
8343 tf_variable_reform_group_name_pop, // constexpr inline uint16_t variable_reform_group_name_pop = 0x0275;
8344 tf_is_disarmed_pop, //constexpr inline uint16_t is_disarmed_pop = 0x0276;
8345 tf_owned_by_tag, //constexpr inline uint16_t owned_by_state_tag = 0x0277;
8346 tf_owned_by_from_nation, //constexpr inline uint16_t owned_by_state_from_nation = 0x0278;
8347 tf_owned_by_this_nation, //constexpr inline uint16_t owned_by_state_this_nation = 0x0279;
8348 tf_owned_by_this_province, //constexpr inline uint16_t owned_by_state_this_province = 0x027A;
8349 tf_owned_by_this_state, //constexpr inline uint16_t owned_by_state_this_state = 0x027B;
8350 tf_owned_by_this_pop, //constexpr inline uint16_t owned_by_state_this_pop = 0x027C;
8351 tf_units_in_province_tag, // constexpr inline uint16_t units_in_province_tag = 0x027D;
8352 tf_primary_culture_from_nation, //constexpr inline uint16_t primary_culture_from_nation = 0x027E;
8353 tf_primary_culture_from_province, //constexpr inline uint16_t primary_culture_from_province = 0x027F;
8354 tf_neighbour_this_province, //constexpr inline uint16_t neighbour_this_province = 0x0280;
8355 tf_neighbour_from_province, //constexpr inline uint16_t neighbour_from_province = 0x0281;
8356 tf_technology, //constexpr inline uint16_t technology_province = 0x0282;
8357 tf_invention, //constexpr inline uint16_t invention_province = 0x0283;
8358 tf_brigades_compare_province_this, //constexpr inline uint16_t brigades_compare_province_this = 0x0284;
8359 tf_brigades_compare_province_from, //constexpr inline uint16_t brigades_compare_province_from = 0x0285;
8360 tf_is_accepted_culture_nation_this_pop, //constexpr inline uint16_t is_accepted_culture_nation_this_pop = 0x0286;
8361 tf_is_accepted_culture_nation_this_nation, //constexpr inline uint16_t is_accepted_culture_nation_this_nation = 0x0287;
8362 tf_is_accepted_culture_nation_this_state, //constexpr inline uint16_t is_accepted_culture_nation_this_state = 0x0288;
8363 tf_is_accepted_culture_nation_this_province, //constexpr inline uint16_t is_accepted_culture_nation_this_province = 0x0289;
8364 tf_is_accepted_culture_state_this_pop, //constexpr inline uint16_t is_accepted_culture_state_this_pop = 0x028A;
8365 tf_is_accepted_culture_state_this_nation, //constexpr inline uint16_t is_accepted_culture_state_this_nation = 0x028B;
8366 tf_is_accepted_culture_state_this_state, //constexpr inline uint16_t is_accepted_culture_state_this_state = 0x028C;
8367 tf_is_accepted_culture_state_this_province, //constexpr inline uint16_t is_accepted_culture_state_this_province = 0x028D;
8368 tf_is_accepted_culture_province_this_pop, //constexpr inline uint16_t is_accepted_culture_province_this_pop = 0x028E;
8369 tf_is_accepted_culture_province_this_nation, //constexpr inline uint16_t is_accepted_culture_province_this_nation = 0x028F;
8370 tf_is_accepted_culture_province_this_state, //constexpr inline uint16_t is_accepted_culture_province_this_state = 0x0290;
8371 tf_is_accepted_culture_province_this_province, //constexpr inline uint16_t is_accepted_culture_province_this_province = 0x0291;
8372 tf_is_accepted_culture_pop_this_pop, //constexpr inline uint16_t is_accepted_culture_pop_this_pop = 0x0292;
8373 tf_is_accepted_culture_pop_this_nation, //constexpr inline uint16_t is_accepted_culture_pop_this_nation = 0x0293;
8374 tf_is_accepted_culture_pop_this_state, //constexpr inline uint16_t is_accepted_culture_pop_this_state = 0x0294;
8375 tf_is_accepted_culture_pop_this_province, //constexpr inline uint16_t is_accepted_culture_pop_this_province = 0x0295;
8376 tf_culture_group_province, //constexpr inline uint16_t culture_group_province = 0x0296;
8377 tf_culture_group_state, //constexpr inline uint16_t culture_group_state = 0x0297;
8378 tf_have_core_in_nation_tag, //constexpr inline uint16_t have_core_in_nation_tag = 0x0298;
8379 tf_have_core_in_nation_this, //constexpr inline uint16_t have_core_in_nation_this = 0x0299;
8380 tf_have_core_in_nation_from, //constexpr inline uint16_t have_core_in_nation_from = 0x029A;
8381 tf_owns, //constexpr inline uint16_t owns_province = 0x029B;
8382 tf_empty, //constexpr inline uint16_t empty_state = 0x029C;
8383 tf_is_overseas_pop, //constexpr inline uint16_t is_overseas_pop = 0x029D;
8384 tf_primary_culture_pop, //constexpr inline uint16_t primary_culture_pop = 0x029E;
8385 tf_plurality_pop, //constexpr inline uint16_t plurality_pop = 0x029F;
8386 tf_is_overseas, //constexpr inline uint16_t is_overseas_state = 0x02A0;
8387 tf_stronger_army_than_tag, //constexpr inline uint16_t stronger_army_than_tag = 0x02A1;
8388 tf_region, //constexpr inline uint16_t region_state = 0x02A2;
8389 tf_region_pop, //constexpr inline uint16_t region_pop = 0x02A3;
8390 tf_owns_region, //constexpr inline uint16_t owns_region = 0x02A4;
8391 tf_is_core_tag, //constexpr inline uint16_t is_core_state_tag = 0x02A5;
8392 tf_country_units_in_state_from, //constexpr inline uint16_t country_units_in_state_from = 0x02A6;
8393 tf_country_units_in_state_this_nation, //constexpr inline uint16_t country_units_in_state_this_nation = 0x02A7;
8394 tf_country_units_in_state_this_province, //constexpr inline uint16_t country_units_in_state_this_province = 0x02A8;
8395 tf_country_units_in_state_this_state, //constexpr inline uint16_t country_units_in_state_this_state = 0x02A9;
8396 tf_country_units_in_state_this_pop, //constexpr inline uint16_t country_units_in_state_this_pop = 0x02AA;
8397 tf_country_units_in_state_tag, //constexpr inline uint16_t country_units_in_state_tag = 0x02AB;
8398 tf_stronger_army_than_this_nation, //constexpr inline uint16_t stronger_army_than_this_nation = 0x02AC;
8399 tf_stronger_army_than_this_state, //constexpr inline uint16_t stronger_army_than_this_state = 0x02AD;
8400 tf_stronger_army_than_this_province, //constexpr inline uint16_t stronger_army_than_this_province = 0x02AE;
8401 tf_stronger_army_than_this_pop, //constexpr inline uint16_t stronger_army_than_this_pop = 0x02AF;
8402 tf_stronger_army_than_from_nation, //constexpr inline uint16_t stronger_army_than_from_nation = 0x02B0;
8403 tf_stronger_army_than_from_province, //constexpr inline uint16_t stronger_army_than_from_province = 0x02B1;
8404 tf_flashpoint_tension, //constexpr inline uint16_t flashpoint_tension_province = 0x02B2;
8405 tf_is_colonial_pop, //constexpr inline uint16_t is_colonial_pop = 0x02B3;
8406 tf_has_country_flag, // constexpr inline uint16_t has_country_flag_state = 0x02B4;
8407 tf_rich_tax, //constexpr inline uint16_t rich_tax_pop = 0x02B5;
8408 tf_middle_tax, //constexpr inline uint16_t middle_tax_pop = 0x02B6;
8409 tf_poor_tax, //constexpr inline uint16_t poor_tax_pop = 0x02B7;
8410 tf_is_core_pop_tag, //constexpr inline uint16_t is_core_pop_tag = 0x02B8;
8411 tf_is_core_boolean, //constexpr inline uint16_t is_core_boolean = 0x02B9;
8412 tf_is_core_this_nation, //constexpr inline uint16_t is_core_state_this_nation = 0x02BA;
8413 tf_is_core_this_province, //constexpr inline uint16_t is_core_state_this_province = 0x02BB;
8414 tf_is_core_this_pop, //constexpr inline uint16_t is_core_state_this_pop = 0x02BC;
8415 tf_is_core_from_nation, //constexpr inline uint16_t is_core_state_from_nation = 0x02BD;
8416 tf_ruling_party_ideology_nation, //constexpr inline uint16_t ruling_party_ideology_province = 0x02BE;
8417 tf_money_province, //constexpr inline uint16_t money_province = 0x02BF;
8418 tf_is_our_vassal_province_tag, //constexpr inline uint16_t is_our_vassal_province_tag = 0x02C0;
8419 tf_is_our_vassal_province_from, //constexpr inline uint16_t is_our_vassal_province_from = 0x02C1;
8420 tf_is_our_vassal_province_this_nation, //constexpr inline uint16_t is_our_vassal_province_this_nation = 0x02C2;
8421 tf_is_our_vassal_province_this_province, //constexpr inline uint16_t is_our_vassal_province_this_province = 0x02C3;
8422 tf_is_our_vassal_province_this_state, //constexpr inline uint16_t is_our_vassal_province_this_state = 0x02C4;
8423 tf_is_our_vassal_province_this_pop, //constexpr inline uint16_t is_our_vassal_province_this_pop = 0x02C5;
8424 tf_vassal_of_province_tag, //constexpr inline uint16_t vassal_of_province_tag = 0x02C6;
8425 tf_vassal_of_province_from, //constexpr inline uint16_t vassal_of_province_from = 0x02C7;
8426 tf_vassal_of_province_this_nation, //constexpr inline uint16_t vassal_of_province_this_nation = 0x02C8;
8427 tf_vassal_of_province_this_province, //constexpr inline uint16_t vassal_of_province_this_province = 0x02C9;
8428 tf_vassal_of_province_this_state, //constexpr inline uint16_t vassal_of_province_this_state = 0x02CA;
8429 tf_vassal_of_province_this_pop, //constexpr inline uint16_t vassal_of_province_this_pop = 0x02CB;
8430 tf_relation_this_pop, //constexpr inline uint16_t relation_this_pop = 0x02CC;
8431 tf_has_recently_lost_war, //constexpr inline uint16_t has_recently_lost_war_pop = 0x02CD;
8432 tf_technology, //constexpr inline uint16_t technology_pop = 0x02CE;
8433 tf_invention, //constexpr inline uint16_t invention_pop = 0x02CF;
8434 tf_in_default_bool, //constexpr inline uint16_t in_default_bool = 0x02D0;
8435 tf_is_state_capital_pop, //constexpr inline uint16_t is_state_capital_pop = 0x02D1;
8436 tf_region_proper, //constexpr inline uint16_t region_proper = 0x02D2;
8437 tf_region_proper, //constexpr inline uint16_t region_proper_state = 0x02D3;
8438 tf_region_proper_pop, //constexpr inline uint16_t region_proper_pop = 0x02D4;
8439 tf_owns_region_proper, //constexpr inline uint16_t owns_region_proper = 0x02D5;
8440 tf_pop_majority_religion_nation_this_nation, //constexpr inline uint16_t pop_majority_religion_nation_this_nation = 0x02D6;
8441 tf_military_score_tag, //constexpr inline uint16_t military_score_tag = 0x02D7;
8442 tf_industrial_score_tag, //constexpr inline uint16_t industrial_score_tag = 0x02D8;
8443 tf_has_factories_nation, // constexpr inline uint16_t has_factories_state = 0x02D9;
8444 tf_is_coastal_state, // constexpr inline uint16_t is_coastal_state = 0x02DA;
8445 tf_has_building_bank, // constexpr inline uint16_t has_building_bank = 0x02DB;
8446 tf_has_building_university, // constexpr inline uint16_t has_building_university = 0x02DC;
8447 tf_test, // constexpr inline uint16_t test = 0x02DD;
8448 tf_unit_has_leader, //constexpr inline uint16_t unit_has_leader = 0x02DF
8449 tf_has_national_focus_state, //constexpr inline uint16_t has_national_focus_state = 0x02E0
8450 tf_has_national_focus_province, //constexpr inline uint16_t has_national_focus_province = 0x02E1
8451 tf_party_name, //TRIGGER_BYTECODE_ELEMENT(0x02E2, party_name, 3)
8452 tf_party_position, //TRIGGER_BYTECODE_ELEMENT(0x02E3, party_position, 2)
8453 tf_diplo_points, //TRIGGER_BYTECODE_ELEMENT(0x02E4, tf_diplo_points, 2)
8454
8455 //
8456 // scopes
8457 //
8458
8459 tf_generic_scope, // constexpr uint16_t generic_scope = 0x0000; // or & and
8460 tf_x_neighbor_province_scope, // constexpr uint16_t x_neighbor_province_scope = 0x0001;
8461 tf_x_neighbor_country_scope_nation, // constexpr uint16_t x_neighbor_country_scope_nation = 0x0002;
8462 tf_x_neighbor_country_scope_pop, // constexpr uint16_t x_neighbor_country_scope_pop = 0x0003;
8463 tf_x_war_countries_scope_nation, // constexpr uint16_t x_war_countries_scope_nation = 0x0004;
8464 tf_x_war_countries_scope_pop, // constexpr uint16_t x_war_countries_scope_pop = 0x0005;
8465 tf_x_greater_power_scope, // constexpr uint16_t x_greater_power_scope = 0x0006;
8466 tf_x_owned_province_scope_state, // constexpr uint16_t x_owned_province_scope_state = 0x0007;
8467 tf_x_owned_province_scope_nation, // constexpr uint16_t x_owned_province_scope_nation = 0x0008;
8468 tf_x_core_scope_province, // constexpr uint16_t x_core_scope_province = 0x0009;
8469 tf_x_core_scope_nation, // constexpr uint16_t x_core_scope_nation = 0x000A;
8470 tf_x_state_scope, // constexpr uint16_t x_state_scope = 0x000B;
8471 tf_x_substate_scope, // constexpr uint16_t x_substate_scope = 0x000C;
8472 tf_x_sphere_member_scope, // constexpr uint16_t x_sphere_member_scope = 0x000D;
8473 tf_x_pop_scope_province, // constexpr uint16_t x_pop_scope_province = 0x000E;
8474 tf_x_pop_scope_state, // constexpr uint16_t x_pop_scope_state = 0x000F;
8475 tf_x_pop_scope_nation, // constexpr uint16_t x_pop_scope_nation = 0x0010;
8476 tf_x_provinces_in_variable_region, // constexpr uint16_t x_provinces_in_variable_region = 0x0011; // variable name
8477 tf_owner_scope_state, // constexpr uint16_t owner_scope_state = 0x0012;
8478 tf_owner_scope_province, // constexpr uint16_t owner_scope_province = 0x0013;
8479 tf_controller_scope, // constexpr uint16_t controller_scope = 0x0014;
8480 tf_location_scope, // constexpr uint16_t location_scope = 0x0015;
8481 tf_country_scope_state, // constexpr uint16_t country_scope_state = 0x0016;
8482 tf_country_scope_pop, // constexpr uint16_t country_scope_pop = 0x0017;
8483 tf_capital_scope, // constexpr uint16_t capital_scope = 0x0018;
8484 tf_this_scope_pop, // constexpr uint16_t this_scope_pop = 0x0019;
8485 tf_this_scope_nation, // constexpr uint16_t this_scope_nation = 0x001A;
8486 tf_this_scope_state, // constexpr uint16_t this_scope_state = 0x001B;
8487 tf_this_scope_province, // constexpr uint16_t this_scope_province = 0x001C;
8488 tf_from_scope_pop, // constexpr uint16_t from_scope_pop = 0x001D;
8489 tf_from_scope_nation, // constexpr uint16_t from_scope_nation = 0x001E;
8490 tf_from_scope_state, // constexpr uint16_t from_scope_state = 0x001F;
8491 tf_from_scope_province, // constexpr uint16_t from_scope_province = 0x0020;
8492 tf_sea_zone_scope, // constexpr uint16_t sea_zone_scope = 0x0021;
8493 tf_cultural_union_scope, // constexpr uint16_t cultural_union_scope = 0x0022;
8494 tf_overlord_scope, // constexpr uint16_t overlord_scope = 0x0023;
8495 tf_sphere_owner_scope, // constexpr uint16_t sphere_owner_scope = 0x0024;
8496 tf_independence_scope, // constexpr uint16_t independence_scope = 0x0025;
8497 tf_flashpoint_tag_scope, // constexpr uint16_t flashpoint_tag_scope = 0x0026;
8498 tf_crisis_state_scope, // constexpr uint16_t crisis_state_scope = 0x0027;
8499 tf_state_scope_pop, // constexpr uint16_t state_scope_pop = 0x0028;
8500 tf_state_scope_province, // constexpr uint16_t state_scope_province = 0x0029;
8501 tf_tag_scope, // constexpr uint16_t tag_scope = 0x002A; // variable name
8502 tf_integer_scope, // constexpr uint16_t integer_scope = 0x002B; // variable name
8503 tf_country_scope_nation, // constexpr uint16_t country_scope_nation = 0x002C;
8504 tf_country_scope_province, // constexpr uint16_t country_scope_province = 0x002D;
8505 tf_cultural_union_scope_pop, // constexpr uint16_t cultural_union_scope_pop = 0x002E;
8506 tf_capital_scope_province, // constexpr uint16_t capital_scope_province = 0x002F;
8507 tf_capital_scope_pop, //constexpr inline uint16_t capital_scope_pop = first_scope_code + 0x0030;
8508 tf_x_country_scope, //constexpr inline uint16_t x_country_scope = first_scope_code + 0x0031;
8509 tf_x_neighbor_province_scope_state, //constexpr inline uint16_t x_neighbor_province_scope_state = first_scope_code + 0x0032;
8510 tf_x_provinces_in_variable_region_proper, //constexpr inline uint16_t x_provinces_in_variable_region_proper = first_scope_code + 0x0033;
8511};
8512
8513// #define TRIGGER_DISPLAY_PARAMS uint16_t const* tval, sys::state& ws, text::columnar_layout& layout,
8514// int32_t primary_slot, int32_t this_slot, int32_t from_slot, int32_t indentation, bool show_condition
8515
8516void make_trigger_description(sys::state& ws, text::layout_base& layout, uint16_t const* tval, int32_t primary_slot,
8517 int32_t this_slot, int32_t from_slot, int32_t indentation, bool show_condition) {
8518 trigger_functions[*tval & trigger::code_mask](tval, ws, layout, primary_slot, this_slot, from_slot, indentation,
8519 show_condition);
8520}
8521
8522#undef TRIGGER_DISPLAY_PARAMS
8523
8524} // namespace trigger_tooltip
8525
8526void trigger_description(sys::state& state, text::layout_base& layout, dcon::trigger_key k, int32_t primary_slot,
8527 int32_t this_slot, int32_t from_slot) {
8528 if(!k)
8529 return;
8530
8531 trigger_tooltip::make_trigger_description(state, layout, state.trigger_data.data() + state.trigger_data_indices[k.index() + 1],
8532 primary_slot, this_slot, from_slot, 0, true);
8533}
8534
8535void multiplicative_value_modifier_description(sys::state& state, text::layout_base& layout, dcon::value_modifier_key modifier,
8536 int32_t primary_slot, int32_t this_slot, int32_t from_slot) {
8537 auto base = state.value_modifiers[modifier];
8538
8539 if(primary_slot != -1) {
8542 text::fp_two_places{trigger::evaluate_multiplicative_modifier(state, modifier, primary_slot, this_slot, from_slot)});
8543 auto box = text::open_layout_box(layout, 0);
8544 text::localised_format_box(state, layout, box, std::string_view("value_mod_product"), map);
8545 text::close_layout_box(layout, box);
8546 }
8547
8548 if(base.factor != 0.0f) {
8552 text::localised_format_box(state, layout, box, std::string_view("comwid_base"), map);
8553 text::close_layout_box(layout, box);
8554 }
8555
8556 for(uint32_t i = 0; i < base.segments_count; ++i) {
8557 auto seg = state.value_modifier_segments[base.first_segment_offset + i];
8558 if(seg.condition) {
8560 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);
8561
8562 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);
8563 text::close_layout_box(layout, box);
8564
8566 state.trigger_data.data() + state.trigger_data_indices[seg.condition.index() + 1], primary_slot, this_slot, from_slot,
8567 trigger_tooltip::indentation_amount * 2, primary_slot != -1);
8568 }
8569 }
8570}
8571
8572void additive_value_modifier_description(sys::state& state, text::layout_base& layout, dcon::value_modifier_key modifier,
8573 int32_t primary_slot, int32_t this_slot, int32_t from_slot) {
8574 auto base = state.value_modifiers[modifier];
8575
8576 if(base.factor == 1.0f) {
8579 text::fp_two_places{trigger::evaluate_additive_modifier(state, modifier, primary_slot, this_slot, from_slot)});
8580 auto box = text::open_layout_box(layout, 0);
8581 text::localised_format_box(state, layout, box, std::string_view("value_mod_sum"), map);
8582 text::close_layout_box(layout, box);
8583 } else {
8586 text::fp_two_places{ trigger::evaluate_additive_modifier(state, modifier, primary_slot, this_slot, from_slot) });
8588 text::fp_two_places{ base.factor });
8589 auto box = text::open_layout_box(layout, 0);
8590 text::localised_format_box(state, layout, box, std::string_view("value_mod_sum_factor"), map);
8591 text::close_layout_box(layout, box);
8592 }
8593
8594 {
8598 text::localised_format_box(state, layout, box, std::string_view("comwid_base"), map);
8599 text::close_layout_box(layout, box);
8600 }
8601
8602 for(uint32_t i = 0; i < base.segments_count; ++i) {
8603 auto seg = state.value_modifier_segments[base.first_segment_offset + i];
8604 if(seg.condition) {
8606 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);
8607
8608 text::add_to_layout_box(state, layout, box, text::fp_two_places{seg.factor},
8609 seg.factor >= 0.f ? text::text_color::green : text::text_color::red);
8610 text::close_layout_box(layout, box);
8611
8613 state.trigger_data.data() + state.trigger_data_indices[seg.condition.index() + 1], primary_slot, this_slot, from_slot,
8614 trigger_tooltip::indentation_amount * 2, primary_slot != -1);
8615 }
8616 }
8617}
8618
8619} // namespace ui
#define TRIGGER_DISPLAY_PARAMS
dcon::nation_id owner_of_pop(sys::state const &state, dcon::pop_id pop_ids)
Definition: nations.cpp:87
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:2137
layout_box open_layout_box(layout_base &dest, int32_t indent)
Definition: text.cpp:1823
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:1904
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:797
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:1812
void close_layout_box(columnar_layout &dest, layout_box &box)
Definition: text.cpp:1831
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, embedded_commodity_icon > substitution
Definition: text.hpp:796
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:5895
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:5826
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:5812
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_diplo_points(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
Holds important data about the game world, state, and other data regarding windowing,...
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