﻿############################################
##   Scripted Localization for German Loc ##
###           BY Kai Bagehorn            ###
############################################

DE_1_GritType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			location = {
				OR = {
					terrain = mountains
					terrain = desert_mountains
				}
			}
		}
		localization_key = CustomLoc_DE_1_grit_type_grit
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = plains
					terrain = farmlands
					terrain = hills
					terrain = floodplains
				}
			}
		}
		localization_key = CustomLoc_DE_1_grit_type_dirt
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = desert
					terrain = oasis
				}
			}
		}
		localization_key = CustomLoc_DE_1_grit_type_sand
	}

	text = {
		trigger = {
			location = { terrain = wetlands }
		}
		localization_key = CustomLoc_DE_1_grit_type_bog_water
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = forest
					terrain = taiga
				}
			}
		}
		localization_key = CustomLoc_DE_1_grit_type_twigs
	}

	text = {
		trigger = {
			location = { terrain = jungle }
		}
		localization_key = CustomLoc_DE_1_grit_type_wet_leaves
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = steppe
					terrain = drylands
				}
			}
		}
		localization_key = CustomLoc_DE_1_grit_type_dry_grass
	}
}

DE_2_GritType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			location = {
				OR = {
					terrain = mountains
					terrain = desert_mountains
				}
			}
		}
		localization_key = CustomLoc_DE_2_grit_type_grit
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = plains
					terrain = farmlands
					terrain = hills
					terrain = floodplains
				}
			}
		}
		localization_key = CustomLoc_DE_2_grit_type_dirt
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = desert
					terrain = oasis
				}
			}
		}
		localization_key = CustomLoc_DE_2_grit_type_sand
	}

	text = {
		trigger = {
			location = { terrain = wetlands }
		}
		localization_key = CustomLoc_DE_2_grit_type_bog_water
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = forest
					terrain = taiga
				}
			}
		}
		localization_key = CustomLoc_DE_2_grit_type_twigs
	}

	text = {
		trigger = {
			location = { terrain = jungle }
		}
		localization_key = CustomLoc_DE_2_grit_type_wet_leaves
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = steppe
					terrain = drylands
				}
			}
		}
		localization_key = CustomLoc_DE_2_grit_type_dry_grass
	}
}

DE_3_GritType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			location = {
				OR = {
					terrain = mountains
					terrain = desert_mountains
				}
			}
		}
		localization_key = CustomLoc_DE_3_grit_type_grit
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = plains
					terrain = farmlands
					terrain = hills
					terrain = floodplains
				}
			}
		}
		localization_key = CustomLoc_DE_3_grit_type_dirt
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = desert
					terrain = oasis
				}
			}
		}
		localization_key = CustomLoc_DE_3_grit_type_sand
	}

	text = {
		trigger = {
			location = { terrain = wetlands }
		}
		localization_key = CustomLoc_DE_3_grit_type_bog_water
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = forest
					terrain = taiga
				}
			}
		}
		localization_key = CustomLoc_DE_3_grit_type_twigs
	}

	text = {
		trigger = {
			location = { terrain = jungle }
		}
		localization_key = CustomLoc_DE_3_grit_type_wet_leaves
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = steppe
					terrain = drylands
				}
			}
		}
		localization_key = CustomLoc_DE_3_grit_type_dry_grass
	}
}

DE_4_GritType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			location = {
				OR = {
					terrain = mountains
					terrain = desert_mountains
				}
			}
		}
		localization_key = CustomLoc_DE_4_grit_type_grit
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = plains
					terrain = farmlands
					terrain = hills
					terrain = floodplains
				}
			}
		}
		localization_key = CustomLoc_DE_4_grit_type_dirt
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = desert
					terrain = oasis
				}
			}
		}
		localization_key = CustomLoc_DE_4_grit_type_sand
	}

	text = {
		trigger = {
			location = { terrain = wetlands }
		}
		localization_key = CustomLoc_DE_4_grit_type_bog_water
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = forest
					terrain = taiga
				}
			}
		}
		localization_key = CustomLoc_DE_4_grit_type_twigs
	}

	text = {
		trigger = {
			location = { terrain = jungle }
		}
		localization_key = CustomLoc_DE_4_grit_type_wet_leaves
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = steppe
					terrain = drylands
				}
			}
		}
		localization_key = CustomLoc_DE_4_grit_type_dry_grass
	}
}

DE_5_GritType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			location = {
				OR = {
					terrain = mountains
					terrain = desert_mountains
				}
			}
		}
		localization_key = CustomLoc_DE_5_grit_type_grit
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = plains
					terrain = farmlands
					terrain = hills
					terrain = floodplains
				}
			}
		}
		localization_key = CustomLoc_DE_5_grit_type_dirt
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = desert
					terrain = oasis
				}
			}
		}
		localization_key = CustomLoc_DE_5_grit_type_sand
	}

	text = {
		trigger = {
			location = { terrain = wetlands }
		}
		localization_key = CustomLoc_DE_5_grit_type_bog_water
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = forest
					terrain = taiga
				}
			}
		}
		localization_key = CustomLoc_DE_5_grit_type_twigs
	}

	text = {
		trigger = {
			location = { terrain = jungle }
		}
		localization_key = CustomLoc_DE_5_grit_type_wet_leaves
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = steppe
					terrain = drylands
				}
			}
		}
		localization_key = CustomLoc_DE_5_grit_type_dry_grass
	}
}

