^NeutralBuilding:
	Inherits@1: ^ExistsInWorld
	Inherits@2: ^SpriteActor
	Huntable:
	Interactable:
	HitShape:
		UseTargetableCellsOffsets: true
		Type: Rectangle
			TopLeft: -896, -896
			BottomRight: 896, 896
	Building:
		Dimensions: 1,1
		Footprint: x
		TerrainTypes: Rock, Concrete, Sand
		BuildSounds: BUILD1.WAV
	Health:
		HP: 25000
	Armor:
		Type: building
	Tooltip:
		Name: Neutral Building
		GenericVisibility: None
	FrozenUnderFog:
	MapEditorData:
		Categories: Neutral building
	Targetable:
		TargetTypes: Ground, Structure
		RequiresForceFire: true
	FireWarheadsOnDeath:
		Type: Footprint
		Weapon: BuildingExplode
		EmptyWeapon: BuildingExplode
	WithSpriteBody:
	FireProjectilesOnDeath@1:
		Weapons: derbisRock01, derbisRock02, derbisRock03
		Pieces: 0, 2
		Range: 1c0, 4c0
	FireProjectilesOnDeath@2:
		Weapons: derbisRock01, derbisRock02, derbisRock03
		Pieces: 1, 4
		Range: 0c512, 2c0
	FireProjectilesOnDeath:
		Weapons: Debris, Debris2, Debris3, Debris4
		Pieces: 1, 3
		Range: 1c256, 3c0
	Crushable:
		CrushClasses: wall
	FireWarheadsOnDeath:
		Type: CenterPosition
		Weapon: cliffExplode01
		EmptyWeapon: cliffExplode01
	ExternalCondition@vulnerable:
		Condition: vulnerable
	DamageMultiplier@vulnerable:
		Modifier: 125
		RequiresCondition: vulnerable
	ExternalCondition@jammed:
		Condition: jammed
	RevealsShroudMultiplier@jammed:
		RequiresCondition: jammed
		Modifier: 50
	DetectCloakedMultiplier@jammed:
		RequiresCondition: jammed
		Modifier: 0
	RevealOnDeath:
		Duration: 25
		Radius: 3c768
	WithColoredOverlay@vulnerable:
		Color: FF2C2C7D
		RequiresCondition: vulnerable
	WithColoredOverlay@black:
		Color: 3E202080
		RequiresCondition: jammed

^NeutralBuildingCapturable:
	Inherits@1: ^ExistsInWorld
	Inherits@2: ^SpriteActor
	Inherits@selection: ^SelectableBuilding
	FrozenUnderFog:
	WithSpriteBody:
	Huntable:
	HitShape:
		UseTargetableCellsOffsets: true
		Type: Rectangle
			TopLeft: -896, -896
			BottomRight: 896, 896
	D2kBuilding:
		Dimensions: 2,2
		Footprint: xx xx
		TerrainTypes: Rock, Concrete
		BuildSounds: BUILD1.WAV
	Health:
		HP: 25000
	Armor:
		Type: building
	MapEditorData:
		Categories: Neutral building Capturable
	Targetable:
		TargetTypes: Ground, C4, Structure
		RequiresForceFire: false
	CaptureManager:
	RevealsShroud:
		Range: 4c002
	Capturable:
		Types: building
	FireWarheadsOnDeath:
		Type: Footprint
		Weapon: BuildingExplode
		EmptyWeapon: BuildingExplode
	InstantlyRepairable:
	RepairableBuilding:
		RepairStep: 500
		PlayerExperience: 5
		RepairingNotification: Repairing
	Demolishable:
	RevealOnDeath:
		Duration: 100
		Radius: 4c768
	WithBuildingRepairDecoration:
		Image: allyrepair
		Sequence: repair
		Position: Center
		Palette: player
		IsPlayerPalette: True
	OwnerLostAction:
		Action: ChangeOwner
	FireProjectilesOnDeath:
		Weapons: Debris, Debris2, Debris3, Debris4
		Pieces: 2, 5
		Range: 1c512, 4c0
	FireWarheadsOnDeath:
		Type: Footprint
		Weapon: BuildingExplode
		EmptyWeapon: BuildingExplode
	SoundOnDamageTransition:
		DamagedSounds: EXPLSML1.WAV
		DestroyedSounds: EXPLHG1.WAV
	ExternalCondition@vulnerable:
		Condition: vulnerable
	DamageMultiplier@vulnerable:
		Modifier: 125
		RequiresCondition: vulnerable
	ExternalCondition@jammed:
		Condition: jammed
	RevealsShroudMultiplier@jammed:
		RequiresCondition: jammed
		Modifier: 50
	DetectCloakedMultiplier@jammed:
		RequiresCondition: jammed
		Modifier: 0
	RevealOnDeath:
		Duration: 25
		Radius: 3c768
	WithColoredOverlay@vulnerable:
		Color: FF2C2C7D
		RequiresCondition: vulnerable
	WithColoredOverlay@black:
		Color: 3E202080
		RequiresCondition: jammed

