<?xml version="1.0" encoding="utf-8"?>
<Defs>

    <ThingDef ParentName="CATShieldBase">
        <defName>CAT_PlasmaShieldMelee</defName>
        <label>plasma shield</label>
        <description>A large plasma shield with a Hellsphere core. It can transform to reveal the Hellsphere core and unleash devastation.</description>
		<tickerType>Normal</tickerType>
		<techLevel>Ultra</techLevel>
		<graphicData>
            <texPath>Things/Apparel/PlasmaShield/PlasmaShieldMelee</texPath>
            <graphicClass>Graphic_Single</graphicClass>
            <drawSize>1.2</drawSize>
        </graphicData>
		<generateAllowChance>0</generateAllowChance>
		<generateCommonality>0</generateCommonality>
        <equippedAngleOffset>-52</equippedAngleOffset>
		<costList>
			<Plasteel>250</Plasteel>
			<ComponentSpacer>16</ComponentSpacer>
			<SignalChip>8</SignalChip>
			<PowerfocusChip>4</PowerfocusChip>
			<NanostructuringChip>2</NanostructuringChip>
		</costList>
        <statBases>
            <MaxHitPoints>400</MaxHitPoints>
            <Flammability>0</Flammability>
            <ArmorRating_Sharp>1.75</ArmorRating_Sharp>
            <ArmorRating_Blunt>1.25</ArmorRating_Blunt>
            <ArmorRating_Heat>2.5</ArmorRating_Heat>
			<DeteriorationRate>0</DeteriorationRate>
            <WorkToMake>75000</WorkToMake>
            <Mass>6.5</Mass>
        </statBases>
		<tradeability>Sellable</tradeability>
        <equippedStatOffsets>
            <MeleeDodgeChance>3</MeleeDodgeChance>
			<MoveSpeed>-0.25</MoveSpeed>
        </equippedStatOffsets>
        <comps>
            <li Class="VFECore.CompProperties_Shield">
                <useDeflectMetalEffect>true</useDeflectMetalEffect>
                <coveredBodyPartGroups>
					<li>Torso</li>
					<li>Legs</li>
					<li>Arms</li>
                    <li>Hands</li>
                </coveredBodyPartGroups>
                <offHandGraphicData>
                    <texPath>Things/Apparel/PlasmaShield/PlasmaShieldMelee</texPath>
                    <graphicClass>Graphic_Multi</graphicClass>
                    <shaderType>CutoutComplex</shaderType>
                    <drawSize>1.2</drawSize>
                </offHandGraphicData>
                <offHandHoldOffset>
                    <northDefault>
                        <offset>(-0.25, 0, 0.15)</offset>
                        <behind>true</behind>
                    </northDefault>
                    <east>
                        <offset>(0, 0, 0.15)</offset>
                        <behind>true</behind>
                    </east>
                    <south>
                        <offset>(0.25, -0.04, 0.15)</offset>
                    </south>
                    <west>
                        <offset>(0, 0, 0.15)</offset>
                    </west>
                </offHandHoldOffset>
            </li>
			<li Class="VFECore.CompProperties_ShieldBubble">
				<compClass>VFECore.CompShieldBubble</compClass>
				<blockRangedAttack>true</blockRangedAttack>
				<blockMeleeAttack>false</blockMeleeAttack>
				<showWhenDrafted>true</showWhenDrafted>
				<showOnHostiles>true</showOnHostiles>
				<showOnNeutralInCombat>true</showOnNeutralInCombat>
				<shieldTexPath>Things/Apparel/MechanoidBitsPack/MechanoidBitsPackShield</shieldTexPath>
				<EnergyShieldRechargeRate>2.5</EnergyShieldRechargeRate>
				<EnergyShieldEnergyMax>75</EnergyShieldEnergyMax>
				<minShieldSize>1.9</minShieldSize>
				<maxShieldSize>2.5</maxShieldSize>
				<disableRotation>true</disableRotation>
			</li>
			<li Class="VanillaApparelExpanded.CompProperties_SwitchApparel">
				<SwitchTo>CAT_PlasmaShieldRanged</SwitchTo>
				<graphicPath>Things/Apparel/PlasmaShield/PlasmaShieldRanged</graphicPath>
			</li>
        </comps>
        <tools>
            <li>
                <label>body</label>
                <labelUsedInLogging>false</labelUsedInLogging>
                <capacities>
                    <li>Blunt</li>
                </capacities>
                <power>12</power>
                <cooldownTime>1.5</cooldownTime>
            </li>
			<li>
				<label>point</label>
				<capacities>
				  <li>Stab</li>
				</capacities>
				<power>21</power>
				<cooldownTime>2.6</cooldownTime>
				<extraMeleeDamages>
				  <li>
					<def>Flame</def>
					<amount>10</amount>
					<chance>0.5</chance>
				  </li>
				</extraMeleeDamages>
			</li>
			<li>
				<label>edge</label>
				<capacities>
				  <li>Cut</li>
				</capacities>
				<power>21</power>
				<cooldownTime>2.6</cooldownTime>
				<extraMeleeDamages>
				  <li>
					<def>Flame</def>
					<amount>10</amount>
					<chance>0.5</chance>
				  </li>
				</extraMeleeDamages>
			</li>
        </tools>
		<recipeMaker>
			<workSpeedStat>GeneralLaborSpeed</workSpeedStat>
			<workSkill>Crafting</workSkill>
			<effectWorking>Smith</effectWorking>
			<soundWorking>Recipe_Smith</soundWorking>
			<unfinishedThingDef>UnfinishedPack</unfinishedThingDef>
			<skillRequirements>
				<Crafting>15</Crafting>
			</skillRequirements>
			<researchPrerequisites>
				<li>UltratechArmament</li>
			</researchPrerequisites>
			<recipeUsers>
				<li>FabricationBench</li>
			</recipeUsers>
		</recipeMaker>
    </ThingDef>
	
    <ThingDef ParentName="CATShieldBase">
        <defName>CAT_PlasmaShieldRanged</defName>
        <label>plasma shield</label>
        <description>A large plasma shield with a Hellsphere core. It can transform to reveal the Hellsphere core and unleash devastation.</description>
		<tickerType>Normal</tickerType>
		<techLevel>Ultra</techLevel>
		<graphicData>
            <texPath>Things/Apparel/PlasmaShield/PlasmaShieldRanged</texPath>
            <graphicClass>Graphic_Single</graphicClass>
            <drawSize>1.2</drawSize>
        </graphicData>
		<generateAllowChance>0</generateAllowChance>
		<generateCommonality>0</generateCommonality>
        <equippedAngleOffset>-52</equippedAngleOffset>
        <statBases>
            <MaxHitPoints>400</MaxHitPoints>
            <Flammability>0</Flammability>
            <ArmorRating_Sharp>1.75</ArmorRating_Sharp>
            <ArmorRating_Blunt>1.5</ArmorRating_Blunt>
            <ArmorRating_Heat>2.5</ArmorRating_Heat>
			<DeteriorationRate>0</DeteriorationRate>
            <WorkToMake>7500</WorkToMake>
            <Mass>6.5</Mass>
        </statBases>
		<tradeability>Sellable</tradeability>
        <equippedStatOffsets>
            <MeleeDodgeChance>3</MeleeDodgeChance>
			<MoveSpeed>-1.0</MoveSpeed>
        </equippedStatOffsets>
		<verbs>
			<li>
				<verbClass>Verb_Shoot</verbClass>
				<label>hellcannon</label>
				<hasStandardCommand>true</hasStandardCommand>
				<onlyManualCast>True</onlyManualCast>
				<defaultProjectile>CAT_Hellsphere</defaultProjectile>
				<warmupTime>8.5</warmupTime>
				<defaultCooldownTime>3.0</defaultCooldownTime>
				<range>28.9</range>
				<soundCast>Shot_HellsphereCannonGun</soundCast>
				<soundCastTail>GunTail_Heavy</soundCastTail>
				<muzzleFlashScale>9</muzzleFlashScale>
				<ai_AvoidFriendlyFireRadius>6</ai_AvoidFriendlyFireRadius>
				<ai_RangedAlawaysShootGroundBelowTarget>true</ai_RangedAlawaysShootGroundBelowTarget>
				<ai_ProjectileLaunchingIgnoresMeleeThreats>true</ai_ProjectileLaunchingIgnoresMeleeThreats>
				<ai_IsBuildingDestroyer>true</ai_IsBuildingDestroyer>
				<ai_TargetHasRangedAttackScoreOffset>50</ai_TargetHasRangedAttackScoreOffset>
				<minRange>2.9</minRange>
				<targetParams>
				  <canTargetLocations>true</canTargetLocations>
				</targetParams>
				<aimingLineMote>Mote_HellsphereCannon_Aim</aimingLineMote>
				<aimingChargeMote>Mote_HellsphereCannon_Charge</aimingChargeMote>
				<aimingChargeMoteOffset>1.07</aimingChargeMoteOffset>
				<aimingLineMoteFixedLength>15.9</aimingLineMoteFixedLength>
				<aimingTargetMote>Mote_HellsphereCannon_Target</aimingTargetMote>
				<burstShotCount>1</burstShotCount>
				<beamTargetsGround>true</beamTargetsGround>
				<soundAiming>HellsphereCannon_Aiming</soundAiming>
				<canGoWild>false</canGoWild>
			</li>
		</verbs>
        <comps>
            <li Class="VFECore.CompProperties_Shield">
                <useDeflectMetalEffect>true</useDeflectMetalEffect>
                <coveredBodyPartGroups>
					<li>Neck</li>
					<li>Shoulders</li>
					<li>Torso</li>
					<li>Legs</li>
					<li>Arms</li>
                    <li>Hands</li>
					<li>Feet</li>
                </coveredBodyPartGroups>
                <offHandGraphicData>
                    <texPath>Things/Apparel/PlasmaShield/PlasmaShieldRanged</texPath>
                    <graphicClass>Graphic_Multi</graphicClass>
                    <shaderType>CutoutComplex</shaderType>
                    <drawSize>1.2</drawSize>
                </offHandGraphicData>
                <offHandHoldOffset>
                    <northDefault>
                        <offset>(-0.25, 0, 0.15)</offset>
                        <behind>true</behind>
                    </northDefault>
                    <east>
                        <offset>(0, 0, 0.15)</offset>
                        <behind>true</behind>
                    </east>
                    <south>
                        <offset>(0.25, -0.04, 0.15)</offset>
                    </south>
                    <west>
                        <offset>(0, 0, 0.15)</offset>
                    </west>
                </offHandHoldOffset>
            </li>
			<li Class="VanillaApparelExpanded.CompProperties_SwitchApparel">
				<SwitchTo>CAT_PlasmaShieldMelee</SwitchTo>
				<graphicPath>Things/Apparel/PlasmaShield/PlasmaShieldMelee</graphicPath>
			</li>
			<li Class="MVCF.Comps.CompProperties_VerbGiver">
				<verbProps>
					<li>
						<label>hellcannon</label>
						<visualLabel>vaporize</visualLabel>
						<canBeToggled>false</canBeToggled>
						<comps>
							<li Class="MVCF.VerbComps.VerbCompProperties_Cooldown">
								<compClass>MVCF.VerbComps.VerbComp_Cooldown</compClass>
								<cooldownTime>120</cooldownTime>
							</li>
						</comps>
					</li>
				</verbProps>
			</li>
        </comps>
        <tools>
            <li>
                <label>body</label>
                <labelUsedInLogging>false</labelUsedInLogging>
                <capacities>
                    <li>Blunt</li>
                </capacities>
                <power>12</power>
                <cooldownTime>1.5</cooldownTime>
            </li>
        </tools>
    </ThingDef>

	<ThingDef ParentName="BaseBullet">
		<defName>CAT_Hellsphere</defName>
		<label>hellsphere launcher shot</label>
		<thingClass>Projectile_HellsphereCannon</thingClass>
		<graphicData>
		<texPath>Things/Projectile/HellsphereCannon</texPath>
		<graphicClass>Graphic_Single</graphicClass>
		<shaderType>MoteGlow</shaderType>
		<drawSize>(1, 2)</drawSize>
		</graphicData>
		<projectile>
			<damageDef>Vaporize</damageDef>
			<damageAmountBase>200</damageAmountBase>
			<speed>95</speed>
			<explosionRadius>2.9</explosionRadius>
			<screenShakeFactor>0.75</screenShakeFactor>
		</projectile>
	</ThingDef>

</Defs>