World
	GlobalLightingPaletteEffect:
		ExcludePalettes: cursor, chrome, colorpicker, fog, shroud, alpha, effect, green_palette, ra_effect
		Red: 1
		Green: 0.9
		Blue: 1
		Ambient: 0.9
^Palettes:
	PaletteFromFile@units:
		Name: unitpal
		Filename: units.pal
		ShadowIndex: 4
	PaletteFromFile@chrome:
		Name: chrome
		Filename: units.pal
		ShadowIndex: 3
		AllowModifiers: false
	PaletteFromFile@beaconposter:
		Name: beaconposter
		Filename: units.pal
		ShadowIndex: 3
	PaletteFromFile@effect:
		Name: effect
		Filename: units.pal
		ShadowIndex: 4
	PaletteFromFile@green:
		Name: green_palette
		Filename: green.pal
		ShadowIndex: 1
	PaletteFromPaletteWithAlpha@GREENALPHA:
		BasePalette: green_palette
		Name: green_alpha25
		Alpha: 0.25
	PaletteFromFile@blue:
		Name: blue_palette
		Filename: blue.pal
		ShadowIndex: 1
	PaletteFromPaletteWithAlpha@BLUEALPHA:
		BasePalette: blue_palette
		Name: blue_alpha25
		Alpha: 0.25
	PlayerColorPalette:
		BaseName: player
		BasePalette: unitpal
		RemapIndex: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190
	FixedColorPalette@RedTiberium:
		Base: terrain
		Name: redtiberium
		Color: D98662
		RemapIndex: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190
	PaletteFromFile@RA_EFFECT:
		Name: ra_effect
		Filename: sprites/ra/ratemp.pal
		ShadowIndex: 4
		

^MapTiles:
	Inherits@1: ^SpriteActor
	RenderSprites:
		Palette: staticterrain
	WithSpriteBody:
	Building:
		Footprint: __ __
		Dimensions: 2,2
	AlwaysVisible:
	ScriptTriggers:
	MapEditorData:
		Categories: Decay Tiles, Unmodular Tiles

^Tree:
	Tooltip:
		Name: Dead Tree

^TreeHusk:
	Tooltip:
		Name: Dead Tree
	Building:
		Footprint: __ __
		Dimensions: 2,2
	HiddenUnderShroud:
		Type: CenterPosition

^Rock:
	-MapEditorData:

^GlowingCrater:
	Inherits@C: ^Crater
	Tooltip:
		Name: Glowing Crater
	WithIdleOverlay:
		Sequence: glow-overlay
		Palette: green_palette

^TibCrater:
	Inherits@C: ^Crater
	Tooltip:
		Name: Tiberium Crater
	WithIdleOverlay:
		Sequence: tib-overlay
		Palette: green_palette
	SeedsResource:
		ResourceType: Tiberium
		Interval: 440

^Crater:
	Inherits@1: ^SpriteActor
	Interactable:
	Tooltip:
		Name: Crater
		ShowOwnerRow: false
	RenderSprites:
		Palette: staticterrain
	WithSpriteBody:
	Building:
		Footprint: __ xx
		Dimensions: 2,2
	AppearsOnRadar:
	RadarColorFromTerrain:
		Terrain: Tree
	HiddenUnderShroud:
	ScriptTriggers:
	RequiresSpecificOwners:
		ValidOwnerNames: Neutral
	MapEditorData:
		Categories: Decay Tiles

T08.Husk:
	Building:
		Footprint: __

T09.Husk:
	Building:
		Footprint: __

T10.Husk:
	Building:
		Footprint: __ __

T11.Husk:
	Building:
		Footprint: __ __

T15.Husk:
	Building:
		Footprint: ___ ___

TC01.Husk:
	Building:
		Footprint: ___ ___


TC02.Husk:
	Building:
		Footprint: ___ ___


TC03.Husk:
	Building:
		Footprint: ___ ___


TC04.Husk:
	Building:
		Footprint: ____ ____ ____


TC05.Husk:
	Building:
		Footprint: ____ ____ ____

Crater1:
	Inherits: ^Crater

