# This file holds the diseases for The Reaper's due, with all new values and effects
# note the "rip = yes" -- this will make it so that the disease is The Reaper's Due exclusive, so that we can have both versions of the disease

drakkodin = {
	rip = yes
	contagiousness = 0.55
	outbreak_chance = 0.001
	effect = {
		city_tax_modifier = -0.1
		supply_limit = -1
		max_attrition = 0.05
		disease_defence = 0.25
	}
	yearly_province_pulse = {
		
	}
	icon = 8
	tooltip = DRAKKODIN_INFO
	months = 36
	trait = has_drakkodin
	character_infection_chances = {
		months = 3
	}
	on_character_infection = {
		if = {
			limit = {
				NOR = {			
					culture_group = draconian
					
					has_character_flag = immune_drakkodin
					has_character_flag = got_drakkodin
					
					trait = has_drakkodin
					trait = horse
					trait = cat
				}
			}			
			random_list = {
				95 = { # Get the disease
					modifier = {
						factor = 0.25
						has_character_modifier = in_seclusion
					}
					modifier = {
						factor = 1.5
						AND = {
							is_nomadic = yes
							NOT = { is_unimportant_trigger = yes }
						}
					}
					modifier = {
						factor = 2
						AND = {
							is_tribal = yes
							NOT = { is_unimportant_trigger = yes }
						}
					}
					modifier = {
						factor = 5000
						is_unimportant_trigger = yes
					}
					set_character_flag = got_drakkodin
					character_event = { id = drakken_event.0002 }
				}
				5 = { # Nothing happens
					set_character_flag = immune_drakkodin
				}
			}
		}
	}
	on_province_infection = {
		province_event = { id = drakken_event.0001 }
	}
	always_get_message = yes
	color = { 125 165 0 }
	
	timeperiod = {
		start_date = 769.1.1
		end_date = 867.1.1
		
		outbreak_chance = 0.10
		
		can_outbreak = {
			NOT = {
				has_global_flag = special_drakkodin_already_spawned
				has_game_rule = {
					name = supernatural_events
					value = off
				}
			}
		}
		
		max_total_provinces = 5
		
		spread_through_water = yes
		
		min_nb_province = 1	# ignored if 0
		max_nb_province = 1	# ignored if 0

		one_only = yes
		
		outbreak_scenario = { # Iceland
			chance = 0.80
			start_provinces = {
				2
			}
			excluded_regions = {
				custom_not_avalon
			}
		}
		
		outbreak_scenario = { # Orkney One
			chance = 0.10
			start_provinces = {
				33
			}
			excluded_regions = {
				custom_not_avalon
			}
		}
		
		outbreak_scenario = { # Orkney Two
			chance = 0.05
			start_provinces = {
				34
			}
			excluded_regions = {
				custom_not_avalon
			}
		}
		
		outbreak_scenario = { # Orkney Mainland
			chance = 0.05
			start_provinces = {
				36
			}
			excluded_regions = {
				custom_not_avalon_or_scotland
			}
		}
	}
	#disease_gfx = disease_gfx_dancing_plague
}
