Skip to content

Commit ad8eee8

Browse files
committed
PLI v1.2
1 parent 9b306b3 commit ad8eee8

26 files changed

+189
-22
lines changed

Populist Legal Innovation/common/game_rules/MoG_PLI_game_rules.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,13 @@ mog_pli_proliferation_tracking = {
1010

1111
pli_proliferation_tracking_enabled = {}
1212
pli_proliferation_tracking_disabled = {}
13+
}
14+
15+
mog_pli_min_confidence = {
16+
default = pli_no_min_confidence
17+
18+
pli_no_min_confidence = {}
19+
pli_20_min_confidence_all = {}
20+
pli_20_min_confidence_just_ai = {}
21+
pli_20_min_confidence_player = {}
1322
}

Populist Legal Innovation/common/on_actions/MoG_PLI_investment_oa.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ mog_pli_hc_confidence = {
8888
name = je_var
8989
value = var:mog_pli_investment_current_value
9090
}
91+
set_local_variable = {
92+
name = total_state_count
93+
value = root.num_states
94+
}
9195
if = {
9296
limit = {
9397
scope:state.state_region = { harvest_condition_good = yes}
@@ -101,6 +105,10 @@ mog_pli_hc_confidence = {
101105
multiply = {
102106
add = scope:intensity
103107
}
108+
multiply = {
109+
add = scope:num_states
110+
divide = local_var:total_state_count
111+
}
104112
}
105113
max = 100
106114
}
@@ -128,6 +136,10 @@ mog_pli_hc_confidence = {
128136
multiply = {
129137
add = scope:intensity
130138
}
139+
multiply = {
140+
add = scope:num_states
141+
divide = local_var:total_state_count
142+
}
131143
}
132144
min = 0
133145
}

Populist Legal Innovation/common/script_values/MoG_PLI_investment_values.txt

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,37 @@ mog_pli_investment_target = { # This represents the conditions which support inv
3535
add = mog_pli_inv_rights_of_women # Max 15
3636
add = mog_pli_inv_slavery # Max 15
3737
add = mog_pli_combo_wombo # Max 20
38-
min = 1 # Max total intentionally > 100 (140)
38+
min = mog_pli_min_investment # Max total intentionally > 100 (140)
3939
max = { # This can actually take it down to 0, but this is the only thing that should be able to do so.
4040
value = 100
4141
multiply = mog_pli_max_investment_willingness_from_ip
4242
}
4343
}
4444