crane:
	Inherits: ^NeutralBuildingCapturable
	Tooltip:
		Name: Crane
	WithBuildingBib:
	Power:
		Amount: 0
	Health:
		HP: 50000
	Armor:
		Type: building
	HitShape:
		Type: Rectangle
			TopLeft: -896, -896
			BottomRight: 896, 896
	RevealsShroud:
		Range: 4c002
	GivesBuildableArea:
		AreaTypes: building
	RenderSprites:
		
		Image: crane.ordos
		FactionImages:
			atreides: crane.ordos
			harkonnen: crane.ordos
			fremen: crane.ordos
			corrino: crane.ordos
			smuggler: crane.ordos
			mercenary: crane.ordos
	WithIdleOverlay@ZAPS:
		Sequence: idle-zaps
	Tooltip:
		Name: Crane
	ProvidesPrerequisite:
		Prerequisite: bonus.crane
	TooltipDescription:
		Description: Reduces the cost of all buildings. Provides buildable area.

spice_sifter:
	Inherits: ^NeutralBuildingCapturable
	Inherits@IDISABLE: ^DisableOnLowPower
	Power:
		Amount: 0
	Health:
		HP: 50000
	Armor:
		Type: building
	WithBuildingBib:
	D2kBuilding:
		Dimensions: 2,2
		Footprint: xx xx
		TerrainTypes: Rock, Concrete
		BuildSounds: BUILD1.WAV
	Tooltip:
		Name: Spice sifter
	TooltipDescription:
		Description: Provides Passive income. Requires power and no damage to operate.
	CashTrickler:
		Interval: 75
		Amount: 25
		PauseOnCondition: lowpower || disabled
		UseResourceStorage: True
	CashTricklerMultiplier:
		Modifier: 0
		RequiresCondition: damaged
	CashTricklerBar:
	WithIdleOverlay:
		RequiresCondition: !damaged
		PauseOnCondition: disabled
	GrantConditionOnDamageState@DAMAGED:
		Condition: damaged
		ValidDamageStates: Heavy, Critical
	FireWarheadsOnDeath:
		Type: Footprint
		Weapon: BuildingExplode
		EmptyWeapon: BuildingExplode
	FireProjectilesOnDeath@spice:
		Weapons: HarvesterSpiceExplosion
		Pieces: 1, 5
		Range: 5c0, 10c0
	RevealsShroud:
		Range: 3c002

radar_station:
	Inherits: ^NeutralBuildingCapturable
	Inherits@IDISABLE: ^DisableOnLowPowerOrPowerDown
	Tooltip:
		Name: Radar Station
	TooltipDescription:
		Description: Detects invisible units at great range. Provides buildable area.
	Power:
		Amount: -75
	WithBuildingBib:
	HitShape:
		Type: Rectangle
			TopLeft: -1408, -896
			BottomRight: 1408, 896
	Health:
		HP: 50000
	RenderSprites:
		Image: radar_station
		FactionImages:
			atreides: radar_station
			harkonnen: radar_station
			fremen: radar_station
			corrino: radar_station
			smuggler: radar_station
			mercenary: radar_station
	D2kBuilding:
		Dimensions: 3,2
		Footprint: xxx xxx
		TerrainTypes: Rock, Concrete
		BuildSounds: BUILD1.WAV
	WithIdleOverlay@DISH:
		RequiresCondition: !damaged
		Sequence: idle-dish
		PauseOnCondition: disabled
	GrantConditionOnDamageState@DAMAGED:
		Condition: damaged
		ValidDamageStates: Heavy, Critical
	FireWarheadsOnDeath:
		Type: Footprint
		Weapon: BuildingExplode
		EmptyWeapon: BuildingExplode
	GivesBuildableArea:
		AreaTypes: building
	RevealsShroud:
		Range: 9c768
		RequiresCondition: !disabled
	RevealsShroud@lowpower:
		Range: 4c768
		RequiresCondition: disabled
	DetectCloaked:
		Range: 8c768
		RequiresCondition: !disabled
	WithRangeCircle:
		Range: 8c768
		RequiresCondition: !disabled

