Skip to content

Commit

Permalink
Merge pull request #407 from Cold-War-Project/econ_imf_branch
Browse files Browse the repository at this point in the history
Monetary Policies, Currency Mechanic, Inflation
  • Loading branch information
Arcadyi authored Jul 13, 2023
2 parents b2a949e + 39044dc commit b347b4a
Show file tree
Hide file tree
Showing 202 changed files with 9,202 additions and 247 deletions.
1 change: 1 addition & 0 deletions common/alert_groups/cwp_alert_groups.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alert_group_monetary = {}
140 changes: 140 additions & 0 deletions common/alert_types/cwp_alerts.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
# script_context = <script context> # see later for list of valid script contexts
# texture = <path> # the path is relative to the "game" folder
# valid = <trigger> # an invalid alert will not be shown
# open_panel = <panel_name>[|<tab>] # if specified, this panel will open when the alert is clicked. Cannot specify both open_panel and open_popup
# an optional tab name can be specified after a | character
# open_popup = <popup_name> # if specified, this popup will open when the alert is clicked. Cannot specify both open_panel and open_popup
# type = alert | important_action | angry_important_action # if unspecified or "alert", this will be a standard alert. Otherwise, it will be shown inside the important actions alert (angry_important_action alerts are sorted first)
# alert_group = <alert_group_name> # if specified, multiple alerts in the same group will be grouped in the important actions alert (if they are "important_action"). "important_actions with unspecified alert_group will never be grouped together
#
# ------------------------------------------------------------------------------
# Valid script contexts
# ------------------------------------------------------------------------------
# player_country
# player_diplomatic_play
# player_diplomatic_pact
# player_diplomatic_action
# player_diplomatic_relations
# player_interest_group
# player_invaded_state
# player_national_market
# player_involved_market
# player_state
# player_building
# player_market_goods
# player_commander
# player_trade_route

### ALERTS
### these need icons, if you create a new alert or move an important action here use texture = "gfx/interface/icons/alert_icons/placeholder.dds"
### and then ask art to make an icon, you can also check the unused folder if anything fits, you can also use ANY icon in the game if it would fit
### but always check with art to verify it is looking good
not_un_member = {
script_context = player_country
texture = "gfx/interface/icons/cwp_icons/united_nations.dds"

valid = {
not = {
has_variable = un_member
}
}

open_panel = international_panel
type = alert
}

# Fiscal
large_money_supply_change = {
script_context = player_country
texture = "gfx/interface/icons/alert_icons/bankruptcy.dds"

valid = {
or = {
money_supply_growth_percentage >= 1.5
money_supply_growth_percentage <= -1.5
}

}

open_panel = budget|fiscal
type = angry_important_action
alert_group = alert_group_monetary
}

interest_minus = {
script_context = player_country
texture = "gfx/interface/icons/alert_icons/bankruptcy.dds"

valid = {
var:interest_rate <= -0.01
}

open_panel = budget|fiscal
type = alert
alert_group = alert_group_monetary
}

dangerous_inflation = {
script_context = player_country
texture = "gfx/interface/icons/alert_icons/bankruptcy.dds"

valid = {
inflation_value >= 30
}

open_panel = budget|fiscal
type = angry_important_action
alert_group = alert_group_monetary
}

dangerous_deflation = {
script_context = player_country
texture = "gfx/interface/icons/alert_icons/bankruptcy.dds"

valid = {
inflation_value <= -30
}

open_panel = budget|fiscal
type = angry_important_action
alert_group = alert_group_monetary
}

dangerous_inflation_growth = {
script_context = player_country
texture = "gfx/interface/icons/alert_icons/bankruptcy.dds"

valid = {
inflation_growth >= 3
}

open_panel = budget|fiscal
type = angry_important_action
alert_group = alert_group_monetary
}

dangerous_deflation_growth = {
script_context = player_country
texture = "gfx/interface/icons/alert_icons/bankruptcy.dds"

valid = {
inflation_growth <= -3
}

open_panel = budget|fiscal
type = angry_important_action
alert_group = alert_group_monetary
}

bank_credibility_to_be_lowered = {
script_context = player_country
texture = "gfx/interface/icons/alert_icons/bankruptcy.dds"

valid = {
var:bank_credibility <= bank_credibility_val
}

open_panel = budget|fiscal
type = important_action
alert_group = alert_group_monetary
}
4 changes: 0 additions & 4 deletions common/country_ranks/00_country_ranks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ superpower = {
country_influence_add = 2000
country_diplomatic_play_maneuvers_add = 200
country_max_declared_interests_add = 10
country_loan_interest_rate_mult = -1
state_migration_pull_mult = 0.5
country_agitator_slots_add = 4
}
Expand All @@ -50,7 +49,6 @@ great_power = {
country_influence_add = 1000
country_diplomatic_play_maneuvers_add = 100
country_max_declared_interests_add = 5
country_loan_interest_rate_mult = -0.5
state_migration_pull_mult = 0.25
country_agitator_slots_add = 3
}
Expand All @@ -73,7 +71,6 @@ major_power = {
country_influence_add = 750
country_diplomatic_play_maneuvers_add = 75
country_max_declared_interests_add = 3
country_loan_interest_rate_mult = -0.25
state_migration_pull_mult = 0.1
country_agitator_slots_add = 3
}
Expand Down Expand Up @@ -109,7 +106,6 @@ insignificant_power = {
modifier = {
country_influence_add = 500
country_diplomatic_play_maneuvers_add = 50
country_loan_interest_rate_mult = 0.25
state_migration_pull_mult = -0.25
country_agitator_slots_add = 1
}
Expand Down
Loading

0 comments on commit b347b4a

Please sign in to comment.