^AttackPlane:
	Inherits@1: ^ExistsInWorld
	Inherits@EXPERIENCE: ^GainsExperience
	Inherits@4: ^SpriteActor
	Huntable:
	DrawLineToTarget:
	UpdatesPlayerStatistics:
	AppearsOnRadar:
		UseLocation: true
	SelectionDecorations:
	WithSpriteControlGroupDecoration:
	Selectable:
		Bounds: 24,24
	Aircraft:
		RepairBuildings: fix
		RearmBuildings: afld
		AirborneCondition: airborne
		CruisingCondition: cruising
	Targetable@GROUND:
		TargetTypes: Ground, Repair, Vehicle
		RequiresCondition: airborne
	Targetable@AIRBORNE:
		TargetTypes: Air
		RequiresCondition: airborne
	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
    ThrowsShrapnel@SMALL:
		Weapons: SmallWood1, SmallWood2, SmallWood3, SmallStone1, SmallStone2
		Pieces: 2, 4
		Range: 0c512, 3c0
    
        
^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: Palettes/newMWPalette.pal
        ShadowIndex: 1
        AllowModifiers: False
    PaletteFromFile@RAICON:
        Name: raicon
        Filename: Palettes/temperatRA.pal
        ShadowIndex: 4
        AllowModifiers: False
    PaletteFromPaletteWithAlpha:
        Name: empty
        BasePalette: ra
        Alpha: 0
    PlayerColorPalette@RA:
        BasePalette: ra
        BaseName: raplayer
        RemapIndex: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 3
        AllowModifiers: False
    RotationPaletteEffect@water:
		ExcludePalettes: effect, chrome, raplayer, ra, raicon
		RotationBase: 32
	FlashPaletteEffect:
		Type: longflash
		ExcludePalettes: cursor, chrome, colorpicker, fog, shroud, alpha, effect, raplayer, iron_pal, goldtib, coppertib, ra, raicon
	FlashPaletteEffect@None:
		Length: 0
		Type: noflash
		ExcludePalettes: cursor, chrome, colorpicker, fog, shroud, alpha, effect, raplayer, iron_pal, goldtib, coppertib, ra, raicon

        

^MedievalInfantry:
	Inherits@1: ^ExistsInWorld
	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
    ExternalCondition@ROTTEN:
        Condition: RottenKadaver
    SelfHealing@HOSPITAL:
		Step: 400
		Delay: 35
		HealIfBelow: 100
		DamageCooldown: 125
		RequiresCondition: hospitalheal
	WithDecoration@REDCROSS:
		Image: pips
		Sequence: pip-heal
		ReferencePoint: Bottom, Right
		RequiresCondition: hospitalheal
	AttackMove:
	DrawLineToTarget:
	HiddenUnderFog:
	Crushable:
		WarnProbability: 95
		CrushSound: squish2.aud
	Guardable:
	WithDecoration@REDCROSS:
		Image: pips
		Sequence: pip-heal
		ReferencePoint: Bottom, Right
		RequiresCondition: hospitalheal
	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
		RequiresCondition: KingIsNear
    DamageMultiplier@Crown:
        RequiresCondition: KingIsNear
        Modifier: 120
    FirepowerMultiplier@Crown:
        RequiresCondition: KingIsNear
        Modifier: 120
    ReloadDelayMultiplier:
        RequiresCondition: KingIsNear
        Modifier: 120
        
^Knight:  
	Inherits: ^MedievalInfantry
    Inherits@2: ^GainsExperience
    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
        RequiresCondition: RottenKadaver
        DamageTypes: PoisonDeath
    SelfHealing@HOSPITAL:
		PercentageStep: 1
		Delay: 25
		HealIfBelow: 100
		DamageCooldown: 125
		RequiresCondition: hospitalheal || hospitalhealbarr
	WithDecoration@REDCROSS:
		Image: pips
		Sequence: pip-heal
		ReferencePoint: Bottom, Right
		RequiresCondition: hospitalheal || hospitalhealbarr
    Voiced:
		VoiceSet: GenericVoice

        
^Cavalry:
	Inherits: ^MedievalInfantry
    Inherits@2: ^GainsExperience
    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
        RequiresCondition: 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
        RequiresCondition: RottenKadaver
        DamageTypes: PoisonDeath
    Selectable:
		Bounds: 35,35,0,-6 
    Voiced:
		VoiceSet: CivilianMaleVoice
        
^MWCiv:
	Inherits: ^Infantry
	Valued:
		Cost: 70
	Tooltip:
		Name: Civilian
		GenericVisibility: None
	Mobile:
		Speed: 56
	Health:
		HP: 2500
	RevealsShroud:
		Range: 2c0
	ActorLostNotification:
		Notification: CivilianKilled
		NotifyAll: true
	ScaredyCat:
	Crushable:
		CrushSound: squish2.aud
	WithDeathAnimation:
        DeathTypes:
			DefaultDeath: 1
			RippedApartDeath: 2
			PoisonDeath: 3
			BallistaDeath: 4
            BurnToDeath: 5
		CrushedSequence: die-crushed
        DeathSequencePalette: raplayer
    Voiced:
		VoiceSet: CivilianMaleVoice
	Wanders:
		MinMoveDelay: 150
		MaxMoveDelay: 750
    WithInfantryBody:
		StandSequences: stand