^GainsExperience:
	DamageMultiplier@RANK-1:
		Modifier: 95
	DamageMultiplier@RANK-2:
		Modifier: 90
	DamageMultiplier@RANK-3:
		Modifier: 85
	FirepowerMultiplier@RANK-ELITE:
		Modifier: 120
	-SpeedMultiplier@RANK-1:
	-SpeedMultiplier@RANK-2:
	-SpeedMultiplier@RANK-3:
	-SpeedMultiplier@RANK-ELITE:
	ReloadDelayMultiplier@RANK-1:
		Modifier: 95
	ReloadDelayMultiplier@RANK-2:
		Modifier: 90
	ReloadDelayMultiplier@RANK-3:
		Modifier: 85
	InaccuracyMultiplier@RANK-1:
		Modifier: 80
	InaccuracyMultiplier@RANK-2:
		Modifier: 60
	InaccuracyMultiplier@RANK-3:
		Modifier: 40
	InaccuracyMultiplier@RANK-ELITE:
		Modifier: 20
	ChangesHealth@ELITE:
		PercentageStep: 1
		Delay: 25
		DamageCooldown: 250

^PlayerHandicaps:
	-HandicapFirepowerMultiplier:
	-HandicapDamageMultiplier:
	HandicapProductionTimeMultiplier:

upgrade.conyard:
	Inherits@handicaps: ^PlayerHandicaps
	Buildable:
		BuildPaletteOrder: 1
		BuildDuration: 750
		Prerequisites: ~construction_yard, ~!choosefaction
		Description: upgrade-conyard.description
	Valued:
		Cost: 1000

upgrade.outpost:
	Inherits@handicaps: ^PlayerHandicaps
	AlwaysVisible:
	Interactable:
	ScriptTriggers:
	Tooltip:
		Name: upgrade-outpost.name
	Buildable:
		BuildPaletteOrder: 2
		Prerequisites: outpost, ~!choosefaction
		Queue: Upgrade
		BuildLimit: 1
		BuildDuration: 500
		BuildDurationModifier: 100
		Description: upgrade-outpost.description
	Valued:
		Cost: 750
	RenderSprites:
		Image: outpost.ordos
		FactionImages:
			atreides: outpost.atreides
			fremen: outpost.atreides
			harkonnen: outpost.harkonnen
			corrino: outpost.harkonnen
	ProvidesPrerequisite@upgradename:

upgrade.silo:
	Inherits@handicaps: ^PlayerHandicaps
	AlwaysVisible:
	Interactable:
	ScriptTriggers:
	Tooltip:
		Name: upgrade-silo.name
	Buildable:
		BuildPaletteOrder: 3
		Prerequisites: silo, ~!choosefaction
		Queue: Upgrade
		BuildLimit: 1
		BuildDuration: 250
		BuildDurationModifier: 100
		Description: upgrade-silo.description
	Valued:
		Cost: 500
	RenderSprites:
		Image: silo.ordos
		FactionImages:
			atreides: silo.atreides
			fremen: silo.atreides
			harkonnen: silo.harkonnen
			corrino: silo.harkonnen
	ProvidesPrerequisite@upgradename:

upgrade.barracks:
	Inherits@handicaps: ^PlayerHandicaps
	Buildable:
		BuildPaletteOrder: 4
		Prerequisites: barracks, ~!choosefaction
		BuildDuration: 250
		Description: Unlocks additional infantry
	Valued:
		Cost: 500
	RenderSprites:
		Image: barracks.ordos
		FactionImages:
			atreides: barracks.atreides
			fremen: barracks.fremen
			harkonnen: barracks.harkonnen
			corrino: barracks.corrino
			mercenary: barracks.mercenary

upgrade.light:
	Inherits@handicaps: ^PlayerHandicaps
	Buildable:
		BuildPaletteOrder: 5
		Prerequisites: light_factory, ~!choosefaction
		BuildDuration: 500
		Description: Unlocks additional light vehicles
	Valued:
		Cost: 750

upgrade.heavy:
	Inherits@handicaps: ^PlayerHandicaps
	Buildable:
		BuildPaletteOrder: 6
		Prerequisites: heavy_factory, ~!choosefaction
		BuildDuration: 750
		Description: Unlocks additional heavy vehicles
	Valued:
		Cost: 1000

