^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:
		DamageCooldown: 250

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

upgrade.outpost:
	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:
	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:
	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:
	Buildable:
		BuildPaletteOrder: 5
		Prerequisites: light_factory, ~!choosefaction
		BuildDuration: 500
		Description: Unlocks additional light vehicles
	Valued:
		Cost: 750

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

upgrade.hightech:
	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:
	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:
	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:
	GiveUnitCrateAction@Thumper:
		SelectionShares: 4
		Units: engineer
	GiveUnitCrateAction@Fremen:
		SelectionShares: 5
		Units: fremen, fremen, fremen, fremen, fremen
		ValidFactions: atreides
		Prerequisites: techlevel.high, palace

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: ^SelectableCombatUnit
	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:
	OwnerLostAction:
		Action: Dispose
	Tooltip:
		Name: Thumper
	RevealsShroud:
		Range: 0c0
	Mobile:
		Speed: 0
		Locomotor: thumper
	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

^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
