# Venture Capital: fund a venture (one-shot; the effect opens the sector choice)

apb_fund_a_venture = {
	length = 1
	icon = "GFX_edict_type_policy"

	resources = {
		category = edicts
		cost = {
			energy = 1000
			multiplier = value:apb_venture_cost_mult
		}
	}

	potential = {
		has_ascension_perk = ap_venture_capital
	}

	allow = {
		custom_tooltip = {
			fail_text = apb_venture_slots_full
			NAND = {
				check_variable = { which = apb_vc_stake_1 value > 0 }
				check_variable = { which = apb_vc_stake_2 value > 0 }
				check_variable = { which = apb_vc_stake_3 value > 0 }
			}
		}
		custom_tooltip = {
			fail_text = apb_venture_choice_open
			NOT = { check_variable = { which = apb_vc_pending value > 0 } }
		}
	}

	effect = {
		custom_tooltip = apb_fund_a_venture_tt
		hidden_effect = {
			country_event = { id = apb_venture.1 }
		}
	}

	ai_weight = {
		weight = 0
	}
}
