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

<!-- ThinkTree by Jecrell and Swenzi -->

<ThinkTrees>

  <ThinkTreeDef>
    <defName>CompVehicle_Simple</defName>
    <thinkRoot Class="ThinkNode_Priority">
      <subNodes>
        <li Class="ThinkNode_Subtree">
          <treeDef>Downed</treeDef>
        </li>

		<!-- Vehicle can take direct orders when drafted -->
        <li Class="ThinkNode_ConditionalColonyFaction">
					<subNodes>
            <li Class="ThinkNode_Tagger">
              <tagToGive>DraftedOrder</tagToGive>
              <subNodes>
                <li Class="JobGiver_Orders" />
              </subNodes>
            </li>
          </subNodes>
        </li>

  <!-- Vehicle joins auto joinable caravan -->
        <li Class="ThinkNode_Subtree">
          <treeDef>JoinAutoJoinableCaravan</treeDef>
        </li>

  <li Class="ThinkNode_Tagger">
    <tagToGive>Fieldwork</tagToGive>
      <subNodes>
        <li Class="JobGiver_Haul" />
      </subNodes>
    </li>

   <!--Vehicle Unloads its own inventory, logical so long as someone is inside-->
      <li Class="CompVehicle.ThinkNode_ConditionalCanManipulate">
        <subNodes>
          <li Class="ThinkNode_Tagger">
            <tagToGive>UnloadingOwnInventory</tagToGive>
            <subNodes>
                <li Class="JobGiver_UnloadYourInventory" />
            </subNodes>
          </li>
        </subNodes>
      </li>

  <!--  Lets you set vehicle "parking spots," places for vehicles to stay.  -->
      <li Class="ThinkNode_ConditionalForcedGoto">
          <subNodes>
              <li Class="ThinkNode_Tagger">
                  <tagToGive>Misc</tagToGive>
                  <subNodes>
                      <li Class="JobGiver_ForcedGoto" />
                  </subNodes>
              </li>
          </subNodes>
      </li>
      <li Class="JobGiver_SeekAllowedArea" />


        <li Class="ThinkNode_Subtree">
          <treeDef>LordDuty</treeDef>
        </li>


        <li Class="ThinkNode_Tagger">
          <tagToGive>Idle</tagToGive>
          <subNodes>
            <li Class="JobGiver_Idle" />
          </subNodes>
        </li>

        <li Class="JobGiver_IdleError"/>
      </subNodes>
    </thinkRoot>
  </ThinkTreeDef>


	<ThinkTreeDef>
		<defName>CompVehicle_SimpleConstant</defName>
		<thinkRoot Class="ThinkNode_Priority">
			<subNodes>
				<li Class="ThinkNode_ConditionalCanDoConstantThinkTreeJobNow">
					<subNodes>

            <!-- Hostility response -->
            <li Class="JobGiver_ConfigurableHostilityResponse" />

            <!-- Lord directives -->
            <li Class="ThinkNode_Subtree">
              <treeDef>LordDutyConstant</treeDef>
            </li>
					</subNodes>
				</li>
			</subNodes>
		</thinkRoot>
	</ThinkTreeDef>

</ThinkTrees>
