^Building:
	Explodes@sabotuerDemolition:
		RequiresCondition: being-demolished
		Type: CenterPosition
		Weapon: PlasmaSaboteur
		EmptyWeapon: PlasmaSaboteur

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

barracks:
	Valued:
		Cost: 400
	Power:
		Amount: -50
	Buildable:
		BuildDuration: 300

light_factory:
	Valued:
		Cost: 600
	Power:
		Amount: -100
	Buildable:
		BuildDuration: 415

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
	Buildable:
		BuildDuration: 380

heavy_factory:
	Buildable:
		BuildDuration: 750
	Valued:
		Cost: 1500

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
	Armor:
		Type: building


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

wall:
	Valued:
		Cost: 100

medium_gun_turret:
	DetectCloaked:
		Range: 5c0
	Buildable:
		BuildDuration: 300
	Armor:
		Type: wall
	RevealsShroud:
		Range: 5c0
	Health:
		HP: 25000


large_gun_turret:
	DetectCloaked:
		Range: 5c0
	Buildable:
		Queue: Building
		BuildPaletteOrder: 510
		BuildDuration: 360
	Armor:
		Type: wall
	RevealsShroud:
		Range: 6c0
	Health:
		HP: 28000


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

upgrade.barracks:
	AlwaysVisible:
	Interactable:
	ScriptTriggers:
	Tooltip:
		Name: actor-upgrade-barracks.name
	Buildable:
		BuildPaletteOrder: 50
		Prerequisites: barracks
		Queue: Upgrade
		BuildLimit: 1
		BuildDuration: 600
		BuildDurationModifier: 100
		Description: actor-upgrade-barracks.description

upgrade.light:
	AlwaysVisible:
	Interactable:
	ScriptTriggers:
	Tooltip:
		Name: actor-upgrade-light.name
	Buildable:
		BuildPaletteOrder: 50
		Prerequisites: light_factory
		Queue: Upgrade
		BuildLimit: 1
		BuildDuration: 800
		BuildDurationModifier: 100
		Description: actor-upgrade-light.description
	Valued:
		Cost: 600

upgrade.heavy:
	Buildable:
		BuildDuration: 1000
	Valued:
		Cost: 800

sietch:
	-Explodes@sabotuerDemolition: