^AttackPlane:
	Inherits@1: ^ExistsInWorld
	Inherits@2: ^GainsExperience
	Inherits@4: ^SpriteActor
	Huntable:
	DrawLineToTarget:
	UpdatesPlayerStatistics:
	AppearsOnRadar:
		UseLocation: true
	SelectionDecorations:
	WithSpriteControlGroupDecoration:
	Selectable:
		Bounds: 24,24
	Aircraft:
		RepairBuildings: fix
		RearmBuildings: afld
		AirborneUpgrades: airborne
		CruisingUpgrades: cruising
	Targetable@GROUND:
		TargetTypes: Ground, Repair, Vehicle
		UpgradeTypes: airborne
		UpgradeMaxEnabledLevel: 0
	Targetable@AIRBORNE:
		TargetTypes: Air
		UpgradeTypes: airborne
		UpgradeMinEnabledLevel: 1
	HiddenUnderFog:
		Type: CenterPosition
	AttackMove:
	Guard:
	Guardable:
	ActorLostNotification:
	ProximityCaptor:
		Types: Plane
	Tooltip:
		GenericName: Plane
	WithShadow:
		Offset: 43, 128, 0
		ZOffset: -129
	WithFacingSpriteBody:
	MustBeDestroyed:
	Voiced:
		VoiceSet: GenericVoice

^BaseBuilding:
	EmitInfantryOnSell:
		ActorTypes: engeneer,e1new,e1new,e1new
    RepairableBuilding:
		RepairPercent: 40
		RepairStep: 350
		PlayerExperience: 15

^IronOre:
    UpgradeManager:
    UpgradeOnTerrain:
        Upgrades: sichtbar
        TerrainTypes: Tiberium
	RenderSprites:
		Image: ironore1
		Palette: terrain
	UpgradeActorsNear:
        Range: 2c0
        Upgrades: close
        ValidStances: Ally, Enemy, Neutral
    DisableOnUpgrade:
        UpgradeTypes: sichtbar
        UpgradeMinEnabledLevel: 0
        UpgradeMaxEnabledLevel: 0
        UpgradeMaxAcceptedLevel: 0
    WithSpriteBody@an1:
		Sequence: iron1
        UpgradeTypes: sichtbar
        UpgradeMaxEnabledLevel: 1
        UpgradeMaxAcceptedLevel: 1
        UpgradeMinEnabledLevel: 1
    WithSpriteBody@aus:
        StartSequence: iron9
		Sequence: empty 
	FrozenUnderFog:
        AlwaysVisibleStances: Ally
    Building:
        Footprint: _
        Dimensions: 1,1
		Type: CenterPosition
	BodyOrientation:
		QuantizedFacings: 1
	AutoSelectionSize:

        
^Palettes:
    FixedColorPalette@Iron:#
        Ramp: 0.005
		Base: terrain
		Name: irontib
		Color: E1A636
		RemapIndex: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190
    FixedColorPalette@Gold:
		Ramp: 0.05
        Base: terrain
		Name: goldtib
		Color: FDFF00
		RemapIndex: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190
    FixedColorPalette@Copper:
        Base: terrain
		Name: coppertib
		Color: FF4C1F
        Ramp: 0.005
		RemapIndex: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190
    PaletteFromFile@RA:
        Name: ra
        Filename: temperatRA.pal
        ShadowIndex: 4
    PaletteFromPaletteWithAlpha:
        Name: empty
        BasePalette: ra
        Alpha: 0
    PlayerColorPalette@RA:
        BasePalette: ra
        BaseName: raplayer
        RemapIndex: 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95
    RotationPaletteEffect@water:
		ExcludePalettes: effect, chrome, raplayer, raplayer, ra
		RotationBase: 32
	FlashPaletteEffect:
		Type: longflash
		ExcludePalettes: cursor, chrome, colorpicker, fog, shroud, alpha, effect, raplayer, iron_pal, goldtib, coppertib, ra
	FlashPaletteEffect@None:
		Length: 0
		Type: noflash
		ExcludePalettes: cursor, chrome, colorpicker, fog, shroud, alpha, effect, raplayer, iron_pal, goldtib, coppertib, ra