Crater1.glow:
	Inherits: ^GlowingCrater
	RenderSprites:
		Image: crater1

Crater1.tib:
	Inherits: ^TibCrater
	RenderSprites:
		Image: crater1

Crater2:
	Inherits: ^Crater
	Building:
		Footprint: xx
		Dimensions: 2,1

Crater2.glow:
	Inherits: ^GlowingCrater
	Building:
		Footprint: xx
		Dimensions: 2,1
	RenderSprites:
		Image: crater2

Crater2.tib:
	Inherits: ^TibCrater
	Building:
		Footprint: xx
		Dimensions: 2,1
	RenderSprites:
		Image: crater2
Crater3:
	Inherits: ^Crater
	Building:
		Footprint: xx
		Dimensions: 2,1

Crater4:
	Inherits: ^Crater
	Building:
		Footprint: xx
		Dimensions: 2,1

Crater4.tib:
	Inherits: ^TibCrater
	Building:
		Footprint: xx
		Dimensions: 2,1
	RenderSprites:
		Image: crater4

Crater5:
	Inherits: ^Crater
	Building:
		Footprint: xx xx
		Dimensions: 2,2

Crater5.tib:
	Inherits: ^TibCrater
	Building:
		Footprint: xx xx
		Dimensions: 2,2
	RenderSprites:
		Image: crater5

Crater6:
	Inherits: ^Crater
	Building:
		Footprint: xx xx
		Dimensions: 2,2

Crater6.tib:
	Inherits: ^TibCrater
	Building:
		Footprint: xx xx
		Dimensions: 2,2
	RenderSprites:
		Image: crater6

Crater7:
	Inherits: ^Crater
	Building:
		Footprint: xx_ _x_
		Dimensions: 3,2

Crater7.glow:
	Inherits: ^GlowingCrater
	Building:
		Footprint: xx_ _x_
		Dimensions: 3,2
	RenderSprites:
		Image: crater7

Rocks1:
	Inherits: ^Rock
	Building:
		Footprint: xx_ xx_
		Dimensions: 3,2

Rocks2:
	Inherits: ^Rock
	Building:
		Footprint: xx
		Dimensions: 2,1

Rocks3:
	Inherits: ^Rock
	Building:
		Footprint: xx
		Dimensions: 2,1

FACT.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: xxx xxx
		Dimensions: 3,2
	Tooltip:
		Name: Construction Yard (Destroyed)
NUKE.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: xx xx
		Dimensions: 2,2
	Tooltip:
		Name: Powerplant (Destroyed)
NUK2.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: xx xx
		Dimensions: 2,2
	Tooltip:
		Name: Advanced Powerplant (Destroyed)
PYLE.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: xx xx
		Dimensions: 2,2
	Tooltip:
		Name: Barracks (Destroyed)
HAND.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: xx xx
		Dimensions: 2,2
	Tooltip:
		Name: Hand of Nod (Destroyed)
PROC.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: _x_ xxx
		Dimensions: 3,2
	Tooltip:
		Name: Tiberium Refinery (Destroyed)
AFLD.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: xxxx xxxx
		Dimensions: 4,2
	Tooltip:
		Name: Airstrip (Destroyed)
WEAP.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: xxx xxx
		Dimensions: 3,2
	Tooltip:
		Name: Weapons Factory (Destroyed)
HQ.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: xx xx
		Dimensions: 2,2
	Tooltip:
		Name: Communications Center (Destroyed)
HPAD.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: xx xx
		Dimensions: 2,2
	Tooltip:
		Name: Helipad (Destroyed)
FIX.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: _x_ xxx _x_
		Dimensions: 3,3
	Tooltip:
		Name: Repair Pad (Destroyed)
EYE.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: xx xx
		Dimensions: 2,2
	Tooltip:
		Name: Advanced Communications Center (Destroyed)
TMPL.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: xxx xxx
		Dimensions: 3,2
	Tooltip:
		Name: Temple of Nod (Destroyed)
SILO.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: xx
		Dimensions: 2,1
	Tooltip:
		Name: Silo (Destroyed)
