  
^BaseWorld: 
	PaletteFromFile@cnc:
		Name: cnc
		Filename: temperatcnc.pal
		ShadowIndex: 4
	PlayerColorPalette@cnc:
		BaseName: cnc
		BasePalette: cnc
		RemapIndex: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190
^Vehicle:
    PortableChrono:
        ChargeDelay: 250
            
^Infantry:
    PortableChrono:
        ChargeDelay: 250
        
^Plane:
    PortableChrono:
        ChargeDelay: 250
        
        
DOG:
    -Voiced

SHOK:
    -Voiced
    
GNRL:
    -Voiced   
 
SONAR:
    RevealsShroud:
		Range: 49c0
		Type: CenterPosition
 
alien-inactive-drone:
	Inherits: ^Vehicle
	Valued:
		Cost: 500
	Tooltip:
		Name: Alien inactive drone
	Health:
		HP: 11000
	Armor:
		Type: Light
	Mobile:
		Speed: 0
        TurnSpeed: 0
	RevealsShroud:
		Range: 4c0
    RenderSprites:
        PlayerPalette: cnc
		Image: stnkcnc
    -Targetable
    -Chronoshiftable

alien-inactive-miner-drone:
	Inherits: ^Vehicle
	Valued:
		Cost: 500
	Tooltip:
		Name: Alien inactive drone miner
	Health:
		HP: 11000
	Armor:
		Type: Light
	Mobile:
		Speed: 0
        TurnSpeed: 0
	RevealsShroud:
		Range: 4c0
    RenderSprites:
        PlayerPalette: cnc
		Image: harvcnc
    -Targetable
    -Chronoshiftable
    
alien-working-proc:     
    Inherits: ^TechBuilding
	HitShape:
		Type: Rectangle
			TopLeft: -1536, -512
			BottomRight: 1536, 853
	HitShape@TOP:
		Type: Rectangle
			TopLeft: -512, -1450
			BottomRight: 896, -512
    -Targetable
    Health:
		HP: 62500
	Valued:
		Cost: 1500
	Tooltip:
		Name: Alien Automated ore processor
	Building:
		Footprint: _x_ xxx === ===
		Dimensions: 3,4
		LocalCenterOffset: 0,-512,0
	RevealsShroud:
		Range: 6c0
	WithBuildingBib:
	Refinery:
		DockAngle: 112
		DockOffset: 0,2
		IsDragRequired: True
		DragOffset: -554,512,0
		DragLength: 12
		TickRate: 15
	StoresResources:
		PipColor: Green
		PipCount: 10
		Capacity: 999999
	InfiltrateForCash:
		Percentage: 50
		Types: SpyInfiltrate, ThiefInfiltrate
		Notification: CreditsStolen
	CustomSellValue:
		Value: 500
	FreeActor:
		Actor: alien-miner-drone
		SpawnOffset: 1,2
		Facing: 64
	RenderSprites:
        PlayerPalette: cnc
		Image: proccnc

PROC:
	Buildable:
		Prerequisites: ~fact, anypower, ~techlevel.infonly


alien-miner-drone:
	Inherits: ^Vehicle
	Valued:
		Cost: 1000
	Tooltip:
		Name: Alien drone miner
		GenericName: Harvester
	Selectable:
		DecorationBounds: 36,36
	Harvester:
		Resources: Ore, Gems
		DeliveryBuildings: alien-working-proc
		PipCount: 7
		Capacity: 20
		BaleLoadDelay: 8
		BaleUnloadDelay: 6
		SearchFromProcRadius: 15
		SearchFromHarvesterRadius: 8
	Mobile:
		Speed: 85
	Health:
		HP: 62500
	Repairable:
		HpPerStep: 2537
	Armor:
		Type: Heavy
	RevealsShroud:
		Range: 4c0
	WithHarvestAnimation:
	WithDockingAnimation:
	Explodes:
		Weapon: OreExplosion
	-GpsDot:
	SelectionDecorations:
    -Targetable
    -Chronoshiftable
    RenderSprites:
        PlayerPalette: cnc
		Image: harvcnc



