﻿### EK NOTE: Removed references to vanilla culture groups

##################################################
# Winter Triggers
county_has_winter_trigger = {
	title_province = {
		has_winter_trigger = yes
	}
}

character_capital_has_winter_trigger = {
	capital_county = { county_has_winter_trigger = yes }
}

### EK EDIT: Removed references to vanilla culture groups
# EK TODO: Add the cultures who use, and I quote, frequent winter transportation
# In vanilla it's used when teaching your kids to Ice Skate and when your knights challenge you to a skiing contest
culture_uses_frequent_winter_transportation_trigger = {
	culture = {
		OR = {
			has_cultural_pillar = heritage_atmoran
			has_cultural_parameter = winter_trait_bonuses
		}
	}
}

location_has_harsh_winter_trigger = {
	location = { has_province_modifier = winter_harsh_modifier }
}

location_has_normal_or_worse_winter_trigger = {
	location = {
		OR = {
			has_province_modifier = winter_normal_modifier
			has_province_modifier = winter_harsh_modifier
		}
	}
}

location_has_winter_trigger = {
	location = {
		has_winter_trigger = yes
	}
}

has_winter_trigger = {
	OR = {
		has_province_modifier = winter_mild_modifier
		has_province_modifier = winter_normal_modifier
		has_province_modifier = winter_harsh_modifier
		root = { has_zud_season_in_county_trigger = { COUNTY = root.location.county } }
	}
}

has_winter_combat_trigger = {
	OR = {
		has_province_modifier = winter_mild_modifier
		has_province_modifier = winter_normal_modifier
		has_province_modifier = winter_harsh_modifier
	}
}

##################################################
# Seasonal Triggers

middle_of_year_season_trigger = {
	current_month >= 4
	current_month <= 9
}

end_of_year_season_trigger = {
	OR = {
		current_month >= 10
		current_month <= 3
	}
}

temperate_seasons_trigger = {
	$LOCATION$ = {
		OR = {
			#EK EDIT
			geographical_region = mundus_tamriel_cyrodiil
			geographical_region = mundus_tamriel_high_rock
			geographical_region = mundus_tamriel_hammerfell
			geographical_region = mundus_tamriel_skyrim
			geographical_region = mundus_tamriel_morrowind
			geographical_region = mundus_tamriel_yokuda
		}
	}
}

tropical_seasons_trigger = {
	$LOCATION$ = {
		tropical_seasons_region_trigger = yes
	}
}

tropical_seasons_region_trigger = {
	OR = {
		#EK EDIT: Replacing real-world regions.
		geographical_region = mundus_tamriel_valenwood
		geographical_region = mundus_tamriel_elsweyr
		geographical_region = mundus_tamriel_black_marsh
		geographical_region = mundus_tamriel_summerset_isles
		#geographical_region = world_africa_west
		#geographical_region = world_africa_east
		#geographical_region = world_india_deccan
		#geographical_region = world_burma
		#EK EDIT END
	}
}

is_nice_season_to_be_outside_trigger = {
	OR = {
		# Temperate zones like to be out in summer.
		AND = {
			temperate_seasons_trigger = { LOCATION = $LOCATION$ }
			middle_of_year_season_trigger = yes
		}
		# Tropical zones like to be out in winter.
		AND = {
			tropical_seasons_trigger = { LOCATION = $LOCATION$ }
			end_of_year_season_trigger = yes
		}
	}
}

is_nice_season_to_be_inside_trigger = {
	OR = {
		# Temperate zones like to be inside in winter.
		AND = {
			temperate_seasons_trigger = { LOCATION = $LOCATION$ }
			end_of_year_season_trigger = yes
		}
		# Tropical zones like to be inside in summer.
		AND = {
			tropical_seasons_trigger = { LOCATION = $LOCATION$ }
			middle_of_year_season_trigger = yes
		}
	}
}



#Season scripted trigger tied into custom loc, can be used for backgrounds and VFX
#Format like current_season_winter = yes

current_season_trigger = {
	current_season_$SEASON$ = yes
}

