DOME:
	Inherits: outpost
	Inherits@shape: ^2x2Shape
	HitShape:
		UseTargetableCellsOffsets: false
		TargetableOffsets: 0,0,0, 630,-384,0, 630,384,0, -700,-512,0, -700,512,0
	Buildable:
		IconPalette: ra
	Valued:
		Cost: 1800
	Tooltip:
		Name: Radar Dome
	Selectable:
		Bounds: 64,64
	Building:
		Footprint: xx xx ==
		Dimensions: 2,3
		LocalCenterOffset: 0,-512,0
	Health:
		HP: 30000
	RevealsShroud:
		Range: 8c0
	WithBuildingBib:
		Palette: ra
	DetectCloaked:
		Range: 8c0
	RenderDetectionCircle:
	Power:
		Amount: -40
	RenderSprites:
		Image: dome
		PlayerPalette: raplayer
		Scale: 1.3333
		FactionImages:
			atreides: dome
			fremen: dome
			harkonnen: dome
			corrino: dome
	EngineerRepairable:
	SpawnActorsOnSell:
		ActorTypes: e1
	-WithIdleOverlay@DISH:
	-GrantConditionOnDamageState@STOPDISH:
	-ThrowsShrapnel:
	-WithCrumbleOverlay:
	HitShape:
	RequiresBuildableArea:
		AreaTypes: building

BRIK:
	Inherits: wall
	Buildable:
		IconPalette: ra
	Valued:
		Cost: 100
	SoundOnDamageTransition:
		DamagedSounds: crmble2.aud
		DestroyedSounds: kaboom30.aud
	LineBuild:
		Range: 8
		NodeTypes: concrete
	LineBuildNode:
		Types: concrete
	WithWallSpriteBody:
		Type: concrete
	RenderSprites:
		PlayerPalette: raplayer
		Scale: 1.3333
	-ThrowsShrapnel:

PDOX:
	Inherits: ^Building
	Inherits@shape: ^2x2Shape
	Valued:
		Cost: 1500
	Tooltip:
		Name: Chronosphere
	Building:
		Footprint: xx xx
		Dimensions: 2,2
	Selectable:
		Bounds: 64,64
	Health:
		HP: 100000
	Armor:
		Type: Wood
	RevealsShroud:
		Range: 4c768
	-ThrowsShrapnel:
	-RepairableBuilding:
	-WithBuildingRepairDecoration:
	-Sellable:
	-AcceptsDeliveredCash:
	-WithCrumbleOverlay:
	WithBuildingBib:
		Palette: ra
		HasMinibib: Yes
	MustBeDestroyed:
		RequiredForShortGame: false
	RenderSprites:
		PlayerPalette: raplayer
		Scale: 1.3333
	HitShape:
	RequiresBuildableArea:
		AreaTypes: building

SILO2:
	Inherits: silo
	Buildable:
		IconPalette: ra
	Tooltip:
		Name: Ore Silo
	Selectable:
		Bounds: 32,32
	EngineerRepairable:
	WithBuildingBib:
		Palette: ra
		HasMinibib: Yes
	RenderSprites:
		Image: silo2
		PlayerPalette: raplayer
		Scale: 1.3333
		FactionImages:
			atreides: silo2
			fremen: silo2
			harkonnen: silo2
			corrino: silo2
	-ThrowsShrapnel:
	-WithCrumbleOverlay:

POWR:
	Inherits: wind_trap
	Inherits@shape: ^2x2Shape
	HitShape:
		UseTargetableCellsOffsets: false
		TargetableOffsets: 0,0,0, 640,-384,0, 640,512,0, -710,-512,0, -710,512,0
	Buildable:
		IconPalette: ra
	Tooltip:
		Name: Power Plant
	EngineerRepairable:
	WithBuildingBib:
		Palette: ra
	RenderSprites:
		Image: powr
		PlayerPalette: raplayer
		Scale: 1.3333
		FactionImages:
			atreides: powr
			fremen: powr
			harkonnen: powr
			corrino: powr
	Selectable:
		Bounds: 64,64
	Power:
		Amount: 100
	SpawnActorsOnSell:
		ActorTypes: e1
	-WithIdleOverlay@ZAPS:
	-ThrowsShrapnel:
	-WithCrumbleOverlay:

APWR:
	Inherits: POWR
	Inherits@shape: ^3x2Shape
	HitShape:
		TargetableOffsets: -355,-1024,0
	Buildable:
		IconPalette: ra
	EngineerRepairable:
	Valued:
		Cost: 400
	Tooltip:
		Name: Advanced Power Plant
	Building:
		Footprint: xxx Xxx ===
		Dimensions: 3,3
		LocalCenterOffset: 0,-512,0
	Selectable:
		Bounds: 96,64
		DecorationBounds: 96,90,0,-13
	SelectionDecorations:
	Health:
		HP: 45000
	RevealsShroud:
		Range: 4c768
	Power:
		Amount: 200
	RenderSprites:
		Image: apwr
		PlayerPalette: raplayer
		Scale: 1.3333
		FactionImages:
			atreides: apwr
			fremen: apwr
			harkonnen: apwr
			corrino: apwr
	HitShape:
	RequiresBuildableArea:
		AreaTypes: building

TENT:
	Inherits: barracks
	Inherits@shape: ^2x2Shape
	HitShape:
		UseTargetableCellsOffsets: false
		TargetableOffsets: 0,0,0, 630,-512,0, 355,512,0, -281,-512,0, -630,512,0
	Buildable:
		IconPalette: ra
	Tooltip:
		Name: Allied Barracks
	EngineerRepairable:
	WithBuildingBib:
		Palette: ra
	Exit@1:
		SpawnOffset: -42,810,0
		ExitCell: 1,2
	Exit@2:
		SpawnOffset: -725,640,0
		ExitCell: 0,2
	-ProvidesPrerequisite@atreides:
	-ProvidesPrerequisite@ordos:
	-ProvidesPrerequisite@harkonnen:
	-ThrowsShrapnel:
	-WithCrumbleOverlay:
	Selectable:
		Bounds: 64,64
	SpawnActorsOnSell:
		ActorTypes: e1
	Power:
		Amount: -20
	ProvidesPrerequisite@buildingname:
	RenderSprites:
		Image: tent
		PlayerPalette: raplayer
		Scale: 1.3333
		FactionImages:
			atreides: tent
			fremen: tent
			harkonnen: tent
			corrino: tent

WEAP:
	Inherits: heavy_factory
	Inherits@shape: ^3x2Shape
	HitShape:
		UseTargetableCellsOffsets: true
		TargetableOffsets:
	-HitShape@TOP:
	Buildable:
		IconPalette: ra
	Tooltip:
		Name: War Factory
	Building:
		Footprint: xxx xxx ===
		Dimensions: 3,3
		LocalCenterOffset: 0,-512,0
	WithProductionDoorOverlay:
		Sequence: build-top
		RequiresCondition: !build-incomplete
	Selectable:
		Bounds: 96,64
		DecorationBounds: 96,64
	SelectionDecorations:
	EngineerRepairable:
	WithBuildingBib:
		Palette: ra
	Exit@1:
		SpawnOffset: 213,-128,0
		ExitCell: 1,2
	-ProvidesPrerequisite@atreides:
	-ProvidesPrerequisite@ordos:
	-ProvidesPrerequisite@harkonnen:
	-ProvidesPrerequisite@atreides_combat:
	-ProvidesPrerequisite@ordos_combat:
	-ProvidesPrerequisite@harkonnen_combat:
	-ProvidesPrerequisite@missile_tank:
	SpawnActorsOnSell:
		ActorTypes: e1
	Power:
		Amount: -30
	-WithProductionOverlay@WELDING:
	-WithIdleOverlay@TOP:
	-WithCrumbleOverlay:
	-ThrowsShrapnel:
	ProvidesPrerequisite@buildingname:
	RenderSprites:
		Image: weap
		PlayerPalette: raplayer
		Scale: 1.3333
		FactionImages:
			atreides: weap
			fremen: weap
			harkonnen: weap
			corrino: weap
	RequiresBuildableArea:
		AreaTypes: building

PROC:
	Inherits: refinery
	HitShape:
		Type: Rectangle
			TopLeft: -1536, -512
			BottomRight: 1536, 598
	HitShape@TOP:
		TargetableOffsets: 1680,0,0
		Type: Rectangle
			TopLeft: -512, -1536
			BottomRight: 512, -512
	HitShape@BOTTOM:
		TargetableOffsets: -1260,-1024,0
		Type: Rectangle
			TopLeft: -1536, 598
			BottomRight: -512, 1280
	Tooltip:
		Name: Ore Refinery
	Buildable:
		IconPalette: ra
	Building:
		Footprint: _x_ xxx x== ===
		Dimensions: 3,4
		LocalCenterOffset: 0,-512,0
	Selectable:
		Bounds: 96,66,0,16
		DecorationBounds: 96,92,0,-3
	SelectionDecorations:
	EngineerRepairable:
	WithBuildingBib:
		Palette: ra
	Refinery:
		DockAngle: 64
		DockOffset: 1,2
	StoresResources:
		PipCount: 17
		Capacity: 1000
	DrawLineToTarget:
	-WithDockedOverlay@SMOKE:
	-FreeActorWithDelivery:
	-WithCrumbleOverlay:
	-ThrowsShrapnel:
	SpawnActorsOnSell:
		ActorTypes: e1
	FreeActor:
		Actor: HARV
		SpawnOffset: 1,2
		Facing: 64
	Power:
		Amount: -30
	ProvidesPrerequisite@buildingname:
	RenderSprites:
		Image: proc
		PlayerPalette: raplayer
		Scale: 1.3333
		FactionImages:
			atreides: proc
			fremen: proc
			harkonnen: proc
			corrino: proc
	RequiresBuildableArea:
		AreaTypes: building