GTWR.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: x
		Dimensions: 1,1
	Tooltip:
		Name: Guard Tower (Destroyed)
GUN.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: x
		Dimensions: 1,1
	Tooltip:
		Name: Turret (Destroyed)
SAM.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: xx
		Dimensions: 2,1
	Tooltip:
		Name: SAM (Destroyed)
ATWR.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: x
		Dimensions: 1,1
	Tooltip:
		Name: AdvancedGuard Tower (Destroyed)
OBLI.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: x
		Dimensions: 1,1
	Tooltip:
		Name: Obelisk of Light (Destroyed)
CYCL.Husk:
	Inherits: CYCL
	Health:
		HP: 50
	-Buildable:
BARB.Husk:
	Inherits: BARB
	Health:
		HP: 50
BRIK.Dam:
	Inherits: BRIK
	Health:
		HP: 125
	-Buildable:
BRIK.Husk:
	Inherits: BRIK
	Health:
		HP: 50
	-Buildable:
MISS.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: xxx xxx
		Dimensions: 3,2
	Tooltip:
		Name: Tech Center (Destroyed)

MapTile1:
	Inherits@M: ^MapTiles
MapTile2:
	Inherits@M: ^MapTiles
MapTile3:
	Inherits@M: ^MapTiles
MapTile4:
	Inherits@M: ^MapTiles
MapTile5:
	Inherits@M: ^MapTiles
MapTile6:
	Inherits@M: ^MapTiles
MapTile7:
	Inherits@M: ^MapTiles
MapTile7.glow:
	Inherits@M: ^MapTiles
	RenderSprites:
		Image: maptile7
	WithIdleOverlay:
		Sequence: glow-overlay
		Palette: green_palette
MapTile8:
	Inherits@M: ^MapTiles
MapTile9:
	Inherits@M: ^MapTiles
MapTile11:
	Inherits@M: ^MapTiles
MapTile10:
	Inherits@M: ^MapTiles

InvisibleBlossomTree:
	Inherits@M: ^TibTree
	EditorOnlyTooltip:
		Name: Spawns Tiberium at a rate of ~12.5% of normal blossom trees - is also invisible ingame. Does NOT grow Tiberium on the field it is placed.
	-RenderSprites:
	-Building:
	-WithMakeAnimation:
	Immobile:
		OccupiesSpace: false
	SeedsResource:
		ResourceType: Tiberium
		Interval: 440
	RenderSpritesEditorOnly:
		Image: invisblossom2
	HiddenUnderShroud:
		Type: CenterPosition
	MapEditorData:
		Categories: Decay Tiles, Resource Spawn

InvisibleBlossomTree5:
	Inherits@M: InvisibleBlossomTree
	EditorOnlyTooltip:
		Name: Spawns Tiberium at a rate of ~6.25% of normal blossom trees - is also invisible ingame. Does NOT grow Tiberium on the field it is placed.
	SeedsResource:
		ResourceType: Tiberium
		Interval: 880
	RenderSpritesEditorOnly:
		Image: invisblossom1


InvisibleBlossomTree2:
	Inherits@M: InvisibleBlossomTree
	EditorOnlyTooltip:
		Name: Spawns Tiberium at a rate of ~25% of normal blossom trees - is also invisible ingame. Does NOT grow Tiberium on the field it is placed.
	SeedsResource:
		ResourceType: Tiberium
		Interval: 220
	RenderSpritesEditorOnly:
		Image: invisblossom3

InvisibleBlossomTree3:
	Inherits@M: InvisibleBlossomTree
	EditorOnlyTooltip:
		Name: Spawns Tiberium at a rate of ~50% of normal blossom trees - is also invisible ingame. Does NOT grow Tiberium on the field it is placed.
	SeedsResource:
		ResourceType: Tiberium
		Interval: 110
	RenderSpritesEditorOnly:
		Image: invisblossom4

InvisibleBlossomTree4:
	Inherits@M: InvisibleBlossomTree
	EditorOnlyTooltip:
		Name: Spawns Tiberium at a rate of 100% of normal blossom trees - is also invisible ingame. Does NOT grow Tiberium on the field it is placed.
	SeedsResource:
		ResourceType: Tiberium
		Interval: 55
	RenderSpritesEditorOnly:
		Image: invisblossom5
	
