FACTNEW:
    Inherits: ^BaseBuilding
    GlobalUpgradable@4:
        Prerequisites: vehicleproduction
        Upgrades: visibility
    GlobalUpgradable@1:
        Prerequisites: barracks
        Upgrades: visibility
    GlobalUpgradable@2:
        Prerequisites: hqnew
        Upgrades: visibility
    GlobalUpgradable@3:
        Prerequisites: anycastle
        Upgrades: visibility
    WithSpriteBody:
        UpgradeTypes: visibility
        UpgradeMinEnabledLevel: 0
        UpgradeMaxAcceptedLevel: 0
    WithIdleOverlay@Lv1:
        Sequence: idle1
        UpgradeTypes: visibility
        UpgradeMinEnabledLevel: 1
        UpgradeMaxAcceptedLevel: 1
    WithIdleOverlay@Lv2:
        Sequence: idle2
        UpgradeTypes: visibility
        UpgradeMinEnabledLevel: 2
        UpgradeMaxAcceptedLevel: 2
    WithIdleOverlay@Lv3:
        Sequence: idle3
        UpgradeTypes: visibility
        UpgradeMinEnabledLevel: 3
        UpgradeMaxAcceptedLevel: 3
    WithIdleOverlay@Lv4:
        Sequence: idle4
        UpgradeTypes: visibility
        UpgradeMinEnabledLevel: 4
        UpgradeMaxAcceptedLevel: 4
	BodyOrientation:
		QuantizedFacings: 8
    Selectable:
		Bounds:72,48,0,9
	SelectionDecorations:
		VisualBounds: 72,53,0,-4
    Exit@1:
		SpawnOffset: -426,85,0
		ExitCell: 0,1
    RenderSprites:
        Image: newfact
        PlayerPalette: raplayer
	Valued:
		Cost: 4000
	Tooltip:
		Name: Keep
		Description: Constructs your village
	Building:
		Footprint: xxx xxx
		Dimensions: 3,2
	Health:
		HP: 200000
	Armor:
		Type: Concrete
	RevealsShroud:
		Range: 10c0
	Bib:
	Production:
		Produces: MBuilding.GDI, MBuilding.Nod, MDefenses.GDI, MDefenses.Nod
	Transforms:
		IntoActor: mcvnew
		Offset: 1,1
		Facing: 160
	ProductionQueue@GDIMBuilding:
		Type: MBuilding.GDI
		Factions: gdi
		Group: Building
		LowPowerSlowdown: 2
		QueuedAudio: Building
		ReadyAudio: ConstructionComplete
	ProductionQueue@NodMBuilding:
		Type: MBuilding.Nod
		Factions: nod
		Group: Building
		LowPowerSlowdown: 2
		QueuedAudio: Building
		ReadyAudio: ConstructionComplete
	ProductionQueue@GDIMDefence:
		Type: MDefenses.GDI
		Factions: gdi
		Group: Defence
		LowPowerSlowdown: 2
		QueuedAudio: Building
		ReadyAudio: ConstructionComplete
	ProductionQueue@NodMDefence:
		Type: MDefenses.Nod
		Factions: nod
		Group: Defence
		LowPowerSlowdown: 2
		QueuedAudio: Building
		ReadyAudio: ConstructionComplete
	BaseBuilding:
	ProductionBar@BuildingGDI:
		ProductionType: MBuilding.GDI
	ProductionBar@BuildingNod:
		ProductionType: MBuilding.Nod
	ProductionBar@BuildingGDI:
		ProductionType: MDefenses.GDI
	ProductionBar@BuildingNod:
		ProductionType: MDefenses.Nod
	BaseProvider:
		Cooldown: 150
		Range: 14c0
	Power:
		Amount: 10
	ProvidesPrerequisite@buildingname:        
    WithIdleOverlay@1:
        StartSequence: flag1start
        Sequence: flag1
        Offset: 8192,8192,0
    WithIdleOverlay@2:
        StartSequence: flag1start
        Sequence: flag1
        Offset: -8192,8192,0
    WithIdleOverlay@3:
        StartSequence: flag1start
        Sequence: flag1
        Offset: 8192,-8192,0
    WithIdleOverlay@4:
        StartSequence: flag1start
        Sequence: flag1
        Offset: -8192,-8192,0    
    WithDeathAnimation:
        DeathSequencePalette: raplayer
 