radar_station_small:
	Inherits: ^NeutralBuildingCapturable
	Tooltip:
		Name: Radar Post
	TooltipDescription:
		Description: Detects invisible units at great range. Does not need energy.
	Power:
		Amount: 0
	WithBuildingBib:
	HitShape:
		UseTargetableCellsOffsets: true
		Type: Rectangle
			TopLeft: -896, -896
			BottomRight: 896, 896
	D2kBuilding:
		Dimensions: 2,2
		Footprint: xx xx
		TerrainTypes: Rock, Concrete
		BuildSounds: BUILD1.WAV
	Health:
		HP: 50000
	RenderSprites:
		Image: radar_station_small
	WithIdleOverlay@DISH:
		Sequence: idle-top
	FireWarheadsOnDeath:
		Type: Footprint
		Weapon: BuildingExplode
		EmptyWeapon: BuildingExplode
	RevealsShroud:
		Range: 9c002
	DetectCloaked:
		Range: 8c002
	WithRangeCircle:
		Range: 8c002


building01:
	Inherits: ^NeutralBuilding

building01_burned:
	Inherits: ^BuildingHusk
	Building:
		Dimensions: 1,1
		Footprint: _
	-GrantRandomCondition:
	-WithBuildingBib:

fremen_temple:
	Inherits: ^NeutralBuilding
	RenderSprites:
		Palette: terrain
	Building:
		Dimensions: 3,2
		Footprint: xxx xxx
	Tooltip:
		Name: Fremen Temple
		GenericVisibility: None

^InfantryHealing:
	ExternalCondition@carrierhealing:
		Condition: carrierhealing
	ExternalCondition@healing:
		Condition: healing
	WithDecoration@REDCROSS:
		Image: pips
		Sequence: healt_cross
		Position: BottomRight
		Margin: 5, 5
		RequiresCondition: healing && damaged
		BlinkInterval: 32
		BlinkPattern: Off, On
		ValidRelationships: Ally, Neutral, Enemy
	ChangesHealth@HOSPITAL:
		Step: 500
		Delay: 25
		StartIfBelow: 100
		DamageCooldown: 0
		RequiresCondition: healing
	ChangesHealth@CARRIER:
		Step: 8000
		Delay: 5
		StartIfBelow: 100
		DamageCooldown: 0
		RequiresCondition: carrierhealing
	GrantConditionOnDamageState@HOSPITAL:
		Condition: damaged
		ValidDamageStates: Light, Medium, Heavy, Critical


^Infantry:
	Inherits@healing: ^InfantryHealing

ecology_station:
	Inherits: ^NeutralBuilding
	Inherits@selection: ^SelectableBuilding
	-Interactable:
	RenderSprites:
		Image: custom_rock02_ecology_station
		Palette: terrain
	Armor:
		Type: building
	Health:
		HP: 75000
	Building:
		Dimensions: 3,3
		Footprint: _X_ xxx xxx
	ProximityExternalCondition@dhealign:
		Condition: healing
		Range: 4c768
		ValidRelationships: Ally, Neutral, Enemy
	Tooltip:
		Name: Ecology Station
		GenericVisibility: None
	TooltipDescription:
		Description: Heal nearby infantry units.
	RevealsShroud:
		Range: 4c768

building_rock01:
	Inherits: ^NeutralBuilding
	RenderSprites:
		Palette: terrain
	Building:
		Dimensions: 3,3
		Footprint: _XX xxx xxx

fremen_tent01:
	Inherits: ^NeutralBuilding
	RenderSprites:
		Palette: terrain
	Building:
		Dimensions: 1,1
		Footprint: x
	HitShape:
		UseTargetableCellsOffsets: true
		Type: Rectangle
			TopLeft: -384, -384
			BottomRight: 384, 384
