﻿add_namespace = jungle  
country_event = {  
  id = jungle.0  
  title = jungle.0.t  
  desc = jungle.0.d  
    fire_only_once = yes  
  is_triggered_only = yes  
  option = {  
      ai_chance = {  
      factor = 15  
    }  
      add_political_power = 40  
    name = jungle.0.a  
     }  
  option = {  
      ai_chance = {  
      factor = 15  
    }  
    name = jungle.0.b  
    add_political_power = -60  
    16 = {  add_extra_state_shared_building_slots = 2  
        add_building_construction = {  
          type = infrastructure  
          level = 2  
          instant_build = yes  
        }  
      }  
      348 = {  add_extra_state_shared_building_slots = 2  
        add_building_construction = {  
          type = infrastructure  
          level = 2  
          instant_build = yes  
        }  
      }  
     }  
  option = {  
      ai_chance = {  
      factor = 70  
    }  
    name = jungle.0.c  
     add_political_power = -90  
        16 = {  add_extra_state_shared_building_slots = 3  
        add_building_construction = {  
          type = infrastructure  
          level = 3  
          instant_build = yes  
        }  
      }  
      348 = {  add_extra_state_shared_building_slots = 3  
        add_building_construction = {  
          type = infrastructure  
          level = 3  
          instant_build = yes  
        }  
      }  
     }  
  }  
country_event = {  
  id = jungle.2  
  title = jungle.2.t  
  desc = jungle.2.d  
    fire_only_once = yes  
  is_triggered_only = yes  
    
  option = {  
      ai_chance = {  
      factor = 90  
    }  
    name = jungle.2.a  
      add_political_power = 40  
  }  
    
  option = {  
      ai_chance = {  
      factor = 10  
    }  
    name = jungle.2.b  
    add_political_power = -90  
    remove_ideas = JUN_conscript_natives  
    add_ideas = JUN_conscript_natives_2  
  }  
} 
country_event = {   
  id = jungle.3  
  title = jungle.3.t  
  desc = jungle.3.d  
  picture = GFX_event_mare_republic  
  
  trigger = {  
    tag = JUN  
        has_country_flag = JUN_hard_labour  
  }  
  
  mean_time_to_happen = {  
    days = 420  
  }  
  
  option = {  
    name = jungle.3.a  
    add_political_power = -25  
    add_manpower = -500  
  }  
}  
country_event = {   
  id = jungle.4  
  title = jungle.4.t  
  desc = jungle.4.d  
  picture = GFX_event_mare_republic  
  
  trigger = {  
    tag = JUN  
        has_country_flag = JUN_students   
  }  
  
  mean_time_to_happen = {  
    days = 520 
  }  
  
  option = {  
    name = jungle.4.a  
    add_political_power = 50  
    add_manpower = 1500  
  }  
}  
country_event = {   
  id = jungle.5  
  title = jungle.5.t  
  desc = jungle.5.d  
  picture = GFX_event_mare_republic  
  
  trigger = {  
    tag = JUN  
        has_country_flag = JUN_deserters   
  }  
  
  mean_time_to_happen = {  
    days = 365  
  }  
  
  option = {  
    name = jungle.5.a  
    add_political_power = -25  
    add_manpower = -1000  
  }  
} 
country_event = {   
  id = jungle.6  
  title = jungle.6.t  
  desc = jungle.6.d  
  picture = GFX_event_mare_republic  
  
  trigger = {  
    tag = JUN  
        has_country_flag = JUN_likes_gold   
    NOT = { has_idea = JUN_collapsed_mine }  
  }  
  
  mean_time_to_happen = {  
    days = 730  
  }  
  
  option = {  
    name = jungle.6.a  
    add_political_power = -60  
    add_timed_idea = { idea = JUN_collapsed_mine days = 70 }  
  }  
}
country_event = {
	id = jungle.7 
	title = jungle.7.t
	desc = jungle.7.d
	picture = GFX_event_mare_republic 
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
	 ai_chance = { factor = 20 }  
	    name = jungle.7.a  
		EQS = { country_event = { id = equestria.131 days = 10 } }
     }
	option = {
	 ai_chance = { factor = 20 }  
	    name = jungle.7.b 
		CHN = { country_event = { id = changelings.22 days = 10 } }
     }
	option = {
	 ai_chance = { factor = 60 }  
	    name = jungle.7.c
		add_political_power = -50
		set_country_flag = JUN_kongo
     }
	
}
country_event = {
	id = jungle.8 
	title = jungle.8.t
	desc = jungle.8.d
	picture = GFX_event_mare_republic 
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
	 ai_chance = { factor = 20 }  
	    name = jungle.8.a  
		EQS = { country_event = { id = equestria.132 days = 10 } }
     }
	option = {
	 ai_chance = { factor = 80 }  
	    name = jungle.8.b
		add_political_power = -25
		set_country_flag = JUN_kongo
     }
	
}
country_event = {
	id = jungle.9 
	title = jungle.9.t
	desc = jungle.9.d
	picture = GFX_event_mare_republic 
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {  
	    name = jungle.9.a
		set_country_flag = JUN_kongo
     }
	
    }
