MINV:
	Inherits: ^Mine
	RenderSprites:
		Image: minv
		FactionImages:
			soviet: minp
			russia: minp
			ukraine: minp
	Explodes:
		Weapon: ATMine

# Only kept for backwards-compatibility with existing and imported maps, use MINV instead
MINP:
	Inherits: MINV
	Explodes:
		Weapon: APMine

CRATE:
	Inherits: ^Crate
	GiveCashCrateAction:
		Amount: 1000
		SelectionShares: 50
		UseCashTick: true
	LevelUpCrateAction:
		SelectionShares: 40
	ExplodeCrateAction@fire:
		Weapon: CrateNapalm
		SelectionShares: 5
	ExplodeCrateAction@boom:
		Weapon: CrateExplosion
		SelectionShares: 5
	HideMapCrateAction:
		SelectionShares: 5
		Sequence: hide-map
	HealActorsCrateAction:
		Sound: heal2.aud
		SelectionShares: 2
		Sequence: heal
	RevealMapCrateAction:
		SelectionShares: 1
		Sequence: reveal-map
	DuplicateUnitCrateAction:
		SelectionShares: 10
		MaxAmount: 5
		MinAmount: 1
		MaxDuplicateValue: 1500
		ValidTargets: GroundActor, WaterActor, Submarine
	GiveBaseBuilderCrateAction:
		SelectionShares: 0
		NoBaseSelectionShares: 100
		Units: mcv
	GiveUnitCrateAction@jeep:
		SelectionShares: 6
		Units: jeep
		ValidFactions: allies, england, france, germany
		Prerequisites: techlevel.low
	GiveUnitCrateAction@1tnk:
		SelectionShares: 6
		Units: 1tnk
		ValidFactions: allies, england, france, germany
		Prerequisites: techlevel.low
	GiveUnitCrateAction@apc:
		SelectionShares: 6
		Units: apc
		ValidFactions: soviet, russia, ukraine
		Prerequisites: techlevel.low
	GiveUnitCrateAction@ftrk:
		SelectionShares: 6
		Units: ftrk
		ValidFactions: soviet, russia, ukraine
		Prerequisites: techlevel.low
	GiveUnitCrateAction@arty:
		SelectionShares: 5
		Units: arty
		ValidFactions: allies, england, france, germany
		Prerequisites: techlevel.medium, dome
	GiveUnitCrateAction@v2rl:
		SelectionShares: 5
		Units: v2rl
		ValidFactions: soviet, russia, ukraine
		Prerequisites: techlevel.medium, dome
	GiveUnitCrateAction@2tnk:
		SelectionShares: 4
		Units: 2tnk
		ValidFactions: allies, england, france, germany
		Prerequisites: techlevel.medium, fix
	GiveUnitCrateAction@3tnk:
		SelectionShares: 4
		Units: 3tnk
		ValidFactions: soviet, russia, ukraine
		Prerequisites: techlevel.medium, fix
	GiveUnitCrateAction@squadlight:
		SelectionShares: 10
		Units: e1,e1,e1,e3,e3
		ValidFactions: allies, england, france, germany, soviet, russia, ukraine
	GiveUnitCrateAction@squadheavyallies:
		SelectionShares: 7
		Units: e1,e1,e1,e1,e3,e3,e3,e6,medi
		ValidFactions: allies, england, france, germany
		TimeDelay: 4500
	GiveUnitCrateAction@squadheavysoviet:
		SelectionShares: 7
		Units: e1,e1,e4,e4,e3,e3,e3,e6
		ValidFactions: soviet, russia, ukraine
		TimeDelay: 4500
	GrantExternalConditionCrateAction@invuln:
		SelectionShares: 5
		Sequence: invuln
		Sound: ironcur9.aud
		Condition: invulnerability
		Duration: 600
	GiveUnitCrateAction@lst:
		SelectionShares: 6
		Units: lst
		ValidFactions: allies, england, france, germany, soviet, russia, ukraine
		Prerequisites: techlevel.low
	GiveUnitCrateAction@pt:
		SelectionShares: 6
		Units: pt
		ValidFactions: allies, england, france, germany
		Prerequisites: techlevel.low
	GiveUnitCrateAction@ss:
		SelectionShares: 4
		Units: ss
		ValidFactions: soviet, russia, ukraine
		Prerequisites: techlevel.low
	GiveUnitCrateAction@dd:
		SelectionShares: 4
		Units: dd
		ValidFactions: allies, england, france, germany
		Prerequisites: techlevel.medium, dome
	GiveUnitCrateAction@ss2:
		SelectionShares: 4
		Units: ss
		ValidFactions: soviet, russia, ukraine
		Prerequisites: techlevel.medium, dome
	GiveUnitCrateAction@ca:
		SelectionShares: 3
		Units: ca
		ValidFactions: allies, england, france, germany
		Prerequisites: techlevel.high, atek
	GiveUnitCrateAction@msub:
		SelectionShares: 3
		Units: msub
		ValidFactions: soviet, russia, ukraine
		Prerequisites: techlevel.high, stek