upgrade.hightech:
	Inherits@handicaps: ^PlayerHandicaps
	Buildable:
		BuildPaletteOrder: 7
		Prerequisites: ~!choosefaction, High Tech Factory, ~techlevel.superweapons
		BuildDuration: 1000
		Description: Unlocks hight tech support powers
	Valued:
		Cost: 1250
	RenderSprites:
		Image: hightech.atreides
		FactionImages:
			ordos: hightech.ordos
			harkonnen: hightech.harkonnen
			corrino: hightech.harkonnen
			smuggler: hightech.ordos
			mercenary: hightech.ordos

upgrade.research:
	Inherits@handicaps: ^PlayerHandicaps
	AlwaysVisible:
	Interactable:
	ScriptTriggers:
	Tooltip:
		Name: Smuggler IX Research Center Upgrade
	Buildable:
		BuildPaletteOrder: 9
		Prerequisites: ~!choosefaction, ~research_centre.smuggler, ~!factions.standard, ~techlevel.high
		Queue: Upgrade
		BuildLimit: 1
		BuildDuration: 1000
		BuildDurationModifier: 100
		Description: Unlocks Signal Shroud
	Valued:
		Cost: 1250
	RenderSprites:
		Image: research.smuggler
	ProvidesPrerequisite@upgradename:

upgrade.starport:
	Inherits@handicaps: ^PlayerHandicaps
	AlwaysVisible:
	Interactable:
	ScriptTriggers:
	Tooltip:
		Name: Mercenary Starport Upgrade
	Buildable:
		BuildPaletteOrder: 10
		Prerequisites: ~!choosefaction, ~starport.mercenary, ~!factions.standard, ~techlevel.high
		Queue: Upgrade
		BuildLimit: 1
		BuildDuration: 1250
		BuildDurationModifier: 100
		Description: Unlocks Hire Contractors
	Valued:
		Cost: 1500
	RenderSprites:
		Image: starport.mercenary
	ProvidesPrerequisite@upgradename:

crate:
	GiveCashCrateAction@2:
		SelectionShares: 30
	GiveCashCrateAction@3:
		Amount: 1250
	LevelUpCrateAction:
		SelectionShares: 25
		Levels: 4
		Range: 0c498
		MaxExtraCollectors: 5
	GiveUnitCrateAction@Grenadier:
		Units: grenadier, grenadier, grenadier, grenadier
		-ValidFactions:
		Prerequisites: techlevel.medium, barracks, upgrade.barracks, high_tech_factory, barracks.atreides
	GiveUnitCrateAction@Thumper:
		SelectionShares: 8
		Units: mortar_inf, mortar_inf, mortar_inf, mortar_inf
		Prerequisites: techlevel.medium, barracks, upgrade.barracks, high_tech_factory, barracks.mercenary
	GiveUnitCrateAction@Fremen:
		SelectionShares: 8
		Units: fremen_warrior, fremen_warrior, fremen_warrior, fremen_warrior
		-ValidFactions:
		Prerequisites: techlevel.medium, barracks, upgrade.barracks, high_tech_factory, barracks.fremen
	GiveUnitCrateAction@Sardaukar:
		Units: sardaukar, sardaukar, sardaukar
		-ValidFactions:
		Prerequisites: techlevel.medium, barracks, upgrade.barracks, high_tech_factory, barracks.corrino
	GiveUnitCrateAction@Saboteur:
		SelectionShares: 8
		Units: assassin, assassin, assassin
		-ValidFactions:
		Prerequisites: techlevel.medium, barracks, upgrade.barracks, high_tech_factory, barracks.harkonnen
	GiveUnitCrateAction@ScoutInfantry:
		SelectionShares: 12
		Units: scout_infantry, scout_infantry, scout_infantry, scout_infantry
		Prerequisites: techlevel.medium, barracks, upgrade.barracks, outpost, enhancedAirCombat
	GiveUnitCrateAction@Trike:
		-ValidFactions:
	GiveUnitCrateAction@Raider:
		-ValidFactions:
		Prerequisites: techlevel.low, light_factory, light.raider
	GiveUnitCrateAction@Hunter:
		SelectionShares: 25
		Units: hunter
		Prerequisites: techlevel.low, light_factory, light.hunter
	GiveUnitCrateAction@StealthRaider:
		-ValidFactions:
		Prerequisites: techlevel.medium, light_factory, upgrade.light, high_tech_factory, light.ordos
	GiveUnitCrateAction@Jammer:
		SelectionShares: 8
		Units: jammer
		Prerequisites: techlevel.medium, light_factory, upgrade.light, high_tech_factory, light.smuggler
	GiveUnitCrateAction@Striker:
		SelectionShares: 20
		Units: quad.heavy
		Prerequisites: techlevel.medium, light_factory, upgrade.light, light.heavy_quad
	GiveUnitCrateAction@Rover:
		SelectionShares: 12
		Units: spire
		Prerequisites: techlevel.medium, light_factory, upgrade.light, outpost, enhancedAirCombat
	GiveUnitCrateAction@CombatA:
		-ValidFactions:
		Prerequisites: techlevel.low, heavy_factory, heavy.atreides_combat
	GiveUnitCrateAction@CombatH:
		-ValidFactions:
		Prerequisites: techlevel.low, heavy_factory, heavy.harkonnen_combat
	GiveUnitCrateAction@CombatO:
		-ValidFactions:
		Prerequisites: techlevel.low, heavy_factory, heavy.ordos_combat
	GiveUnitCrateAction@CombatF:
		SelectionShares: 15
		Units: combat_tank_fremen
		Prerequisites: techlevel.low, heavy_factory, heavy.fremen_combat
	GiveUnitCrateAction@CombatC:
		SelectionShares: 15
		Units: combat_tank_corrino
		Prerequisites: techlevel.low, heavy_factory, heavy.corrino_combat
	GiveUnitCrateAction@CombatS:
		SelectionShares: 15
		Units: combat_tank_cheap
		Prerequisites: techlevel.low, heavy_factory, heavy.cheap_combat
	GiveUnitCrateAction@CombatM:
		SelectionShares: 15
		Units: combat_tank_mercenary
		Prerequisites: techlevel.low, heavy_factory, heavy.mercenary_combat
	GiveUnitCrateAction@Flamer:
		SelectionShares: 5
		Units: flamer
		Prerequisites: techlevel.high, heavy_factory, research_centre, heavy.smuggler
	GiveUnitCrateAction@SonicTank:
		-ValidFactions:
		Prerequisites: techlevel.high, heavy_factory, research_centre, heavy.atreides
	GiveUnitCrateAction@Devastator:
		-ValidFactions:
		Prerequisites: techlevel.high, heavy_factory, research_centre, heavy.harkonnen
	GiveUnitCrateAction@Deviator:
		-ValidFactions:
		Prerequisites: techlevel.high, heavy_factory, research_centre, heavy.ordos
	GiveUnitCrateAction@SandTank:
		SelectionShares: 5
		Units: sand_tank
		Prerequisites: techlevel.high, heavy_factory, research_centre, heavy.fremen
	GiveUnitCrateAction@BombardmentTank:
		SelectionShares: 5
		Units: bombardment_tank
		Prerequisites: techlevel.high, heavy_factory, research_centre, heavy.corrino
	GiveUnitCrateAction@BisonTank:
		SelectionShares: 5
		Units: bison_tank
		Prerequisites: techlevel.high, heavy_factory, research_centre, heavy.mercenary

crater_big:
	Inherits: ^Husk
	-WithFacingSpriteBody:
	WithSpriteBody:
	Armor:
		Type: invulnerable
	GrantConditionOnTerrain@rock:
		Condition: rock
		TerrainTypes: Rock, Concrete
	GrantConditionOnTerrain@sand:
		Condition: sand
		TerrainTypes: Sand, Dune, Spice, SpiceSand
	RenderSprites:
		Palette: terrain
	RequiresSpecificOwners:
		ValidOwnerNames: Neutral
	Building:
		Dimensions: 3, 2
		Footprint: ___ ___
	MapEditorData:
		ExcludeTilesets: INTERIOR
		Categories: Decorations
	HitShape:
		UseTargetableCellsOffsets: true
		Type: Rectangle
			TopLeft: -512, -512
			BottomRight: 512, 512
	WithIdleOverlay@rock:
		RequiresCondition: rock
		Image: crater_big
		Sequence: rock
		Palette: terrain
	WithIdleOverlay@sand:
		RequiresCondition: sand
		Image: crater_big
		Sequence: sand
		Palette: terrain
	ChangesHealth:
		Step: -70
		StartIfBelow: 101
		Delay: 4
	-Tooltip:

worm_eating:
	Inherits: ^Husk
	-WithFacingSpriteBody:
	WithSpriteBody:
	Armor:
		Type: invulnerable
	GrantConditionOnTerrain@sand:
		Condition: sand
		TerrainTypes: Sand, Spice, Dune, SpiceSand, Rock, Transition, Concrete, SpiceBlobs
	RenderSprites:
		Palette: terrain
	RequiresSpecificOwners:
		ValidOwnerNames: Neutral
	Building:
		Dimensions: 1, 1
		Footprint: _
	MapEditorData:
		ExcludeTilesets: INTERIOR
		Categories: Decorations
	HitShape:
		UseTargetableCellsOffsets: false
	WithIdleOverlay:
		RequiresCondition: sand
		Image: worm_eating
		Sequence: mouth
		Palette: terrain
	WithIdleOverlay@sand:
		RequiresCondition: sand
		Image: worm_eating
		Sequence: sand
		Palette: terrain
	Health:
		HP: 500000
	KillsSelf:
		Delay: 25
	-Tooltip:
	SpawnActorOnDeath:
		Actor: sandworm
		OwnerType: InternalName
		InternalOwner: Creeps
		SpawnAfterDefeat: false

thump:
	Inherits@1: ^ExistsInWorld
	Inherits@2: ^GainsExperience
	Inherits@3: ^SpriteActor
	Inherits@selection: ^SelectableSupportUnit
	Inherits@handicaps: ^PlayerHandicaps
	Inherits@avalancheKill: ^CliffAvalanche
	QuantizeFacingsFromSequence:
		Sequence: idle
	WithIdleOverlay@idle:
		Sequence: idle
		RequiresCondition: !thump || dropped
	WithIdleOverlay@thump:
		Sequence: thump
		RequiresCondition: thump && !dropped
	WithIdleOverlay@thump-sand:
		Sequence: thump-sand
		RequiresCondition: thump && !dropped
	AmbientSound:
		SoundFiles: THUMPER1.WAV
		Interval: 20
		RequiresCondition: thump && !dropped
	Crushable:
		WarnProbability: 0
	Demolishable@wormCrush:
	Huntable:
	Selectable:
		Bounds: 768, 768, 0, -128
		DecorationBounds: 384, 640, 0, -128
		Class: tool
		Voice: none
	OwnerLostAction:
		Action: Dispose
	Tooltip:
		Name: Thumper
	RevealsShroud:
		Range: 0c0
	Mobile:
		Speed: 0
		Locomotor: thumper
		PauseOnCondition: !dropped
	Health:
		HP: 1000
	Armor:
		Type: light
	Targetable:
		TargetTypes: Ground, Vehicle
	Passenger:
		CargoType: Infantry
	Parachutable:
		KilledOnImpassableTerrain: true
		FallRate: 100
	KillsSelf:
		Delay: 750
		GrantsCondition: spawnworm
		RequiresCondition: thump && !dropped
	GrantConditionOnMovement:
		Condition: dropped
		ValidMovementTypes: Vertical
	GrantConditionOnTerrain:
		TerrainTypes: Dune, Spice, SpiceSand, Sand
		Condition: thump
	SpawnActorOnDeath:
		Actor: worm_eating
		OwnerType: InternalName
		InternalOwner: Creeps
		SpawnAfterDefeat: false
		RequiresCondition: spawnworm
	HiddenUnderFog:
	HitShape:
		Type: Circle
			Radius: 64
	AttractsWorms:
		Intensity: 1000
		Falloff: 0, 0, 0, 100, 100, 100, 25, 11, 6, 4, 3, 2, 1, 0
		RequiresCondition: thump

