gansa_rivalry_decis = {
	#lubek ZLU 		global.zlu_infl
	#frisia ZFR		global.zfr_infl
###основные законы
	gansa_vybory_1 = {	#таймаут после выборов
		icon = eng_propaganda_campaigns
		allowed = { always = no } #Activated from effect
		available = {			
			hidden_trigger = {
				always = no 
			}
		}
		days_mission_timeout = 50
		fire_only_once = yes
		is_good = no		
		timeout_effect = {
#			clr_global_flag = vybory_end_flag
		}
	}
	gansa_timaout_posle_reform = {	#таймаут после реформ
		icon = eng_trade_unions_demand
		allowed = { always = no } #Activated from effect
		available = {			
			hidden_trigger = {
				always = no 
			}
		}
		days_mission_timeout = 100
		fire_only_once = yes
		is_good = no		
		timeout_effect = {
#			clr_global_flag = ganza_reforming_end
		}
	}
	ganza_ref_1 = {
		icon = eng_trade_unions_demand
		available = {			
			is_faction_leader = yes	
			not = {
				has_global_flag = ganza_reforming_end
			}
			has_war = no
		}
		visible = {			
			NOT = {
				has_global_flag = ganza_ref_1_flag
			}
		}		
		fire_only_once = yes
		cost = 80		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			country_event = { id = ganza.26 }
		}
	}
	ganza_ref_2 = {
		icon = eng_trade_unions_demand
		available = {			
			is_faction_leader = yes
			not = {
				has_global_flag = ganza_reforming_end
			}
			has_war = no
		}
		visible = {				
			has_global_flag = ganza_ref_1_flag
			NOT = {
				has_global_flag = ganza_ref_2_flag
			}
		}		
		fire_only_once = yes
		cost = 80			
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 20
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			country_event = { id = ganza.28 }
		}
	}
	ganza_ref_3 = {
		icon = eng_trade_unions_demand
		available = {			
			is_faction_leader = yes
			not = {
				has_global_flag = ganza_reforming_end
			}
			has_war = no
		}
		visible = {				
			has_global_flag = ganza_ref_2_flag
			NOT = {
				has_global_flag = ganza_ref_3_flag
			}
		}		
		fire_only_once = yes
		cost = 80			
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			country_event = { id = ganza.30 }
		}
	}
	ganza_ref_4 = {
		icon = eng_trade_unions_demand
		available = {			
			is_faction_leader = yes
			not = {
				has_global_flag = ganza_reforming_end
			}
			has_war = no
		}
		visible = {				
			has_global_flag = ganza_ref_3_flag
			NOT = {
				has_global_flag = ganza_ref_4_flag
			}
		}		
		fire_only_once = yes
		cost = 80		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			country_event = { id = ganza.32 }
		}
	}
	ganza_ref_5 = {
		icon = eng_trade_unions_demand
		available = {			
			is_faction_leader = yes
			not = {
				has_global_flag = ganza_reforming_end
			}
			has_war = no
		}
		visible = {				
			has_global_flag = ganza_ref_4_flag
			NOT = {
				has_global_flag = ganza_ref_5_flag
			}
		}		
		fire_only_once = yes
		cost = 80		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			country_event = { id = ganza.34 }
		}
	}
	ganza_ref_6 = {
		icon = eng_trade_unions_demand
		available = {			
			is_faction_leader = yes
			not = {
				has_global_flag = ganza_reforming_end
			}
			has_war = no
		}
		visible = {				
			has_global_flag = ganza_ref_5_flag
			NOT = {
				has_global_flag = ganza_ref_6_flag
			}
		}		
		fire_only_once = yes
		cost = 80		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			country_event = { id = ganza.36 }
		}
	}
	######## lubek
	zlu_gansa_become_a_leader = {
		icon = ger_mefo_bills
		allowed = {
			tag = ZLU
		}
		available = {			
			lubek_have_many_leader_point = yes
			not = {
				has_global_flag = vybory_end_flag
			}
		}
		visible = {			
			ZLU = {
				is_faction_leader = no
			}
		}		
		fire_only_once = no
		cost = 20
		days_re_enable = 10		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			ZLU = {
				country_event = { id = ganza.1 }
			}
		}
	}
	zlu_gansa_add_1 = {
		icon = generic_political_discourse
		allowed = {
			tag = ZLU
		}
		available = {			
			check_variable = { global.zlu_infl < 1000 }			
			OR = {
				political_power_daily > 0.3
				has_political_power > 10
			}
			not = {
				has_decision = zlu_gansa_add_3
			}
		}		
		modifier = {
			political_power_gain = -0.3
		}
		fire_only_once = no
		cost = 0
		days_remove = 20
		ai_will_do = {
			factor = 10			
		}
		remove_effect = {	
			zlu_influence_add_1_lubek = yes
		}
	}
	zlu_gansa_add_3 = {
		icon = generic_political_discourse
		allowed = {
			tag = ZLU
		}
		available = {			
			check_variable = { global.zlu_infl < 1000 }			
			OR = {
				political_power_daily > 0.5
				has_political_power > 10
			}
			not = {
				has_decision = zlu_gansa_add_1
			}
		}		
		modifier = {
			political_power_gain = -0.5
		}
		fire_only_once = no
		cost = 0
		days_remove = 35
		ai_will_do = {
			factor = 5			
		}
		remove_effect = {	
			zlu_influence_add_3_lubek = yes
		}
	}
	zlu_gansa_podkup_chinovnikov = {
		icon = generic_political_discourse
		allowed = {
			tag = ZLU
		}
		available = {			
			check_variable = { global.zlu_infl < 1000 }				
		}				
		fire_only_once = no
		cost = 50
		days_re_enable = 150
		ai_will_do = {
			factor = 5			
		}
		complete_effect = {	
			zlu_influence_add_1_lubek = yes
		}
	}
	zlu_gansa_povliyat_na_torg_elity = {
		icon = generic_political_discourse
		allowed = {
			tag = ZLU
		}
		available = {			
			check_variable = { global.zlu_infl < 1000 }				
		}				
		fire_only_once = no
		cost = 70
		days_re_enable = 180
		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				has_stability > 0.75
			}
		}
		complete_effect = {	
			zlu_influence_add_3_lubek = yes
			add_stability = -0.01
		}
	}
	
	############frisia
	zfr_gansa_become_a_leader = {
		icon = ger_mefo_bills
		allowed = {
			tag = ZFR
		}
		available = {			
			frisia_have_many_leader_point = yes
			not = {
				has_global_flag = vybory_end_flag
			}
		}
		visible = {			
			ZFR = {
				is_faction_leader = no
			}
		}		
		fire_only_once = no
		cost = 20	
		days_re_enable = 10
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			ZFR = {
				country_event = { id = ganza.1 }
			}
		}
	}
	zfr_gansa_add_1 = {
		icon = generic_political_discourse
		allowed = {
			tag = ZFR
		}
		available = {			
			check_variable = { global.zfr_infl < 1000 }			
			OR = {
				political_power_daily > 0.3
				has_political_power > 10
			}
			not = {
				has_decision = zfr_gansa_add_3
			}
		}		
		modifier = {
			political_power_gain = -0.3
		}
		fire_only_once = no
		cost = 0
		days_remove = 20
		ai_will_do = {
			factor = 10			
		}
		remove_effect = {	
			zfr_influence_add_1_frisia = yes
		}
	}
	zfr_gansa_add_3 = {
		icon = generic_political_discourse
		allowed = {
			tag = ZFR
		}
		available = {			
			check_variable = { global.zfr_infl < 1000 }			
			OR = {
				political_power_daily > 0.5
				has_political_power > 10
			}
			not = {
				has_decision = zfr_gansa_add_1
			}
		}		
		modifier = {
			political_power_gain = -0.5
		}
		fire_only_once = no
		cost = 0
		days_remove = 35
		ai_will_do = {
			factor = 5			
		}
		remove_effect = {	
			zfr_influence_add_3_frisia = yes
		}
	}
	zfr_gansa_podkup_chinovnikov = {
		icon = generic_political_discourse
		allowed = {
			tag = ZFR
		}
		available = {			
			check_variable = { global.zfr_infl < 1000 }				
		}				
		fire_only_once = no
		cost = 50
		days_re_enable = 150
		ai_will_do = {
			factor = 5			
		}
		complete_effect = {	
			zfr_influence_add_1_frisia = yes
		}
	}
	zfr_gansa_povliyat_na_torg_elity = {
		icon = generic_political_discourse
		allowed = {
			tag = ZFR
		}
		available = {			
			check_variable = { global.zfr_infl < 1000 }				
		}				
		fire_only_once = no
		cost = 70
		days_re_enable = 180
		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				has_stability > 0.75
			}
		}
		complete_effect = {	
			zfr_influence_add_3_frisia = yes
			add_stability = -0.01
		}
	}
	
	###### hamburg
	zhm_gansa_become_a_leader = {
		icon = ger_mefo_bills
		allowed = {
			tag = ZHM
		}
		available = {			
			hamburg_have_many_leader_point = yes
			not = {
				has_global_flag = vybory_end_flag
			}
		}
		visible = {			
			ZHM = {
				is_faction_leader = no
			}
		}		
		fire_only_once = no
		cost = 20	
		days_re_enable = 10
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			ZHM = {
				country_event = { id = ganza.1 }
			}
		}
	}
	zhm_gansa_add_1 = {
		icon = generic_political_discourse
		allowed = {
			tag = ZHM
		}
		available = {			
			check_variable = { global.zhm_infl < 1000 }			
			OR = {
				political_power_daily > 0.3
				has_political_power > 10
			}
			not = {
				has_decision = zhm_gansa_add_3
			}
		}		
		modifier = {
			political_power_gain = -0.3
		}
		fire_only_once = no
		cost = 0
		days_remove = 20
		ai_will_do = {
			factor = 10			
		}
		remove_effect = {	
			zhm_influence_add_1_frisia = yes
		}
	}
	zhm_gansa_add_3 = {
		icon = generic_political_discourse
		allowed = {
			tag = ZHM
		}
		available = {			
			check_variable = { global.zhm_infl < 1000 }			
			OR = {
				political_power_daily > 0.5
				has_political_power > 10
			}
			not = {
				has_decision = zhm_gansa_add_1
			}
		}		
		modifier = {
			political_power_gain = -0.5
		}
		fire_only_once = no
		cost = 0
		days_remove = 35
		ai_will_do = {
			factor = 5			
		}
		remove_effect = {	
			zhm_influence_add_3_frisia = yes
		}
	}
	zhm_gansa_podkup_chinovnikov = {
		icon = generic_political_discourse
		allowed = {
			tag = ZHM
		}
		available = {			
			check_variable = { global.zhm_infl < 1000 }				
		}				
		fire_only_once = no
		cost = 50
		days_re_enable = 150
		ai_will_do = {
			factor = 5			
		}
		complete_effect = {	
			zhm_influence_add_1_frisia = yes
		}
	}
	zhm_gansa_povliyat_na_torg_elity = {
		icon = generic_political_discourse
		allowed = {
			tag = ZHM
		}
		available = {			
			check_variable = { global.zhm_infl < 1000 }				
		}				
		fire_only_once = no
		cost = 70
		days_re_enable = 180
		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				has_stability > 0.75
			}
		}
		complete_effect = {	
			zhm_influence_add_3_frisia = yes
			add_stability = -0.01
		}
	}
	
	####### jutland
	zjt_gansa_become_a_leader = {
		icon = ger_mefo_bills
		allowed = {
			tag = ZJT
		}
		available = {			
			jutland_have_many_leader_point = yes
			not = {
				has_global_flag = vybory_end_flag
			}
		}
		visible = {			
			ZJT = {
				is_faction_leader = no
			}
		}		
		fire_only_once = no
		cost = 20	
		days_re_enable = 10
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			ZJT = {
				country_event = { id = ganza.1 }
			}
		}
	}
	zjt_gansa_add_1 = {
		icon = generic_political_discourse
		allowed = {
			tag = ZJT
		}
		available = {			
			check_variable = { global.zjt_infl < 1000 }			
			OR = {
				political_power_daily > 0.3
				has_political_power > 10
			}
			not = {
				has_decision = zjt_gansa_add_3
			}
		}		
		modifier = {
			political_power_gain = -0.3
		}
		fire_only_once = no
		cost = 0
		days_remove = 20
		ai_will_do = {
			factor = 10			
		}
		remove_effect = {	
			zjt_influence_add_1_frisia = yes
		}
	}
	zjt_gansa_add_3 = {
		icon = generic_political_discourse
		allowed = {
			tag = ZJT
		}
		available = {			
			check_variable = { global.zjt_infl < 1000 }			
			OR = {
				political_power_daily > 0.5
				has_political_power > 10
			}
			not = {
				has_decision = zjt_gansa_add_1
			}
		}		
		modifier = {
			political_power_gain = -0.5
		}
		fire_only_once = no
		cost = 0
		days_remove = 35
		ai_will_do = {
			factor = 5			
		}
		remove_effect = {	
			zjt_influence_add_3_frisia = yes
		}
	}
	zjt_gansa_podkup_chinovnikov = {
		icon = generic_political_discourse
		allowed = {
			tag = ZJT
		}
		available = {			
			check_variable = { global.zjt_infl < 1000 }				
		}				
		fire_only_once = no
		cost = 50
		days_re_enable = 150
		ai_will_do = {
			factor = 5			
		}
		complete_effect = {	
			zjt_influence_add_1_frisia = yes
		}
	}
	zjt_gansa_povliyat_na_torg_elity = {
		icon = generic_political_discourse
		allowed = {
			tag = ZJT
		}
		available = {			
			check_variable = { global.zjt_infl < 1000 }				
		}				
		fire_only_once = no
		cost = 70
		days_re_enable = 180
		ai_will_do = {
			base = 0
			modifier = {
				add = 1
				has_stability > 0.75
			}
		}
		complete_effect = {	
			zjt_influence_add_3_frisia = yes
			add_stability = -0.01
		}
	}
}
############### FEDERALIZATION

