on_actions = {

	on_declare_war = {
		effect = {
			if = {
				limit = {
					AND = {
						tag = ITA
						FROM = { tag = ENG }
					}
				}
				hidden_effect = {
					GER = {
						add_ideas = Sapr_coin_for_africa_2
					}					
					ITA = {
						add_ideas = Sapr_coin_for_africa_2
					}
					BUL = {
						add_ideas = Sapr_coin_for_africa_2
					}	
					HUN = {
						add_ideas = Sapr_coin_for_africa_2
					}	
					ROM = {
						add_ideas = Sapr_coin_for_africa_2
					}					
				}
				GER = {
					complete_national_focus = GER_establish_the_afrikakorps		
				}
			}
		}
	}

	# Сось захватывает Триполи
    on_state_control_changed = {
        effect = {
            if = {
                limit = { 
					OR ={
					    tag = GER
				        is_in_faction_with = GER
				    }		
					FROM = { 
						OR ={					    
							tag = ENG
							is_in_faction_with = ENG
						}
					}
					FROM.FROM = {
						state = 448
					}
					
                }		
				GER_Increase_the_coin_bonus_for_Africa = yes			
            }
        }
    }	
	# Калайсы камбекают Триполи
    on_state_control_changed = {
        effect = {
            if = {
                limit = {  				
					OR ={
						tag = ENG
						is_in_faction_with = ENG					
				    }		
					FROM = { 
						OR ={					    
							tag = GER
							is_in_faction_with = GER
						}
					}
					FROM.FROM = {
						state = 448
					}
                }
				GER_Reduce_the_coin_bonus_for_Africa = yes
            }
        }
    }		

	# Сось захватывает Тобрук
    on_state_control_changed = {
        effect = {
            if = {
                limit = { 
					OR ={
					    tag = GER
				        is_in_faction_with = GER
				    }		
					FROM = { 
						OR ={					    
							tag = ENG
							is_in_faction_with = ENG
						}
					}
					FROM.FROM = {
						state = 451
					}
					
                }			
				GER_Increase_the_coin_bonus_for_Africa = yes
            }
        }
    }	
	# Калайсы камбекают Тобрук
    on_state_control_changed = {
        effect = {
            if = {
                limit = {  				
					OR ={
						tag = ENG
						is_in_faction_with = ENG					
				    }		
					FROM = { 
						OR ={					    
							tag = GER
							is_in_faction_with = GER
						}
					}
					FROM.FROM = {
						state = 451
					}
                }			
				GER_Reduce_the_coin_bonus_for_Africa = yes
            }
        }
    }		
	# Сось захватывает Каир
    on_state_control_changed = {
        effect = {
            if = {
                limit = { 
					OR ={
					    tag = GER
				        is_in_faction_with = GER
				    }		
					FROM = { 
						OR ={					    
							tag = ENG
							is_in_faction_with = ENG
						}
					}
					FROM.FROM = {
						state = 907
					}
					
                }
				GER_Increase_the_coin_bonus_for_Africa = yes
            }
        }
    }	
	# Калайсы камбекают Каир
    on_state_control_changed = {
        effect = {
            if = {
                limit = {  				
					OR ={
						tag = ENG
						is_in_faction_with = ENG					
				    }		
					FROM = { 
						OR ={					    
							tag = GER
							is_in_faction_with = GER
						}
					}
					FROM.FROM = {
						state = 907
					}
                }			
				GER_Reduce_the_coin_bonus_for_Africa = yes			
            }
        }
    }		

	# Сось захватывает багдад
    on_state_control_changed = {
        effect = {
            if = {
                limit = { 
					OR ={
					    tag = GER
				        is_in_faction_with = GER
				    }		
					FROM = { 
						OR ={					    
							tag = ENG
							is_in_faction_with = ENG
						}
					}
					FROM.FROM = {
						state = 291
					}
					
                }			
				GER_Increase_the_coin_bonus_for_Africa = yes	
            }
        }
    }	
	# Калайсы камбекают Багдад
    on_state_control_changed = {
        effect = {
            if = {
                limit = {  				
					OR ={
						tag = ENG
						is_in_faction_with = ENG					
				    }		
					FROM = { 
						OR ={					    
							tag = GER
							is_in_faction_with = GER
						}
					}
					FROM.FROM = {
						state = 291
					}
                }			
				GER_Reduce_the_coin_bonus_for_Africa = yes
            }
        }
    }		
}