#unkillable bridges

^Bridge:
	Targetable:
		TargetTypes: Bridge
		RequiresForceFire: true

# Beam

^Helicopter:
    Chronoshiftable:

^alien-beam:
    Immobile:
		OccupiesSpace: false
	RenderSprites:
		PlayerPalette: cnc
	WithSpriteBody:
	BodyOrientation:
		QuantizedFacings: 1
	HiddenUnderFog:
		Type: CenterPosition
	Interactable:
	MapEditorData:
		Categories: alien

alien-beam-ne-sw-2x1:
    Inherits: ^alien-beam
	EditorOnlyTooltip:
		Name: beam-ne-sw-2x1
    RenderSprites:
        Image: alien-beam-ne-sw-2x1

alien-beam-nw-se-2x1:
    Inherits: ^alien-beam
	EditorOnlyTooltip:
		Name: beam-nw-se-2x1
    RenderSprites:
        Image: alien-beam-nw-se-2x1
        
alien-beam-ne-sw-1x2:
    Inherits: ^alien-beam
	EditorOnlyTooltip:
		Name: beam-ne-sw-1x2
    RenderSprites:
        Image: alien-beam-ne-sw-1x2

alien-beam-nw-se-1x2:
    Inherits: ^alien-beam
	EditorOnlyTooltip:
		Name: beam-nw-se-1x2
    RenderSprites:
        Image: alien-beam-nw-se-1x2   

alien-beam-sw-ne:
    Inherits: ^alien-beam
	EditorOnlyTooltip:
		Name: beam-sw-ne
    RenderSprites:
        Image: alien-beam-sw-ne
        
alien-beam-nw-se:
    Inherits: ^alien-beam
	EditorOnlyTooltip:
		Name: beam-nw-se
    RenderSprites:
        Image: alien-beam-nw-se
        
alien-beam-w-e:
    Inherits: ^alien-beam
	EditorOnlyTooltip:
		Name: beam-w-e
    RenderSprites:
        Image: alien-beam-w-e
        
alien-beam-n-s:
    Inherits: ^alien-beam
	EditorOnlyTooltip:
		Name: beam-n-s
    RenderSprites:
        Image: alien-beam-n-s


^TechBuilding-alien
    Inherits: ^TreeHusk
    RenderSprites:
        PlayerPalette: cnc
        -Palette 
    MapEditorData:
		Categories: alien
    
^alien-1x1:
    Inherits: ^TechBuilding-alien
    Building:
		Footprint: x
		Dimensions: 1,1
	RenderSprites:
        PlayerPalette: cnc
        
aproc:
    Inherits: ^TechBuilding-alien
    Tooltip:
        Name: Alien proc
	Building:
		Footprint: _x_ xxx === ===
		Dimensions: 3,4
		LocalCenterOffset: 0,-512,0
	HitShape:
		Type: Rectangle
			TopLeft: -1536, -512
			BottomRight: 1536, 853
	HitShape@TOP:
		Type: Rectangle
			TopLeft: -512, -1450
			BottomRight: 896, -512
	RenderSprites:
        PlayerPalette: cnc
        Image: aproc
   
alien-temple:
    Inherits: ^TechBuilding-alien
    Tooltip:
        Name: Alien temple
	Building:
		Footprint: xxx xxx xxx 
		Dimensions: 3,3
	RenderSprites:
        PlayerPalette: cnc
   
alien-half-low-prowc:
    Inherits: ^TechBuilding-alien
    Tooltip:
        Name: Alien ore processor
	Building:
		Footprint: _x_ xxx === ===
		Dimensions: 3,4
		LocalCenterOffset: 0,-512,0
	HitShape:
		Type: Rectangle
			TopLeft: -1536, -512
			BottomRight: 1536, 853
	HitShape@TOP:
		Type: Rectangle
			TopLeft: -512, -1450
			BottomRight: 896, -512
	RenderSprites:
        PlayerPalette: cnc
        Image: ahlproc

