ban_opium = {
	is_shown = {
		has_journal_entry = je_opium_obsession
		exists = market
		market.owner = root
		NOT = { is_banning_goods = g:opium }
	}

	possible = {
		NOT = { has_law = law_type:law_free_trade }
		exists = market	
	}

	when_taken = {
		add_banned_goods = g:opium
		add_modifier = {
			name = opium_ban_authority
		}
	}
	
    ai_chance = {
        base = 0
		modifier = {
			trigger = {
				OR = {
					has_strategy = ai_strategy_conservative_agenda
					has_strategy = ai_strategy_reactionary_agenda
					has_strategy = ai_strategy_maintain_mandate_of_heaven
				}
			}
			add = 10
		}		 
    }	
}

remove_opium_ban = {
	is_shown = {
		is_banning_goods = g:opium
		exists = market
		market.owner = root
	}

	possible = {
		NOT = { has_law = law_type:law_free_trade }
	}

	when_taken = {
		remove_banned_goods = g:opium
		remove_modifier = opium_ban_authority
	}
	
     ai_chance = {
        base = 0
		modifier = {
			trigger = {
				has_strategy = ai_strategy_progressive_agenda
			}
			add = 10
		}		 
     }	
}

ban_liquor = {
	is_shown = {
		has_variable = prohibition_laws_var
		exists = market
		market.owner = root
		NOT = { is_banning_goods = g:liquor }
	}

	possible = {
		NOT = { has_law = law_type:law_free_trade }
		exists = market
	}

	when_taken = {
		add_banned_goods = g:liquor
		add_modifier = {
			name = liqour_ban_authority
		}
	}
	
    ai_chance = {
		base = 0
		modifier = {
			trigger = {
				OR = {
					has_strategy = ai_strategy_conservative_agenda
					has_strategy = ai_strategy_reactionary_agenda
					has_strategy = ai_strategy_maintain_mandate_of_heaven
				}
			}
			add = 10
		}
    }	
}

remove_liquor_ban = {
	is_shown = {
		is_banning_goods = g:liquor
		exists = market
		market.owner = root
	}

	possible = {
		NOT = { has_law = law_type:law_free_trade }
	}

	when_taken = {
		remove_banned_goods = g:liquor
		remove_modifier = liqour_ban_authority
	}
	
     ai_chance = {
        base = 0
		modifier = {
			trigger = {
				has_strategy = ai_strategy_progressive_agenda
			}
			add = 10
		}		 
     }	
}