GUN:
	Inherits: medium_gun_turret
	Inherits@AUTOTARGET: ^AutoTargetGround
	Tooltip:
		Name: Turret
	Buildable:
		IconPalette: ra
	EngineerRepairable:
	WithBuildingBib:
		Palette: ra
		HasMinibib: true
	-WithWallSpriteBody:
	-WithSpriteTurret:
	-LineBuildNode:
	-ThrowsShrapnel:
	SpawnActorsOnSell:
		ActorTypes: e1
	WithEmbeddedTurretSpriteBody:
	WithMakeAnimation:
	Selectable:
		Bounds: 32,32
		DecorationBounds: 32,32
	SelectionDecorations:
	Armament:
		Weapon: TurretGun
		LocalOffset: 512,0,112
		MuzzlePalette: ra
	Power:
		Amount: -40
	RenderSprites:
		PlayerPalette: raplayer
		Scale: 1.3333

AGUN:
	Inherits: large_gun_turret
	Inherits@AUTOTARGET: ^AutoTargetAir
	Tooltip:
		Name: AA Gun
	EngineerRepairable:
	Buildable:
		IconPalette: ra
	Selectable:
		Bounds: 32,32
		DecorationBounds: 32,36,0,-4
	SelectionDecorations:
	WithBuildingBib:
		Palette: ra
		HasMinibib: true
	Turreted:
		TurnSpeed: 15
		InitialFacing: 224
	-WithWallSpriteBody:
	-WithSpriteTurret:
	-LineBuildNode:
	-ThrowsShrapnel:
	SpawnActorsOnSell:
		ActorTypes: e1
	WithEmbeddedTurretSpriteBody:
	WithMakeAnimation:
	Armament:
		Weapon: ZSU-23
		LocalOffset: 520,100,450, 520,-150,450
		MuzzlePalette: ra
	Power:
		Amount: -50
	RenderSprites:
		PlayerPalette: raplayer
		Scale: 1.3333

HBOX:
	Inherits: medium_gun_turret
	Inherits@AUTOTARGET: ^AutoTargetGround
	Tooltip:
		Name: Camo Pillbox
	EngineerRepairable:
	Buildable:
		IconPalette: ra
	Turreted:
		TurnSpeed: 255
	-QuantizeFacingsFromSequence:
	-WithSpriteTurret:
	-LineBuildNode:
	-ThrowsShrapnel:
	WithMakeAnimation:
	SpawnActorsOnSell:
		ActorTypes: e1
	BodyOrientation:
		QuantizedFacings: 8
	Selectable:
		Bounds: 32,24
		DecorationBounds: 32,24
	SelectionDecorations:
	Armament:
		Weapon: HMGo
		LocalOffset: 432,150,-30, 432,-150,-30
		MuzzlePalette: ra
	Cloak:
		InitialDelay: 125
		CloakDelay: 60
		Palette: racloak
		IsPlayerPalette: true
	Power:
		Amount: -15
	-MustBeDestroyed:
	RenderSprites:
		PlayerPalette: raplayer
		Scale: 1.3333

research_centre:
	Targetable:
		TargetTypes: Ground, C4, Structure, SpyInfiltrate

outpost:
	ProvidesRadar:
		RequiresCondition: !jammed && !disabled
	ExternalCondition@JAMMED:
		Condition: jammed

light_factory:
	ProvidesPrerequisite@raiders:
		Prerequisite: light.raiders
		Factions: ordos, smuggler

heavy_factory:
	ProvidesPrerequisite@smuggler:
		Prerequisite: heavy.smuggler
		Factions: smuggler

starport:
	ProvidesPrerequisite@smuggler:
		Prerequisite: starport.smuggler
		Factions: smuggler
