SBI_PASSBILL_changes = {
	
	if = {
		limit = {
			has_country_flag = LAW_PASS_SUPPORT_FROM_D
		}
		add_to_variable = { LAW_PASS_DECEMBRISTS_YES = 10 }
		clr_country_flag = LAW_PASS_SUPPORT_FROM_D
	}
	if = {
		limit = {
			has_country_flag = LAW_PASS_SUPPORT_FROM_H
		}
		add_to_variable = { LAW_PASS_HUMANISTS_YES = 10 }
		clr_country_flag = LAW_PASS_SUPPORT_FROM_H
	}
	if = {
		limit = {
			has_country_flag = LAW_PASS_SUPPORT_FROM_M
		}
		add_to_variable = { LAW_PASS_MODERNISTS_YES = 10 }
		clr_country_flag = LAW_PASS_SUPPORT_FROM_M
	}
	if = {
		limit = {
			has_country_flag = LAW_PASS_SUPPORT_FROM_B
		}
		add_to_variable = { LAW_PASS_BASTILARDS_YES = 10 }
		clr_country_flag = LAW_PASS_SUPPORT_FROM_B
	}
	
	if = {
		limit = {
			has_country_flag = LAW_PASS_HATRED_FROM_B
		}
		set_variable = { LAW_PASS_BASTILARDS_YES = 0 }
	}
	if = {
		limit = {
			has_country_flag = LAW_PASS_SUPPORT_FROM_D
		}
		set_variable = { LAW_PASS_DECEMBRISTS_YES = 0 }
	}
	if = {
		limit = {
			has_country_flag = LAW_PASS_SUPPORT_FROM_H
		}
		set_variable = { LAW_PASS_HUMANISTS_YES = 0 }
	}
	if = {
		limit = {
			has_country_flag = LAW_PASS_HATRED_FROM_M
		}
		set_variable = { LAW_PASS_MODERNISTS_YES = 0 }
	}
	clamp_variable = { var = LAW_PASS_DECEMBRISTS_YES max = var:parliament_seat_array^0 }
	clamp_variable = { var = LAW_PASS_HUMANISTS_YES max = var:parliament_seat_array^1 }
	clamp_variable = { var = LAW_PASS_MODERNISTS_YES max = var:parliament_seat_array^2 }
	clamp_variable = { var = LAW_PASS_BASTILARDS_YES max = var:parliament_seat_array^3 }
	round_variable = LAW_PASS_DECEMBRISTS_YES
	round_variable = LAW_PASS_HUMANISTS_YES
	round_variable = LAW_PASS_MODERNISTS_YES
	round_variable = LAW_PASS_BASTILARDS_YES
	
	set_variable = { PassBill_SBI_Progress = var:LAW_PASS_HUMANISTS_YES }
	add_to_variable = { PassBill_SBI_Progress = var:LAW_PASS_DECEMBRISTS_YES }
	add_to_variable = { PassBill_SBI_Progress = var:LAW_PASS_MODERNISTS_YES }
	add_to_variable = { PassBill_SBI_Progress = var:LAW_PASS_BASTILARDS_YES }
	
	clamp_variable = { var = PassBill_SBI_Progress min = 0 max = 200 }
	round_variable = PassBill_SBI_Progress
}

SBI_PASSBILL_START = {
	hidden_effect = {
		activate_mission = SBI_PassBills_mission
	}
	set_variable = { SBI_PASTER_PARL_UNITY_Progress_PROCENT = var:SBI_PASTER_PARL_UNITY_Progress}
	add_to_variable = { SBI_PASTER_PARL_UNITY_Progress_PROCENT = -20 }
	clamp_variable = { var = SBI_PASTER_PARL_UNITY_Progress_PROCENT min = 0 }
	multiply_variable = { SBI_PASTER_PARL_UNITY_Progress_PROCENT = 0.01 }

	set_variable = { LAW_PASS_DECEMBRISTS_YES = var:parliament_seat_array^0 }
	set_variable = { LAW_PASS_HUMANISTS_YES = var:parliament_seat_array^1 }
	set_variable = { LAW_PASS_MODERNISTS_YES = var:parliament_seat_array^2 }
	set_variable = { LAW_PASS_BASTILARDS_YES = var:parliament_seat_array^3 }
}