FACTNEW.GDI:
	Inherits: FACTNEW
	RenderSprites:
		Image: newfact
	Buildable:
		Queue: MBuilding.GDI, MBuilding.Nod
		BuildPaletteOrder: 1000
		Prerequisites: ~disabled
		ForceFaction: gdi
        IconPalette: ra
	Tooltip:
		Name: Construction Yard (GDI)

FACTNEW.NOD:
	Inherits: FACTNEW
	RenderSprites:
		Image: newfact
	Buildable:
		Queue: MBuilding.GDI, MBuilding.Nod
		BuildPaletteOrder: 1000
		Prerequisites: ~disabled
		ForceFaction: nod
        IconPalette: ra
	Tooltip:
		Name: Construction Yard (Nod)
 
SPLIT2:
    Tooltip:
		Name: Iron Mine
    RenderSprites:
        Image: ironmine
        PlayerPalette: raplayer
        Palette: ra

SPLIT3:
    RenderSprites:
        Image: coppermine
        PlayerPalette: raplayer
        Palette: ra
    Tooltip:
		Name: Copper Mine
    SeedsResource:
		ResourceType: Copper
		Interval: 40
        
SPLITBLUE:
    Tooltip:
		Name: Gold Mine
    RenderSprites:
        Image: goldmine
        PlayerPalette: raplayer
        Palette: ra
        
HQNEWNOD:
	Inherits: ^BaseBuilding
    Armor:
		Type: Concrete
    WithDeathAnimation:
        DeathSequencePalette: raplayer
	Valued:
		Cost: 1000
	Tooltip:
		Name: Smith
		Description: Provides radar.\nUnlocks higher-tech units and buildings.\nRequires power to operate.
	ProvidesPrerequisite@buildingname:
    ProvidesPrerequisite:
		Prerequisite: anyhq
	RenderSprites:
        Image: hqnew
        PlayerPalette: raplayer
    Buildable:
        IconPalette: ra
		BuildPaletteOrder: 70
		Prerequisites: proc, ~techlevel.medium
		Queue: MBuilding.Nod
	Building:
		Footprint: xx xx
		Dimensions: 2,2
	Selectable:
		Bounds: 48,40,0,9
	SelectionDecorations:
		VisualBounds: 48,53,0,-4
	RequiresPower:
	CanPowerDown:
		PowerupSound: EnablePower
		PowerdownSound: DisablePower
	DisabledOverlay:
	WithSpriteBody:
		PauseAnimationWhenDisabled: true
	Health:
		HP: 70000
	RevealsShroud:
		Range: 10c0
	Bib:
	ProvidesRadar:
	RenderDetectionCircle:
	DetectCloaked:
		Range: 5c0
	Power:
		Amount: -4
    AirstrikePower:
		Prerequisites: ~techlevel.superweapons
		Icon: cadaver
		ChargeTime: 210
		SquadSize: 1
		QuantizedFacings: 8
		Description: Throw plague cropse
		LongDesc: Deploy poisonous corpes infecting everything surrounding.
		EndChargeSpeechNotification: AirstrikeReady
		SelectTargetSpeechNotification: SelectTarget
		InsufficientPowerSpeechNotification: InsufficientPower
		IncomingSpeechNotification: EnemyPlanesApproaching
		UnitType: placeholderplane
		DisplayBeacon: True
		BeaconPoster: cadaver
		BeaconPosterPalette: beaconposter
		DisplayRadarPing: True
		CameraActor: camera
        OrderName: CorpsePowerInfoOrder
    SupportPowerChargeBar:    
    