gansa_federation_decis = {
	ganza_zakon_o_integratii = {
		icon = generic_political_discourse
		available = {			
			has_war = no				
		}
		visible = {
			is_puppet = no
		}		
		fire_only_once = yes
		cost = 70		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			country_event = { id = ganza.38 }
		}
	}
	ganza_annexim_zlu = {
		icon = generic_political_discourse
		allowed = {
			NOT = {
				tag = ZLU
			}
		}
		available = {
			ZLU = {
				is_puppet_of = ROOT	
			}
			has_war = no			
		}
		visible = {			
			has_global_flag = ganza_budet_annexit_flag
		}		
		fire_only_once = yes
		cost = 70		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			ZLU = {
				country_event = { id = ganza.40 }
			}
		}
	}
	ganza_annexim_zfr = {
		icon = generic_political_discourse
		allowed = {
			NOT = {
				tag = ZFR
			}
		}
		available = {
			ZFR = {
				is_puppet_of = ROOT	
			}
			has_war = no
		}
		visible = {			
			has_global_flag = ganza_budet_annexit_flag
		}		
		fire_only_once = yes
		cost = 70		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			ZFR = {
				country_event = { id = ganza.40 }
			}
		}
	}
	ganza_annexim_zhm = {
		icon = generic_political_discourse
		allowed = {
			NOT = {
				tag = ZHM
			}
		}
		available = {
			ZHM = {
				is_puppet_of = ROOT	
			}
			has_war = no
		}
		visible = {			
			has_global_flag = ganza_budet_annexit_flag
		}		
		fire_only_once = yes
		cost = 70		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			ZHM = {
				country_event = { id = ganza.40 }
			}
		}
	}
	ganza_annexim_zjt = {
		icon = generic_political_discourse
		allowed = {
			NOT = {
				tag = ZJT
			}
		}
		available = {
			ZJT = {
				is_puppet_of = ROOT	
			}
			has_war = no
		}
		visible = {			
			has_global_flag = ganza_budet_annexit_flag
		}		
		fire_only_once = yes
		cost = 70		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			ZJT = {
				country_event = { id = ganza.40 }
			}
		}
	}
##########
	ganza_nationaliz_124 = {
		icon = generic_political_discourse
		available = {
			controls_state = 124
		}
		visible = {
			124 = {
				NOT = {
					is_core_of = ROOT
				}
			}
		}		
		fire_only_once = yes
		cost = 70		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			124 = {
				add_core_of = ROOT
			}
		}
	}
	ganza_nationaliz_964 = {
		icon = generic_political_discourse
		available = {
			controls_state = 964
		}
		visible = {
			964 = {
				NOT = {
					is_core_of = ROOT
				}
			}
		}		
		fire_only_once = yes
		cost = 70		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			964 = {
				add_core_of = ROOT
			}
		}
	}
	ganza_nationaliz_778 = {
		icon = generic_political_discourse
		available = {
			controls_state = 778
		}
		visible = {
			778 = {
				NOT = {
					is_core_of = ROOT
				}
			}
		}		
		fire_only_once = yes
		cost = 85		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			778 = {
				add_core_of = ROOT
			}
		}
	}
	ganza_nationaliz_58 = {
		icon = generic_political_discourse
		available = {
			controls_state = 58
		}
		visible = {
			58 = {
				NOT = {
					is_core_of = ROOT
				}
			}
		}		
		fire_only_once = yes
		cost = 70		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			58 = {
				add_core_of = ROOT
			}
		}
	}
	ganza_nationaliz_777 = {
		icon = generic_political_discourse
		available = {
			controls_state = 777
		}
		visible = {
			777 = {
				NOT = {
					is_core_of = ROOT
				}
			}
		}		
		fire_only_once = yes
		cost = 85		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			777 = {
				add_core_of = ROOT
			}
		}
	}
	ganza_nationaliz_963 = {
		icon = generic_political_discourse
		available = {
			controls_state = 963
		}
		visible = {
			963 = {
				NOT = {
					is_core_of = ROOT
				}
			}
		}		
		fire_only_once = yes
		cost = 70		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			963 = {
				add_core_of = ROOT
			}
		}
	}
	ganza_nationaliz_56 = {
		icon = generic_political_discourse
		available = {
			controls_state = 56
		}
		visible = {
			56 = {
				NOT = {
					is_core_of = ROOT
				}
			}
		}		
		fire_only_once = yes
		cost = 85		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			56 = {
				add_core_of = ROOT
			}
		}
	}
	ganza_nationaliz_36 = {
		icon = generic_political_discourse
		available = {
			controls_state = 36
		}
		visible = {
			36 = {
				NOT = {
					is_core_of = ROOT
				}
			}
		}		
		fire_only_once = yes
		cost = 70		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			36 = {
				add_core_of = ROOT
			}
		}
	}
	ganza_nationaliz_779 = {
		icon = generic_political_discourse
		available = {
			controls_state = 779
		}
		visible = {
			779 = {
				NOT = {
					is_core_of = ROOT
				}
			}
		}		
		fire_only_once = yes
		cost = 70		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			779 = {
				add_core_of = ROOT
			}
		}
	}
	ganza_nationaliz_99 = {
		icon = generic_political_discourse
		available = {
			controls_state = 99
		}
		visible = {
			99 = {
				NOT = {
					is_core_of = ROOT
				}
			}
		}		
		fire_only_once = yes
		cost = 85		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			99 = {
				add_core_of = ROOT
			}
		}
	}
	ganza_nationaliz_37 = {
		icon = generic_political_discourse
		available = {
			controls_state = 37
		}
		visible = {
			37 = {
				NOT = {
					is_core_of = ROOT
				}
			}
		}		
		fire_only_once = yes
		cost = 70		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			37 = {
				add_core_of = ROOT
			}
		}
	}
	ganza_nationaliz_7 = {
		icon = generic_political_discourse
		available = {
			controls_state = 7
		}
		visible = {
			7 = {
				NOT = {
					is_core_of = ROOT
				}
			}
		}		
		fire_only_once = yes
		cost = 60		
		ai_will_do = {
			factor = 200
			modifier = {
				factor = 0
				is_historical_focus_on = yes
			}
		}
		complete_effect = {	
			7 = {
				add_core_of = ROOT
			}
		}
	}


}