PASTERNAK_SBI_PASSBILL_HEALTHCARE_ACT = {
	SBI_PASSBILL_START = yes
	
	multiply_variable = { LAW_PASS_HUMANISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_HUMANISTS_YES = 1.1 }
	
	multiply_variable = { LAW_PASS_MODERNISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_MODERNISTS_YES = 0.5 }
	
	multiply_variable = { LAW_PASS_BASTILARDS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_BASTILARDS_YES = 0.15 }
	
	SBI_PASSBILL_changes = yes
}

SBI_PASSBILL_SUPPORT_FROM_D_ADD = {
	custom_effect_tooltip = LAW_PASS_SUPPORT_FROM_D_TT
	set_country_flag = LAW_PASS_SUPPORT_FROM_D
}

SBI_PASSBILL_SUPPORT_FROM_H_ADD = {
	custom_effect_tooltip = LAW_PASS_SUPPORT_FROM_H_TT
	set_country_flag = LAW_PASS_SUPPORT_FROM_H
}

SBI_PASSBILL_SUPPORT_FROM_M_ADD = {
	custom_effect_tooltip = LAW_PASS_SUPPORT_FROM_M_TT
	set_country_flag = LAW_PASS_SUPPORT_FROM_M
}

SBI_PASSBILL_SUPPORT_FROM_B_ADD = {
	custom_effect_tooltip = LAW_PASS_SUPPORT_FROM_B_TT
	set_country_flag = LAW_PASS_SUPPORT_FROM_B
}

PASTERNAK_SBI_PASSBILL_SMALLBISNESS_ACT = {
	SBI_PASSBILL_START = yes
	
	multiply_variable = { LAW_PASS_DECEMBRISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_DECEMBRISTS_YES = 1.5 }
	
	multiply_variable = { LAW_PASS_HUMANISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_HUMANISTS_YES = 0.5 }
	add_to_variable = { LAW_PASS_HUMANISTS_YES = 10 }
	
	multiply_variable = { LAW_PASS_MODERNISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_MODERNISTS_YES = 0.3 }
	
	multiply_variable = { LAW_PASS_BASTILARDS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_BASTILARDS_YES = 0.1 }
	
	SBI_PASSBILL_changes = yes
}

PASTERNAK_SBI_PASSBILL_INVESTBANK_ACT = {
	SBI_PASSBILL_START = yes
	
	multiply_variable = { LAW_PASS_DECEMBRISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_DECEMBRISTS_YES = 1 }
	
	multiply_variable = { LAW_PASS_HUMANISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_HUMANISTS_YES = 0.45 }
	
	multiply_variable = { LAW_PASS_MODERNISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_MODERNISTS_YES = 0.5 }
	add_to_variable = { LAW_PASS_MODERNISTS_YES = 10 } 
	
	multiply_variable = { LAW_PASS_BASTILARDS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_BASTILARDS_YES = 0.4 }
	
	SBI_PASSBILL_changes = yes
}

PASTERNAK_SBI_PASSBILL_ANTICORRUPT_ACT = {
	SBI_PASSBILL_START = yes
	
	multiply_variable = { LAW_PASS_DECEMBRISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_DECEMBRISTS_YES = 0.9 }
	
	multiply_variable = { LAW_PASS_HUMANISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_HUMANISTS_YES = 0.8 }
	
	multiply_variable = { LAW_PASS_MODERNISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_MODERNISTS_YES = 0.7 }
	
	multiply_variable = { LAW_PASS_BASTILARDS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_BASTILARDS_YES = 0 }
	
	SBI_PASSBILL_changes = yes
}

PASTERNAK_SBI_PASSBILL_ELECTIONREFORM_ACT = {
	SBI_PASSBILL_START = yes
	
	multiply_variable = { LAW_PASS_DECEMBRISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_DECEMBRISTS_YES = 0.6 }
	
	multiply_variable = { LAW_PASS_HUMANISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_HUMANISTS_YES = 1.2 }
	
	multiply_variable = { LAW_PASS_MODERNISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_MODERNISTS_YES = 0.9 }
	
	multiply_variable = { LAW_PASS_BASTILARDS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_BASTILARDS_YES = 0.9 }
	
	SBI_PASSBILL_changes = yes
}