alien-half-high-proc:
    Inherits: ^TechBuilding-alien
    Tooltip:
        Name: Alien ore processor
	Building:
		Footprint: _x_ xxx === ===
		Dimensions: 3,4
		LocalCenterOffset: 0,-512,0
	HitShape:
		Type: Rectangle
			TopLeft: -1536, -512
			BottomRight: 1536, 853
	HitShape@TOP:
		Type: Rectangle
			TopLeft: -512, -1450
			BottomRight: 896, -512
	RenderSprites:
        PlayerPalette: cnc
        Image: ahhproc


ahproc2:
    Inherits: ^TechBuilding-alien
    Tooltip:
        Name: Alien ore processor
	Building:
		Footprint: _x_ xxx === ===
		Dimensions: 3,4
		LocalCenterOffset: 0,-512,0
	HitShape:
		Type: Rectangle
			TopLeft: -1536, -512
			BottomRight: 1536, 853
	HitShape@TOP:
		Type: Rectangle
			TopLeft: -512, -1450
			BottomRight: 896, -512
	RenderSprites:
        PlayerPalette: cnc
        Image: ahproc2  
        
alien-flooded-miner:
    Inherits: ^TechBuilding-alien
    Tooltip:
        Name: Alien drone miner
	Building:
		Footprint: x
		Dimensions: 1,1
		LocalCenterOffset: 0,-512,0
	RenderSprites:
        PlayerPalette: cnc
        Image: aharv-lava
        
alien-flooded-miner2:
    Inherits: ^TechBuilding-alien
    Tooltip:
        Name: Alien drone miner
	Building:
		Footprint: x
		Dimensions: 1,1
		LocalCenterOffset: 0,-512,0
	RenderSprites:
        PlayerPalette: cnc
        Image: aharv-lava2        
 
alien-bubble1:
    Inherits: ^alien-1x1
    Tooltip:
        Name: alien-bubble1
        
alien-bubble2:
    Inherits: ^alien-1x1
    Tooltip:
        Name: alien-bubble2
        
alien-bubble3:
    Inherits: ^alien-1x1
    Tooltip:
        Name: alien-bubble3
 
alien-pod1:
    Inherits: ^alien-1x1
    Tooltip:
        Name: alien pod1

        
alien-pod2:
    Inherits: ^alien-1x1
    Tooltip:
        Name: alien pod2

        
alien-pod3:
    Inherits: ^alien-1x1
    Tooltip:
        Name: alien pod3

        
alien-pod4:
    Inherits: ^alien-1x1
    Tooltip:
        Name: alien pod4

        
alien-pod5:
    Inherits: ^alien-1x1
    Tooltip:
        Name: alien pod45
        
alien-pod6:
    Inherits: ^alien-1x1
    Tooltip:
        Name: alien pod6

        
alien-pod7:
    Inherits: ^alien-1x1
    Tooltip:
        Name: alien pod7

alien-pylon1:
    Inherits: ^alien-1x1
    Tooltip:
        Name: alien pylon1

alien-pylon2:
    Inherits: ^alien-1x1
    Tooltip:
        Name: alien pylon2

alien-pylon3:
    Inherits: ^alien-1x1
    Tooltip:
        Name: alien pylon3

alien-pylon4:
    Inherits: ^alien-1x1
    Tooltip:
        Name: alien pylon4

alien-pylon5:
    Inherits: ^alien-1x1
    Tooltip:
        Name: alien pylon5


         
        
alien-landing-zone1:
    Inherits: ^TechBuilding-alien
    Tooltip:
        Name: Alien landing zone
	Building:
		Footprint: xxx xxx 
		Dimensions: 3,2
		LocalCenterOffset: 0,-512,0
	RenderSprites:
        PlayerPalette: cnc
        