#EK TODO COMP 1-13: add our regions
current_season_winter = {
	#EK DISABLED
	##southern region with rainy/dry seasons
	#trigger_if = {
	#	limit = {
	#		location = {
	#			geographical_region = seasonal_region_deccan
	#		}
	#	}
	#	OR = {
	#		current_month >= 11
	#		current_month < 3
	#	}
	#}
	#trigger_else_if = {
	#	limit = {
	#		location = {
	#			geographical_region = seasonal_region_rajasthan
	#		}
	#	}
	#	OR = {
	#		current_month >= 12
	#		current_month < 4
	#	}
	#}
	#trigger_else_if = {
	#	limit = {
	#		location = {
	#			geographical_region = seasonal_region_bengal
	#		}
	#	}
	#	OR = {
	#		current_month >= 11
	#		current_month < 2
	#	}
	#}
	#trigger_else_if = {
	#	limit = {
	#		location = {
	#			geographical_region = seasonal_region_burma
	#		}
	#	}
	#	OR = {
	#		current_month >= 11
	#		current_month < 3
	#	}
	#}
	#trigger_else = {
	#	#Generic Northern Hemisphere
	#	OR = {
	#		current_month >= 12
	#		current_month < 3
	#	}
	#	#Not present/has different name in these regions
	#	location = {
	#		NOR = {
	#			geographical_region = seasonal_region_east_africa
	#			geographical_region = seasonal_region_west_africa
	#		}
	#	}
	#}
	#EK EDIT
	OR = {
		current_month >= 12
		current_month < 3
	}
}

current_season_autumn = {
	#EK DISABLED
	##southern region with rainy/dry seasons
	#trigger_if = {
	#	limit = {
	#		location = {
	#			geographical_region = seasonal_region_rajasthan
	#		}
	#	}
	#	current_month >= 10
	#	current_month < 12
	#}
	#trigger_else_if = {
	#	limit = {
	#		location = {
	#			geographical_region = seasonal_region_bengal
	#		}
	#	}
	#	current_month >= 8
	#	current_month < 11
	#}
	#trigger_else_if = {
	#	limit = {
	#		location = {
	#			geographical_region = seasonal_region_east_africa
	#		}
	#	}
	#	current_month >= 9
	#	current_month < 11
	#}
	#trigger_else = {
	#	#Generic Northern Hemisphere
	#	current_month >= 9
	#	current_month < 12
	#	#Not present/has different name in these regions
	#	location = {
	#		NOR = {
	#			geographical_region = seasonal_region_west_africa
	#			geographical_region = seasonal_region_deccan
	#			geographical_region = seasonal_region_burma
	#		}
	#	}
	#}
	#EK EDIT
	OR = {
		current_month >= 9
		current_month < 12
	}
}

current_season_summer = {
	#southern region with rainy/dry seasons
	#trigger_if = {
	#	limit = {
	#		location = {
	#			geographical_region = seasonal_region_deccan
	#		}
	#	}
	#	current_month >= 3
	#	current_month < 6
	#}
	#trigger_else_if = {
	#	limit = {
	#		location = {
	#			geographical_region = seasonal_region_rajasthan
	#		}
	#	}
	#	current_month >= 4
	#	current_month < 7
	#}
	#trigger_else_if = {
	#	limit = {
	#		location = {
	#			geographical_region = seasonal_region_bengal
	#		}
	#	}
	#	current_month >= 4
	#	current_month < 6
	#}
	#trigger_else_if = {
	#	limit = {
	#		location = {
	#			geographical_region = seasonal_region_burma
	#		}
	#	}
	#	current_month >= 3
	#	current_month < 5
	#}
	#trigger_else = {
	#	#Generic Northern Hemisphere
	#	current_month >= 6
	#	current_month < 9
	#	#Not present/has different name in these regions
	#	location = {
	#		NOR = {
	#			geographical_region = seasonal_region_west_africa
	#			geographical_region = seasonal_region_east_africa
	#		}
	#	}
	#}
	#EK EDIT
	OR = {
		current_month >= 6
		current_month < 9
	}
}