MONEYCRATE:
	Inherits: ^Crate
	Tooltip:
		Name: Money Crate
	GiveCashCrateAction:
		Amount: 500
		SelectionShares: 1
		UseCashTick: true
	RenderSprites:
		Image: wcrate

HEALCRATE:
	Inherits: ^Crate
	Tooltip:
		Name: Heal Crate
	HealActorsCrateAction:
		Sound: heal2.aud
		SelectionShares: 1
		Sequence: heal

WCRATE:
	Inherits: ^Crate
	Tooltip:
		Name: Wooden Crate
	RenderSprites:
		Image: wcrate

SCRATE:
	Inherits: ^Crate
	Tooltip:
		Name: Steel Crate

CAMERA:
	Interactable:
	EditorOnlyTooltip:
		Name: (reveals area to owner)
	AlwaysVisible:
	Immobile:
		OccupiesSpace: false
	RevealsShroud:
		Range: 10c0
		Type: CenterPosition
	BodyOrientation:
		QuantizedFacings: 1
	WithSpriteBody:
	RenderSpritesEditorOnly:
		Image: camera
	MapEditorData:
		Categories: System

camera.paradrop:
	Inherits: CAMERA
	EditorOnlyTooltip:
		Name: (support power proxy camera)
	RevealsShroud:
		Range: 6c0

camera.spyplane:
	Inherits: CAMERA
	EditorOnlyTooltip:
		Name: (support power proxy camera)

SONAR:
	Inherits: camera.spyplane
	EditorOnlyTooltip:
		Name: (support power proxy camera)
	-RevealsShroud:
	DetectCloaked:
		DetectionTypes: Underwater
		Range: 10c0

FLARE:
	Immobile:
		OccupiesSpace: false
	RevealsShroud:
		Range: 3c0
		Type: CenterPosition
	RenderSprites:
		Image: smokland
	WithSpriteBody:
		StartSequence: open
	BodyOrientation:
		QuantizedFacings: 1
	HiddenUnderFog:
		Type: CenterPosition
	Interactable:
	Tooltip:
		Name: Flare
		ShowOwnerRow: false
	MapEditorData:
		Categories: Decoration

MINE:
	Inherits@1: ^SpriteActor
	Interactable:
	HiddenUnderShroud:
	Tooltip:
		Name: Ore Mine
	RenderSprites:
		Palette: terrain
	WithSpriteBody:
	Building:
		Footprint: x
		Dimensions: 1,1
	AppearsOnRadar:
	RadarColorFromTerrain:
		Terrain: Ore
	AppearsOnMapPreview:
		Terrain: Ore
	SeedsResource:
	MapEditorData:
		Categories: Resource spawn
	RequiresSpecificOwners:
		ValidOwnerNames: Neutral

GMINE:
	Inherits@1: ^SpriteActor
	Interactable:
	HiddenUnderShroud:
	Tooltip:
		Name: Gem Mine
	RenderSprites:
		Palette: player
	WithSpriteBody:
	Building:
		Footprint: x
		Dimensions: 1,1
	AppearsOnRadar:
	RadarColorFromTerrain:
		Terrain: Gems
	AppearsOnMapPreview:
		Terrain: Gems
	SeedsResource:
		ResourceType: Gems
	MapEditorData:
		Categories: Resource spawn
	RequiresSpecificOwners:
		ValidOwnerNames: Neutral

RAILMINE:
	Inherits@1: ^SpriteActor
	Interactable:
	HiddenUnderShroud:
	Tooltip:
		Name: Abandoned Mine
	RenderSprites:
		Palette: player
	WithSpriteBody:
	Building:
		Footprint: xx
		Dimensions: 2,1
	MapEditorData:
		ExcludeTilesets: INTERIOR
		Categories: Civilian building
	RequiresSpecificOwners:
		ValidOwnerNames: Neutral