alien-landing-zone2:
    Inherits: ^TechBuilding-alien
    Tooltip:
        Name: Alien landing zone
	Building:
		Footprint: xxx xxx 
		Dimensions: 3,2
		LocalCenterOffset: 0,-512,0
	RenderSprites:
        PlayerPalette: cnc
  
alien-flooded-landing-zone:
    Inherits: ^TechBuilding-alien
    Tooltip:
        Name: Alien flooded landing zone
	Building:
		Footprint: xxx xxx 
		Dimensions: 3,2
		LocalCenterOffset: 0,-512,0
	RenderSprites:
        PlayerPalette: cnc
		Image: alien-landing-zone3
        
alien-pylon-anim:
    Inherits: ^TechBuilding-alien
    Tooltip:
        Name: alien-pylon-anim
	Building:
		Footprint: _ x 
		Dimensions: 1,2
	RenderSprites:
        PlayerPalette: cnc
        
powerproxy.sonarpulse:
	AlwaysVisible:
	SpawnActorPower:
		Icon: sonar
		Description: Alien data downlink
		LongDesc: Update the map with all building positions every 2 minutes with data from alien satellite network.
		ChargeInterval: 750
		EndChargeSpeechNotification: SonarPulseReady
		SelectTargetSpeechNotification: SelectTarget
		Actor: sonar
		LifeTime: 1
		DeploySound: sonpulse.aud
		EffectImage: moveflsh
		EffectPalette: moveflash
		SupportPowerPaletteOrder: 80        

alien-lava-processor:
    Inherits: BIO
    Tooltip:
		Name: Alien lava processor
	TooltipDescription@ally:
		Description: Provides additional funds.
	TooltipDescription@other:
		Description: Capture to receive additional funds.
    Building:
		Footprint: xx xx 
		Dimensions: 2,2
		LocalCenterOffset: 0,-512,0
    CashTrickler:
		Interval: 375
		Amount: 100
    Explodes:
		Weapon: BarrelExplode
	GpsDot:
		String: Oil
	GivesCashOnCapture:
		Amount: 100
    Health:
		HP: 80000
    RenderSprites:
        PlayerPalette: cnc
        Image: alien-lava-processor
    WithDeathAnimation:
        DeathSequencePalette: cnc
    SpawnActorOnDeath:
        Actor: alien-lava-processor-husk
        OwnerType: InternalName

alien-lava-processor-husk:
	Inherits: ^TechBuilding
	Inherits@shape: ^2x2Shape
	HitShape:
		UseTargetableCellsOffsets: false
		TargetableOffsets: 0,0,0, 840,0,0, 840,-1024,0, 420,768,0, -840,0,0, -840,-1024,0, -840,1024,0
	SelectionDecorations:
	WithSpriteControlGroupDecoration:
	Selectable:
		Priority: 3
	Building:
		Footprint: xx xx 
		Dimensions: 2,2
		LocalCenterOffset: 0,-512,0
	Health:
		HP: 60000
	Burns:
		Damage: 100
	DamageMultiplier
		Modifier: 0
	Targetable:
		TargetTypes: Ground, Structure
	RevealsShroud:
		Range: 10c0
		RevealGeneratedShroud: False
	RevealsShroud@GAPGEN:
		Range: 6c0
	Armor:
		Type: Wood
	Tooltip:
		Name: Alien lava processor (damaged)
	TooltipDescription@ally:
		Description: Can be repaired to provide income.
		ValidStances: Ally
	TooltipDescription@other:
		Description: Can be repaired to provide income.
		ValidStances: Neutral, Enemy
	CaptureManager:
	Capturable:
		Types: building
	CapturableProgressBar:
	CapturableProgressBlink:
	EngineerRepairable:
	TransformOnCapture:
		IntoActor: alien-lava-processor
		ForceHealthPercentage: 25
	GpsDot:
		String: Communications
	RenderSprites:
        PlayerPalette: cnc
	
