ideas = {

    ep_foreign_investments = {
        law = yes
        use_list_view = yes

        foreign_investments_encouraged = {

            available = {

                NOT = {

                    has_idea = planned_economy
                }
            }

            level = 4

            modifier = {
                political_power_factor = 0.05
                local_resources_factor = 0.05
                consumer_goods_factor = -0.04
                stability_factor = -0.05
                research_speed_factor = 0.02
                industrial_capacity_factory = 0.04
                industrial_capacity_dockyard = 0.04
                production_speed_buildings_factor = -0.04
                production_speed_arms_factory_factor = 0.04
                production_speed_industrial_complex_factor = 0.04
                production_speed_dockyard_factor = 0.04
                trade_opinion_factor = 0.10
                civilian_intel_to_others = 5
            }

            ai_will_do = {
                base = 20

                modifier = {

                    OR = {
                        has_idea = laisezz_faire
                        has_idea = rentier_state
                    }

                    add = 80
                }

                modifier = {

                    has_idea = welfare_capitalism
                    add = 20
                }
            }

            cancel_if_invalid = yes
        }

        foreign_investments_allowed = {

            available = {

            }

            level = 3

            modifier = {
                political_power_factor = 0.02
                local_resources_factor = 0.02
                consumer_goods_factor = -0.02
                stability_factor = -0.03
                research_speed_factor = 0.01
                industrial_capacity_factory = 0.02
                industrial_capacity_dockyard = 0.02
                production_speed_buildings_factor = -0.02
                production_speed_arms_factory_factor = 0.02
                production_speed_industrial_complex_factor = 0.02
                production_speed_dockyard_factor = 0.02
                trade_opinion_factor = 0.05
                civilian_intel_to_others = 3

            }

            ai_will_do = {
                base = 40

                modifier = {

                    has_idea = welfare_capitalism
                    add = 30
                }

                modifier = {

                    has_government = democratic
                    add = 100
                }
            }

            cancel_if_invalid = yes
        }

        foreign_investments_regulated = {

            available = {

                NOT = {
                    has_idea = rentier_state
                }
            }

            level = 2

            modifier = {
                political_power_factor = -0.02
                local_resources_factor = 0.02
                stability_factor = 0.03
                industrial_capacity_factory = -0.02
                industrial_capacity_dockyard = -0.02
                production_speed_buildings_factor = 0.02
                production_speed_arms_factory_factor = -0.02
                production_speed_industrial_complex_factor = -0.02
                production_speed_dockyard_factor = -0.02
                trade_opinion_factor = -0.05
                civilian_intel_to_others = -1
            }

            ai_will_do = {
                base = 30

                modifier = {

                    OR = {

                        has_idea = mixed_market
                        has_idea = state_capitalism
                    }

                    add = 50
                }

                modifier = {

                    has_idea = planned_economy
                    add = 10
                }
            }

            cancel_if_invalid = yes
        }

        foreign_investments_banned = {

            available = {

                NOT = {

                    OR = {
                        has_government = democratic
                        has_idea = laisezz_faire
                        has_idea = rentier_state
                    }
                }
            }

            level = 1

            modifier = {
                political_power_factor = -0.05
                local_resources_factor = 0.06
                stability_factor = +0.06
                research_speed_factor = -0.02
                industrial_capacity_factory = -0.04
                industrial_capacity_dockyard = -0.04
                production_speed_buildings_factor = 0.04
                production_speed_arms_factory_factor = -0.04
                production_speed_industrial_complex_factor = -0.04
                production_speed_dockyard_factor = -0.04
                trade_opinion_factor = -0.10
                #civilian_intel_to_others #= #-0.20
            }

            ai_will_do = {
                base = 10

                modifier = {
                    has_idea = planned_economy
                    add = 60
                }
            }
        }
    }
}