HQNEWGDI:
	Inherits: ^BaseBuilding
    Armor:
		Type: Concrete
    WithDeathAnimation:
        DeathSequencePalette: raplayer
	Valued:
		Cost: 1000
	Tooltip:
		Name: Smith
		Description: Provides radar.\nUnlocks higher-tech units and buildings.\nRequires power to operate.
	ProvidesPrerequisite@buildingname:
    ProvidesPrerequisite:
		Prerequisite: anyhq
	RenderSprites:
        Image: hqnew
        PlayerPalette: raplayer
    Buildable:
        IconPalette: ra
		BuildPaletteOrder: 70
		Prerequisites: proc, ~techlevel.medium
		Queue: MBuilding.GDI
	Building:
		Footprint: xx xx
		Dimensions: 2,2
	Selectable:
		Bounds: 48,40,0,9
	SelectionDecorations:
		VisualBounds: 48,53,0,-4
	RequiresPower:
	CanPowerDown:
		PowerupSound: EnablePower
		PowerdownSound: DisablePower
	DisabledOverlay:
	WithSpriteBody:
		PauseAnimationWhenDisabled: true
	Health:
		HP: 70000
	RevealsShroud:
		Range: 10c0
	Bib:
	ProvidesRadar:
	RenderDetectionCircle:
	DetectCloaked:
		Range: 5c0
	Power:
		Amount: -4
    AirstrikePower:
		Prerequisites: ~techlevel.superweapons
		Icon: firestorm
		ChargeTime: 210
        SquadOffset	-236,236,0
		SquadSize: 3
		QuantizedFacings: 8
		Description: Pulverising Fire Storm
		LongDesc: Discription.
		EndChargeSpeechNotification: AirstrikeReady
		SelectTargetSpeechNotification: SelectTarget
		InsufficientPowerSpeechNotification: InsufficientPower
		IncomingSpeechNotification: EnemyPlanesApproaching
		UnitType: placeholderflamestrike
		DisplayBeacon: True
		BeaconPoster: firestormbeacon
		BeaconPosterPalette: beaconposter
		DisplayRadarPing: True
		CameraActor: camera
        OrderName: ArrowsPowerInfoOrder
    SupportPowerChargeBar:    
        
NUK2NEW:
	Inherits: ^BaseBuilding
    Armor:
		Type: Concrete
    WithDeathAnimation:
        DeathSequencePalette: raplayer
    RenderSprites:
        PlayerPalette: raplayer
	Valued:
		Cost: 800
	Tooltip:
		Name: Large Hut
		Description: Provides more livingspace, cheaper than the\nstandard Power Hut
	ProvidesPrerequisite:
		Prerequisite: anypower
	Buildable:
        IconPalette: ra
		BuildPaletteOrder: 80
		Prerequisites: anyhq, ~techlevel.medium
		Queue: MBuilding.GDI, MBuilding.Nod
	Building:
		Footprint: xx xx
		Dimensions: 2,2
	Health:
		HP: 70000
	RevealsShroud:
		Range: 4c0
	Bib:
	Power:
		Amount: 30
    Selectable:
		Bounds: 48,40,0,9
	SelectionDecorations:
		VisualBounds: 48,53,0,-4
 
NUKENEW:
	Inherits: ^BaseBuilding
    Armor:
		Type: Concrete
    WithDeathAnimation:
        DeathSequencePalette: raplayer
    RenderSprites:
        PlayerPalette: raplayer
	Valued:
		Cost: 500
	Tooltip:
		Name: Shack
		Description: Generates livingspace
	ProvidesPrerequisite:
		Prerequisite: anypower
	Buildable:
        IconPalette: ra
		BuildPaletteOrder: 10
		Prerequisites: factnew
		Queue: MBuilding.GDI, MBuilding.Nod
	Building:
		Footprint: xx xx
		Dimensions: 2,2
	Health:
		HP: 50000
	RevealsShroud:
		Range: 4c0
	Bib:
	Power:
		Amount: 14
    Selectable:
		Bounds: 48,40,0,9
	SelectionDecorations:
		VisualBounds: 48,53,0,-4
 
    
PROCNEW:
	Inherits: ^BaseBuilding
    Armor:
		Type: Concrete
    WithDeathAnimation:
        DeathSequencePalette: raplayer
    RenderSprites:
        PlayerPalette: raplayer
	Valued:
		Cost: 1600
	Tooltip:
		Name: Ore Refinery
		Description: Processes raw ore\ninto useable metal (Money!!! Cash!!! $$$$!)
	Buildable:
        IconPalette: ra
		BuildPaletteOrder: 20
		Prerequisites: anypower
		Queue: MBuilding.GDI, MBuilding.Nod
	Building:
		Footprint: _x_ xxx ===
		Dimensions: 3,3
	Health:
		HP: 90000
	RevealsShroud:
		Range: 6c0
	Bib:
	Refinery:
		DockAngle: 72
		DockOffset: 2,2
        TickRate: 4
	StoresResources:
		PipColor: Yellow
		PipCount: 10
		Capacity: 2000
	Selectable:
		Bounds: 72,56,0,12
	CustomSellValue:
		Value: 500
	FreeActor@1:
		Actor: eharvxl
		SpawnOffset: 1,2
		Facing: 64
	Power:
		Amount: -5
	ProvidesPrerequisite:
        Prerequisite: proc
	SelectionDecorations:
		VisualBounds: 73,72
 
SILONEW:
	Inherits: ^BaseBuilding
	Valued:
		Cost: 300
	Tooltip:
		Name: Smelter
		Description: Stores additional Ore
	Buildable:
		BuildPaletteOrder: 35
		Prerequisites: proc
		Queue: MDefenses.GDI, MDefenses.Nod
        IconPalette: ra
	Building:
		Footprint: _x xx
		Dimensions: 2,2
	-GivesBuildableArea:
	Health:
		HP: 40000
	RevealsShroud:
		Range: 4c0
	Bib:
		HasMinibib: Yes
	WithDeathAnimation:
        DeathSequencePalette: raplayer
    RenderSprites:
        Image: silonew
        PlayerPalette: raplayer
	WithSpriteBody:
	AutoSelectionSize:
	WithSiloAnimation:
	StoresResources:
		PipCount: 10
		PipColor: Green
		Capacity: 2000
	-EmitInfantryOnSell:
	Power:
		Amount: -1
	MustBeDestroyed:
		RequiredForShortGame: false
	SelectionDecorations:
		VisualBounds: 50,50
 
TROJAN:
	Inherits: ^BaseBuilding
    Armor:
		Type: Knight
    WithDeathAnimation:
        DeathSequencePalette: raplayer
    RenderSprites:
        Image: trojanhorse
        PlayerPalette: raplayer
	Valued:
		Cost: 4000
	Tooltip:
		Name: Wooden Horse
	Building:
		Footprint: x =
		Dimensions: 1,2
	Health:
		HP: 75000
	RevealsShroud:
		Range: 5c0
	Bib:
		HasMinibib: Yes
	RallyPoint:
	Exit@1:
		SpawnOffset: 0,-512,0
		ExitCell: 0,1
    Exit@2:
		SpawnOffset: 0,-512,0
		ExitCell: 0,-1 
    Exit@3:
		SpawnOffset: 0,-512,0
		ExitCell: 1,0 
    Exit@4:
		SpawnOffset: 0,-512,0
		ExitCell: -1,0 
	Production:
		Produces: MInfantry.GDI, MInfantry.Nod
	ProductionQueue@1:
		Type: MInfantry.GDI
		Group: Infantry
		LowPowerSlowdown: 1
        Factions: gdi
        BuildDurationModifier: 20
    ProductionQueue@2:
		Type: MInfantry.Nod
		Group: Infantry
		LowPowerSlowdown: 1
        Factions: nod
        BuildDurationModifier: 20
	ProductionBar:
	Power:
		Amount: 0
	Selectable:
		Bounds: 32,32,0,-30
    ProvidesPrerequisite@buildingname:
    -Capturable:
 
BARRNEW:
	Inherits: ^BaseBuilding
    Armor:
		Type: Concrete
    WithDeathAnimation:
        DeathSequencePalette: raplayer
    RenderSprites:
        PlayerPalette: raplayer
	Valued:
		Cost: 500
	Tooltip:
		Name: Barracks
		Description: Trains and heals infantry only
    UpgradeActorsNear:
        Upgrades: hospitalhealbarr
        Range: 5c0
    WithRangeCircle: 
        ValidStances: Ally, Neutral
        Range: 5c0
	ProvidesPrerequisite:
		Prerequisite: barracks
	Buildable:
        IconPalette: ra
		BuildPaletteOrder: 30
		Prerequisites: anypower
		Queue: MBuilding.GDI
	Building:
		Footprint: xx xx
		Dimensions: 2,2
	Health:
		HP: 50000
	RevealsShroud:
		Range: 5c0
	Bib:
	RallyPoint:
	Exit@1:
		SpawnOffset: -259,640,0
		ExitCell: 1,2
	Production:
		Produces: MInfantry.GDI
	ProductionQueue@1:
		Type: MInfantry.GDI
		Group: Infantry
		RequireOwner: false
		LowPowerSlowdown: 3
        Factions: gdi
	ProductionBar:
	Power:
		Amount: -2
	ProvidesPrerequisite@buildingname:
	Selectable:
		Bounds: 48,42,0,-5
        