45+
mog_pli_min_investment = {
46+
if = {
47+
limit = {
48+
pli_20_min_confidence_all_trigger = yes
49+
}
50+
value = 20
51+
}
52+
else_if = {
53+
limit = {
54+
pli_20_min_confidence_just_ai_trigger = yes
55+
owner = { is_player = no }
56+
}
57+
value = 20
58+
}
59+
else_if = {
60+
limit = {
61+
pli_20_min_confidence_player_trigger = yes
62+
owner = { is_player = yes }
63+
}
64+
value = 20
65+
}
66+
else = { value = 1 }
67+
}
68+
4569
mog_pli_resting_target_loc_value = {
4670
value = mog_pli_investment_target
4771
divide = 100

Populist Legal Innovation/common/scripted_triggers/MoG_PLI_triggers.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ pli_proliferation_tracking_trigger = {
77
has_game_rule = pli_proliferation_tracking_enabled
88
}
99

10+
pli_20_min_confidence_all_trigger = {
11+
has_game_rule = pli_20_min_confidence_all
12+
}
13+
14+
pli_20_min_confidence_just_ai_trigger = {
15+
has_game_rule = pli_20_min_confidence_just_ai
16+
}
17+
18+
pli_20_min_confidence_player_trigger = {
19+
has_game_rule = pli_20_min_confidence_player
20+
}
21+
1022
# Conditional Triggers
1123
harvest_condition_good = {
1224
OR = {

Populist Legal Innovation/localization/braz_por/MoG_PLI_custom_loc_l_braz_por.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@
8989
setting_pli_proliferation_tracking_enabled_desc: "A mecânica de proliferação está ativada.\nObservação: desative essa opção se quiser uma experiência mais simples ou se tiver outro mod com mecânica de proliferação." #deepl:2295810607
9090
setting_pli_proliferation_tracking_disabled: "Desativado" #deepl:1603118088
9191
setting_pli_proliferation_tracking_disabled_desc: "A mecânica de proliferação está desativada.\nObservação: a barra de proliferação ainda aparecerá no registro do diário, mas o valor deve permanecer em 0." #deepl:2935226836
92+
93+
rule_mog_pli_min_confidence: "Confiança mínima do investidor na PLI" #deepl:159641692
94+
setting_pli_no_min_confidence: "Padrão" #deepl:3660771961
95+
setting_pli_no_min_confidence_desc: "Todos têm o mínimo padrão: 1" #deepl:2561838894
96+
setting_pli_20_min_confidence_all: "Todos os países (20)" #deepl:3420125983
97+
setting_pli_20_min_confidence_all_desc: "Todos têm um mínimo: 20" #deepl:4172208425
98+
setting_pli_20_min_confidence_just_ai: "Países com IA (20)" #deepl:4134499219
99+
setting_pli_20_min_confidence_just_ai_desc: "Apenas os países da IA têm um mínimo: 20" #deepl:1803201218
100+
setting_pli_20_min_confidence_player: "Países dos jogadores (20)" #deepl:4139871934
101+
setting_pli_20_min_confidence_player_desc: "Apenas os países de jogadores têm um mínimo: 20" #deepl:900366664
92102

93103
je_mog_pli_innovation: "O espaço de inovação" #deepl:3288668083
94104
je_mog_pli_innovation_reason: "Mais do que a existência de universidades ou o que uma única lei pode incentivar, o incentivo à inovação é afetado dinamicamente pela interação de diferentes leis e condições econômicas. \n$PLI_JOURNAL_DELIMITER$\n#header $mog_pli_innovation_tracking_bar_title$#!\n$mog_pli_innovationincentive_exp$\n$PLI_JOURNAL_DELIMITER$\n#header $mog_pli_proliferation_tracking_bar_title$#!\n$mog_pli_techproliferation_exp$" #deepl:2193131716
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
l_braz_por:
2-
PROGRESS_BAR_BREAKDOWN: "#header Progresso de $Name$#!\n[AddTextIf(NotEqualTo_CFixedPoint('(CFixedPoint)$TOTAL_VALUE$','(CFixedPoint)0'), '$TOTAL_VALUE|+=1$ de progresso mensal médio no momento\n$TOOLTIP_DELIMITER$\nIsso se deve a:' )][AddTextIf(Not(StringIsEmpty('$WEEKLY_DESC$')), '\n#title $WEEKLY_VALUE|+=1$ de mudança semanal de:#! #indent_newline:3 \n$WEEKLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$MONTHLY_DESC$')), '\n#title $MONTHLY_VALUE|+=1$ e mudança mensal de:#! #indent_newline:3 \n$MONTHLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$YEARLY_DESC$')), '\n#title $YEARLY_VALUE|+=1$ de mudança anual de:#! #indent_newline:3 \n$YEARLY_DESC$#!\n')]"
3-
PROGRESS_BAR_BREAKDOWN_NEGATIVE: "#header Progresso de $Name$#!\n[AddTextIf(NotEqualTo_CFixedPoint('(CFixedPoint)$TOTAL_VALUE$','(CFixedPoint)0'), '$TOTAL_VALUE|-=1$ de progresso mensal médio no momento\n$TOOLTIP_DELIMITER$\nIsso se deve a:' )][AddTextIf(Not(StringIsEmpty('$WEEKLY_DESC$')), '\n#title $WEEKLY_VALUE|-=1$ de mudança semanal de:#! #indent_newline:3 \n$WEEKLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$MONTHLY_DESC$')), '\n#title $MONTHLY_VALUE|-=1$ e mudança mensal de:#! #indent_newline:3 \n$MONTHLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$YEARLY_DESC$')), '\n#title $YEARLY_VALUE|-=1$ de mudança anual de:#! #indent_newline:3 \n$YEARLY_DESC$#!\n')]"
2+
PROGRESS_BAR_BREAKDOWN: "#header Progresso de $Name$#!\n[AddTextIf(NotEqualTo_CFixedPoint('(CFixedPoint)$TOTAL_VALUE$','(CFixedPoint)0'), '$TOTAL_VALUE|+=1$ de progresso mensal médio no momento\n$TOOLTIP_DELIMITER$\nIsso se deve a:' )][AddTextIf(Not(StringIsEmpty('$WEEKLY_DESC$')), '\n#title $WEEKLY_VALUE|+=2$ de mudança semanal de:#! #indent_newline:3 \n$WEEKLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$MONTHLY_DESC$')), '\n#title $MONTHLY_VALUE|+=1$ e mudança mensal de:#! #indent_newline:3 \n$MONTHLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$YEARLY_DESC$')), '\n#title $YEARLY_VALUE|+=1$ de mudança anual de:#! #indent_newline:3 \n$YEARLY_DESC$#!\n')]"
3+
PROGRESS_BAR_BREAKDOWN_NEGATIVE: "#header Progresso de $Name$#!\n[AddTextIf(NotEqualTo_CFixedPoint('(CFixedPoint)$TOTAL_VALUE$','(CFixedPoint)0'), '$TOTAL_VALUE|-=1$ de progresso mensal médio no momento\n$TOOLTIP_DELIMITER$\nIsso se deve a:' )][AddTextIf(Not(StringIsEmpty('$WEEKLY_DESC$')), '\n#title $WEEKLY_VALUE|-=2$ de mudança semanal de:#! #indent_newline:3 \n$WEEKLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$MONTHLY_DESC$')), '\n#title $MONTHLY_VALUE|-=1$ e mudança mensal de:#! #indent_newline:3 \n$MONTHLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$YEARLY_DESC$')), '\n#title $YEARLY_VALUE|-=1$ de mudança anual de:#! #indent_newline:3 \n$YEARLY_DESC$#!\n')]"

Populist Legal Innovation/localization/english/MoG_PLI_custom_loc_l_english.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@
8989
setting_pli_proliferation_tracking_enabled_desc: "The proliferation mechanic is enabled.\nNote: disable this if you want a more vanilla experience or have another mod with proliferation mechanics."
9090
setting_pli_proliferation_tracking_disabled: "Disabled"
9191
setting_pli_proliferation_tracking_disabled_desc: "The proliferation mechanic is disabled.\nNote: the proliferation bar will still appear in the journal entry but the value should stay at 0."
92+
93+
rule_mog_pli_min_confidence: "PLI Minimum Investor Confidence"
94+
setting_pli_no_min_confidence: "Default"
95+
setting_pli_no_min_confidence_desc: "Everyone has the default minimum: 1"
96+
setting_pli_20_min_confidence_all: "All Countries (20)"
97+
setting_pli_20_min_confidence_all_desc: "Everyone has minimum: 20"
98+
setting_pli_20_min_confidence_just_ai: "AI Countries (20)"
99+
setting_pli_20_min_confidence_just_ai_desc: "Just AI countries have minimum: 20"
100+
setting_pli_20_min_confidence_player: "Player Countries (20)"
101+
setting_pli_20_min_confidence_player_desc: "Just Player countries have minimum: 20"
92102

93103
je_mog_pli_innovation: "The Innovation Space"
94104
je_mog_pli_innovation_reason: "More than the existence of universities, or what any single law may encourage enable, the drive for innovation is dynamically affected by the interaction of different laws and economic conditions. \n$PLI_JOURNAL_DELIMITER$\n#header $mog_pli_innovation_tracking_bar_title$#!\n$mog_pli_innovationincentive_exp$\n$PLI_JOURNAL_DELIMITER$\n#header $mog_pli_proliferation_tracking_bar_title$#!\n$mog_pli_techproliferation_exp$"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
l_english:
22
PROGRESS_BAR_BREAKDOWN: "#header $Name$ progress#!\n[AddTextIf(NotEqualTo_CFixedPoint('(CFixedPoint)$TOTAL_VALUE$','(CFixedPoint)0'), '$TOTAL_VALUE|+=1$ average monthly progress currently\n$TOOLTIP_DELIMITER$\nThis is due to:' )][AddTextIf(Not(StringIsEmpty('$WEEKLY_DESC$')), '\n#title $WEEKLY_VALUE|+=2$ weekly change from:#! #indent_newline:3 \n$WEEKLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$MONTHLY_DESC$')), '\n#title $MONTHLY_VALUE|+=1$ monthly change from:#! #indent_newline:3 \n$MONTHLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$YEARLY_DESC$')), '\n#title $YEARLY_VALUE|+=1$ yearly change from:#! #indent_newline:3 \n$YEARLY_DESC$#!\n')]"
3-
PROGRESS_BAR_BREAKDOWN_NEGATIVE: "#header $Name$ progress#!\n[AddTextIf(NotEqualTo_CFixedPoint('(CFixedPoint)$TOTAL_VALUE$','(CFixedPoint)0'), '$TOTAL_VALUE|-=1$ average monthly progress currently\n$TOOLTIP_DELIMITER$\nThis is due to:' )][AddTextIf(Not(StringIsEmpty('$WEEKLY_DESC$')), '\n#title $WEEKLY_VALUE|-=2$ weekly change from:#! #indent_newline:3 \n$WEEKLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$MONTHLY_DESC$')), '\n#title $MONTHLY_VALUE|-=1$ monthly change from:#! #indent_newline:3 \n$MONTHLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$YEARLY_DESC$')), '\n#title $YEARLY_VALUE|-=1$ yearly change from:#! #indent_newline:3 \n$YEARLY_DESC$#!\n')]"
3+
PROGRESS_BAR_BREAKDOWN_NEGATIVE: "#header $Name$ progress#!\n[AddTextIf(NotEqualTo_CFixedPoint('(CFixedPoint)$TOTAL_VALUE$','(CFixedPoint)0'), '$TOTAL_VALUE|-=1$ average monthly progress currently\n$TOOLTIP_DELIMITER$\nThis is due to:' )][AddTextIf(Not(StringIsEmpty('$WEEKLY_DESC$')), '\n#title $WEEKLY_VALUE|-=2$ weekly change from:#! #indent_newline:3 \n$WEEKLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$MONTHLY_DESC$')), '\n#title $MONTHLY_VALUE|-=1$ monthly change from:#! #indent_newline:3 \n$MONTHLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$YEARLY_DESC$')), '\n#title $YEARLY_VALUE|-=1$ yearly change from:#! #indent_newline:3 \n$YEARLY_DESC$#!\n')]"

Populist Legal Innovation/localization/french/MoG_PLI_custom_loc_l_french.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@
8989
setting_pli_proliferation_tracking_enabled_desc: "Le mécanisme de prolifération est activé.\nNote: désactivez ceci si vous voulez une expérience plus vanille ou si vous avez un autre mod avec des mécanismes de prolifération." #deepl:2295810607
9090
setting_pli_proliferation_tracking_disabled: "Handicapés" #deepl:1603118088
9191
setting_pli_proliferation_tracking_disabled_desc: "Le mécanisme de prolifération est désactivé.\nNote: la barre de prolifération apparaîtra toujours dans l'entrée du journal, mais la valeur doit rester à 0." #deepl:2935226836
92+
93+
rule_mog_pli_min_confidence: "PLI Confiance minimale des investisseurs" #deepl:159641692
94+
setting_pli_no_min_confidence: "Défaut" #deepl:3660771961
95+
setting_pli_no_min_confidence_desc: "Tout le monde a le minimum par défaut : 1" #deepl:2561838894
96+
setting_pli_20_min_confidence_all: "Tous les pays (20)" #deepl:3420125983
97+
setting_pli_20_min_confidence_all_desc: "Tout le monde a un minimum : 20" #deepl:4172208425
98+
setting_pli_20_min_confidence_just_ai: "Pays de l'IA (20)" #deepl:4134499219
99+
setting_pli_20_min_confidence_just_ai_desc: "Seuls les pays de l'IA ont un minimum : 20" #deepl:1803201218
100+
setting_pli_20_min_confidence_player: "Pays des joueurs (20)" #deepl:4139871934
101+
setting_pli_20_min_confidence_player_desc: "Les pays qui ne sont que des joueurs ont un minimum : 20" #deepl:900366664
92102

93103
je_mog_pli_innovation: "L'espace innovation" #deepl:3288668083
94104
je_mog_pli_innovation_reason: "Plus que l'existence d'universités ou ce qu'une loi peut encourager, l'impulsion de l'innovation est dynamiquement affectée par l'interaction de différentes lois et conditions économiques. \n$PLI_JOURNAL_DELIMITER$\n#header $mog_pli_innovation_tracking_bar_title$#!\n$mog_pli_innovationincentive_exp$\n$PLI_JOURNAL_DELIMITER$\n#header $mog_pli_proliferation_tracking_bar_title$#!\n$mog_pli_techproliferation_exp$" #deepl:2193131716
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
l_french:
2-
PROGRESS_BAR_BREAKDOWN: "#header Progression de $Name$#!\n[AddTextIf(NotEqualTo_CFixedPoint('(CFixedPoint)$TOTAL_VALUE$','(CFixedPoint)0'), '$TOTAL_VALUE|+=1$ de progression mensuelle moyenne\n$TOOLTIP_DELIMITER$\nCeci s’explique par :' )][AddTextIf(Not(StringIsEmpty('$WEEKLY_DESC$')), '\n#title $WEEKLY_VALUE|+=1$ de changement hebdomadaire en raison de :#! #indent_newline:3 \n$WEEKLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$MONTHLY_DESC$')), '\n#title $MONTHLY_VALUE|+=1$ de changement mensuel en raison de :#! #indent_newline:3 \n$MONTHLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$YEARLY_DESC$')), '\n#title $YEARLY_VALUE|+=1$ de changement annuel en raison de :#! #indent_newline:3 \n$YEARLY_DESC$#!\n')]"
3-
PROGRESS_BAR_BREAKDOWN_NEGATIVE: "#header Progression de $Name$#!\n[AddTextIf(NotEqualTo_CFixedPoint('(CFixedPoint)$TOTAL_VALUE$','(CFixedPoint)0'), '$TOTAL_VALUE|-=1$ de progression mensuelle moyenne\n$TOOLTIP_DELIMITER$\nCeci s’explique par :' )][AddTextIf(Not(StringIsEmpty('$WEEKLY_DESC$')), '\n#title $WEEKLY_VALUE|-=1$ de changement hebdomadaire en raison de :#! #indent_newline:3 \n$WEEKLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$MONTHLY_DESC$')), '\n#title $MONTHLY_VALUE|-=1$ de changement mensuel en raison de :#! #indent_newline:3 \n$MONTHLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$YEARLY_DESC$')), '\n#title $YEARLY_VALUE|-=1$ de changement annuel en raison de :#! #indent_newline:3 \n$YEARLY_DESC$#!\n')]"
2+
PROGRESS_BAR_BREAKDOWN: "#header Progression de $Name$#!\n[AddTextIf(NotEqualTo_CFixedPoint('(CFixedPoint)$TOTAL_VALUE$','(CFixedPoint)0'), '$TOTAL_VALUE|+=1$ de progression mensuelle moyenne\n$TOOLTIP_DELIMITER$\nCeci s’explique par :' )][AddTextIf(Not(StringIsEmpty('$WEEKLY_DESC$')), '\n#title $WEEKLY_VALUE|+=2$ de changement hebdomadaire en raison de :#! #indent_newline:3 \n$WEEKLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$MONTHLY_DESC$')), '\n#title $MONTHLY_VALUE|+=1$ de changement mensuel en raison de :#! #indent_newline:3 \n$MONTHLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$YEARLY_DESC$')), '\n#title $YEARLY_VALUE|+=1$ de changement annuel en raison de :#! #indent_newline:3 \n$YEARLY_DESC$#!\n')]"
3+
PROGRESS_BAR_BREAKDOWN_NEGATIVE: "#header Progression de $Name$#!\n[AddTextIf(NotEqualTo_CFixedPoint('(CFixedPoint)$TOTAL_VALUE$','(CFixedPoint)0'), '$TOTAL_VALUE|-=1$ de progression mensuelle moyenne\n$TOOLTIP_DELIMITER$\nCeci s’explique par :' )][AddTextIf(Not(StringIsEmpty('$WEEKLY_DESC$')), '\n#title $WEEKLY_VALUE|-=2$ de changement hebdomadaire en raison de :#! #indent_newline:3 \n$WEEKLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$MONTHLY_DESC$')), '\n#title $MONTHLY_VALUE|-=1$ de changement mensuel en raison de :#! #indent_newline:3 \n$MONTHLY_DESC$#!\n')][AddTextIf(Not(StringIsEmpty('$YEARLY_DESC$')), '\n#title $YEARLY_VALUE|-=1$ de changement annuel en raison de :#! #indent_newline:3 \n$YEARLY_DESC$#!\n')]"

0 commit comments

Comments
 (0)