DE_6_GritType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			location = {
				OR = {
					terrain = mountains
					terrain = desert_mountains
				}
			}
		}
		localization_key = CustomLoc_DE_6_grit_type_grit
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = plains
					terrain = farmlands
					terrain = hills
					terrain = floodplains
				}
			}
		}
		localization_key = CustomLoc_DE_6_grit_type_dirt
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = desert
					terrain = oasis
				}
			}
		}
		localization_key = CustomLoc_DE_6_grit_type_sand
	}

	text = {
		trigger = {
			location = { terrain = wetlands }
		}
		localization_key = CustomLoc_DE_6_grit_type_bog_water
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = forest
					terrain = taiga
				}
			}
		}
		localization_key = CustomLoc_DE_6_grit_type_twigs
	}

	text = {
		trigger = {
			location = { terrain = jungle }
		}
		localization_key = CustomLoc_DE_6_grit_type_wet_leaves
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = steppe
					terrain = drylands
				}
			}
		}
		localization_key = CustomLoc_DE_6_grit_type_dry_grass
	}
}

DE_7_GritType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			location = {
				OR = {
					terrain = mountains
					terrain = desert_mountains
				}
			}
		}
		localization_key = CustomLoc_DE_7_grit_type_grit
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = plains
					terrain = farmlands
					terrain = hills
					terrain = floodplains
				}
			}
		}
		localization_key = CustomLoc_DE_7_grit_type_dirt
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = desert
					terrain = oasis
				}
			}
		}
		localization_key = CustomLoc_DE_7_grit_type_sand
	}

	text = {
		trigger = {
			location = { terrain = wetlands }
		}
		localization_key = CustomLoc_DE_7_grit_type_bog_water
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = forest
					terrain = taiga
				}
			}
		}
		localization_key = CustomLoc_DE_7_grit_type_twigs
	}

	text = {
		trigger = {
			location = { terrain = jungle }
		}
		localization_key = CustomLoc_DE_7_grit_type_wet_leaves
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = steppe
					terrain = drylands
				}
			}
		}
		localization_key = CustomLoc_DE_7_grit_type_dry_grass
	}
}

DE_1_GroundType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			exists = scope:locale
			#NOT = { scope:locale = flag:wilderness }
		}
		localization_key = CustomLoc_DE_1_ground_type_dust
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = farmlands
					terrain = hills
					terrain = drylands
				}
			}
		}
		localization_key = CustomLoc_DE_1_ground_type_dirt
	}

	text = {
		trigger = {
			location = { terrain = mountains }
		}
		localization_key = CustomLoc_DE_1_ground_type_rocks
	}

	text = {
		trigger = {
			location = { terrain = desert_mountains }
		}
		localization_key = CustomLoc_DE_1_ground_type_sandy_rocks
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = desert
					terrain = oasis
				}
			}
		}
		localization_key = CustomLoc_DE_1_ground_type_sand
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = wetlands 
					terrain = floodplains
				}
			}
		}
		localization_key = CustomLoc_DE_1_ground_type_wet_grass
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = forest
					terrain = taiga
					terrain = jungle 
				}
			}
		}
		localization_key = CustomLoc_DE_1_ground_type_mulch
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = steppe
					terrain = plains
				}
			}
		}
		localization_key = CustomLoc_DE_1_ground_type_grass
	}
}

DE_2_GroundType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			exists = scope:locale
			#NOT = { scope:locale = flag:wilderness }
		}
		localization_key = CustomLoc_DE_2_ground_type_dust
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = farmlands
					terrain = hills
					terrain = drylands
				}
			}
		}
		localization_key = CustomLoc_DE_2_ground_type_dirt
	}

	text = {
		trigger = {
			location = { terrain = mountains }
		}
		localization_key = CustomLoc_DE_2_ground_type_rocks
	}

	text = {
		trigger = {
			location = { terrain = desert_mountains }
		}
		localization_key = CustomLoc_DE_2_ground_type_sandy_rocks
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = desert
					terrain = oasis
				}
			}
		}
		localization_key = CustomLoc_DE_2_ground_type_sand
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = wetlands 
					terrain = floodplains
				}
			}
		}
		localization_key = CustomLoc_DE_2_ground_type_wet_grass
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = forest
					terrain = taiga
					terrain = jungle 
				}
			}
		}
		localization_key = CustomLoc_DE_2_ground_type_mulch
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = steppe
					terrain = plains
				}
			}
		}
		localization_key = CustomLoc_DE_2_ground_type_grass
	}
}

DE_3_GroundType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			exists = scope:locale
			#NOT = { scope:locale = flag:wilderness }
		}
		localization_key = CustomLoc_DE_3_ground_type_dust
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = farmlands
					terrain = hills
					terrain = drylands
				}
			}
		}
		localization_key = CustomLoc_DE_3_ground_type_dirt
	}

	text = {
		trigger = {
			location = { terrain = mountains }
		}
		localization_key = CustomLoc_DE_3_ground_type_rocks
	}

	text = {
		trigger = {
			location = { terrain = desert_mountains }
		}
		localization_key = CustomLoc_DE_3_ground_type_sandy_rocks
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = desert
					terrain = oasis
				}
			}
		}
		localization_key = CustomLoc_DE_3_ground_type_sand
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = wetlands 
					terrain = floodplains
				}
			}
		}
		localization_key = CustomLoc_DE_3_ground_type_wet_grass
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = forest
					terrain = taiga
					terrain = jungle 
				}
			}
		}
		localization_key = CustomLoc_DE_3_ground_type_mulch
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = steppe
					terrain = plains
				}
			}
		}
		localization_key = CustomLoc_DE_3_ground_type_grass
	}
}

DE_4_GroundType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			exists = scope:locale
			#NOT = { scope:locale = flag:wilderness }
		}
		localization_key = CustomLoc_DE_4_ground_type_dust
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = farmlands
					terrain = hills
					terrain = drylands
				}
			}
		}
		localization_key = CustomLoc_DE_4_ground_type_dirt
	}

	text = {
		trigger = {
			location = { terrain = mountains }
		}
		localization_key = CustomLoc_DE_4_ground_type_rocks
	}

	text = {
		trigger = {
			location = { terrain = desert_mountains }
		}
		localization_key = CustomLoc_DE_4_ground_type_sandy_rocks
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = desert
					terrain = oasis
				}
			}
		}
		localization_key = CustomLoc_DE_4_ground_type_sand
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = wetlands 
					terrain = floodplains
				}
			}
		}
		localization_key = CustomLoc_DE_4_ground_type_wet_grass
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = forest
					terrain = taiga
					terrain = jungle 
				}
			}
		}
		localization_key = CustomLoc_DE_4_ground_type_mulch
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = steppe
					terrain = plains
				}
			}
		}
		localization_key = CustomLoc_DE_4_ground_type_grass
	}
}

DE_5_GroundType = {
	log_loc_errors = no

	type = character

	text = {
		trigger = {
			exists = scope:locale
			#NOT = { scope:locale = flag:wilderness }
		}
		localization_key = CustomLoc_DE_5_ground_type_dust
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = farmlands
					terrain = hills
					terrain = drylands
				}
			}
		}
		localization_key = CustomLoc_DE_5_ground_type_dirt
	}

	text = {
		trigger = {
			location = { terrain = mountains }
		}
		localization_key = CustomLoc_DE_5_ground_type_rocks
	}

	text = {
		trigger = {
			location = { terrain = desert_mountains }
		}
		localization_key = CustomLoc_DE_5_ground_type_sandy_rocks
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = desert
					terrain = oasis
				}
			}
		}
		localization_key = CustomLoc_DE_5_ground_type_sand
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = wetlands 
					terrain = floodplains
				}
			}
		}
		localization_key = CustomLoc_DE_5_ground_type_wet_grass
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = forest
					terrain = taiga
					terrain = jungle 
				}
			}
		}
		localization_key = CustomLoc_DE_5_ground_type_mulch
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = steppe
					terrain = plains
				}
			}
		}
		localization_key = CustomLoc_DE_5_ground_type_grass
	}
}

DE_6_GroundType = {
	log_loc_errors = no
	
	type = character

	text = {
		trigger = {
			exists = scope:locale
			#NOT = { scope:locale = flag:wilderness }
		}
		localization_key = CustomLoc_DE_6_ground_type_dust
		fallback = yes
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = farmlands
					terrain = hills
					terrain = drylands
				}
			}
		}
		localization_key = CustomLoc_DE_6_ground_type_dirt
	}

	text = {
		trigger = {
			location = { terrain = mountains }
		}
		localization_key = CustomLoc_DE_6_ground_type_rocks
	}

	text = {
		trigger = {
			location = { terrain = desert_mountains }
		}
		localization_key = CustomLoc_DE_6_ground_type_sandy_rocks
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = desert
					terrain = oasis
				}
			}
		}
		localization_key = CustomLoc_DE_6_ground_type_sand
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = wetlands 
					terrain = floodplains
				}
			}
		}
		localization_key = CustomLoc_DE_6_ground_type_wet_grass
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = forest
					terrain = taiga
					terrain = jungle 
				}
			}
		}
		localization_key = CustomLoc_DE_6_ground_type_mulch
	}

	text = {
		trigger = {
			location = {
				OR = {
					terrain = steppe
					terrain = plains
				}
			}
		}
		localization_key = CustomLoc_DE_6_ground_type_grass
	}
}