alien-orbital:
	Inherits: ^TechBuilding
	Inherits@shape: ^3x2Shape
	HitShape:
		UseTargetableCellsOffsets: false
		TargetableOffsets: 0,0,0, 840,0,0, 840,-1024,0, 420,768,0, -840,0,0, -840,-1024,0, -840,1024,0
	Selectable:
		Priority: 0
		Bounds: 72,48
	OwnerLostAction:
		Action: ChangeOwner
	Building:
		Footprint: xx xx ==
		Dimensions: 3,2
		LocalCenterOffset: 0,-512,0
	Health:
		HP: 60000
	RevealsShroud:
		MinRange: 6c0
		Range: 1c0
		RevealGeneratedShroud: False
	RevealsShroud@GAPGEN:
		Range: 1c0    
    SpawnActorPower@sonar:
        Icon: sonar
        Description: alien satellite downlink
        LongDesc: Update the map with all building positions every 2 minutes with data from alien orbital satellite network.
        ChargeInterval: 4000
        EndChargeSpeechNotification: SonarPulseReady
        SelectTargetSpeechNotification: SelectTarget
        Actor: sonar
        LifeTime: 25
        DeploySound: sonpulse.aud
        EffectImage: moveflsh
        EffectPalette: moveflash
        AllowMultiple: True
    SupportPowerChargeBar:
	Armor:
		Type: Wood
	Tooltip:
		Name: Alien Teleporter
	TooltipDescription@ally:
		Description: Provides alien Teleportation.
		ValidStances: Ally
	TooltipDescription@other:
		Description: Capture to get alien Teleportation.
		ValidStances: Neutral, Enemy
	CaptureManager:
	Capturable:
		Types: building
	CapturableProgressBar:
	CapturableProgressBlink:
	EngineerRepairable:
	WithDeathAnimation:
		DeathSequence: dead
		UseDeathTypeSuffix: false
	ProvidesPrerequisite@buildingname:
	AppearsOnMapPreview:
    SpawnActorOnDeath:
        Actor: alien-orbital-husk
        OwnerType: InternalName
	GpsDot:
		String: Communications
    RenderSprites:
        PlayerPalette: cnc
        
alien-orbital-husk:
	Inherits: ^TechBuilding
	Inherits@shape: ^3x2Shape
	HitShape:
		UseTargetableCellsOffsets: false
		TargetableOffsets: 0,0,0, 840,0,0, 840,-1024,0, 420,768,0, -840,0,0, -840,-1024,0, -840,1024,0
	SelectionDecorations:
	WithSpriteControlGroupDecoration:
	Selectable:
		Priority: 3
	Building:
		Footprint: xx xx ==
		Dimensions: 3,2
		LocalCenterOffset: 0,-512,0
	Health:
		HP: 60000
	Burns:
		Damage: 100
	DamageMultiplier
		Modifier: 0
	Targetable:
		TargetTypes: Ground, Structure
	RevealsShroud:
		Range: 10c0
		RevealGeneratedShroud: False
	RevealsShroud@GAPGEN:
		Range: 6c0
	Armor:
		Type: Wood
	Tooltip:
		Name: Alien Teleporter (damaged)
	TooltipDescription@ally:
		Description: Can be repaired to provide Alien Teleportation.
		ValidStances: Ally
	TooltipDescription@other:
		Description: Can be repaired to provide Alien Teleportation.
		ValidStances: Neutral, Enemy
	CaptureManager:
	Capturable:
		Types: building
	CapturableProgressBar:
	CapturableProgressBlink:
	EngineerRepairable:
	TransformOnCapture:
		IntoActor: alien-orbital
		ForceHealthPercentage: 25
	GpsDot:
		String: Communications
	RenderSprites:
        PlayerPalette: cnc