﻿<?xml version="1.0" encoding="utf-8" ?>
<Defs>

  <SitePartDef Name="SitePart_MechCluster">
    <defName>MechCluster</defName>
    <label>mech cluster</label>
    <description>A mech combat cluster.</description>
    <workerClass>SitePartWorker_MechCluster</workerClass>
    <siteTexture>World/WorldObjects/Sites/GenericSite</siteTexture>
    <expandingIconTexture>World/WorldObjects/Expanding/Sites/MechCluster</expandingIconTexture>
    <arrivedLetter>There is a cluster of hostile mechanoids and their combat support structures in this area.\n\nThe cluster can include artillery, turrets, combat mechanoids, and other support and defense structures.</arrivedLetter>
    <arrivedLetterDef>NegativeEvent</arrivedLetterDef>
    <wantsThreatPoints>true</wantsThreatPoints>
    <minThreatPoints>400</minThreatPoints>
    <tags>
      <li>MineralScannerPreciousLumpThreat</li>
      <li>ItemStashQuestThreat</li>
      <li>DownedRefugeeQuestThreat</li>
      <li>QuestActiveThreatDefense</li>
      <li>QuestActiveThreatDefenseNoHidden</li>
      <li>MechCluster</li>
    </tags>
  </SitePartDef>

  <GenStepDef Name="GenStep_MechCluster">
    <defName>MechCluster</defName>
    <linkWithSite>MechCluster</linkWithSite>
    <order>610</order>
    <genStep Class="GenStep_MechCluster" />
  </GenStepDef>

  <SitePartDef ParentName="SitePart_MechCluster">
    <defName>MechClusterForceNoConditionCauser</defName>
    <workerClass>SitePartWorker_MechCluster</workerClass>
    <tags Inherit="False">
      <li>MechClusterForceNoConditionCauser</li>
    </tags>
  </SitePartDef>

  <GenStepDef ParentName="GenStep_MechCluster">
    <defName>MechClusterForceNoConditionCauser</defName>
    <linkWithSite>MechClusterForceNoConditionCauser</linkWithSite>
    <genStep Class="GenStep_MechCluster">
      <forceNoConditionCauser>true</forceNoConditionCauser>
      <extraRangeToRectOfInterest>3</extraRangeToRectOfInterest> <!-- Close to the thing we are guarding -->
    </genStep>
  </GenStepDef>

</Defs>