^Dummy:
	EditorOnlyTooltip:
		Name: wpdummy
	MapEditorData:
		Categories: system
	AlwaysVisible:
	Interactable:
	Immobile:
		OccupiesSpace: false
	RenderSpritesEditorOnly:
		Image: waypoint
	WithSpriteBody:
	BodyOrientation:
		QuantizedFacings: 1
	OwnerLostAction:
		Action: Dispose

^DummyVehicle:
	Inherits@1: ^ExistsInWorld
	Inherits@2: ^SpriteActor
	Interactable:
	Mobile:
		TurnSpeed: 20
		Locomotor: vehicle
		Speed: 20
		PauseOnCondition: notmobile
	Targetable:
		TargetTypes: Ground, Vehicle, C4
	Passenger:
		CargoType: Vehicle
	HiddenUnderFog:
	WithFacingSpriteBody:
	HitShape:
		Type: Circle
			Radius: 16
	AutoCarryable:
		CarriedCondition: notmobile
		LockedCondition: notmobile
	RejectsOrders:

dummy.kill_self:
	Inherits: dummyShrapnelThrower_carryall
	-FireProjectilesOnDeath@derbisshort:
	-FireProjectilesOnDeath@derbislong:

^LivingDummy:
	Inherits: ^Dummy
	-Immobile:
	Mobile:
		Speed: 0
		Locomotor: foot
	Health:
		HP: 1
	DamageMultiplier@IMMORTAL:
		Modifier: 0
	Armor:
		Type: none
	HitShape:

waypoint.airtstrike_a:
	Inherits: ^Dummy
	RenderSpritesEditorOnly:

waypoint.airtstrike_o:
	Inherits: ^Dummy
	RenderSpritesEditorOnly:

waypoint.reinforce_h:
	Inherits: ^Dummy
	ProximityExternalCondition:
		Condition: landing_area
		Range: 6c0

waypoint.reinforce_o:
	Inherits: ^Dummy

signal_shroud:
	Inherits: ^Dummy
	TerrainLightSource:
		Range: 10c512
		Intensity: -0.09
		RedTint: 0.01
		GreenTint: 0.01
		BlueTint: 0.01
	-Immobile:
	Health:
		HP: 1
	DamageMultiplier@IMMORTAL:
		Modifier: 0
	Armor:
		Type: none
	KillsSelf:
		Delay: 6000
	HitShape:
	Mobile:
		Speed: 0
		Locomotor: foot
	CreatesShroud:
		Range: 10c512
		ValidRelationships: Enemy, Neutral
	RejectsOrders:
	RevealsShroud:
		Range: 10c512
		Type: CenterPosition
	DetectCloaked:
		Range: 10c512
	ProvidesRadar:

dummy_spam_actor:
	Inherits: ^DummyVehicle
	GrantConditionOnTerrain@TerrailTest:
		Condition: on_land
		TerrainTypes: Rock, Concrete, Sand, SpiceSand, Spice, Dune, Rough, SpiceBlobs, Clear, Transition
	RenderSprites:
		Image: invisible
	Health:
		HP: 10
	ChangesHealth:
		Step: -5
		Delay: 3
		StartIfBelow: 110
		RequiresCondition: on_land

dummyShrapnelThrower_carryall:
	Inherits: ^Dummy
	KillsSelf:
		Delay: 0
	HitShape:
		Type: Circle
			Radius: 16
	Health:
		HP: 1
	FireProjectilesOnDeath@derbisshort:
		Weapons: Debris, Debris2, debris_vehicle01
		Pieces: 1, 3
		Range: 1c0, 3c0
	FireProjectilesOnDeath@derbislong:
		Weapons: Debris, Debris2, Debris3, Debris4, DeathHandClusterDebris
		Pieces: 2, 4
		Range: 4c0, 7c0

dummyShrapnelThrower:
	Inherits: ^Dummy
	KillsSelf:
		Delay: 0
	HitShape:
		Type: Circle
			Radius: 16
	Health:
		HP: 1
	FireProjectilesOnDeath@derbis:
		Weapons: Debris, Debris2, debris_vehicle01, debris_vehicle02, DeathHandClusterDebris
		Pieces: 3, 7
		Range: 1c0, 6c0

dummy_wormmakeanim:
	Inherits: ^Dummy
	KillsSelf:
		Delay: 75
	ProximityExternalCondition:
		Range: 2c0
		Condition: makeAnimation
