<?xml version="1.0"?>
<SpaceUnitLeviathan>


	<SpaceUnit Name="Leviathan">
		<Text_ID>TEXT_UNIT_LEVIATHAN</Text_ID>
		<Encyclopedia_Good_Against> Marauder_Missile_Cruiser Interceptor4_Frigate</Encyclopedia_Good_Against>
		<Encyclopedia_Vulnerable_To> Calamari_Cruiser Y-wing Skipray_Blastboat</Encyclopedia_Vulnerable_To>
		<GUI_Row> 1 </GUI_Row>
		<Space_Model_Name>Leviathan.alo</Space_Model_Name>
		<Select_Box_Scale>250</Select_Box_Scale>
		<Select_Box_Z_Adjust>-30</Select_Box_Z_Adjust>
		<Mass>0.9995</Mass>
		<Scale_Factor>0.8</Scale_Factor>
		<Dense_FOW_Reveal_Range_Multiplier>0.2</Dense_FOW_Reveal_Range_Multiplier>

        <Reinforcement_Prevention_Radius> 1800 </Reinforcement_Prevention_Radius>

        <Ranking_In_Category>6</Ranking_In_Category>
		<Max_Speed>2.2</Max_Speed>
		<Max_Rate_Of_Turn>0.6</Max_Rate_Of_Turn>
		<MovementClass> Space </MovementClass>
		<Space_Layer> Frigate </Space_Layer>
		<Layer_Z_Adjust>-130.0</Layer_Z_Adjust>
		<Max_Rate_Of_Roll>0.2</Max_Rate_Of_Roll>
		<Bank_Turn_Angle>15</Bank_Turn_Angle>
		<OverrideAcceleration> .04 </OverrideAcceleration>
		<OverrideDeceleration> .04 </OverrideDeceleration>

		<Armor_Type> Armor_Interdictor </Armor_Type>
        <Shield_Armor_Type>Shield_Frigate</Shield_Armor_Type>
		<Max_Thrust>0.8</Max_Thrust>
		<Hyperspace>Yes</Hyperspace>
		<Hyperspace_Speed>1.5</Hyperspace_Speed>
		<Maintenance_Cost>0.2</Maintenance_Cost>

		<Affiliation>Empire</Affiliation>
		<Tech_Level>4</Tech_Level>
		<Required_Timeline>0</Required_Timeline>
		<Required_Ground_Base_Level>0</Required_Ground_Base_Level>
		<Required_Star_Base_Level>4</Required_Star_Base_Level>
		<Required_Special_Structures />
		<Required_Planets />
		<Autoresolve_Health>800</Autoresolve_Health>
		<Damage>20</Damage>
		<Shield_Points>800</Shield_Points>
		<Tactical_Health>700</Tactical_Health>
		<Shield_Refresh_Rate>60</Shield_Refresh_Rate>
		<Energy_Capacity>10000</Energy_Capacity>
		<Energy_Refresh_Rate>400</Energy_Refresh_Rate>
		<Ship_Class>corvette</Ship_Class>
		<Formation_Priority>3</Formation_Priority>
		<Is_Escort>No</Is_Escort>
		<Is_Bomber>no</Is_Bomber>
		<Is_Interdictor>Yes</Is_Interdictor>
		<Political_Control>0</Political_Control>
		<Squadron_Capacity>5</Squadron_Capacity>
		<Transport_Capacity>4</Transport_Capacity>
		<Number_per_Squadron>1</Number_per_Squadron>
		<Build_Cost_Credits>3000</Build_Cost_Credits>
		<Piracy_Value_Credits>50</Piracy_Value_Credits>
		<AI_Combat_Power>3000</AI_Combat_Power>
		<Build_Time_Seconds>50</Build_Time_Seconds>
		<Build_Tab_Space_Units>Yes</Build_Tab_Space_Units>
		<Disallows_Hyperspace_Retreat> No </Disallows_Hyperspace_Retreat>  <!-- gravity_well ability will take care of this -->
		<Size_Value>120</Size_Value>
		<Behavior>DUMMY_STARSHIP, SELECTABLE, POWERED, SHIELDED</Behavior>
		<SpaceBehavior>SPAWN_SQUADRON, ABILITY_COUNTDOWN, SIMPLE_SPACE_LOCOMOTOR, TARGETING, REVEAL, HIDE_WHEN_FOGGED, UNIT_AI, ASTEROID_FIELD_DAMAGE, DAMAGE_TRACKING, ION_STUN_EFFECT, NEBULA </SpaceBehavior>
		<Lua_Script>Interdictor</Lua_Script>

		<!-- Set to spawn all units once and then not continue - no reserves -->
		<Starting_Spawned_Units_Tech_0>Sith_Fighter_Squadron, 1</Starting_Spawned_Units_Tech_0>
		<Spawned_Squadron_Delay_Seconds>5</Spawned_Squadron_Delay_Seconds>
		<!--Currently no reserves -->
		<Reserve_Spawned_Units_Tech_0>Sith_Fighter_Squadron, 2</Reserve_Spawned_Units_Tech_0> 

		<Collidable_By_Projectile_Living>Yes</Collidable_By_Projectile_Living>
		<Death_Explosions>Large_Explosion_Space_Empire</Death_Explosions>

		<Death_Clone>Damage_Normal, Leviathan_Death_Clone</Death_Clone>

		<Space_FOW_Reveal_Range>1000.0</Space_FOW_Reveal_Range>
		<Targeting_Max_Attack_Distance>800.0</Targeting_Max_Attack_Distance>

		<HardPoints>
			HP_Leviathan_01, 
			HP_Leviathan_02,
			HP_Leviathan_03,
			HP_Leviathan_04,
			HP_Leviathan_05,
			HP_Leviathan_06,
			HP_Leviathan_07,
			HP_Leviathan_08,
			HP_Leviathan_09,
			HP_Leviathan_10,
			HP_Leviathan_11, 
			HP_Leviathan_12, 
			HP_Leviathan_GravWell,
			HP_Leviathan_Shields, 
			HP_Leviathan_Engines, 
			HP_Leviathan_Fighter_Bay
		</HardPoints>

		<Asteroid_Damage_Hit_Particles>Large_Damage_Space</Asteroid_Damage_Hit_Particles>

		<CategoryMask> Frigate | AntiCorvette </CategoryMask>
		<Icon_Name>i_button_Leviathan.tga</Icon_Name>
		<GUI_Model_Name>Leviathan.alo</GUI_Model_Name>
		<GUI_Distance>900</GUI_Distance>
		<GUI_Offset>0 0 0</GUI_Offset>
		<GUI_Velocity>45</GUI_Velocity>
		<Victory_Relevant>yes</Victory_Relevant>
		<Has_Space_Evaluator>True</Has_Space_Evaluator>
		<Play_SFXEvent_On_Sighting>True</Play_SFXEvent_On_Sighting>

		<SFXEvent_Select>Unit_Select_Interdictor</SFXEvent_Select>
		<SFXEvent_Move>Unit_Move_Interdictor</SFXEvent_Move>
		<SFXEvent_Fleet_Move>Unit_Fleet_Move_Interdictor</SFXEvent_Fleet_Move>
		<SFXEvent_Attack>Unit_Attack_Interdictor</SFXEvent_Attack>
		<SFXEvent_Guard>Unit_Guard_Interdictor</SFXEvent_Guard>
		<SFXEvent_Stop>Unit_Stop_Interdictor</SFXEvent_Stop>
		<SFXEvent_Barrage>Unit_Barrage_Interdictor</SFXEvent_Barrage>
		<SFXEvent_Move_Into_Asteroid_Field> Unit_Asteroids_Interdictor </SFXEvent_Move_Into_Asteroid_Field>
		<SFXEvent_Move_Into_Nebula> Unit_Nebula_Interdictor </SFXEvent_Move_Into_Nebula>
		<SFXEvent_Damaged_By_Asteroid> SFX_Asteroid_Detonation </SFXEvent_Damaged_By_Asteroid>

		<SFXEvent_Attack_Hardpoint> HARD_POINT_WEAPON_LASER, Unit_HP_LASER_Interdictor </SFXEvent_Attack_Hardpoint>
		<SFXEvent_Attack_Hardpoint> HARD_POINT_WEAPON_MISSILE, Unit_HP_MISSILE_Interdictor </SFXEvent_Attack_Hardpoint>
		<SFXEvent_Attack_Hardpoint> HARD_POINT_WEAPON_TORPEDO, Unit_HP_TORP_Interdictor </SFXEvent_Attack_Hardpoint>
		<SFXEvent_Attack_Hardpoint> HARD_POINT_WEAPON_ION_CANNON, Unit_HP_ION_Interdictor </SFXEvent_Attack_Hardpoint>
		<SFXEvent_Attack_Hardpoint> HARD_POINT_SHIELD_GENERATOR, Unit_HP_SHIELDS_Interdictor </SFXEvent_Attack_Hardpoint>
		<SFXEvent_Attack_Hardpoint> HARD_POINT_ENGINE, Unit_HP_ENGINES_Interdictor </SFXEvent_Attack_Hardpoint>
		<SFXEvent_Attack_Hardpoint> HARD_POINT_GRAVITY_WELL, Unit_HP_GRAV_Interdictor </SFXEvent_Attack_Hardpoint>

		<SFXEvent_Hardpoint_Destroyed> HARD_POINT_WEAPON_LASER, Unit_Lost_Laser_Interdictor </SFXEvent_Hardpoint_Destroyed>
		<SFXEvent_Hardpoint_Destroyed> HARD_POINT_WEAPON_MISSILE,   </SFXEvent_Hardpoint_Destroyed>
		<SFXEvent_Hardpoint_Destroyed> HARD_POINT_WEAPON_TORPEDO,   </SFXEvent_Hardpoint_Destroyed>
		<SFXEvent_Hardpoint_Destroyed> HARD_POINT_WEAPON_ION_CANNON,  </SFXEvent_Hardpoint_Destroyed>
		<SFXEvent_Hardpoint_Destroyed> HARD_POINT_SHIELD_GENERATOR, Unit_Lost_Shields_Interdictor </SFXEvent_Hardpoint_Destroyed>
		<SFXEvent_Hardpoint_Destroyed> HARD_POINT_ENGINE, Unit_Lost_Engines_Interdictor </SFXEvent_Hardpoint_Destroyed>
		<SFXEvent_Hardpoint_Destroyed> HARD_POINT_GRAVITY_WELL, Unit_Lost_Grav_Interdictor </SFXEvent_Hardpoint_Destroyed>
		<SFXEvent_Hardpoint_Destroyed> HARD_POINT_FIGHTER_BAY,  </SFXEvent_Hardpoint_Destroyed>
		<SFXEvent_Hardpoint_Destroyed> HARD_POINT_TRACTOR_BEAM, </SFXEvent_Hardpoint_Destroyed>
		<SFXEvent_Hardpoint_Destroyed> HARD_POINT_ENABLE_SPECIAL_ABILITY, </SFXEvent_Hardpoint_Destroyed>

		<SFXEvent_Build_Started>EHD_Build_Vehicle</SFXEvent_Build_Started>
		<SFXEvent_Build_Cancelled>EHD_Unit_Canceled</SFXEvent_Build_Cancelled>
		<SFXEvent_Build_Complete>Unit_Complete_Interdictor</SFXEvent_Build_Complete>

		<SFXEvent_Engine_Idle_Loop> Unit_Interdictor_Idle_Engine_Loop </SFXEvent_Engine_Idle_Loop>
		<SFXEvent_Engine_Moving_Loop> Unit_Interdictor_Moving_Engine_Loop </SFXEvent_Engine_Moving_Loop>
		<SFXEvent_Engine_Cinematic_Focus_Loop> Unit_Interdictor_Cinematic_Engine_Loop </SFXEvent_Engine_Cinematic_Focus_Loop>
		
		
		<Death_SFXEvent_Start_Die>Unit_Cruiser_Death_SFX</Death_SFXEvent_Start_Die>

		<Is_Visible_On_Radar>Yes</Is_Visible_On_Radar>

		<MovementClass> Space </MovementClass>
		<Guard_Chase_Range>1000.0</Guard_Chase_Range>
		<Idle_Chase_Range>400.0</Idle_Chase_Range>
		<Attack_Move_Response_Range>400.0</Attack_Move_Response_Range>
		<Targeting_Stickiness_Time_Threshold>5.0</Targeting_Stickiness_Time_Threshold>
		<Targeting_Priority_Set>Corvette</Targeting_Priority_Set>

		<Tactical_Bribe_Cost>2000</Tactical_Bribe_Cost>
		<Lua_Script>ObjectScript_MissileShield</Lua_Script>
		
		<!-- Non-Hero unit abilities description -->
		<Unit_Abilities_Data SubObjectList="Yes">
			<!-- Primary ability -->
			<Unit_Ability>
				<Type>INTERDICT</Type>
				<Disable_Movement>Yes</Disable_Movement>
				
				<SFXEvent_GUI_Unit_Ability_Activated>Unit_Interdictor_Interdictor</SFXEvent_GUI_Unit_Ability_Activated>
				<SFXEvent_GUI_Unit_Ability_Deactivated />
			</Unit_Ability>
			
			<!-- Secondary ability -->
			<Unit_Ability>
				<Type>MISSILE_SHIELD</Type>
				<Disable_Movement>Yes</Disable_Movement>

				<Effective_Radius>750</Effective_Radius>
				<Recharge_Seconds>0</Recharge_Seconds>
				<Expiration_Seconds>0</Expiration_Seconds>
				
				<SFXEvent_GUI_Unit_Ability_Activated>Unit_Missile_Field_Interdictor</SFXEvent_GUI_Unit_Ability_Activated>
				<SFXEvent_GUI_Unit_Ability_Deactivated />
				<Supports_Autofire>True</Supports_Autofire>
		</Unit_Ability>
			
		</Unit_Abilities_Data>

		<Encyclopedia_Text> TEXT_TOOLTIP_LEVIATHAN</Encyclopedia_Text>
		<Encyclopedia_Unit_Class> TEXT_ENCYCLOPEDIA_CLASS_FRIGATE </Encyclopedia_Unit_Class>
		<Score_Cost_Credits> 3000</Score_Cost_Credits>

		<!--<MULTIPLAYER SKIRMISH VALUES BEGIN>-->
		<Tactical_Build_Cost_Multiplayer>2350</Tactical_Build_Cost_Multiplayer>
		<Tactical_Build_Time_Seconds>20</Tactical_Build_Time_Seconds>
		<Tactical_Build_Prerequisites />
		<Tactical_Production_Queue>Tactical_Units</Tactical_Production_Queue>
		<!--<Build_Limit_Current_Per_Player>0</Build_Limit_Current_Per_Player>-->
		<!--<Build_Limit_Lifetime_Per_Player>0</Build_Limit_Lifetime_Per_Player>-->  
		<!--<MULTIPLAYER SKIRMISH VALUES END>-->
		<Population_Value>3</Population_Value>
	</SpaceUnit>

     <SpaceUnit Name="Leviathan_Death_Clone">
		<Text_ID>TEXT_UNIT_LEVIATHAN</Text_ID>
		<Space_Model_Name>Leviathan_D.ALO</Space_Model_Name>
		<xxxSpace_Model_Name>Leviathan.ALO</xxxSpace_Model_Name>
		<Death_SFXEvent_Start_Die>Unit_Star_Destroyer_Death_SFX</Death_SFXEvent_Start_Die>
		<Death_Explosions>Large_Explosion_Space_Empire</Death_Explosions>
		<Scale_Factor>0.3</Scale_Factor>
		<Layer_Z_Adjust>-90.0</Layer_Z_Adjust>
		<Max_Speed>1.2</Max_Speed>
		<Max_Rate_Of_Turn>0.03</Max_Rate_Of_Turn>
		<Max_Thrust>1</Max_Thrust>
		<Max_Rate_Of_Roll>0.1</Max_Rate_Of_Roll>
		<Bank_Turn_Angle>0</Bank_Turn_Angle>
		<Affiliation>Rebel</Affiliation>
		<Ship_Class>frigate</Ship_Class>
		<Remove_Upon_Death>true</Remove_Upon_Death>

	</SpaceUnit>






</SpaceUnitLeviathan>
