<?xml version="1.0" encoding="utf-8"?>
<Items>
  <Override>
    <!--TODO: change the priority to 2.5 when the bots can switch the batteries-->
    <Item name="" identifier="clownexosuit" category="Diving,Equipment" tags="clowngear,diving,deepdiving,deepdivinglarge,clowns,human,containradiation" scale="0.5" fireproof="true" description="" isshootable="true" allowdroppingonswapwith="diving" impactsoundtag="impact_metal_heavy" botpriority="0.01" cargocontaineridentifier="">
      <Price baseprice="1500" canbespecial="false" sold="false" />
      <Deconstruct time="30">
        <Item identifier="titaniumaluminiumalloy" />
        <Item identifier="titaniumaluminiumalloy" />
        <Item identifier="titaniumaluminiumalloy" />
        <Item identifier="rubber" />
        <Item identifier="rubber" />
      </Deconstruct>
      <Fabricate suitablefabricators="fabricator" requiredtime="45" requiresrecipe="true">
        <RequiredSkill identifier="mechanical" level="60" />
        <RequiredItem identifier="clownsuitunique" />
        <RequiredItem identifier="titaniumaluminiumalloy" amount="10" />
        <RequiredItem identifier="banana" amount="16" />
      </Fabricate>
      <InventoryIcon texture="Content/Items/InventoryIconAtlas2.png" sourcerect="382,895,128,128" origin="0.5,0.5" />
      <Sprite name="Clown Exosuit Item" texture="Content/Items/JobGear/Clown/ClownExosuit.png" sourcerect="2,277,287,235" depth="0.55" origin="0.5,0.5" />
      <Body width="150" height="230" density="15" />
      <Wearable slots="OuterClothes+RightHand" msg="ItemMsgEquipSelect" displaycontainedstatus="true" canbeselected="false" canbepicked="true" pickkey="Select" allowusewhenworn="true">
        <sprite name="Clown Exosuit Helmet Wearable" texture="Content/Items/JobGear/Clown/ClownExosuit.png" limb="Head" hidelimb="true" inheritlimbdepth="true" inheritscale="true" ignorelimbscale="true" scale="0.65" hideotherwearables="true" hidewearablesoftype="" sourcerect="0,0,1,1" origin="0.5,0.5" />
        <sprite name="Clown Exosuit Torso" texture="Content/Items/JobGear/Clown/ClownExosuit.png" limb="Torso" hidelimb="true" inherittexturescale="true" hideotherwearables="true" inheritorigin="false" origin="0.5,0.7" inheritlimbdepth="false" depth="0.061" inheritsourcerect="false" sourcerect="167,1,203,193">
          <LightComponent range="100" lightcolor="250,224,165,100" castshadows="false" depth="0.6" powerconsumption="10" IsOn="true" allowingameediting="false">
            <Sprite texture="Content/Items/JobGear/Clown/ClownExosuit.png" origin="0.5,0.7" sourcerect="304,271,203,193" alpha="1.0" />
          </LightComponent>
        </sprite>
        <sprite name="Clown Exosuit Right Hand" texture="Content/Items/JobGear/Clown/ClownExosuit.png" limb="RightHand" hidelimb="true" inherittexturescale="true" hideotherwearables="true" inheritorigin="true" inheritsourcerect="false" inheritlimbdepth="false" depth="0.02" SourceRect="383,160,64,48" />
        <sprite name="Clown Exosuit Left Hand" texture="Content/Items/JobGear/Clown/ClownExosuit.png" limb="LeftHand" hidelimb="true" inherittexturescale="true" hideotherwearables="true" inheritorigin="true" inheritsourcerect="false" SourceRect="447,160,64,48" />
        <sprite name="Clown Exosuit Right Upper Arm" texture="Content/Items/JobGear/Clown/ClownExosuit.png" limb="RightArm" hidelimb="true" inherittexturescale="true" hideotherwearables="true" inheritorigin="true" inheritsourcerect="false" inheritlimbdepth="false" depth="0.05" SourceRect="383,0,64,96" />
        <sprite name="Clown Exosuit Left Upper Arm" texture="Content/Items/JobGear/Clown/ClownExosuit.png" limb="LeftArm" hidelimb="true" inherittexturescale="true" hideotherwearables="true" inheritorigin="true" inheritsourcerect="false" SourceRect="447,0,64,96" />
        <sprite name="Clown Exosuit Right Forearm" texture="Content/Items/JobGear/Clown/ClownExosuit.png" limb="RightForearm" hidelimb="true" inherittexturescale="true" hideotherwearables="true" inheritorigin="true" inheritsourcerect="false" inheritlimbdepth="false" depth="0.049" SourceRect="383,96,64,64" />
        <sprite name="Clown Exosuit Left Forearm" texture="Content/Items/JobGear/Clown/ClownExosuit.png" limb="LeftForearm" hidelimb="true" inherittexturescale="true" hideotherwearables="true" inheritorigin="true" inheritsourcerect="false" SourceRect="447,96,64,64" />
        <sprite name="Clown Exosuit Waist" texture="Content/Items/JobGear/Clown/ClownExosuit.png" limb="Waist" hidelimb="true" inherittexturescale="true" hideotherwearables="true" inheritorigin="false" origin="0.5,0.5" inheritsourcerect="false" inheritlimbdepth="false" depth="0.06" sourcerect="182,196,178,53" />
        <sprite name="Clown Exosuit Right Thigh" texture="Content/Items/JobGear/Clown/ClownExosuit.png" limb="RightThigh" hidelimb="true" inherittexturescale="true" hideotherwearables="true" inheritorigin="false" origin="0.5,0.5" inheritsourcerect="false" inheritlimbdepth="false" depth="0.058" sourcerect="0,0,96,112" />
        <sprite name="Clown Exosuit Left Thigh" texture="Content/Items/JobGear/Clown/ClownExosuit.png" limb="LeftThigh" hidelimb="true" inherittexturescale="true" hideotherwearables="true" inheritorigin="false" origin="0.5,0.5" inheritsourcerect="false" sourcerect="0,0,96,112" />
        <sprite name="Clown Exosuit Right Leg" texture="Content/Items/JobGear/Clown/ClownExosuit.png" limb="RightLeg" hidelimb="true" inherittexturescale="true" hideotherwearables="true" inheritorigin="true" inheritlimbdepth="false" depth="0.059" inheritsourcerect="true" />
        <sprite name="Clown Exosuit Left Leg" texture="Content/Items/JobGear/Clown/ClownExosuit.png" limb="LeftLeg" hidelimb="true" inherittexturescale="true" hideotherwearables="true" inheritorigin="true" inheritsourcerect="true" />
        <sprite name="Clown Exosuit Left Shoe" texture="Content/Items/JobGear/Clown/ClownExosuit.png" limb="LeftFoot" sound="footstep_armor_exosuit_clown" hidelimb="true" inherittexturescale="true" hideotherwearables="true" inheritorigin="false" origin="0.2,0.5" inheritsourcerect="false" sourcerect="371,211,133,37" />
        <sprite name="Clown Exosuit Right Shoe" texture="Content/Items/JobGear/Clown/ClownExosuit.png" limb="RightFoot" sound="footstep_armor_exosuit_clown" hidelimb="true" inherittexturescale="true" hideotherwearables="true" inheritorigin="false" origin="0.2,0.5" inheritsourcerect="false" sourcerect="371,211,133,37" />
        <StatusEffect type="OnWearing" target="Character" OxygenAvailable="-100.0" UseHullOxygen="false" />
        <StatusEffect tags="clown" type="OnWearing" target="Character" HideFace="true" duration="0.1" stackable="false" />
        <StatusEffect type="OnWearing" target="Character" HideFace="true" ObstructVision="true" PressureProtection="7000.0" PropulsionSpeedMultiplier="0.5" setvalue="true" disabledeltatime="true">
          <Sound file="Content/Items/Diving/DivingSuitLoop1.ogg" range="500" loop="true" />
          <Sound file="Content/Items/Diving/DivingSuitLoop2.ogg" range="500" loop="true" />
          <TriggerAnimation Type="Walk" FileName="HumanWalkExosuit" priority="1" ExpectedSpecies="Human" />
          <TriggerAnimation Type="Run" FileName="HumanRunExosuit" priority="1" ExpectedSpecies="Human" />
        </StatusEffect>
        <!-- slow movement -->
        <StatusEffect type="OnWearing" target="This,Character" setvalue="true" disabledeltatime="true">
          <Conditional Voltage="gt 0.5" />
        </StatusEffect>
        <!-- 0 movement speed when out of fuel-->
        <StatusEffect type="OnWearing" target="This,Character" SpeedMultiplier="-10.0" setvalue="true" disabledeltatime="true">
          <Conditional Voltage="lte 0.5" />
        </StatusEffect>
        <StatusEffect type="OnWearing" target="Contained,Character" Condition="-0.2" targetslot="1" comparison="Or">
          <Conditional IsDead="false" />
          <RequiredItem items="reactorfuel" type="Contained" />
        </StatusEffect>
        <sound file="Content/Items/Weapons/WEAPONS_chargeUp.ogg" type="OnWearing" range="500.0" volumeproperty="Speed" volume="0.2" loop="true" frequencymultiplier="0.5" />
        <damagemodifier armorsector="0.0,360.0" afflictionidentifiers="blunttrauma,gunshotwound,lacerations,explosiondamage" damagemultiplier="0.2" damagesound="LimbArmor" deflectprojectiles="true" />
        <damagemodifier armorsector="0.0,360.0" afflictionidentifiers="bitewounds, bleeding" damagemultiplier="0.25" probabilitymultiplier="0.5" damagesound="LimbArmor" deflectprojectiles="true" />
        <damagemodifier armorsector="0.0,360.0" afflictiontypes="stun" damagemultiplier="0.5" probabilitymultiplier="0.25" damagesound="LimbArmor" deflectprojectiles="true" />
        <damagemodifier armorsector="0.0,360.0" afflictionidentifiers="overheating" damagemultiplier="0.2" />
        <damagemodifier armorsector="0.0,360.0" afflictiontypes="burn" damagemultiplier="0.5" damagesound="" deflectprojectiles="true" />
        <damagemodifier armorsector="0.0,360.0" afflictionidentifiers="radiationsickness" damagemultiplier="0.75" damagesound="LimbArmor" />
        <damagemodifier armorsector="0.0,360.0" afflictionidentifiers="contaminated" damagemultiplier="0.75" damagesound="LimbArmor" />
        <damagemodifier armorsector="0.0,360.0" afflictionidentifiers="huskinfection" probabilitymultiplier="0.1" damagesound="LimbArmor" />
        <StatValue stattype="FlowResistance" value="0.9" />
      </Wearable>
      <Holdable slots="OuterClothes+RightHand" controlpose="true" aimpos="70,5" handle1="-25,-7" />
      <RangedWeapon barrelpos="29,11" spread="5" unskilledspread="5" combatPriority="70" drawhudwhenequipped="true" crosshairscale="0.2" reload="0.1" suitableprojectiles="bananapeelprojectile">
        <Crosshair texture="Content/Items/Weapons/Crosshairs.png" sourcerect="0,256,256,256" />
        <CrosshairPointer texture="Content/Items/Weapons/Crosshairs.png" sourcerect="256,256,256,256" />
        <Sound file="Content/Items/Weapons/GrenadeLauncherShot1.ogg" type="OnUse" selectionmode="All" />
        <Sound file="Content/Items/Weapons/honk.ogg" type="OnUse" selectionmode="All" />
        <ParticleEmitter particle="explosionsmoke" particleamount="5" velocitymin="0" velocitymax="0" />
        <StatusEffect type="OnUse" target="This">
          <SpawnItem identifier="bananapeelprojectile" spawnposition="ThisInventory" count="1" />
          <Explosion range="500.0" force="2" shockwave="false" smoke="false" flames="false" flash="true" sparks="false" underwaterbubble="false" applyfireeffects="false" camerashake="6.0" />
        </StatusEffect>
        <StatusEffect type="OnUse" target="This" reload="5.0" setvalue="true" delay="0.5" />
        <StatusEffect type="OnUse" target="This" reload="0.1" setvalue="true" delay="5.0" />
        <RequiredItems items="bananapeelprojectile" type="Contained" />
      </RangedWeapon>
      <ItemContainer capacity="0" maxstacksize="0" hideitems="true" containedstateindicatorstyle="tank" containedstateindicatorslot="0">
        <Containable items="none" />
        <SlotIcon slotindex="0" texture="Content/UI/StatusMonitorUI.png" sourcerect="64,448,64,64" origin="0.5,0.5" />
        <SlotIcon slotindex="1" texture="Content/UI/StatusMonitorUI.png" sourcerect="192,448,64,64" origin="0.5,0.5" />
        <StatusEffect type="OnWearing" target="Contained" playsoundonrequireditemfailure="true">
          <RequiredItem items="oxygensource" type="Contained" matchonempty="true" />
          <Conditional condition="lte 0.0" />
          <Sound file="Content/Items/WarningBeep.ogg" range="500" loop="true" />
        </StatusEffect>
        <SubContainer capacity="1" maxstacksize="1">
          <Containable items="oxygensource,weldingtoolfuel" />
          <Containable items="oxygensource">
            <StatusEffect type="OnWearing" target="Character" OxygenAvailable="1000.0" />
            <StatusEffect type="OnWearing" target="Contained" Condition="-0.2" comparison="And">
              <Conditional TargetContainer="true" TargetGrandparent="true" IsDead="false" />
              <Conditional TargetContainer="true" TargetGrandparent="true" DecreasedOxygenConsumption="lt 99" />
              <Conditional TargetContainer="true" TargetGrandparent="true" NeedsAir="true" />
            </StatusEffect>
            <StatusEffect type="OnWearing" target="Contained">
              <Conditional condition="lt 5.0" />
              <Sound file="Content/Items/WarningBeepSlow.ogg" range="250" loop="true" />
            </StatusEffect>
          </Containable>
          <Containable items="oxygenitetank">
            <StatusEffect type="OnWearing" target="Character" SpeedMultiplier="1.2" setvalue="true" targetslot="0" comparison="And">
              <Conditional IsDead="false" />
              <Conditional DecreasedOxygenConsumption="lt 99" />
              <Conditional NeedsAir="true" />
            </StatusEffect>
          </Containable>
          <Containable items="weldingfueltank">
            <StatusEffect type="OnWearing" target="Contained" Condition="-0.5" comparison="And">
              <Conditional TargetContainer="true" TargetGrandparent="true" IsDead="false" />
              <Conditional TargetContainer="true" TargetGrandparent="true" DecreasedOxygenConsumption="lt 99" />
              <Conditional TargetContainer="true" TargetGrandparent="true" NeedsAir="true" />
            </StatusEffect>
            <StatusEffect type="OnWearing" target="Character" OxygenAvailable="-100.0" Oxygen="-5.0" comparison="And">
              <Conditional IsDead="false" />
              <Conditional DecreasedOxygenConsumption="lt 99" />
              <Conditional NeedsAir="true" />
            </StatusEffect>
          </Containable>
          <Containable items="incendiumfueltank">
            <StatusEffect type="OnWearing" target="Contained" Condition="-0.5" comparison="And">
              <Conditional TargetContainer="true" TargetGrandparent="true" IsDead="false" />
              <Conditional TargetContainer="true" TargetGrandparent="true" DecreasedOxygenConsumption="lt 99" />
              <Conditional TargetContainer="true" TargetGrandparent="true" NeedsAir="true" />
            </StatusEffect>
            <StatusEffect type="OnWearing" target="Character" OxygenAvailable="-100.0" comparison="And" targetlimb="Torso">
              <Affliction identifier="burn" amount="20.0" />
              <Conditional IsDead="false" />
              <Conditional DecreasedOxygenConsumption="lt 99" />
              <Conditional NeedsAir="true" />
            </StatusEffect>
          </Containable>
        </SubContainer>
        <SubContainer capacity="1" maxstacksize="1">
          <Containable items="reactorfuel">
            <StatusEffect type="OnContaining" target="This,Character" Voltage="1.0" setvalue="true">
              <Conditional IsDead="false" />
            </StatusEffect>
          </Containable>
        </SubContainer>
      </ItemContainer>
      <ItemContainer capacity="1" maxstacksize="1" hideitems="true" spawnwithid="bananapeelprojectile">
        <Containable items="bananapeelprojectile" />
      </ItemContainer>
      <CustomInterface canbeselected="false" drawhudwhenequipped="true" allowuioverlap="true">
        <GuiFrame relativesize="0.15,0.1" anchor="BottomCenter" pivot="BottomCenter" relativeoffset="0,0.1" style="ItemUI" />
        <Button text="clownexosuitweapon" connection="signal_out1">
          <StatusEffect type="OnUse" duration="5" target="NearbyCharacters" range="500" camerashake="5" setvalue="true" stackable="false">
            <RequiredItem items="reactorfuel" type="Contained" />
            <Affliction identifier="hallucinatingshortduration" strength="3" />
            <sound file="Content/Items/JobGear/Clown/ClownExosuitHorn.ogg" type="OnUse" range="5000.0" loop="true" />
          </StatusEffect>
          <StatusEffect type="OnUse" duration="5" target="NearbyCharacters" targetidentifiers="human" range="500" setvalue="true" stackable="false" conditionalcomparison="And" CheckConditionalAlways="true">
            <RequiredItem items="reactorfuel" type="Contained" />
            <Conditional HasStatusTag="!equals clown" />
            <Conditional TeamID="FriendlyNPC" />
            <TriggerEvent identifier="clownhaven_progress" />
          </StatusEffect>
          <StatusEffect type="OnUse" duration="5" target="Limb,This" targetlimbs="Torso" range="500" camerashake="5" setvalue="true" stackable="false" CheckConditionalAlways="true">
            <RequiredItem items="reactorfuel" type="Contained" />
            <Conditional ParentInventory="! null" />
            <ParticleEmitter particle="steamspray" copytargetangle="true" particlespersecond="30" velocitymin="500" velocitymax="1000" anglemin="140" anglemax="140" distancemin="50" distancemax="55" />
          </StatusEffect>
          <StatusEffect type="OnUse" target="Contained" Condition="-0.2" duration="5" targetslot="1" stackable="false">
            <RequiredItem items="reactorfuel" type="Contained" />
          </StatusEffect>
        </Button>
      </CustomInterface>
      <aitarget maxsightrange="1500" />
    </Item>
  </Override>
</Items>