QUEE:
	Inherits@1: ^SpriteActor
	Inherits@shape: ^2x1Shape
	Interactable:
	HiddenUnderShroud:
	Tooltip:
		Name: Queen Ant
	Building:
		Footprint: xx
		Dimensions: 2,1
	WithSpriteBody:
	AppearsOnRadar:
	MapEditorData:
		RequireTilesets: INTERIOR
		Categories: Critter

LAR1:
	Inherits@1: ^SpriteActor
	Inherits@shape: ^1x1Shape
	Interactable:
	HiddenUnderShroud:
	Tooltip:
		Name: Ant Larva
	Building:
		Footprint: x
		Dimensions: 1,1
	RenderSprites:
		Palette: terrain
	WithSpriteBody:
	AppearsOnRadar:
	MapEditorData:
		RequireTilesets: INTERIOR
		Categories: Critter

LAR2:
	Inherits@1: LAR1
	Tooltip:
		Name: Ant Larvae

powerproxy.parabombs:
	AlwaysVisible:
	AirstrikePower:
		Icon: parabombs
		Name: Parabombs (Single Use)
		Description: A Badger drops a load of parachuted bombs\nat the selected location.
		OneShot: true
		AllowMultiple: true
		UnitType: badr.bomber
		SelectTargetSpeechNotification: SelectTarget
		SelectTargetTextNotification: Select target.
		QuantizedFacings: 8
		DisplayBeacon: True
		BeaconPoster: pbmbicon
		CameraActor: camera
		CameraRemoveDelay: 150
		ArrowSequence: arrow
		ClockSequence: clock
		CircleSequence: circles

powerproxy.sonarpulse:
	AlwaysVisible:
	SpawnActorPower:
		Icon: sonar
		Name: Sonar Pulse
		Description: Reveals all submarines in the vicinity for a \nshort time.
		ChargeInterval: 750
		EndChargeSpeechNotification: SonarPulseReady
		SelectTargetSpeechNotification: SelectTarget
		EndChargeTextNotification: Sonar pulse ready.
		SelectTargetTextNotification: Select target.
		Actor: sonar
		Terrain: Water
		AllowUnderShroud: false
		LifeTime: 250
		DeploySound: sonpulse.aud
		EffectImage: moveflsh
		EffectPalette: moveflash
		SupportPowerPaletteOrder: 80
		EffectSequence: idle

powerproxy.paratroopers:
	AlwaysVisible:
	ParatroopersPower:
		Icon: paratroopers
		Name: Paratroopers
		Description: A Badger drops a squad of infantry\nanywhere on the map.
		DropItems: E1,E1,E1,E3,E3
		SelectTargetSpeechNotification: SelectTarget
		SelectTargetTextNotification: Select target.
		AllowImpassableCells: false
		QuantizedFacings: 8
		CameraActor: camera.paradrop
		DisplayBeacon: true
		BeaconPoster: pinficon
		ArrowSequence: arrow
		ClockSequence: clock
		CircleSequence: circles

barracks.upgraded:
	AlwaysVisible:
	ProvidesPrerequisite:

vehicles.upgraded:
	AlwaysVisible:
	ProvidesPrerequisite:

aircraft.upgraded:
	AlwaysVisible:
	ProvidesPrerequisite:

mpspawn:
	Interactable:
	EditorOnlyTooltip:
		Name: (multiplayer player starting point)
	AlwaysVisible:
	Immobile:
		OccupiesSpace: false
	WithSpriteBody:
	RenderSpritesEditorOnly:
	BodyOrientation:
		QuantizedFacings: 1
	MapEditorData:
		Categories: System
	RequiresSpecificOwners:
		ValidOwnerNames: Neutral

waypoint:
	Interactable:
	EditorOnlyTooltip:
		Name: (waypoint for scripted behavior)
	AlwaysVisible:
	Immobile:
		OccupiesSpace: false
	WithSpriteBody:
	RenderSpritesEditorOnly:
	BodyOrientation:
		QuantizedFacings: 1
	MapEditorData:
		Categories: System

fact.colorpicker:
	Inherits: FACT
	-Buildable:
	-MapEditorData:
	-BaseBuilding:
	RenderSprites:
		Image: fact
		Palette: colorpicker

CTFLAG:
	Inherits: ^TechBuilding
	Building:
		Footprint: x
		Dimensions: 1,1
	Tooltip:
		Name: Flag
	WithBuildingBib:
		HasMinibib: true
	-HitShape:
	-Health:
	-Explodes:
	-Selectable:
	-Targetable:
	MapEditorData:
		Categories: Decoration
	Interactable:
