World:                                                                                                                                                                                                    
	LuaScript:
		Scripts: mission.lua

^Palettes:                
	PaletteFromFile@temptd:
		Name: temptd
		Filename: bits/temperattd.pal
		ShadowIndex: 4
	PlayerColorPalette@TD:
		BasePalette: temptd
		BaseName: playertd
		RemapIndex: 176, 178, 180, 182, 184, 186, 189, 191, 177, 179, 181, 183, 185, 187, 188, 190
	PaletteFromFile@chromeTD:
		Name: chrometd
		Filename: bits/temperattd.pal
		ShadowIndex: 3
		AllowModifiers: false
	PaletteFromPlayerPaletteWithAlpha@placebuildingTD:
		BaseName: placebuildingtd
		BasePalette: playertd
		Alpha: 0.65    
	PaletteFromRGBA@invred:
		Name: invred
		R: 128
		G: 0
		B: 0
		A: 128
	PaletteFromFile@tseffect:
		Name: tseffect
		Filename: bits/animts.pal
	PaletteFromPaletteWithAlpha@TSeffect-nolite-alpha75:
		Name: tseffect-ignore-lighting-alpha75
		Alpha: 0.75
		BasePalette: tseffect
	PaletteFromFile@playercloak:
		Name: playercloak
		Filename: bits/playercloak.pal
		ShadowIndex: 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 176, 178, 2, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 176, 178
	PlayerColorPalette@CLOAK:
		BaseName: player-cloak
		BasePalette: playercloak
		RemapIndex: 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95
	RotationPaletteEffect@CLOAKROTATEPLAYER:
		Palettes: newcloak
		RotationBase: 80
		RotationRange: 15
	RotationPaletteEffect@CLOAKROTATE1:
		Palettes: newcloak
		RotationBase: 1
		RotationRange: 79
	RotationPaletteEffect@CLOAKROTATE2:
		Palettes: newcloak
		RotationBase: 96
		RotationRange: 158
	PaletteFromPlayerPaletteWithAlpha@newcloak:
		BaseName: newcloak
		BasePalette: player-cloak
		Alpha: 0.55


^EmpDisable:
	WithColoredOverlay@EMPDISABLE:
		RequiresCondition: empdisable
		Palette: disabled
	TimedConditionBar@EMPDISABLE:
		Condition: empdisable
		Color: FFFFFF
	WithIdleOverlay@EMPDISABLE:
		Sequence: emp-overlay
		Palette: tseffect
		RequiresCondition: empdisable
	PowerMultiplier@EMPDISABLE:
		RequiresCondition: empdisable
		Modifier: 0
	ExternalCondition@EMPDISABLE:
		Condition: empdisable
^EmpVisualEffect:
	WithColoredOverlay@EMPDISABLE:
		Palette: disabled
	WithIdleOverlay@EMPDISABLE:
		Sequence: emp-overlay
		Palette: tseffect



^Stealthable:
	Cloak@STEALTHABLE:
		InitialDelay: 0
		CloakDelay: 30
		IsPlayerPalette: true
		RequiresCondition: stealth
		Palette: newcloak
		UncloakOn: Dock
	TimedConditionBar@STEALTH:
		Condition: stealth
		Color: FF54D1
	ExternalCondition@STEALTH:
		Condition: stealth
^IronCurtainable:
	SpeedMultiplier@IRONCURTAIN:
		RequiresCondition: invulnerability
		Modifier: 175


# Mines no longer hurt friendlies.
^Mine:
	Mine:
		AvoidFriendly: true


# Make all aircraft empdisable-able
^Plane:
	Inherits@3: ^EmpDisable
	Aircraft:
		CruisingCondition: cruising
		PauseOnCondition: empdisable && !airborne
	KillsSelf:
		RequiresCondition: empdisable && cruising

# Make buidlings empdisable-able and stealthable 
^Building:
	Inherits@2: ^EmpDisable
	Inherits@STEALTHABLE: ^Stealthable

# Make vehicles empdisable-able, and stealthable
^Vehicle:
	Inherits@4: ^EmpDisable
	Mobile:
		PauseOnCondition: being-captured || empdisable
	Inherits@STEALTHABLE: ^Stealthable

# Make helicopter style aircraft stealthable and iron curtainable
^Helicopter:
	Inherits@STEALTHABLE: ^Stealthable
	Inherits@2: ^IronCurtainable
	Chronoshiftable:


^Soldier:
	TakeCover:
		Duration: 50