PASTERNAK_SBI_PASSBILL_EXPANDEDUCATION_ACT = {
	SBI_PASSBILL_START = yes
	
	multiply_variable = { LAW_PASS_DECEMBRISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_DECEMBRISTS_YES = 1.3 }
	
	multiply_variable = { LAW_PASS_HUMANISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_HUMANISTS_YES = 0.6 }
	
	multiply_variable = { LAW_PASS_MODERNISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_MODERNISTS_YES = 1.2 }
	
	multiply_variable = { LAW_PASS_BASTILARDS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_BASTILARDS_YES = 0.2 }
	
	SBI_PASSBILL_changes = yes
}

PASTERNAK_SBI_PASSBILL_PROCUREMENT_ACT = {
	SBI_PASSBILL_START = yes
	
	multiply_variable = { LAW_PASS_DECEMBRISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_DECEMBRISTS_YES = 1.3 }
	
	multiply_variable = { LAW_PASS_HUMANISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_HUMANISTS_YES = 0.2 }
	add_to_variable = { LAW_PASS_HUMANISTS_YES = 5 }
	
	multiply_variable = { LAW_PASS_MODERNISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_MODERNISTS_YES = 1 }
	
	multiply_variable = { LAW_PASS_BASTILARDS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_BASTILARDS_YES = 0.5 }
	add_to_variable = { LAW_PASS_BASTILARDS_YES = 10 }
	
	SBI_PASSBILL_changes = yes
}

PASTERNAK_SBI_PASSBILL_MOBILISATION_ACT = {
	SBI_PASSBILL_START = yes
	
	multiply_variable = { LAW_PASS_DECEMBRISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_DECEMBRISTS_YES = 1.5 }
	add_to_variable = { LAW_PASS_DECEMBRISTS_YES = 10 }
	
	multiply_variable = { LAW_PASS_HUMANISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_HUMANISTS_YES = 0.01 }
	
	multiply_variable = { LAW_PASS_MODERNISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_MODERNISTS_YES = 0.8 }
	
	multiply_variable = { LAW_PASS_BASTILARDS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_BASTILARDS_YES = 1.5 }
	
	SBI_PASSBILL_changes = yes
}

PASTERNAK_SBI_PASSBILL_DEPORTATION_ACT = {
	SBI_PASSBILL_START = yes
	
	multiply_variable = { LAW_PASS_DECEMBRISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_DECEMBRISTS_YES = 1.2 }
	
	multiply_variable = { LAW_PASS_HUMANISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_HUMANISTS_YES = 0 }
	
	multiply_variable = { LAW_PASS_MODERNISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_MODERNISTS_YES = 0.6 }
	add_to_variable = { LAW_PASS_MODERNISTS_YES = 10 }
	
	multiply_variable = { LAW_PASS_BASTILARDS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_BASTILARDS_YES = 1.5 }
	
	SBI_PASSBILL_changes = yes
}

PASTERNAK_SBI_PASSBILL_REINTEGRATION_ACT = {
	SBI_PASSBILL_START = yes
	
	multiply_variable = { LAW_PASS_DECEMBRISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_DECEMBRISTS_YES = 1 }
	
	multiply_variable = { LAW_PASS_HUMANISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_HUMANISTS_YES = 1.5 }
	
	multiply_variable = { LAW_PASS_MODERNISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_MODERNISTS_YES = 0.6 }
	add_to_variable = { LAW_PASS_MODERNISTS_YES = 10 }
	
	multiply_variable = { LAW_PASS_BASTILARDS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_BASTILARDS_YES = 0 }
	
	SBI_PASSBILL_changes = yes
}

HARMS_SBI_PASSBILL_REINTEGRATION_ACT = {
	SBI_PASSBILL_START = yes
	
	multiply_variable = { LAW_PASS_DECEMBRISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_DECEMBRISTS_YES = 0.7 }
	
	multiply_variable = { LAW_PASS_HUMANISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_HUMANISTS_YES = 0 }
	
	multiply_variable = { LAW_PASS_MODERNISTS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_MODERNISTS_YES = 0.7 }
	add_to_variable = { LAW_PASS_MODERNISTS_YES = 8 }
	
	multiply_variable = { LAW_PASS_BASTILARDS_YES = var:SBI_PASTER_PARL_UNITY_Progress_PROCENT }
	multiply_variable = { LAW_PASS_BASTILARDS_YES = 2 }
	
	SBI_PASSBILL_changes = yes
}