country_event = {
	id = jungle.10 
	title = jungle.10.t
	desc = jungle.10.d
	picture = GFX_event_mare_republic 
	fire_only_once = yes
	is_triggered_only = yes
	
	option = {
	 ai_chance = { factor = 20 }  
	   name = jungle.10.a  
		CHN = { country_event = { id = changelings.22 days = 10 } }
     }
	option = {
	 ai_chance = { factor = 80 }  
	    name = jungle.10.b
		add_political_power = -25
		set_country_flag = JUN_kongo
     }
	
}
   
country_event = {  
  id = jungle.1  
  title = jungle.1.t  
  desc = jungle.1.d  
    fire_only_once = yes  
  is_triggered_only = yes  
    
  option = {  
      ai_chance = {  
      factor = 90  
    }  
    name = jungle.1.a  
      add_political_power = 40  
  }  
    
  option = {  
      ai_chance = {  
      factor = 10  
    }  
    name = jungle.1.b  
    add_political_power = -90  
    remove_ideas = JUN_gold_2 
    add_ideas = JUN_gold_3  
    hidden_effect = {  
      set_country_flag = JUN_likes_gold   
    }  
  }  
} 
### Tribal Oppression Mechanic ### 
country_event = {  
  id = jungle.11  
  title = jungle.11.t  
  desc = jungle.11.d  
  trigger = {  
    tag = JUN  
    has_country_flag = JUN_asshole  
    NOT = { has_idea = JUN_rebels_1 }
    NOT = { has_idea = JUN_rebels_2 }
    NOT = { has_idea = JUN_rebels_3 }
  has_political_power < -150  	
  }
  mean_time_to_happen = {
		days = 15

		modifier = {
			factor = 0.75
			has_political_power < -150
			has_political_power > -200
		}
	}
  option = {  
    name = jungle.11.a  
    add_ideas = JUN_rebels_1  
    }  
   }
country_event = {  
  id = jungle.12  
  title = jungle.12.t  
  desc = jungle.12.d  
  trigger = {  
    tag = JUN  
    has_country_flag = JUN_asshole
    NOT = { has_idea = JUN_rebels_2 }
    NOT = { has_idea = JUN_rebels_3 }	
    has_idea = JUN_rebels_1 
  has_political_power > 0  	
  }
  mean_time_to_happen = {
		days = 15

		modifier = {
			factor = 0.75
			has_political_power > 100
		}
    }		
  option = {  
    name = jungle.12.a  
      remove_ideas = JUN_rebels_1  
    }  
  }
country_event = {  
  id = jungle.13  
  title = jungle.13.t  
  desc = jungle.13.d  
  trigger = {  
    tag = JUN  
    has_country_flag = JUN_asshole
    has_idea = JUN_rebels_1	
    NOT = { has_idea = JUN_rebels_2 }
    NOT = { has_idea = JUN_rebels_3 }
  has_political_power < -300  	
  }
  mean_time_to_happen = {
		days = 15

		modifier = {
			factor = 0.75
			has_political_power < -300
			has_political_power > -400
		}
    }		
  option = {  
    name = jungle.13.a  
	  remove_ideas = JUN_rebels_1 
      add_ideas = JUN_rebels_2  
    }  
  }
country_event = {  
  id = jungle.14  
  title = jungle.14.t  
  desc = jungle.14.d  
  trigger = {  
    tag = JUN  
    has_country_flag = JUN_asshole  
    has_idea = JUN_rebels_2
    NOT = { has_idea = JUN_rebels_1 }
    NOT = { has_idea = JUN_rebels_3 }	
    has_political_power > -140	
  }
  mean_time_to_happen = {
		days = 15

		modifier = {
			factor = 0.75
			has_political_power > -100
		} 
	}
  option = {  
    name = jungle.14.a  
      remove_ideas = JUN_rebels_2
      add_ideas = JUN_rebels_1	  
    }  
  }
country_event = {  
  id = jungle.15  
  title = jungle.15.t  
  desc = jungle.15.d  
  trigger = {  
    tag = JUN
    has_idea = JUN_rebels_2	
    has_country_flag = JUN_asshole  
    NOT = { has_idea = JUN_rebels_3 }
  has_political_power < -450 	
  }
  mean_time_to_happen = {
		days = 15

		modifier = {
			factor = 0.75
			has_political_power < -450
			has_political_power > -500
		} 
	}
  option = {  
    name = jungle.15.a  
	  remove_ideas = JUN_rebels_2
      add_ideas = JUN_rebels_3  
    }  
  }
country_event = {  
  id = jungle.16  
  title = jungle.16.t  
  desc = jungle.16.d  
  trigger = {  
    tag = JUN  
    has_country_flag = JUN_asshole  
    has_idea = JUN_rebels_3
    NOT = { has_idea = JUN_rebels_1 }
    NOT = { has_idea = JUN_rebels_2 }	
    has_political_power > -290	
  }
  mean_time_to_happen = {
		days = 15

		modifier = {
			factor = 0.75
			has_political_power > -250
		}
    }		
  option = {  
    name = jungle.16.a  
      remove_ideas = JUN_rebels_3
      add_ideas = JUN_rebels_2	  
    }  
  }  