InvisibleBlueBlossomTree5:
	Inherits@M: InvisibleBlossomTree
	EditorOnlyTooltip:
		Name: Spawns blue Tiberium at a rate of ~6.25% of normal blossom trees - is also invisible ingame. Does NOT grow Tiberium on the field it is placed.
	SeedsResource:
		ResourceType: BlueTiberium
		Interval: 1200
	RenderSpritesEditorOnly:
		Image: invisblueblossom1	

InvisibleBlueBlossomTree:
	Inherits@M: InvisibleBlossomTree
	EditorOnlyTooltip:
		Name: Spawns blue Tiberium at a rate of ~12.5% of blue blossom trees - is also invisible ingame. Does NOT grow Tiberium on the field it is placed.
	SeedsResource:
		ResourceType: BlueTiberium
		Interval: 600
	RenderSpritesEditorOnly:
		Image: invisblueblossom2

InvisibleBlueBlossomTree2:
	Inherits@M: InvisibleBlossomTree
	EditorOnlyTooltip:
		Name: Spawns blue Tiberium at a rate of ~25% of blue blossom trees - is also invisible ingame. Does NOT grow Tiberium on the field it is placed.
	SeedsResource:
		ResourceType: BlueTiberium
		Interval: 300
	RenderSpritesEditorOnly:
		Image: invisblueblossom3

InvisibleBlueBlossomTree3:
	Inherits@M: InvisibleBlossomTree
	EditorOnlyTooltip:
		Name: Spawns blue Tiberium at a rate of ~50% of blue blossom trees - is also invisible ingame. Does NOT grow Tiberium on the field it is placed.
	SeedsResource:
		ResourceType: BlueTiberium
		Interval: 150
	RenderSpritesEditorOnly:
		Image: invisblueblossom4

InvisibleBlueBlossomTree4:
	Inherits@M: InvisibleBlossomTree
	EditorOnlyTooltip:
		Name: Spawns blue Tiberium at a rate of 100% of blue blossom trees - is also invisible ingame. Does NOT grow Tiberium on the field it is placed.
	SeedsResource:
		ResourceType: Tiberium
		Interval: 75
	RenderSpritesEditorOnly:
		Image: invisblueblossom5	

SPLITBLUE:
	Inherits: ^TibTree
	SeedsResource:
		ResourceType: BlueTiberium
		Interval: 90
	WithIdleAnimation:
		Interval: 750
	Tooltip:
		Name: Blossom Tree (blue)
	RadarColorFromTerrain:
		Terrain: BlueTiberium
	RenderSprites:
		Image: blueblossom
		Palette: unitpal
	-WithMakeAnimation:

Flotsam:
	Inherits@M: ^MapTiles

^CustomMapTiles:
	Inherits@1: ^SpriteActor
	Interactable:
	RenderSprites:
		Palette: staticterrain
	WithSpriteBody:
	AppearsOnRadar:
	RadarColorFromTerrain:
		Terrain: Tree
	AlwaysVisible:
	ScriptTriggers:
	MapEditorData:
		Categories: Decay Tiles

^CMT_Debris:
	Inherits@CMTBase: ^CustomMapTiles
	Inherits@Size: ^1x1NB
	RadarColorFromTerrain:
		Terrain: Rough
^CMT_Cliffs:
	Inherits@CMTBase: ^CustomMapTiles
	Inherits@Size: ^2x2B
	RadarColorFromTerrain:
		Terrain: Rock
^CMT_Trees:
	Inherits@CMTBase: ^CustomMapTiles
	Inherits@Size: ^1x1B
	RadarColorFromTerrain:
		Terrain: Tree
^CMT_Rivs:
	Inherits@CMTBase: ^CustomMapTiles
	Inherits@Size: ^2x2B
	RadarColorFromTerrain:
		Terrain: River
^CMT_Beach:
	Inherits@CMTBase: ^CustomMapTiles
	Inherits@Size: ^2x2NB
	RadarColorFromTerrain:
		Terrain: Beach
