Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Currency and IMF Fixes #503

Merged
merged 59 commits into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
9ae5674
Patch 0.2.5
Arcadyi Jul 26, 2023
e79bcb7
Merge pull request #483 from Cold-War-Project/dev
Arcadyi Jul 29, 2023
51db079
clamped currency value variables
Arcadyi Jul 30, 2023
6cc1656
added decision to adopt new currencies and take over as leading bank
Arcadyi Jul 31, 2023
f1ca54a
removed DEM from occupation zones, as there can be no leading central…
Arcadyi Jul 31, 2023
0c216d7
improved syntax
Arcadyi Jul 31, 2023
bf6d1f3
fixed foreign reserves selling value
Arcadyi Jul 31, 2023
cf48b93
improved % to global average calculations
Arcadyi Jul 31, 2023
08b4b82
changed starting currency values
Arcadyi Jul 31, 2023
1dd1318
superpowers and great powers very unlikely to take imf loans
Arcadyi Jul 31, 2023
7781f6a
bretton woods even less likely to be ended by US
Arcadyi Jul 31, 2023
bbe65a1
money supply can no longer go above/below -100/100%
Arcadyi Jul 31, 2023
df31a13
changed localization
Arcadyi Jul 31, 2023
20eaaa6
added value % to banks panel
Arcadyi Jul 31, 2023
2035c98
central bank list now ordered by currency value
Arcadyi Jul 31, 2023
c7eb752
more clear loc
Max200012 Jul 30, 2023
8e5b71b
currencies will no longer exceed -99% the global value
Arcadyi Jul 31, 2023
fa86bae
austria no longer automatically becomes DEM leader
Arcadyi Jul 31, 2023
8edc7a9
fixed german currency error spam
Arcadyi Jul 31, 2023
13210d8
independent monetary policy can alter currency now
Arcadyi Jul 31, 2023
74cbd82
foreign reserves conversion cant be negative
Arcadyi Jul 31, 2023
3e511fc
Merge branch 'currency_fixes' of https://github.com/Cold-War-Project/…
Arcadyi Jul 31, 2023
cb45c09
currency wont go under -99%
Arcadyi Jul 31, 2023
b615a09
Contractionary monetary policy now increases currency value., also ma…
Jul 31, 2023
f4f4976
internal fix
Arcadyi Jul 31, 2023
1eaaeea
Merge branch 'currency_fixes' of https://github.com/Cold-War-Project/…
Arcadyi Jul 31, 2023
96054c5
dem can only be formed with germany
Arcadyi Jul 31, 2023
f01716a
currency value change fixed
Arcadyi Jul 31, 2023
f5e74e5
this loc is unused
Jul 31, 2023
7f26b5b
Revert "this loc is unused"
Jul 31, 2023
3a605d9
ai monetary policy ability improved, currencies fixed(finally)
Arcadyi Aug 1, 2023
6410ce2
Merge branch 'currency_fixes' of https://github.com/Cold-War-Project/…
Arcadyi Aug 1, 2023
0119bc7
added IMR(IMF Reserve Currency) replacing USD as transaction currency
Arcadyi Aug 1, 2023
83b893f
fixed some values
Arcadyi Aug 1, 2023
bff6c2f
reduced imf reserves at start
Arcadyi Aug 1, 2023
41d3599
fixed double localization
Arcadyi Aug 1, 2023
ac25bb4
expansionary scaled based on income and pegged currency fixes money s…
Arcadyi Aug 1, 2023
5c53249
nzd and aud can be adopted
Arcadyi Aug 1, 2023
55b2d6b
Merge branch 'master' into currency_fixes
Arcadyi Aug 1, 2023
cd72987
Merge branch 'dev' of https://github.com/Cold-War-Project/CWP-Main in…
Arcadyi Aug 1, 2023
1cbfdd6
This localization doesn't work, would need new variable to tell you …
Aug 1, 2023
1b0e66a
fixed small typo in loc
Aug 1, 2023
e7f7e7b
Added back fail goals for loan JEs
Aug 1, 2023
7e62b0a
fixed loans not ending(smh max)
Arcadyi Aug 1, 2023
1eb42d4
Merge branch 'currency_fixes' of https://github.com/Cold-War-Project/…
Arcadyi Aug 1, 2023
701ff44
Merge branch 'currency_fixes' of https://github.com/Cold-War-Project/…
Aug 1, 2023
58d845c
added loc
Arcadyi Aug 1, 2023
4aaa3e0
Merge branch 'currency_fixes' of https://github.com/Cold-War-Project/…
Arcadyi Aug 1, 2023
96c2e16
SMH Arcady not checking stuff
Aug 1, 2023
8f63aec
independent monetary policy limits revalue again
Arcadyi Aug 1, 2023
400b7e9
Merge branch 'currency_fixes' of https://github.com/Cold-War-Project/…
Arcadyi Aug 1, 2023
3e7a3b3
fixed missing thing
Arcadyi Aug 1, 2023
1d52911
imf debt interest growth is monthly
Arcadyi Aug 1, 2023
85705ec
adopting aussiebucks now works
JackEPepper Aug 1, 2023
875e5fa
Merge branch 'currency_fixes' of https://github.com/Cold-War-Project/…
JackEPepper Aug 1, 2023
b763f2b
currency buying now notifies player
Arcadyi Aug 1, 2023
d6a4280
Merge branch 'currency_fixes' of https://github.com/Cold-War-Project/…
Arcadyi Aug 1, 2023
dbac009
gdp affects currency now
Arcadyi Aug 2, 2023
b2cbd3e
Merge branch 'dev' into currency_fixes
Arcadyi Aug 2, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions common/alert_types/cwp_alerts.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ not_paying_imf_debt = {
texture = "gfx/interface/icons/cwp_icons/imf_seal.dds"

valid = {
is_imf_member = yes
trigger_if = {
limit = {
not = {
Expand All @@ -171,6 +172,7 @@ can_apply_for_imf_loan = {
texture = "gfx/interface/icons/cwp_icons/imf_seal.dds"

valid = {
is_imf_member = yes
nor = {
has_variable = imf_debt_years
has_variable = applied_to_imf_loan
Expand All @@ -190,6 +192,7 @@ not_withdrawing_imf_credit = {
texture = "gfx/interface/icons/cwp_icons/imf_seal.dds"

valid = {
is_imf_member = yes
trigger_if = {
limit = {
has_variable = imf_credit
Expand All @@ -208,6 +211,7 @@ imf_austerity_measures = {
texture = "gfx/interface/icons/cwp_icons/imf_seal.dds"

valid = {
is_imf_member = yes
has_journal_entry = je_imf_austerity_measures
}
alert_group = alert_group_imf
Expand All @@ -219,6 +223,7 @@ imf_bailout = {
texture = "gfx/interface/icons/cwp_icons/imf_seal.dds"

valid = {
is_imf_member = yes
has_journal_entry = je_imf_bailout_loan
}
alert_group = alert_group_imf
Expand Down
2 changes: 1 addition & 1 deletion common/decisions/bretton_woods.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ end_bretton_woods_agreement = {
}
}
ai_chance = {
base = -30
base = -50
modifier = {
trigger = {
year >= 1970
Expand Down
47 changes: 47 additions & 0 deletions common/decisions/currency_decisions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
adopt_new_currency = {
is_shown = {
this = {
not = {
is_leading_central_bank = yes
}
can_adopt_currency = yes
}
}

possible = {
not = {
has_law = law_type:law_pegged_currency
}
}

when_taken = {
effect_adopt_currency = yes
}

ai_chance = {
base = 100
}
}

take_over_currency_central_bank = {
is_shown = {
this = {
is_leading_central_bank = no
}
}

possible = {
custom_tooltip = {
text = GDP_LARGER_THAN_LEADING_BANK
cwp_gdp_with_inflation >= leading_central_bank_gdp
}
}

when_taken = {
replace_currency_leader = yes
}

ai_chance = {
base = 100
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
ig:ig_patriots = {
set_ig_suppression = yes
}
effect_currency_dem = yes
add_technology_researched = mechanical_computers
}
}
2 changes: 1 addition & 1 deletion common/history/countries/bel - belgium.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 55386230
contributionValue = 5538623
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/bol - bolivia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 2461610
contributionValue = 246161
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
1 change: 0 additions & 1 deletion common/history/countries/boz - british occupation zone.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
effect_starting_technology_tier_1_tech = yes
effect_starting_technology_wartime_participant_tech = yes
set_tax_level = medium
effect_currency_dem = yes
#laws
effect_create_law_package = {
headOfGovernment = administrative
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/brz - brazil.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
set_imf_starting_values = {
debtValue = 3692046
creditValue = 1230682
contributionValue = 2461610
contributionValue = 246161
debtYearsValue = 20
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/can - canada.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 73848300
contributionValue = 7384830
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/chl - chile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 12308050
contributionValue = 1230805
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/clm - colombia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 12308050
contributionValue = 1230805
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/cos - costa rica.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 1230800
contributionValue = 123080
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/cub - cuba.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 12308050
contributionValue = 1230805
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/czh - czechoslovakia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 30770120
contributionValue = 3077012
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/dcr - dominican rep.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
set_imf_starting_values = {
debtValue = 123068
creditValue = 41022
contributionValue = 1230800
contributionValue = 123080
debtYearsValue = 10
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/den - denmark.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 16738940
contributionValue = 1673894
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/egy - egypt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 11077240
contributionValue = 1107724
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/els - el salvador.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 615400
contributionValue = 61540
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/eth - ethiopia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 1476960
contributionValue = 147696
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
1 change: 0 additions & 1 deletion common/history/countries/foz - french occupation zone.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
set_next_election_date = 1946.10.20
effect_starting_technology_tier_1_tech = yes
effect_starting_technology_wartime_participant_tech = yes
effect_currency_dem = yes
set_tax_level = medium
# Laws
effect_create_law_package = {
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/fra - france.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
set_imf_starting_values = {
debtValue = 68000000
creditValue = 32000000
contributionValue = 129234530
contributionValue = 12923453
debtYearsValue = 30
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/gbr - great britain.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
set_imf_starting_values = {
debtValue = 227000000
creditValue = 6350000
contributionValue = 320009330
contributionValue = 32000933
debtYearsValue = 25
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/gre - greece.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
set_imf_starting_values = {
debtValue = 984545
creditValue = 328181
contributionValue = 9846440
contributionValue = 984644
debtYearsValue = 15
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/gua - guatemala.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 1230800
contributionValue = 123080
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/hnd - india.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 98464410
contributionValue = 9846441
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/hon - honduras.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 615400
contributionValue = 61540
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/icl - iceland.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 246160
contributionValue = 24616
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/irq - iraq.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 1969280
contributionValue = 196928
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/ita - italy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
set_imf_starting_values = {
debtValue = 4430455
creditValue = 1476818
contributionValue = 44308980
contributionValue = 4430898
debtYearsValue = 15
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/leb - lebanon.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
set_imf_starting_values = {
debtValue = 110761
creditValue = 36920
contributionValue = 1107720
contributionValue = 110772
debtYearsValue = 5
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/lux - luxembourg.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 2461610
contributionValue = 246161
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/mex - mexico.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 22154490
contributionValue = 2215449
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/net - netherlands.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 67694280
contributionValue = 6769428
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/nic - nicaragua.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 492320
contributionValue = 49232
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/nor - norway.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 12308050
contributionValue = 1230805
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/per - persia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 6154020
contributionValue = 615402
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
2 changes: 1 addition & 1 deletion common/history/countries/peu - peru.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
set_imf_starting_values = {
debtValue = 0
creditValue = 0
contributionValue = 6154020
contributionValue = 615402
debtYearsValue = 0
interestRateValue = 2.5
loanType = 1
Expand Down
Loading