Skip to content

Commit d8e895e

Browse files
committed
PLI v1.2.2
1 parent 1cbd8f0 commit d8e895e

14 files changed

+172
-66
lines changed

Populist Legal Innovation/common/script_values/MoG_PLI_bar_drift_values.txt

Lines changed: 48 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,71 @@
11
# These values closely replicate the scripted bar change values to set up drift effects on the progress bar
22
mog_pli_investment_tracking_bar_weekly_drift = {
3-
add = {
4-
# desc = "mog_pli_investment_tracking_bar_drift"
5-
# desc = "mog_pli_investment_increment_desc"
3+
if = {
4+
limit = { has_variable = mog_pli_investment_current_value }
65
if = {
7-
limit = { has_variable = mog_pli_investment_current_value }
6+
limit = { mog_pli_investment_target < var:mog_pli_investment_current_value } # Target below current state.
87
if = {
9-
limit = { mog_pli_investment_target < var:mog_pli_investment_current_value } # Target below current state.
10-
if = {
11-
limit = {
12-
mog_pli_investment_increment < { # If increment is less than the gap, use the increment, else use the gap.
13-
value = mog_pli_investment_target
14-
subtract = var:mog_pli_investment_current_value
15-
multiply = -1
16-
}
8+
limit = {
9+
mog_pli_investment_increment < { # If increment is less than the gap, use the increment, else use the gap.
10+
value = mog_pli_investment_target
11+
subtract = var:mog_pli_investment_current_value
12+
multiply = -1
13+
multiply = je_mog_pli_falling_confidence_mult
1714
}
15+
}
16+
add = {
1817
add = {
19-
add = {
20-
value = mog_pli_investment_increment
21-
multiply = -1 # Move towards lower target.
22-
}
23-
# desc = "mog_pli_investment_increment_desc"
18+
value = mog_pli_investment_increment
19+
multiply = -1 # Move towards lower target.
20+
multiply = je_mog_pli_falling_confidence_mult
2421
}
22+
# desc = "mog_pli_investment_increment_desc"
2523
}
26-
else = {
24+
}
25+
else = {
26+
add = {
2727
add = {
28-
add = {
29-
value = mog_pli_investment_increment
30-
multiply = -1 # Move towards lower target.
31-
min = {
32-
value = mog_pli_investment_target
33-
subtract = var:mog_pli_investment_current_value # Current value slightly bigger here, so result is -ve and result = target.
34-
}
28+
value = mog_pli_investment_increment
29+
multiply = -1 # Move towards lower target.
30+
multiply = je_mog_pli_falling_confidence_mult
31+
min = {
32+
value = mog_pli_investment_target
33+
subtract = var:mog_pli_investment_current_value # Current value slightly bigger here, so result is -ve and result = target.
3534
}
36-
# desc = "mog_pli_investment_increment_desc"
3735
}
36+
# desc = "mog_pli_investment_increment_desc"
3837
}
3938
}
40-
else = { # Target above current state.
41-
if = {
42-
limit = {
43-
mog_pli_investment_increment < { # If increment is less than the gap, use the increment, else use the gap.
44-
value = mog_pli_investment_target
45-
subtract = var:mog_pli_investment_current_value
46-
}
47-
}
48-
add = {
49-
value = mog_pli_investment_increment # Move towards higher target.
50-
# desc = "mog_pli_investment_increment_desc"
39+
}
40+
else = { # Target above current state.
41+
if = {
42+
limit = {
43+
mog_pli_investment_increment < { # If increment is less than the gap, use the increment, else use the gap.
44+
value = mog_pli_investment_target
45+
subtract = var:mog_pli_investment_current_value
5146
}
5247
}
53-
else = {
54-
add = {
55-
value = mog_pli_investment_increment # Move towards higher target.
56-
max = {
57-
value = var:mog_pli_investment_current_value
58-
subtract = mog_pli_investment_target # Current value slightly lower here, so result is +ve and result = target.
59-
}
60-
61-
# desc = "mog_pli_investment_increment_desc"
48+
add = {
49+
value = mog_pli_investment_increment # Move towards higher target.
50+
# desc = "mog_pli_investment_increment_desc"
51+
}
52+
}
53+
else = {
54+
add = {
55+
value = mog_pli_investment_increment # Move towards higher target.
56+
max = {
57+
value = var:mog_pli_investment_current_value
58+
subtract = mog_pli_investment_target # Current value slightly lower here, so result is +ve and result = target.
6259
}
60+
61+
# desc = "mog_pli_investment_increment_desc"
6362
}
6463
}
6564
}
66-
#changed here, because the drift is a modified amount from the current value, we always add the current value
67-
add = var:mog_pli_investment_current_value
6865
}
66+
#changed here, because the drift is a modified amount from the current value, we always add the current value
67+
add = var:mog_pli_investment_current_value
68+
6969
#divide by bar max because the drift is a 0-1 value
7070
divide = 100
7171
}
@@ -124,7 +124,6 @@ mog_pli_corruption_tracking_bar_weekly_drift = {
124124
add = var:mog_pli_corruption_current_value
125125
divide = 100
126126
}
127-
format = DECIMAL_SCRIPT_VALUE_FORMAT_INVERT
128127
}
129128

130129
mog_pli_innovation_tracking_bar_weekly_drift = {

Populist Legal Innovation/common/script_values/MoG_PLI_innovation_values.txt

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,39 +54,65 @@ mog_pli_innovation_target_loc_value = {
5454
divide = 100
5555
}
5656

57+
mog_pli_innovation_target_trend_buffer = {
58+
value = mog_pli_innovation_target
59+
multiply = 0.8 # Subtract 20% of target value
60+
}
61+
5762
mog_pli_innovation_increment = {
5863
value = 0
64+
if = {
65+
limit = { mog_pli_innovation_target_trend_buffer > var:mog_pli_innovation_current_value } # Target below current state.
66+
add = {
67+
add = -2.0 # -ve because then multiplied by -ve from inverse %
68+
multiply = {
69+
add = var:mog_pli_innovation_current_value # (current/target)-1 = bigger absolute
70+
divide = mog_pli_innovation_target_trend_buffer # value when further from the target
71+
add = -1
72+
}
73+
desc = PLI_BASE_TREND
74+
format = PLI_3DECIMAL_SCRIPT_VALUE_FORMAT
75+
}
76+
}
5977
# Accelerators/Decelerators
6078
add = {
6179
owner.institution:institution_police ?= {
6280
add = 0.01
6381
multiply = investment
6482
}
6583
desc = PLI_POLICE_INSTITUTION # Max = 0.05
84+
format = PLI_2DECIMAL_SCRIPT_VALUE_FORMAT
6685
}
6786
add = {
6887
owner.institution:institution_schools ?= {
6988
add = 0.01
7089
multiply = investment
7190
}
7291
desc = PLI_SCHOOL_INSTITUTION # Max = 0.05
92+
format = PLI_2DECIMAL_SCRIPT_VALUE_FORMAT
7393
}
7494
add = {
7595
owner.institution:institution_health_system ?= {
7696
add = 0.01
7797
multiply = investment
7898
}
7999
desc = PLI_OHS_INSTITUTION # Max = 0.05
100+
format = PLI_2DECIMAL_SCRIPT_VALUE_FORMAT
80101
}
81102
add = {
82103
owner.institution:institution_social_security ?= {
83104
add = 0.1
84105
multiply = investment
85106
}
86107
desc = PLI_SOCSEC_INSTITUTION # Max = 0.05
108+
format = PLI_2DECIMAL_SCRIPT_VALUE_FORMAT
87109
}
88110
min = 0.01
89-
multiply = root.literacy_rate
111+
multiply = {
112+
add = root.literacy_rate
113+
desc = PLI_LITERACY_RATE_MOD
114+
format = PLI_3DECIMAL_SCRIPT_VALUE_FORMAT
115+
}
90116
}
91117

92118
mog_pli_ino_dist_of_power = { # Max 20
@@ -527,32 +553,57 @@ mog_pli_proliferation_max_loc_value = {
527553
divide = 100
528554
}
529555

556+
mog_pli_proliferation_target_trend_buffer = {
557+
value = mog_pli_proliferation_target
558+
multiply = 0.8 # Subtract 20% of target value
559+
}
560+
530561
mog_pli_proliferation_increment = {
531562
value = 0
563+
if = {
564+
limit = { mog_pli_proliferation_target_trend_buffer > var:mog_pli_proliferation_current_value } # Target below current state.
565+
add = {
566+
add = -1.5 # -ve because then multiplied by -ve from inverse %
567+
multiply = {
568+
add = var:mog_pli_proliferation_current_value # (current/target)-1 = bigger absolute
569+
divide = mog_pli_proliferation_target_trend_buffer # value when further from the target
570+
add = -1
571+
}
572+
desc = PLI_BASE_TREND
573+
format = PLI_3DECIMAL_SCRIPT_VALUE_FORMAT
574+
}
575+
}
532576
# Accelerators/Decelerators
533577
add = {
534578
owner.institution:institution_police ?= {
535579
add = 0.1
536580
multiply = investment
537581
}
538582
desc = PLI_POLICE_INSTITUTION # Max = 0.5
583+
format = PLI_2DECIMAL_SCRIPT_VALUE_FORMAT
539584
}
540585
add = {
541586
owner.institution:institution_schools ?= {
542587
add = 0.1
543588
multiply = investment
544589
}
545590
desc = PLI_SCHOOL_INSTITUTION # Max = 0.5
591+
format = PLI_2DECIMAL_SCRIPT_VALUE_FORMAT
546592
}
547593
add = {
548594
owner.institution:institution_workplace_safety ?= {
549595
add = 0.1
550596
multiply = investment
551597
}
552598
desc = PLI_OHS_INSTITUTION # Max = 0.5
599+
format = PLI_2DECIMAL_SCRIPT_VALUE_FORMAT
553600
}
554601
min = 0.01
555-
multiply = root.literacy_rate
602+
multiply = {
603+
add = root.literacy_rate
604+
desc = PLI_LITERACY_RATE_MOD
605+
format = PLI_3DECIMAL_SCRIPT_VALUE_FORMAT
606+
}
556607
}
557608

558609
mog_pli_pro_governance = { # Max 20 - Best: Parliamentary Republic

Populist Legal Innovation/common/script_values/MoG_PLI_investment_values.txt

Lines changed: 49 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,26 @@ mog_pli_resting_target_loc_value = {
7171
divide = 100
7272
}
7373

74+
mog_pli_investment_target_trend_buffer = {
75+
value = mog_pli_investment_target
76+
multiply = 0.6 # Subtract 40% of target value - investor confidence is less elastic
77+
}
78+
7479
mog_pli_investment_increment = {
7580
value = 0
81+
if = {
82+
limit = { mog_pli_investment_target_trend_buffer > var:mog_pli_investment_current_value } # Target below current state.
83+
add = {
84+
add = -1.5 # -ve because then multiplied by -ve from inverse %
85+
multiply = {
86+
add = var:mog_pli_investment_current_value # (current/target)-1 = bigger absolute
87+
divide = mog_pli_investment_target_trend_buffer # value when further from the target
88+
add = -1
89+
}
90+
desc = PLI_BASE_TREND
91+
format = PLI_3DECIMAL_SCRIPT_VALUE_FORMAT
92+
}
93+
}
7694
# Accelerators/Decelerators
7795
add = {
7896
owner.institution:institution_police ?= {
@@ -461,17 +479,44 @@ mog_pli_corruption_target_loc_value = {
461479
divide = 100
462480
}
463481

482+
mog_pli_corruption_base_institution_magnitude = { # Internal affairs excluded (max 0.025
483+
add = {
484+
owner.institution:institution_police ?= {
485+
add = 0.01
486+
multiply = investment
487+
}
488+
}
489+
add = {
490+
owner.institution:institution_schools ?= {
491+
add = 0.01
492+
multiply = investment
493+
}
494+
}
495+
add = {
496+
owner.institution:institution_workplace_safety ?= {
497+
add = 0.01
498+
multiply = investment
499+
}
500+
}
501+
}
502+
464503
mog_pli_corruption_increment = {
465504
value = 0
466505
if = {
467506
limit = { mog_pli_corruption_target > var:mog_pli_corruption_current_value } # Target below current state.
468507
add = {
469-
add = 0.275
508+
add = { # At 0 corruption, growth = institution resistance + base rate
509+
add = mog_pli_corruption_base_institution_magnitude
510+
multiply = -1 # -ve because then multiplied by -ve from inverse %
511+
}
470512
multiply = {
471-
add = var:mog_pli_corruption_current_value
472-
divide = mog_pli_corruption_target
513+
add = var:mog_pli_corruption_current_value # (current/target)-1 = bigger absolute
514+
divide = mog_pli_corruption_target # value when further from the target
515+
add = -1
473516
}
474-
desc = PLI_BASE_CORRUPTION
517+
add = 0.125 # Base rate = 0.125 + institution magnitude; as corr approaches target -> min possible rate
518+
add = mog_pli_corruption_base_institution_magnitude # approaches 0 depending on internal security laws
519+
desc = PLI_BASE_TREND
475520
format = PLI_3DECIMAL_SCRIPT_VALUE_INVERT_FORMAT
476521
}
477522
}

Populist Legal Innovation/localization/braz_por/MoG_PLI_custom_loc_l_braz_por.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@
3737
je_mog_pli_redistributive_reaction: "PLI: Agitação Populista" #deepl:1884117642
3838
mog_pli_fought_corruption_modifier: "Eliminação de influências corruptas" #deepl:605458558
3939
mog_pli_curried_favour_modifier: "Favorecimento de Powerbrokers com curry" #deepl:3980467289
40-
PLI_BASE_CORRUPTION: "Tendência natural para #yellow Potencial#!" #deepl:76454067
40+
PLI_BASE_TREND: "Tendência natural para #yellow Potencial#!" #deepl:76454067
4141
PLI_POLICE_INSTITUTION: "Nível da instituição policial" #deepl:3695223093
4242
PLI_SCHOOL_INSTITUTION: "Nível da instituição de ensino" #deepl:119565117
4343
PLI_HEALTH_INSTITUTION: "Sistema de saúde Nível da instituição" #deepl:1631231090
4444
PLI_SOCSEC_INSTITUTION: "Nível da instituição de seguridade social" #deepl:40582289
4545
PLI_OHS_INSTITUTION: "Segurança no local de trabalho Nível da instituição" #deepl:2305349007
4646
PLI_HAFFAIRS_INSTITUTION: "Assuntos internos Nível da instituição" #deepl:1435635816
47+
PLI_LITERACY_RATE_MOD: "Taxa de alfabetização" #deepl:812351491
4748
PLI_2DECIMAL_SCRIPT_VALUE_FORMAT: "$KEY$: $VALUE|=2+$" #deepl:3216225099
4849
PLI_2DECIMAL_SCRIPT_VALUE_INVERT_FORMAT: "$KEY$: $VALUE|=2-$" #deepl:3125476191
4950
PLI_3DECIMAL_SCRIPT_VALUE_FORMAT: "$KEY$: $VALUE|=3+$" #deepl:635900380

Populist Legal Innovation/localization/english/MoG_PLI_custom_loc_l_english.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@
3737
je_mog_pli_redistributive_reaction: "PLI: Populist Agitation"
3838
mog_pli_fought_corruption_modifier: "Purged Corrupt Influences"
3939
mog_pli_curried_favour_modifier: "Curried Favor with Powerbrokers"
40-
PLI_BASE_CORRUPTION: "Natural trend towards #yellow Potential#!"
40+
PLI_BASE_TREND: "Natural trend towards #yellow Potential#!"
4141
PLI_POLICE_INSTITUTION: "Police Institution Level"
4242
PLI_SCHOOL_INSTITUTION: "Education Institution Level"
4343
PLI_HEALTH_INSTITUTION: "Health System Institution Level"
4444
PLI_SOCSEC_INSTITUTION: "Social Security Institution Level"
4545
PLI_OHS_INSTITUTION: "Workplace Safety Institution Level"
4646
PLI_HAFFAIRS_INSTITUTION: "Home Affairs Institution Level"
47+
PLI_LITERACY_RATE_MOD: "Literacy Rate"
4748
PLI_2DECIMAL_SCRIPT_VALUE_FORMAT: "$KEY$: $VALUE|=2+$"
4849
PLI_2DECIMAL_SCRIPT_VALUE_INVERT_FORMAT: "$KEY$: $VALUE|=2-$"
4950
PLI_3DECIMAL_SCRIPT_VALUE_FORMAT: "$KEY$: $VALUE|=3+$"

Populist Legal Innovation/localization/french/MoG_PLI_custom_loc_l_french.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@
3737
je_mog_pli_redistributive_reaction: "PLI: Agitation populiste" #deepl:1884117642
3838
mog_pli_fought_corruption_modifier: "Purge des influences corrompues" #deepl:605458558
3939
mog_pli_curried_favour_modifier: "Favoriser les courtisans" #deepl:3980467289
40-
PLI_BASE_CORRUPTION: "Tendance naturelle vers #yellow Potentiel#!" #deepl:76454067
40+
PLI_BASE_TREND: "Tendance naturelle vers #yellow Potentiel#!" #deepl:76454067
4141
PLI_POLICE_INSTITUTION: "Niveau de l'institution policière" #deepl:3695223093
4242
PLI_SCHOOL_INSTITUTION: "Niveau d'éducation de l'institution" #deepl:119565117
4343
PLI_HEALTH_INSTITUTION: "Système de santé Niveau de l'institution" #deepl:1631231090
4444
PLI_SOCSEC_INSTITUTION: "Niveau de l'institution de sécurité sociale" #deepl:40582289
4545
PLI_OHS_INSTITUTION: "Sécurité sur le lieu de travail Niveau de l'institution" #deepl:2305349007
4646
PLI_HAFFAIRS_INSTITUTION: "Affaires intérieures Niveau de l'institution" #deepl:1435635816
47+
PLI_LITERACY_RATE_MOD: "Taux d'alphabétisation" #deepl:812351491
4748
PLI_2DECIMAL_SCRIPT_VALUE_FORMAT: "$KEY$: $VALUE|=2+$" #deepl:3216225099
4849
PLI_2DECIMAL_SCRIPT_VALUE_INVERT_FORMAT: "$KEY$: $VALUE|=2-$" #deepl:3125476191
4950
PLI_3DECIMAL_SCRIPT_VALUE_FORMAT: "$KEY$: $VALUE|=3+$" #deepl:635900380

Populist Legal Innovation/localization/german/MoG_PLI_custom_loc_l_german.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@
3737
je_mog_pli_redistributive_reaction: "PLI: Populistische Agitation" #deepl:1884117642
3838
mog_pli_fought_corruption_modifier: "Korrupte Einflüsse beseitigt" #deepl:605458558
3939
mog_pli_curried_favour_modifier: "Curried Favor mit Powerbrokers" #deepl:3980467289
40-
PLI_BASE_CORRUPTION: "Natürlicher Trend zu #yellow Potenzial#!" #deepl:76454067
40+
PLI_BASE_TREND: "Natürlicher Trend zu #yellow Potenzial#!" #deepl:76454067
4141
PLI_POLICE_INSTITUTION: "Ebene der Polizeieinrichtung" #deepl:3695223093
4242
PLI_SCHOOL_INSTITUTION: "Bildung Institution Ebene" #deepl:119565117
4343
PLI_HEALTH_INSTITUTION: "Gesundheitssystem Ebene der Einrichtung" #deepl:1631231090
4444
PLI_SOCSEC_INSTITUTION: "Ebene der Sozialversicherungsträger" #deepl:40582289
4545
PLI_OHS_INSTITUTION: "Sicherheit am Arbeitsplatz Institutionsebene" #deepl:2305349007
4646
PLI_HAFFAIRS_INSTITUTION: "Innere Angelegenheiten Institutionsebene" #deepl:1435635816
47+
PLI_LITERACY_RATE_MOD: "Alphabetisierungsrate" #deepl:812351491
4748
PLI_2DECIMAL_SCRIPT_VALUE_FORMAT: "$KEY$: $VALUE|=2+$" #deepl:3216225099
4849
PLI_2DECIMAL_SCRIPT_VALUE_INVERT_FORMAT: "$KEY$: $VALUE|=2-$" #deepl:3125476191
4950
PLI_3DECIMAL_SCRIPT_VALUE_FORMAT: "$KEY$: $VALUE|=3+$" #deepl:635900380

0 commit comments

Comments
 (0)