^MedievalInfantry:
	Inherits@1: ^ExistsInWorld
	Inherits@2: ^GainsExperience
	Inherits@3: ^SpriteActor
	Huntable:
	Health:
		Shape: Circle
			Radius: 128
	Armor:
		Type: None
	RevealsShroud:
		Range: 5c0
	Mobile:
		Crushes: crate
		SharesCell: true
		TerrainSpeeds:
			Clear: 90
			Rough: 80
			Road: 100
			Tiberium: 70
				PathingCost: 300
			BlueTiberium: 70
				PathingCost: 300
			Beach: 80
	SelectionDecorations:
	WithSpriteControlGroupDecoration:
	Selectable:
		Bounds: 12,17,0,-6
	QuantizeFacingsFromSequence:
		Sequence: stand
	WithInfantryBody:
	WithDeathAnimation:
        DeathSequencePalette: raplayer
    SelfHealing@HOSPITAL:
		Step: 400
		Delay: 35
		HealIfBelow: 100
		DamageCooldown: 125
		UpgradeTypes: hospitalheal
		UpgradeMinEnabledLevel: 1
	WithDecoration@REDCROSS:
		Image: pips
		Sequence: pip-heal
		ReferencePoint: Bottom, Right
		UpgradeTypes: hospitalheal
		UpgradeMinEnabledLevel: 1
	AttackMove:
	DrawLineToTarget:
	HiddenUnderFog:
	Crushable:
		WarnProbability: 95
		CrushSound: squish2.aud
	Guardable:
	WithDecoration@REDCROSS:
		Image: pips
		Sequence: pip-heal
		ReferencePoint: Bottom, Right
		UpgradeTypes: hospitalheal
		UpgradeMinEnabledLevel: 1
	DeathSounds@NORMAL:
		DeathTypes: DefaultDeath
	DeathSounds@HEAVY:
		Voice: Zapped
		DeathTypes: RippedApartDeath, BallistaDeath
	DeathSounds@POISONED:
		Voice: Poisoned
		DeathTypes: PoisonDeath
    DeathSounds@BURNED:
		Voice: Burned
		DeathTypes: BurnToDeath
    WithDecoration@Crown:
		Image: pips
		Sequence: pip-crown
		ReferencePoint: Top, Left
		UpgradeTypes: KingIsNear
		UpgradeMinEnabledLevel: 1
    DamageMultiplier@Crown:
        UpgradeTypes: KingIsNear
        Modifier: 120
    FirepowerMultiplier@Crown:
        UpgradeTypes: KingIsNear
        Modifier: 120
    ReloadDelayMultiplier:
        UpgradeTypes: KingIsNear
        Modifier: 120
        
^Knight:  
	Inherits: ^MedievalInfantry
    WithDeathAnimation:
        DeathTypes:
			DefaultDeath: 1
			RippedApartDeath: 2
			PoisonDeath: 3
			BallistaDeath: 4
            BurnToDeath: 5
		CrushedSequence: die-crushed
    Targetable:
		TargetTypes: Ground, Infantry
	MustBeDestroyed:
	Tooltip:
		GenericName: Soldier
	Guard:
	AutoTarget:
		ScanRadius: 4
	WithInfantryBody:
		IdleSequences: idle1, idle2
		StandSequences: stand
    Power:
		Amount: -1
    Passenger:
		CargoType: Infantry
        GrantUpgrades: batteringupgrade
    SelfHealing@Rotaway:
        PercentageStep: -2
        Step: -0
        HealIfBelow: 110
        Delay: 10
        UpgradeMinEnabledLevel: 1
        UpgradeTypes: RottenKadaver
        DamageTypes: PoisonDeath
    SelfHealing@HOSPITAL:
		PercentageStep: 1
		Delay: 25
		HealIfBelow: 100
		DamageCooldown: 125
		UpgradeTypes: hospitalheal, hospitalhealbarr
		UpgradeMinEnabledLevel: 1
	WithDecoration@REDCROSS:
		Image: pips
		Sequence: pip-heal
		ReferencePoint: Bottom, Right
		UpgradeTypes: hospitalheal, hospitalhealbarr
		UpgradeMinEnabledLevel: 1
    Voiced:
		VoiceSet: GenericVoice

        
