
construction_yard:
	Health:
		HP: 35000
	Power:
		Amount: 50

barracks:
	Valued:
		Cost: 400
	Power:
		Amount: -50

light_factory:
	Valued:
		Cost: 600
	Power:
		Amount: -100

repair_pad:
	Inherits: ^Building
	Buildable:
		Queue: Building
		Prerequisites: heavy_factory, ~techlevel.medium

outpost:
	RevealsShroud:
		Range: 10c0
		RequiresCondition: !disabled
	RevealsShroud@lowpower:
		Range: 4c0
		RequiresCondition: disabled
	DetectCloaked:
		Range: 6c0
		RequiresCondition: !disabled

high_tech_factory:
	-AirstrikePower:
	SpawnActorPower@EnhancedAirAtreides:
		EffectImage: carryall.husk_on_land
		EffectSequence:
		Actor: waypoint.airtstrike_a
		Icon: ornistrike
		Prerequisites: ~techlevel.superweapons, upgrade.hightech
		ChargeInterval: 7000
		LifeTime: -1
		Name: Airstrike with multiple pass
		Description: Ornithopters hit the target multiple times with bombs 
		EndChargeSpeechNotification: Reinforce
		SupportPowerPaletteOrder: 50
		DisplayBeacon: True
		DisplayRadarPing: true
		OrderName: AirstrikePowerInfoOrder

refinery:
	PlaceBuildingVariants:
		Actors: refinery_inverted
		Facings: 384, 896


refinery_inverted:
	Inherits: refinery
	PlaceBuildingVariants:
		Actors: refinery
		Facings: 896, 384
	Buildable:
		Prerequisites: wind_trap
		Queue: Building
		BuildPaletteOrder: 310
		Description: Refinery with docking from north side
	RenderSprites:
		Image: refinery_invert.ordos
		FactionImages:
			atreides: refinery_invert.atreidis
			fremen: refinery_invert.atreidis
			harkonnen: refinery_invert.harkonnen
			corrino: refinery_invert.harkonnen
	WithIdleOverlay@front:
		Sequence: idle-front
		RequiresCondition: !build-incomplete
	Selectable:
		Bounds: 3072, 2048, 0, 1024
	WithIdleOverlay@top:
		Sequence: idle-top
		RequiresCondition: !build-incomplete
	Refinery:
		DockAngle: 128
		DockOffset: 0,1
		TickRate: 20
	Tooltip:
		Name: Spice Refinery Inverted
	D2kBuilding:
		Footprint: === =xx xx=
		Dimensions: 3,3
		LocalCenterOffset: 0,-512,0
	HitShape:
		Type: Rectangle
			TopLeft: -512, 0
			BottomRight: 1536, 1024
	HitShape@BOTTOM:
		Type: Rectangle
			TopLeft: -1536, 1024
			BottomRight: 512, 2048
	ProvidesPrerequisite:
		Prerequisite: refinery
	FreeActorWithDelivery:
		DeliveryOffset: 0,0

silo:
	Buildable:
		BuildPaletteOrder: 650


medium_gun_turret:
	Buildable:
		Description: Defensive structure.\n  Decent vs Infantry, Vehicles\n  Weak vs Tanks
	DetectCloaked:
		Range: 5c0


large_gun_turret:
	Buildable:
		Description: Defensive structure.\n  Strong vs Tanks, Aircraft, Vehicles\n  Weak vs Infantry \n\n  Requires power to operate.
	DetectCloaked:
		Range: 6c0


palace:
	ProduceActorPower@fremen:
		Actors: fremen, fremen, fremen, fremen, fremen
	NukePower:
		DetonationAltitude: 6c0
		RemoveMissileOnDetonation: True
	Armor:
		Type: cy