# TODO: Balance

# The Danevirke
wonder_danevirke = {
	picture = GFX_wonder_strip_grand_walls
	show_model = no
	# allow_construction = no #Pre-built in history only

	potential = {
		OR = {
			culture_group = north_germanic
			religion_openly_norse_or_reformed_trigger = yes
			religion_openly_german_or_reformed_trigger = yes
		}

		FROMFROMFROM = {
			county = {
				OR = {
					title = c_holstein
					title = c_dithmarschen
				}
			}
		}
	}

	active = {
		# Should probably require a neighboring province to be of a different realm for this to be active
	}

	flags = {
		is_historical
		defensive
		cost_high
	}

	available_upgrades = {
		upgrade_roads
		upgrade_watchtower_network
		upgrade_spikes
		upgrade_tower
		upgrade_hypocausts
		upgrade_heating_pipes
		upgrade_retinue
		upgrade_road_tolls
	}

	stage = {
		allow = {
			FROMFROMFROM = {
				TECH_FORTIFICATIONS_CONSTRUCTION >= 1
				TECH_CONSTRUCTION >= 1
			}
		}

		build_time = 300
		gold_cost_flat = 2000
		gold_cost_ticking = 3
		restore_time = 150
		loot_time = 200
		restore_cost_flat = 400
		restore_cost_ticking = 2
		upgrade_slots = 2

		local_modifier = {
			fort_level = 0.25
			garrison_size = 0.25
			siege_defence = 0.1
		}

		owner_modifier = {
			monthly_character_prestige = 0.1
		}
	}

	stage = {
		allow = {
			FROMFROMFROM = {
				TECH_FORTIFICATIONS_CONSTRUCTION >= 4
				TECH_CONSTRUCTION >= 4
			}
		}

		build_time = 300
		gold_cost_flat = 1000
		gold_cost_ticking = 3
		restore_time = 200
		loot_time = 200
		restore_cost_flat = 500
		restore_cost_ticking = 2
		upgrade_slots = 2

		local_modifier = {
			fort_level = 0.25
			garrison_size = 0.25
			siege_defence = 0.1
		}

		owner_modifier = {
			monthly_character_prestige = 0.1
		}
	}

	stage = {
		allow = {
			FROMFROMFROM = {
				TECH_FORTIFICATIONS_CONSTRUCTION >= 4
				TECH_CONSTRUCTION >= 4
			}
		}

		build_time = 300
		gold_cost_flat = 1000
		gold_cost_ticking = 3
		restore_time = 200
		loot_time = 20
		restore_cost_flat = 500
		restore_cost_ticking = 2
		upgrade_slots = 2

		local_modifier = {
			fort_level = 0.25
			garrison_size = 0.25
			siege_defence = 0.1
		}

		owner_modifier = {
			monthly_character_prestige = 0.1
		}
	}

	stage = {
		allow = {
			FROMFROMFROM = {
				TECH_FORTIFICATIONS_CONSTRUCTION >= 4
				TECH_CONSTRUCTION >= 4
			}
		}

		build_time = 300
		gold_cost_flat = 1000
		gold_cost_ticking = 3
		restore_time = 200
		loot_time = 20
		restore_cost_flat = 500
		restore_cost_ticking = 2
		upgrade_slots = 2

		local_modifier = {
			fort_level = 0.25
			garrison_size = 0.25
			siege_defence = 0.1
		}

		owner_modifier = {
			monthly_character_prestige = 0.1
		}
	}
}

# Hadrian's Wall
wonder_hadrians_wall = {
	picture = GFX_wonder_strip_grand_walls
	show_model = no
	allow_construction = no # Pre-built in history only

	potential = {
		FROMFROMFROM = {
			county = {
				OR = {
					title = c_cumberland
					title = c_northumberland
				}
			}
		}
	}

	active = {
		# Should probably require a neighboring province to be of a different realm for this to be active
	}

	flags = {
		is_historical
		defensive
		cost_high
	}

	available_upgrades = {
		upgrade_roads
		upgrade_watchtower_network
		upgrade_spikes
		upgrade_tower
		upgrade_hypocausts
		upgrade_heating_pipes
		upgrade_retinue
		upgrade_road_tolls
	}

	stage = {
		allow = {
			FROMFROMFROM = {
				TECH_FORTIFICATIONS_CONSTRUCTION >= 1
				TECH_CONSTRUCTION >= 1
			}
		}

		build_time = 300
		gold_cost_flat = 2000
		gold_cost_ticking = 3
		restore_time = 150
		loot_time = 200
		restore_cost_flat = 400
		restore_cost_ticking = 2
		upgrade_slots = 2

		local_modifier = {
			# Currently Uses the values we gave the old unique building
			garrison_size = 0.05
			fort_level = 1.5
			tax_income = 1
			military_techpoints = 0.1
			monthly_character_prestige = 0.02
		}

		owner_modifier = {
			monthly_character_prestige = 0.1
		}
	}

	stage = {
		allow = {
			FROMFROMFROM = {
				TECH_FORTIFICATIONS_CONSTRUCTION >= 4
				TECH_CONSTRUCTION >= 4
			}
		}

		build_time = 300
		gold_cost_flat = 1000
		gold_cost_ticking = 3
		restore_time = 200
		loot_time = 200
		restore_cost_flat = 500
		restore_cost_ticking = 2
		upgrade_slots = 2

		local_modifier = {
			fort_level = 0.25
			garrison_size = 0.25
			siege_defence = 0.1
		}

		owner_modifier = {
			monthly_character_prestige = 0.1
		}
	}

	stage = {
		allow = {
			FROMFROMFROM = {
				TECH_FORTIFICATIONS_CONSTRUCTION >= 4
				TECH_CONSTRUCTION >= 4
			}
		}

		build_time = 300
		gold_cost_flat = 1000
		gold_cost_ticking = 3
		restore_time = 200
		loot_time = 20
		restore_cost_flat = 500
		restore_cost_ticking = 2
		upgrade_slots = 2

		local_modifier = {
			fort_level = 0.25
			garrison_size = 0.25
			siege_defence = 0.1
		}

		owner_modifier = {
			monthly_character_prestige = 0.1
		}
	}

	stage = {
		allow = {
			FROMFROMFROM = {
				TECH_FORTIFICATIONS_CONSTRUCTION >= 4
				TECH_CONSTRUCTION >= 4
			}
		}

		build_time = 300
		gold_cost_flat = 1000
		gold_cost_ticking = 3
		restore_time = 200
		loot_time = 20
		restore_cost_flat = 500
		restore_cost_ticking = 2
		upgrade_slots = 2

		local_modifier = {
			fort_level = 0.25
			garrison_size = 0.25
			siege_defence = 0.1
		}

		owner_modifier = {
			monthly_character_prestige = 0.1
		}
	}
}