^Cavalry:
	Inherits: ^MedievalInfantry
    Voiced:
		VoiceSet: GenericHorseVoice
    Targetable:
		TargetTypes: Ground, Cavalry
    WithDeathAnimation:
        DeathTypes:
			DefaultDeath: 1
			RippedApartDeath: 1
			PoisonDeath: 1
			BallistaDeath: 1
            BurnToDeath: 2
	MustBeDestroyed:
	Tooltip:
		GenericName: Cavalry
	Guard:
	AutoTarget:
		ScanRadius: 7
	WithInfantryBody:
		IdleSequences: idle1, idle2
		StandSequences: stand
    Power:
		Amount: -2
    -Crushable:
    SelfHealing@Rotaway:
        PercentageStep: -2
        Step: -0
        HealIfBelow: 110
        Delay: 10
        UpgradeMinEnabledLevel: 1
        UpgradeTypes: RottenKadaver
        DamageTypes: PoisonDeath
    Selectable:
		Bounds: 26,34,0,-6
    SelectionDecorations:
		VisualBounds: 26,34,0,-6
    SpawnActorOnDeath@1:
        DeathType: DefaultDeath
        Probability: 10
        Actor: emptyross
		OwnerType: InternalName
		InternalOwner: Neutral
    SpawnActorOnDeath@2:
        DeathType: RippedApartDeath
        Probability: 10
        Actor: emptyross
		OwnerType: InternalName
		InternalOwner: Neutral
    SpawnActorOnDeath@3:
        DeathType: PoisonDeath
        Probability: 10
        Actor: emptyross
		OwnerType: InternalName
		InternalOwner: Neutral
    SpawnActorOnDeath@4:
        DeathType: BallistaDeath
        Probability: 33
        Actor: emptyross
		OwnerType: InternalName
		InternalOwner: Neutral
    SpawnActorOnDeath@5:
        DeathType: BurnToDeath
        Probability: 100
        Actor: burninghorse
		OwnerType: InternalName
		InternalOwner: Neutral
    DeathSounds@NORMAL:
		DeathTypes: DefaultDeath, RippedApartDeath, BallistaDeath, PoisonDeath, BurnToDeath
	-DeathSounds@HEAVY:
	-DeathSounds@POISONED:
    -DeathSounds@BURNED:
       
^Siege:
	Inherits: ^MedievalInfantry
    Mobile:
		SharesCell: false
	WithDeathAnimation:
        DeathTypes:
			DefaultDeath: 1
			RippedApartDeath: 1
			PoisonDeath: 1
			BallistaDeath: 1
            BurnToDeath: 1
    Targetable:
		TargetTypes: Ground, Siege
    MustBeDestroyed:
	Tooltip:
		GenericName: Cavalry
	Guard:
	AutoTarget:
		ScanRadius: 7
	WithInfantryBody:
		IdleSequences: stand
		StandSequences: stand
    Power:
		Amount: -4
    -Crushable:
    SelfHealing@Rotaway:
        PercentageStep: -2
        Step: -0
        Delay: 10
        HealIfBelow: 110
        UpgradeMinEnabledLevel: 1
        UpgradeTypes: RottenKadaver
        DamageTypes: PoisonDeath
    Selectable:
		Bounds: 35,35,0,-6 
    Voiced:
		VoiceSet: CivilianMaleVoice
        