^CMT_Terrain:
	Inherits@CMTBase: ^CustomMapTiles
	Inherits@Size: ^2x2NB
	RadarColorFromTerrain:
		Terrain: Clear
^1x1B:
	Building:
		Footprint: x 
		Dimensions: 1, 1
^1x1NB:
	Building:
		Footprint: _ 
		Dimensions: 1, 1
^1x2B:
	Building:
		Footprint: x x
		Dimensions: 1,2
^1x3B:
	Building:
		Footprint: x x x
		Dimensions: 1,3
^1x3NB:
	Building:
		Footprint: _ _ _
		Dimensions: 1,3
^1x2NB:
	Building:
		Footprint: _ _
		Dimensions: 1,2
^2x1B:
	Building:
		Footprint: xx
		Dimensions: 2,1
^2x1NB:
	Building:
		Footprint: __
		Dimensions: 2,1
^2x2B:
	Building:
		Footprint: xx xx
		Dimensions: 2,2
^2x2NB:
	Building:
		Footprint: __ __
		Dimensions: 2,2
^3x1B:
	Building:
		Footprint: xxx
		Dimensions: 3,1
^3x1NB:
	Building:
		Footprint: ___
		Dimensions: 3,1
^3x2B:
	Building:
		Footprint: xxx xxx
		Dimensions: 3,2
^3x2NB:
	Building:
		Footprint: ___ ___
		Dimensions: 3,2
^2x3B:
	Building:
		Footprint: xx xx xx
		Dimensions: 2,3
^2x3NB:
	Building:
		Footprint: __ __ __
		Dimensions: 2,3
^3x3B:
	Building:
		Footprint: xxx xxx xxx
		Dimensions: 3,3
^3x3NB:
	Building:
		Footprint: ___ ___ ___
		Dimensions: 3,3

2TC_UTB_Riv_LR:
	Inherits@CMT: ^CMT_Cliffs
	Inherits@Size: ^2x2B
2TC_DLR_Riv_BT:
	Inherits@CMT: ^CMT_Cliffs
	Inherits@Size: ^2x2B

#Since I can't think of any better way, how to make resources on custom terrain possible, have some custom buildings.
TibMine:
	Inherits: ^BaseBuilding
	CashTrickler:
		Interval: 500
		Amount: 250
	RenderSprites:
		Image: techsilo
	Valued:
		Cost: 750
	Armor:
		Type: Light
	Tooltip:
		Name: Tiberium Mine
	Buildable:
		BuildPaletteOrder: 150
		Prerequisites: proc
		Description: Generates cash.\nPlacable on tiberium veins, only.
		Queue: Building.GDI, Building.Nod
	Building:
		Footprint: xx xx
		Dimensions: 2,2
		TerrainTypes: Tiberium
	Health:
		HP: 50000
	RevealsShroud:
		Range: 4c0
	Power:
		Amount: -35
	Explodes:
		Weapon: Techsilo.Boom
		EmptyWeapon: Techsilo.Boom
	ThrowsShrapnel@1Ray:
		Weapons: TibRay
		Pieces: 4, 8
		Range: 3072,6144
	ThrowsShrapnel@2Ray:
		Weapons: TibRay
		Pieces: 4, 8
		Range: 3072,6144
	ThrowsShrapnel@3Ray:
		Weapons: TibRay
		Pieces: 4, 8
		Range: 256,3072
	ThrowsShrapnel@4Ray:
		Weapons: TibRay
		Pieces: 4, 8
		Range: 256,3072
	ThrowsShrapnel@5Ray:
		Weapons: TibRay
		Pieces: 4, 8
		Range: 7168,8192
	ThrowsShrapnel@6Ray:
		Weapons: TibRay
		Pieces: 4, 8
		Range: 7168,8192

TibMine.Husk:
	Inherits: ^CivBuildingHusk
	Building:
		Footprint: xx xx
		Dimensions: 2,2
	Tooltip:
		Name: Tiberium Mine(Destroyed)
	RenderSprites:
		Image: techsilo.husk