USA_congress = {
	USA_congress_reduce_idea_cost_modifier = {
		icon = ger_mefo_bills
		visible = {
			OR = {
				has_idea = great_depression
				has_idea = great_depression_2
				has_idea = great_depression_3
			}
		}
		available = {
			congress_medium_support_trigger = yes
		}
		remove_trigger = {
			NOT = { has_idea = great_depression }
			NOT = { has_idea = great_depression_2 }
			NOT = { has_idea = great_depression_3 }
		}
		cost = 20
		days_remove = 100
		days_re_enable = 10
		modifier = {
			idea_cost_modifier = -0.25
		}
		remove_effect = {
			USA_congress_medium_opposition = yes
			hidden_effect = {
				update_idea_cost_modifiers = yes
			}
		}
		complete_effect = {
			hidden_effect = {
				update_idea_cost_modifiers = yes
			}
		}
		ai_will_do = {
			base = 100

			modifier = {
				factor = 0
				NOT = { has_selected_any_idea_group = yes }
			}
			modifier = {
				factor = 0
				all_of = {
					array = selected_idea_groups
					value = v
					OR = {
						check_variable = { v = 0 }
						meta_trigger = {
							text = {
								check_variable = { completed_ideas_of_group_[GROUP] > 6 }
							}
							GROUP = "[?v]"
						}
					}
				}
			}
		}
	}
}

FRA_eu4_like_ideas_decisions = {
	FRA_reduce_idea_cost_modifier = {
		icon = ger_mefo_bills
		target_array = allies
		target_root_trigger = {
			has_government = democratic
			has_cosmetic_tag = FRA_FREE
			check_variable = { FRA_reduce_idea_cost_modifier > -0.15 }
		}
		target_trigger = {
			FROM = {
				has_government = ROOT
				NOT = { has_country_flag = FRA_reduce_idea_cost_modifier_with_FRA }
			}
		}
		cost = 10
		complete_effect = {
			custom_effect_tooltip = FRA_REDUCED_IDEA_COST_TT
			hidden_effect = {
				subtract_from_variable = { FRA_reduce_idea_cost_modifier = 0.02 }
				if = {
					limit = {
						NOT = {
							has_dynamic_modifier = { modifier = FRA_reduce_idea_cost_modifier_modifier }
						}
					}
					add_dynamic_modifier = {
						modifier = FRA_reduce_idea_cost_modifier_modifier
					}
				}
				else = {
					force_update_dynamic_modifier = yes
				}
				update_idea_cost_modifiers = yes
				FROM = {
					set_country_flag = FRA_reduce_idea_cost_modifier_with_FRA
					subtract_from_variable = { FRA_reduce_idea_cost_modifier = 0.02 }
					if = {
						limit = {
							NOT = {
								has_dynamic_modifier = { modifier = FRA_reduce_idea_cost_modifier_modifier }
							}
						}
						add_dynamic_modifier = {
							modifier = FRA_reduce_idea_cost_modifier_modifier
						}
					}
					else = {
						force_update_dynamic_modifier = yes
					}
					update_idea_cost_modifiers = yes
				}
			}
		}
		ai_will_do = {
			factor = 100
		}
	}
}

eu4_like_ideas_decisions = {
	swap_national_ideas_decision = {
		icon = ideas
		visible = {
			NOT = { has_country_flag = is_deciding_about_swapping_national_ideas }
			can_change_national_idea_group = yes
			NOT = { is_in_array = { rejected_national_ideas_to_swap_to = national_ideas_id_other_context } }
		}
		days_remove = 0
		days_re_enable = 0
		complete_effect = {
			country_event = { id = eu4_like_ideas_events.3 }
		}
		ai_will_do = {
			factor = 100
		}
	}
}