HANDNEW:
	Inherits: ^BaseBuilding
    Armor:
		Type: Concrete
    WithDeathAnimation:
        DeathSequencePalette: raplayer
    RenderSprites:
        Image: handew
        PlayerPalette: raplayer
	Valued:
		Cost: 500
	Tooltip:
		Name: Barracks
		Description: Trains and heals infantry only
	ProvidesPrerequisite:
		Prerequisite: barracks
	UpgradeActorsNear:
        Upgrades: hospitalhealbarr
        Range: 5c0
    WithRangeCircle: 
        ValidStances: Ally, Neutral
        Range: 5c0
    Buildable:
        IconPalette: ra
		BuildPaletteOrder: 30
		Prerequisites: anypower
		Queue: MBuilding.Nod
	Building:
		Footprint: __ xx xx
		Dimensions: 2,3
	Health:
		HP: 50000
	RevealsShroud:
		Range: 5c0
	Bib:
	RallyPoint:
	Exit@1:
		SpawnOffset: -259,640,0
		ExitCell: 1,2
	Production:
		Produces:  MInfantry.Nod
    ProductionQueue@2:
		Type: MInfantry.Nod
		Group: Infantry
		RequireOwner: false
		LowPowerSlowdown: 3
        Factions: nod
	ProductionBar:
	Power:
		Amount: -2
	ProvidesPrerequisite@buildingname:
	Selectable:
		Bounds: 48,42,0,-5

STALL:
	Inherits: ^BaseBuilding
    Armor:
		Type: Concrete
    WithDeathAnimation:
        DeathSequencePalette: raplayer
    RenderSprites:
        Image: stall
        PlayerPalette: raplayer
	Valued:
		Cost: 2000
	Tooltip:
		Name: Stables
		Description: Trains cavalry
	Buildable:
        IconPalette: ra
		BuildPaletteOrder: 40
		Prerequisites: proc
		Queue: MBuilding.GDI
	Building:
		Footprint: xxx xx=
		Dimensions: 3,2
	Health:
		HP: 100000
	RevealsShroud:
		Range: 4c0
	Bib:
	RallyPoint:
	Exit@1:
		SpawnOffset: 1024,640,0
		ExitCell: 2,2
	Production:
		Produces: MVehicle.GDI
	ProductionQueue@1:
		Type: MVehicle.GDI
        Factions: gdi
		Group: Vehicle
		RequireOwner: false
		LowPowerSlowdown: 3
	ProductionBar:
	Power:
		Amount: -3
    ProvidesPrerequisite@buildingname:
    ProvidesPrerequisite:
		Prerequisite: vehicleproduction
	Selectable:
		Bounds: 72,48
	SelectionDecorations:
		VisualBounds: 72,64,0,-16

NODSTALL:
	Inherits: ^BaseBuilding
    Armor:
		Type: Concrete
    WithDeathAnimation:
        DeathSequencePalette: raplayer
    RenderSprites:
        Image: nodstall
        PlayerPalette: raplayer
	Valued:
		Cost: 2000
	Tooltip:
		Name: Stables
		Description: Trains cavalry
	Buildable:
        IconPalette: ra
		BuildPaletteOrder: 40
		Prerequisites: proc
		Queue: MBuilding.Nod
	Building:
		Footprint: xxxx xx=x
		Dimensions: 4,2
	Health:
		HP: 100000
	RevealsShroud:
		Range: 4c0
	Bib:
	RallyPoint:
	Exit@1:
		SpawnOffset: 540,540,0
		ExitCell: 2,2
	ProductionAirdrop:
        ActorType: delbir
        Produces: MVehicle.Nod
    ProductionQueue@2:
		Type: MVehicle.Nod
		Group: Vehicle
        Factions: nod
		RequireOwner: false
		LowPowerSlowdown: 3
	ProductionBar:
	Power:
		Amount: -3
    ProvidesPrerequisite@buildingname:
    ProvidesPrerequisite:
		Prerequisite: vehicleproduction
	Selectable:
		Bounds: 96,48
	SelectionDecorations:
		VisualBounds: 86,64,0,-4 
    WithIdleOverlay@1:
        StartSequence: flag1start
        Sequence: flag1
        Offset: 256,2506,0
        
CASTLE:
	Inherits: ^BaseBuilding
    Armor:
		Type: Concrete
    WithDeathAnimation:
        DeathSequencePalette: raplayer
    RenderSprites:
        Image: castle
        PlayerPalette: raplayer
	Valued:
		Cost: 2000
	Tooltip:
		Name: Castle
		Description: Unlocks Superweapon.\n Unlocks Heavy Cavalry, Knight's and Tribuchet.\nRequires power to operate.
	Buildable:
        IconPalette: ra
		BuildPaletteOrder: 100
		Prerequisites: anyhq
		Queue: MBuilding.Nod
	Building:
		Footprint: ___ xxx xxx
		Dimensions: 3,3
	Health:
		HP: 200000
	RevealsShroud:
		Range: 6c0
	Bib:
	Power:
		Amount: -15
    ProvidesPrerequisite:
		Prerequisite: anyhq
    ProvidesPrerequisite@2:
		Prerequisite: anycastle
    ProvidesPrerequisite@buildingname:
	Selectable:
		Bounds: 72,48,0,12
	SelectionDecorations:
		VisualBounds: 72,68,0,0
    RequiresPower:
	CanPowerDown:
		PowerupSound: EnablePower
		PowerdownSound: DisablePower
	DisabledOverlay:
    NukePower:
		Prerequisites: ~techlevel.superweapons
		Icon: cannonstrike
		Cursor: nuke
		ChargeTime: 300
		Description: Cannon Strike
		LongDesc: Launch long range cannonboulder off your casle.\nApplies heavy damage over a large area.
		EndChargeSpeechNotification: NuclearWeaponAvailable
		SelectTargetSpeechNotification: SelectTarget
		InsufficientPowerSpeechNotification: InsufficientPower
		LaunchSpeechNotification: NuclearWeaponLaunched
		IncomingSpeechNotification: NuclearWarheadApproaching
		MissileWeapon: cannonstrike
		DisplayBeacon: True
		BeaconPoster: cannonbeacon
		BeaconPosterPalette: beaconposter
		DisplayRadarPing: True
		CameraActor: camera
        OrderName: CannonPowerInfoOrder
    SupportPowerChargeBar:

CASTLE2:
	Inherits: ^BaseBuilding
    Armor:
		Type: Concrete
    WithDeathAnimation:
        DeathSequencePalette: raplayer
    RenderSprites:
        Image: castle2
        PlayerPalette: raplayer
	Valued:
		Cost: 1800
	Tooltip:
		Name: Castle
		Description: Unlocks Superweapon.\n Unlocks Assasines, Crossbows and Ballista Towers.\nRequires power to operate.
	Buildable:
        IconPalette: ra
		BuildPaletteOrder: 100
		Prerequisites: anyhq
		Queue: MBuilding.GDI
	Building:
		Footprint: ___ xxx xxx
		Dimensions: 3,3
	Health:
		HP: 180000
	RevealsShroud:
		Range: 6c0
	Bib:
	Power:
		Amount: -20
    ProvidesPrerequisite:
		Prerequisite: anyhq
    ProvidesPrerequisite@buildingname:
    ProvidesPrerequisite@2:
		Prerequisite: anycastle
	Selectable:
		Bounds: 72,48,0,12
	SelectionDecorations:
		VisualBounds: 72,68,0,0
    RequiresPower:
	CanPowerDown:
		PowerupSound: EnablePower
		PowerdownSound: DisablePower
	DisabledOverlay:
    SupportPowerChargeBar:
    NukePower:
		Prerequisites: ~techlevel.superweapons
		Icon: lightning
		Cursor: ioncannon
		ChargeTime: 180
		Description: Weather control
		LongDesc: Initiate an Lightning strike.\nApplies instant damage to a small area.
		EndChargeSpeechNotification: IonCannonReady
		SelectTargetSpeechNotification: SelectTarget
		InsufficientPowerSpeechNotification: InsufficientPower
		MissileWeapon: lightningstrike
		DisplayBeacon: True
		BeaconPoster: lightbeacon
		BeaconPosterPalette: beaconposter
        BeaconPalette: raplayer
		DisplayRadarPing: True
		CameraActor: camera
        OrderName: LightningPowerInfoOrder
        FlightDelay: 20
        SkipAscent: True
        
WORKSHOPNOD:
	Inherits: ^BaseBuilding
    WithDeathAnimation:
        DeathSequencePalette: raplayer
    RenderSprites:
        Image: workshop
        PlayerPalette: raplayer
	Valued:
		Cost: 1000
	Tooltip:
		Name: Siege Workshop
		Description: Provides Siege weapons construction
	Buildable:
        IconPalette: ra
		BuildPaletteOrder: 60
		Prerequisites: proc
		Queue: MBuilding.Nod
	Building:
		Footprint: xxx xx=
		Dimensions: 3,2
	Selectable:
		Bounds: 64,34,0,3
	SelectionDecorations:
		VisualBounds: 72,48
	Health:
		HP: 70000
	RevealsShroud:
		Range: 5c0
	Bib:
	Power:
		Amount: -3
	ProvidesPrerequisite@buildingname: 
    RallyPoint:
	Exit@1:
		SpawnOffset: -200,200,0
		ExitCell: 0,2
	Production:
		Produces: MSiege.GDI, MSiege.Nod
	ProductionQueue@1:
		Type: MSiege.GDI
		Group: Aircraft
        Factions: gdi
		RequireOwner: false
		LowPowerSlowdown: 3
    ProductionQueue@2:
		Type: MSiege.Nod
		Group: Aircraft
        Factions: nod
		RequireOwner: false
		LowPowerSlowdown: 3
	ProductionBar:
    SpawnActorPower:
		Prerequisites: ~techlevel.superweapons
		Icon: trojan
		ChargeTime: 280
        Actor: trojan
        LifeTime: 2250
		Description: Wooden Horse 
		LongDesc: Wooden horse constructed to provide large bundles of infantry, seemingly never ending.\n  - Flamewh33l
		SelectTargetSpeechNotification: SelectTarget
		InsufficientPowerSpeechNotification: InsufficientPower
		DisplayBeacon: True
		BeaconPoster: trojanbeacon
		BeaconPosterPalette: beaconposter
		DisplayRadarPing: True
		CameraActor: camera
        OrderName: TrojanPowerInfoOrder
    SupportPowerChargeBar:  

WORKSHOPGDI:
	Inherits: ^BaseBuilding
    WithDeathAnimation:
        DeathSequencePalette: raplayer
    RenderSprites:
        Image: workshop
        PlayerPalette: raplayer
	Valued:
		Cost: 1000
	Tooltip:
		Name: Siege Workshop
		Description: Provides Siege weapons construction
	Buildable:
        IconPalette: ra
		BuildPaletteOrder: 60
		Prerequisites: proc
		Queue: MBuilding.GDI
	Building:
		Footprint: xxx xx=
		Dimensions: 3,2
	Selectable:
		Bounds: 64,34,0,3
	SelectionDecorations:
		VisualBounds: 72,48
	Health:
		HP: 70000
	RevealsShroud:
		Range: 5c0
	Bib:
	Power:
		Amount: -3
	ProvidesPrerequisite@buildingname: 
    RallyPoint:
	Exit@1:
		SpawnOffset: -200,200,0
		ExitCell: 0,2
	Production:
		Produces: MSiege.GDI, MSiege.Nod
	ProductionQueue@1:
		Type: MSiege.GDI
		Group: Aircraft
        Factions: gdi
		RequireOwner: false
		LowPowerSlowdown: 3
    ProductionQueue@2:
		Type: MSiege.Nod
		Group: Aircraft
        Factions: nod
		RequireOwner: false
		LowPowerSlowdown: 3
	ProductionBar:
    ProduceActorPower:
		Prerequisites: ~techlevel.superweapons
		Icon: strangedavinci
		ChargeTime: 280
        Actors: davinci
        Type: MSiege.GDI
		Description: Strange Aircraft
		LongDesc: The Engineers have developed some verey strange prototype for battletest.
		SelectTargetSpeechNotification: SelectTarget
		InsufficientPowerSpeechNotification: InsufficientPower
		DisplayBeacon: True
		BeaconPoster: strange
		BeaconPosterPalette: beaconposter
		DisplayRadarPing: True
		CameraActor: camera
        OrderName: StrangePowerInfoOrder
    SupportPowerChargeBar: 

    
HOSP: 
    RenderSprites:
        Image: hospnew
        PlayerPalette: raplayer
    UpgradeActorsNear:
        Upgrades: hospitalheal
        Range: 10c0
    WithRangeCircle: 
        ValidStances: Ally, Neutral
        Range: 10c0
    Health:
		HP: 250000
    Production:
		Produces: MHosp.Medi
	ProductionQueue:
		Type: MHosp.Medi
		Group: Aircraft
		RequireOwner: false
		LowPowerSlowdown: 3
    ProduceActorPower:
		Prerequisites: ~techlevel.superweapons
		Icon: ddicon
		ChargeTime: 150
        Actors: ddler
        Type: MHosp.Medi
		Description: Deathdealer
		LongDesc: Send a Deathdealer to the battlefield, infecting all nearby enemy ground troops.
		SelectTargetSpeechNotification: SelectTarget
		InsufficientPowerSpeechNotification: InsufficientPower
		DisplayBeacon: False
		BeaconPoster: strange
		BeaconPosterPalette: beaconposter
		DisplayRadarPing: True
		CameraActor: camera
        OrderName: DeathdealerPowerInfoOrder
    Exit@1:
		SpawnOffset: -213,-426,0
		ExitCell: 1,2
        

HOSP.Husk:
    Targetable:
		RequiresForceFire: yes
    -Selectable:
    Inherits:^TechBuilding
    RenderSprites:
        Image: hospnew.husk
        PlayerPalette: raplayer
    TransformOnCapture:
        ForceHealthPercentage: 25
		IntoActor: hosp
    Capturable:
        AllowAllies: True
        CaptureThreshold: 101
	CaptureNotification:
		Notification: CivilianBuildingCaptured
    Health:
		HP: 125000
		

V19:
	RenderSprites:
        Image: V19new
        PlayerPalette: raplayer
    Tooltip:
		Name: Gold Deposit
    Health:
		HP: 100000

V19.Husk:
    Targetable:
		RequiresForceFire: yes
    -Selectable:
    Inherits:^TechBuilding
	Capturable:
        AllowAllies: True
	CaptureNotification:
		Notification: CivilianBuildingCaptured
    TransformOnCapture:
        IntoActor: v19
        CaptureThreshold: 101
		ForceHealthPercentage: 25
    -WithIdleOverlay:
    RenderSprites:
        Image: V19new.husk
        PlayerPalette: raplayer
    Tooltip:
		Name: Gold Deposit (worn out)
    Health:
		HP: 50000
        
MISS:
    Inherits: ^TechBuilding		
    RenderSprites:
        Image: missnew
        PlayerPalette: raplayer
    Capturable:
    Tooltip:
        Name: Observation Post
    RevealsShroud:
        Range: 29c0
    Health:
        HP: 250000
    RepairableBuilding:
    EngineerRepairable:
    CaptureNotification:
        Notification: CivilianBuildingCaptured
        
BARRACKS:
	AlwaysVisible:
	Tooltip:
		Name: Infantry Production
		Description: Infantry Production

VEHICLEPRODUCTION:
	AlwaysVisible:
	Tooltip:
		Name: Stables
		Description: Stables
        
ANYPOWER:
	AlwaysVisible:
	Tooltip:
		Name: Living Quaters
		Description: Living Quaters

ANYHQ:
	AlwaysVisible:
	Tooltip:
		Name: Smith or Castle
		Description: Smith or Castle
        
ANYCASTLE:
	AlwaysVisible:
	Tooltip:
		Name: Castle
		Description: Castle

DECOR1:
 	Inherits: ^CivBuilding
	Building:
		Footprint: x
		Dimensions: 1,1
	Tooltip:
		Name: Barrel
    RenderSprites:
        Image: decor1
        Palette: ra
    Health:
		HP: 5000
        
DECOR2:
 	Inherits: ^CivBuilding
	Building:
		Footprint: x
		Dimensions: 1,1
	Tooltip:
		Name: Barrels   
    RenderSprites:
        Image: decor2
        Palette: ra
    Health:
		HP: 5000
        
DECOR3:
 	Inherits: ^CivBuilding
	Building:
		Footprint: x
		Dimensions: 1,1
	Tooltip:
		Name: Anvil   
    RenderSprites:
        Image: decor3
        Palette: ra
    Health:
		HP: 20000
        
DECOR4:
 	Inherits: ^CivBuilding
	Building:
		Footprint: x
		Dimensions: 1,1
	Tooltip:
		Name: Kart    
    RenderSprites:
        Image: decor4
        Palette: ra
    Health:
		HP: 5000
        
DECOR5:
 	Inherits: ^CivBuilding
	Building:
		Footprint: x
		Dimensions: 1,1
	Tooltip:
		Name: Karts    
    RenderSprites:
        Image: decor5
        Palette: ra
    Health:
		HP: 10000
        
DECOR6:
 	Inherits: ^CivBuilding
	Building:
		Footprint: x
		Dimensions: 1,1
	Tooltip:
		Name: Target    
    RenderSprites:
        Image: decor6
        Palette: ra
    Health:
		HP: 5000
        
DECOR7:
 	Inherits: ^CivBuilding
	Building:
		Footprint: x
		Dimensions: 1,1
	Tooltip:
		Name: Target   
    RenderSprites:
        Image: decor7
        Palette: ra
    Health:
		HP: 5000
        
DECOR8:
 	Inherits: ^CivBuilding
	Building:
		Footprint: x
		Dimensions: 1,1
	Tooltip:
		Name: Smelter    
    RenderSprites:
        Image: decor8
        Palette: ra
    Health:
		HP: 13000
        
DECOR9:
 	Inherits: ^CivBuilding
	Building:
		Footprint: xx xx
		Dimensions: 2,2
	Tooltip:
		Name: Stand   
    RenderSprites:
        Image: decor9
        Palette: ra
    Health:
		HP: 10000