Insect Think Trees

Started by twoski, December 11, 2017, 08:43:38 PM

Previous topic - Next topic

twoski

I am modding the insects (spelopede, etc) and i am running into a think tree error.

Problem is, i can't find their think trees anywhere in the ThinkTreeDefs. Are they stored elsewhere?

kaptain_kavern

AFAIK they are using the animal thinkTree

twoski

Ok well maybe it's not their think tree, idk

I spawn a hive and i get this error:


twoski

i cannot find the thinknode XML that contains ThinkNode_ConditionalHiveCanReproduce

BrokenValkyrie

core\Defs\DutyDefs\Duties_Misc.xml

I found the thinknode, line 351.

Here the relevant code.

  <DutyDef>
    <defName>DefendAndExpandHive</defName>
    <thinkNode Class="ThinkNode_Priority">
      <subNodes>
        <li Class="JobGiver_HiveDefense">
          <needLOSToAcquireNonPawnTargets>true</needLOSToAcquireNonPawnTargets>
          <targetAcquireRadius>30</targetAcquireRadius>
          <chaseTarget>false</chaseTarget>
        </li>
        <li Class="ThinkNode_ChancePerHour_Constant">
          <mtbHours>5</mtbHours>
          <subNodes>
            <li Class="JobGiver_MaintainHives" />
          </subNodes>
        </li>
        <li Class="ThinkNode_ConditionalBodySize">
          <min>0.7</min>
          <subNodes>
            <li Class="ThinkNode_ConditionalHiveCanReproduce">
              <subNodes>
                <li Class="ThinkNode_ChancePerHour_Constant">
                  <mtbHours>18</mtbHours>
                  <subNodes>
                    <li Class="JobGiver_MineRandom" />
                  </subNodes>
                </li>
              </subNodes>
            </li>
          </subNodes>
        </li>
        <li Class="ThinkNode_Tagger">
          <tagToGive>SatisfyingNeeds</tagToGive>
          <subNodes>
            <li Class="ThinkNode_PrioritySorter">
              <subNodes>
                <li Class="JobGiver_GetFood" />
                <li Class="JobGiver_GetRest" />
              </subNodes>
            </li>
          </subNodes>
        </li>
        <li Class="JobGiver_WanderHive">
          <maxDanger>Deadly</maxDanger>
        </li>
      </subNodes>
    </thinkNode>
  </DutyDef>

twoski