current_season_spring = {
	#EK DISABLED
	#southern region with rainy/dry seasons
	#trigger_if = {
	#	limit = {
	#		location = {
	#			geographical_region = seasonal_region_bengal
	#		}
	#	}
	#	current_month >= 2
	#	current_month < 4
	#}
	#trigger_else_if = {
	#	limit = {
	#		location = {
	#			geographical_region = seasonal_region_east_africa
	#		}
	#	}
	#	current_month >= 3
	#	current_month < 6
	#}
	#trigger_else = {
	#	#Generic Northern Hemisphere
	#	current_month >= 3
	#	current_month < 6
	#	#Not present/has different name in these regions
	#	location = {
	#		NOR = {
	#			geographical_region = seasonal_region_west_africa
	#			geographical_region = seasonal_region_rajasthan
	#			geographical_region = seasonal_region_deccan
	#			geographical_region = seasonal_region_burma
	#		}
	#	}
	#}
	#EK EDIT
	OR = {
		current_month >= 3
		current_month < 6
	}
	
}

current_season_dry_season = {
	#southern region with rainy/dry seasons
	location = {
		#EK EDIT
		geographical_region = mundus_tamriel_hammerfell
	}
	#EK DISABLED
	#trigger_if = {
	#	limit = {
	#		location = { geographical_region = seasonal_region_west_africa }
	#	}
	#	OR = {
	#		current_month >= 11
	#		current_month < 5
	#	}
	#}
	#trigger_else = {
	#	location = {
	#		geographical_region = seasonal_region_east_africa
	#	}
	#	OR = {
	#		current_month >= 12
	#		current_month < 3
	#	}
	#}
	OR = {
		current_month >= 6
		current_month < 8
	}
}

current_season_rainy_season = {
	#Jasons triggers here
	location = {
		OR = {
			#EK EDIT
			geographical_region = mundus_tamriel_elsweyr
			geographical_region = mundus_tamriel_valenwood
			geographical_region = mundus_tamriel_black_marsh
		}
	}
	#EK DISABLED
	#southern region with rainy/dry seasons
	#trigger_if = {
	#	limit = {
	#		location = {
	#			geographical_region = seasonal_region_deccan
	#		}
	#	}
	#	current_month >= 6
	#	current_month < 11
	#}
	#trigger_else_if = {
	#	limit = {
	#		location = {
	#			geographical_region = seasonal_region_rajasthan
	#		}
	#	}
	#	current_month >= 7
	#	current_month < 10
	#}
	#trigger_else_if = {
	#	limit = {
	#		location = {
	#			geographical_region = seasonal_region_bengal
	#		}
	#	}
	#	current_month >= 6
	#	current_month < 8
	#}
	#trigger_else_if = {
	#	limit = {
	#		location = {
	#			geographical_region = seasonal_region_burma
	#		}
	#	}
	#	current_month >= 5
	#	current_month < 11
	#}
	#trigger_else_if = {
	#	limit = {
	#		location = {
	#			geographical_region = seasonal_region_west_africa
	#		}
	#	}
	#	current_month >= 5
	#	current_month < 11
	#}
	#trigger_else = {
	#	location = {
	#		geographical_region = seasonal_region_east_africa
	#	}
	#	current_month >= 6
	#	current_month < 9
	#}
	OR = {
		current_month >= 6
		current_month < 9
	}
}

current_season_hot_season = {
	OR = {
		AND = {
			location = {
				OR = {
					#EK EDIT
					geographical_region = mundus_tamriel_hammerfell
					geographical_region = mundus_tamriel_elsweyr_anequina
				}
			}
			current_season_rainy_season = yes
		}
		current_season_summer = yes
	}
}
current_season_cold_season = {
	OR = {
		current_season_winter = yes
		current_season_dry_season = yes
	}
}
current_season_wet = {
	OR = {
		current_season_spring = yes
		current_season_rainy_season = yes
	}
}
current_season_dry = {
	OR = {
		current_season_summer = yes
		current_season_dry_season = yes
	}
}
