<?xml version="1.0" encoding="utf-8"?>
<Defs>
  <AlienRace.ThingDef_AlienRace Name="ARA_NodeBase" ParentName="ARA_PawnBase" Abstract="True">
    <alienRace>
      <!-- 核心设置 -->
      <generalSettings>
        <!-- 男性生成几率 -->
        <maleGenderProbability>0</maleGenderProbability>
        <!-- 无视年龄疾病 -->
        <immuneToAge>true</immuneToAge>
        <!-- 在口角中造成的最大伤害 -->
        <maxDamageForSocialfight>4</maxDamageForSocialfight>
        <!-- 免疫人类的异形歧视 -->
        <immuneToXenophobia>false</immuneToXenophobia>
        <!-- 最小的可生成成人背景的年龄 -->
        <minAgeForAdulthood>0</minAgeForAdulthood>
        <!-- 手术继承自人类 -->
        <humanRecipeImport>false</humanRecipeImport>
        <!-- 睡觉定义 -->
        <canLayDown>true</canLayDown>
        <!-- 各种零件定义 -->
        <alienPartGenerator Inherit="False">
          <!-- 允许的头部 -->
          <headTypes Inherit="False">
            <li>Female_AverageNormal</li>
            <!-- <li>Female_AverageWide</li>
            <li>Female_AveragePointy</li> -->
          </headTypes>
          <!-- 身体类型 -->
          <bodyTypes Inherit="False">
            <li>Thin</li>
          </bodyTypes>
          <!-- 颜色设置 -->
          <colorChannels Inherit="false">
            <!-- 皮肤是特殊的，因为现在由基因定义肤色 -->
            <li>
              <name>skin</name>
              <first Class="AlienRace.ColorGenerator_SkinColorMelanin">
                <minMelanin>0</minMelanin>
                <maxMelanin>0</maxMelanin>
              </first>
            </li>
            <!-- 头发颜色 -->
            <li>
              <name>hair</name>
              <first Class="ColorGenerator_Options">
                <options>
                  <li>
                    <weight>15</weight>
                    <min>(0.4,0.3,0.5)</min>
                    <max>(0.6,0.1,0.7)</max>
                  </li>
                  <li>
                    <weight>6</weight>
                    <min>(0.9,0.9,0.9)</min>
                    <max>(0.9,0.9,0.9)</max>
                  </li>
                  <li>
                    <weight>6</weight>
                    <min>(1,0.8,0.8)</min>
                    <max>(1,0.9,0.9)</max>
                  </li>
                  <li>
                    <weight>3</weight>
                    <min>(1,1,1)</min>
                    <max>(1,1,1)</max>
                  </li>
                </options>
              </first>
            </li>
          </colorChannels>
          <!-- 额外身体部件 -->
          <bodyAddons>
          </bodyAddons>
          <!-- 图像放大 -->
          <!-- <borderScale>4</borderScale>
          <atlasScale>4</atlasScale> -->
          <!-- <customDrawSize>(4,4)</customDrawSize>
          <customHeadDrawSize>(1.0,1.0)</customHeadDrawSize>
          <customPortraitDrawSize>(2,2)</customPortraitDrawSize> -->
        </alienPartGenerator>
        <growthAges>
          <li>0</li>
        </growthAges>
        <!-- 年龄工作效率等的覆盖 -->
        <ageStatOverrides>
          <WorkSpeedGlobal>
            <useBiologicalYears>true</useBiologicalYears>
            <curve>
              <points>
                <li>(0,1)</li>
              </points>
            </curve>
          </WorkSpeedGlobal>
          <ShootingAccuracyChildFactor MayRequire="Ludeon.RimWorld.Biotech">
            <useBiologicalYears>true</useBiologicalYears>
            <curve>
              <points>
                <li>(0,1)</li>
              </points>
            </curve>
          </ShootingAccuracyChildFactor>
          <MarketValue>
            <useBiologicalYears>true</useBiologicalYears>
            <curve>
              <points>
                <li>(0,1)</li>
              </points>
            </curve>
          </MarketValue>
          <MeleeHitChance>
            <useBiologicalYears>true</useBiologicalYears>
            <curve>
              <points>
                <li>(0,1)</li>
              </points>
            </curve>
          </MeleeHitChance>
          <AimingDelayFactor>
            <useBiologicalYears>true</useBiologicalYears>
            <curve>
              <points>
                <li>(0,1)</li>
              </points>
            </curve>
          </AimingDelayFactor>
          <ArrestSuccessChance>
            <useBiologicalYears>true</useBiologicalYears>
            <curve>
              <points>
                <li>(0, 1)</li>
              </points>
            </curve>
          </ArrestSuccessChance>
        </ageStatOverrides>
        <!-- 生育设置，将妊娠设为男性来避免开局刷妊娠 -->
        <reproduction>
          <gestatingGender>Male</gestatingGender>
          <femaleFertilityAgeFactor>
            <points>
              <li>(0,0)</li>
              <li>(1,0)</li>
              <li>(999,0)</li>
              <li>(9999,0)</li>
            </points>
          </femaleFertilityAgeFactor>
        </reproduction>
        <growthFactorByAge>
          <points>
            <li>(0,1)</li>
            <li>(12,0.5)</li>
          </points>
        </growthFactorByAge>
      </generalSettings>
      <!-- 图形，留空 -->
      <graphicPaths>
        <!-- 皮肤颜色 -->
        <skinColor>(1,1,1,1)</skinColor>
        <!-- 皮肤着色器 -->
        <skinShader>Cutout</skinShader>
        <!-- <body>ArachnaeSwarm/Things/ARA_HiveQueen/Bodies/</body>
				<head>ArachnaeSwarm/Things/ARA_HiveQueen/Heads/</head>
				<skeleton>Things/Pawn/Humanlike/Bodies/Dessicated/Dessicated_Thin</skeleton> 
        <stump>ArachnaeSwarm/Things/ARA_HiveQueen/Bodies/</stump> -->
      </graphicPaths>
      <!-- 风格设置 -->
      <styleSettings>
        <!-- 头发 -->
        <li>
          <key>HairDef</key>
          <value>
            <hasStyle>false</hasStyle>
          </value>
        </li>
        <!-- 纹身 -->
        <li>
          <key>TattooDef</key>
          <value>
            <hasStyle>false</hasStyle>
          </value>
        </li>
        <!-- 胡须 -->
        <li>
          <key>BeardDef</key>
          <value>
            <hasStyle>false</hasStyle>
          </value>
        </li>
      </styleSettings>
      <!-- 种族的允许和禁止特化设置 -->
      <raceRestriction>
        <!-- 无法拥有的内源性基因 -->
        <blackEndoCategories MayRequire="Ludeon.RimWorld.Biotech">
          <li MayRequire="Ludeon.RimWorld.Biotech">HairColor</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">Melanin</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">BodyType</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">Ears</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">Nose</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">Voice</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">Headbone</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">Head</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">Jaw</li>
        </blackEndoCategories>
        <!-- 无法拥有的Tag基因 -->
        <blackGeneTags MayRequire="Ludeon.RimWorld.Biotech">
          <li MayRequire="Ludeon.RimWorld.Biotech">EyeColor</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">Tail</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">BeardStyle</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">Fur</li>
        </blackGeneTags>
        <!-- 无法拥有的基因列表 -->
        <blackGeneList>
          <li MayRequire="Ludeon.RimWorld.Biotech">Furskin</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">Brow_Heavy</li>
        </blackGeneList>
        <!-- 禁止的异形变种 -->
        <blackXenotypeList>
          <li MayRequire="Ludeon.RimWorld.Biotech">Dirtmole</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">Genie</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">Hussar</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">Sanguophage</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">Neanderthal</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">Pigskin</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">Impid</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">Waster</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">Yttakin</li>
          <li MayRequire="Ludeon.RimWorld.Biotech">Highmate</li>
        </blackXenotypeList>
        <!-- 允许的异形类型 -->
        <whiteXenotypeList MayRequire="Ludeon.RimWorld.Biotech">
          <li MayRequire="Ludeon.RimWorld.Biotech">Baseliner</li>
        </whiteXenotypeList>
        <onlyUseRaceRestrictedXenotypes>false</onlyUseRaceRestrictedXenotypes>
        <!-- 食物列表 -->
        <foodList>
        </foodList>
        <onlyEatRaceRestrictedFood>false</onlyEatRaceRestrictedFood>
        <!-- 可以穿戴的衣服 -->
        <apparelList>
        </apparelList>
        <blackApparelList>
          <li>Apparel_AdvancedHelmet</li>
          <li>Apparel_ArmorHelmetRecon</li>
          <li>Apparel_BowlerHat</li>
          <li>Apparel_CowboyHat</li>
          <li>Apparel_HatHood</li>
          <li>Apparel_PowerArmorHelmet</li>
          <li>Apparel_PsychicFoilHelmet</li>
          <li>Apparel_SimpleHelmet</li>
          <li>Apparel_TribalHeaddress</li>
          <li>Apparel_Tuque</li>
          <li>Apparel_WarMask</li>
          <li>Apparel_WarVeil</li>
          <li>Apparel_ArmorRecon</li>
          <li>Apparel_BasicShirt</li>
          <li>Apparel_Cape</li>
          <li>Apparel_CollarShirt</li>
          <li>Apparel_Duster</li>
          <li>Apparel_FlakJacket</li>
          <li>Apparel_FlakPants</li>
          <li>Apparel_FlakVest</li>
          <li>Apparel_Jacket</li>
          <li>Apparel_Pants</li>
          <li>Apparel_Parka</li>
          <li>Apparel_PlateArmor</li>
          <li>Apparel_PowerArmor</li>
          <li>Apparel_Robe</li>
          <li>Apparel_TribalA</li>
          <li>Apparel_Sash</li>
          <li>Apparel_Bandolier</li>
          <li>Apparel_Broadwrap</li>
          <li>Apparel_Headwrap</li>
          <li>Apparel_Shadecone</li>
          <li>Apparel_AuthorityCap</li>
          <li>Apparel_Flophat</li>
          <li>Apparel_Slicecap</li>
          <li>Apparel_Tailcap</li>
          <li>Apparel_VisageMask</li>
        </blackApparelList>
        <!-- 生育能力 -->
        <onlyReproduceWithRestrictedRaces>true</onlyReproduceWithRestrictedRaces>
        <canReproduce>false</canReproduce>
        <!-- 允许的工作台类型，放开以供其他种族使用 -->
        <!-- <workGiverList>
          <li>WULA_Large_Mechine_proudctor_Bills</li>
        </workGiverList> -->
        <!-- 允许的特质类型 -->
        <traitList>
        </traitList>
        <blackTraitList>
          <li>BodyPurist</li>
          <li>Cannibal</li>
          <li>CreepyBreathing</li>
          <li>DislikesWomen</li>
          <li>Gourmand</li>
          <li>QuickSleeper</li>
          <li>Wimp</li>
          <li>Beauty</li>
          <li>DrugDesire</li>
          <li>Immunity</li>
          <li>PsychicSensitivity</li>
        </blackTraitList>
      </raceRestriction>
      <!-- 想法设置 -->
      <thoughtSettings>
        <!-- 不会产生的想法 -->
        <cannotReceiveThoughts>
          <li>AteWithoutTable</li>
        </cannotReceiveThoughts>
        <!-- 该种族特有想法 -->
        <restrictedThoughts>
        </restrictedThoughts>
      </thoughtSettings>
      <!-- 关系设置，不会生成任何随机关系 -->
      <relationSettings>
        <relationChanceModifierLover>0</relationChanceModifierLover>
        <relationChanceModifierExLover>0</relationChanceModifierExLover>

        <relationChanceModifierFiance>0</relationChanceModifierFiance>
        <relationChanceModifierSpouse>0</relationChanceModifierSpouse>
        <relationChanceModifierExSpouse>0</relationChanceModifierExSpouse>

        <relationChanceModifierParent>0</relationChanceModifierParent>
        <relationChanceModifierChild>0</relationChanceModifierChild>
        <relationChanceModifierSibling>0</relationChanceModifierSibling>
      </relationSettings>
    </alienRace>

    <!-- 基础属性设置 -->
    <statBases>
      <!-- 市场价值 -->
      <MarketValue>100</MarketValue>
      <RoyalFavorValue>5</RoyalFavorValue>

      <!-- 移动速度 -->
      <MoveSpeed>3</MoveSpeed>
      <Mass>50</Mass>

      <!-- <RestRateMultiplier>1</RestRateMultiplier> -->
      <!-- <HungerRateMultiplier>1</HungerRateMultiplier> -->
      <EatingSpeed>2</EatingSpeed>
      <MaxNutrition>0.5</MaxNutrition>

      <!-- 女皇的负重,设为0以避免女皇能背东西 -->
      <CarryingCapacity>50</CarryingCapacity>
      <MeatAmount>150</MeatAmount>
      <LeatherAmount>100</LeatherAmount>

      <PainShockThreshold>0.85</PainShockThreshold>
      <PsychicSensitivity>1.5</PsychicSensitivity>
      <MentalBreakThreshold>0</MentalBreakThreshold>
      <ToxicResistance>0.5</ToxicResistance>
      <ToxicEnvironmentResistance MayRequire="Ludeon.RimWorld.Biotech">0.5</ToxicEnvironmentResistance>
      <Flammability>0.1</Flammability>

      <MeleeDodgeChance>0.75</MeleeDodgeChance>
      <!-- <MeleeHitChance>1</MeleeHitChance> -->

      <!-- <NegotiationAbility>1</NegotiationAbility> -->
      <!-- <SellPriceFactor>1</SellPriceFactor> -->
      <!-- <SocialImpact>1</SocialImpact> -->
      <!-- <TradePriceImprovement>0.5</TradePriceImprovement> -->

      <!-- 自带的甲壳可以防御外部攻击 -->
      <ArmorRating_Blunt>0.4</ArmorRating_Blunt>
      <ArmorRating_Sharp>0.3</ArmorRating_Sharp>
      <ArmorRating_Heat>0.4</ArmorRating_Heat>

      <!-- 虫群拥有惊人的愈合速度 -->
      <InjuryHealingFactor>5</InjuryHealingFactor>

      <!-- 在野外采集的营养 -->
      <ForagedNutritionPerDay>0</ForagedNutritionPerDay>
    </statBases>

    <race>
      <!-- <fleshType>WULA_Fleshtype</fleshType> -->
      <!-- AI行为，勿改 -->
      <thinkTreeMain>ARA_Humanlike</thinkTreeMain>
      <!-- 智力水平 -->
      <intelligence>Humanlike</intelligence>
      <!-- 血液，不流血 -->
      <bloodDef>Filth_MachineBits</bloodDef>
      <!-- 基础血量，很高 -->
      <baseHealthScale>1.5</baseHealthScale>
      <!-- 解剖产物 -->
      <leatherDef>Steel</leatherDef>
      <specificMeatDef>Steel</specificMeatDef>
      <!-- 身体类型 -->
      <body>ArachnaeQueen_Body</body>
      <!-- 年龄阶段，较短 -->
      <lifeExpectancy>12</lifeExpectancy>
      <lifeStageWorkSettings MayRequire="Ludeon.RimWorld.Biotech">
        <Firefighter>0</Firefighter>
        <Patient>0</Patient>
        <Doctor>0</Doctor>
        <PatientBedRest>0</PatientBedRest>
        <Childcare MayRequire="Ludeon.RimWorld.Biotech">0</Childcare>
        <BasicWorker>0</BasicWorker>
        <Warden>0</Warden>
        <Handling>0</Handling>
        <Cooking>0</Cooking>
        <Hunting>0</Hunting>
        <Construction>0</Construction>
        <Growing>0</Growing>
        <Mining>0</Mining>
        <PlantCutting>0</PlantCutting>
        <Smithing>0</Smithing>
        <Tailoring>0</Tailoring>
        <Art>0</Art>
        <Crafting>0</Crafting>
        <Hauling>0</Hauling>
        <Cleaning>0</Cleaning>
        <Research>0</Research>
        <DarkStudy MayRequire="Ludeon.RimWorld.Anomaly">0</DarkStudy>
      </lifeStageWorkSettings>
      <lifeStageAges Inherit="False">
        <li>
          <def>ARA_Queen_Adult</def>
          <minAge>0</minAge>
        </li>
      </lifeStageAges>
      <canFlyInVacuum>false</canFlyInVacuum>
      <!-- 身形大小，略大于常规人类 -->
      <baseBodySize>2</baseBodySize>
      <soundMeleeHitPawn>Pawn_Melee_BigBash_HitPawn</soundMeleeHitPawn>
      <soundMeleeHitBuilding>Pawn_Melee_BigBash_HitBuilding</soundMeleeHitBuilding>
      <soundMeleeMiss>Pawn_Melee_BigBash_Miss</soundMeleeMiss>
      <soundMeleeDodge>Pawn_MeleeDodge</soundMeleeDodge>
    </race>

    <!-- 工具设置（攻击方式） -->
    <tools>
      <li>
        <label>头顶</label>
        <capacities>
          <li>Poke</li>
        </capacities>
        <power>8</power>
        <cooldownTime>2</cooldownTime>
        <linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
        <ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
        <chanceFactor>0.01</chanceFactor>
      </li>
    </tools>

    <recipes Inherit="False">
    </recipes>

    <comps>
      <!-- <li MayRequire="Nals.FacialAnimation">
				<compClass>FacialAnimation.DrawFaceGraphicsComp</compClass>
			</li>
			<li MayRequire="Nals.FacialAnimation">
				<compClass>FacialAnimation.HeadControllerComp</compClass>
			</li>
			<li MayRequire="Nals.FacialAnimation">
				<compClass>FacialAnimation.EyeballControllerComp</compClass>
			</li>
      <li MayRequire="Nals.FacialAnimation">
        <compClass>FacialAnimation.LidControllerComp</compClass>
      </li>
      <li MayRequire="Nals.FacialAnimation">
				<compClass>FacialAnimation.BrowControllerComp</compClass>
			</li>
			<li MayRequire="Nals.FacialAnimation">
				<compClass>FacialAnimation.MouthControllerComp</compClass>
			</li>
      <li MayRequire="Nals.FacialAnimation">
        <compClass>FacialAnimation.SkinControllerComp</compClass>
      </li>
      <li MayRequire="Nals.FacialAnimation">
				<compClass>FacialAnimation.FacialAnimationControllerComp</compClass>
			</li> -->
      <!--<li>
        <compClass>FacialAnimation.EmotionControllerComp</compClass>
      </li>-->
      <!-- <li Class="CompProperties_DrugAddict"/> -->
    </comps>
  </AlienRace.ThingDef_AlienRace>

  <!-- 定义阿拉克涅节点虫种族 -->
  <AlienRace.ThingDef_AlienRace ParentName="ARA_NodeBase">
    <defName>ArachnaeNode_Race_Myrmecocystus</defName>
    <label>阿拉克涅蜜罐种</label>
    <description>阿拉克涅督虫种之一，拥有非常广泛的食谱，可以吞下许多未经处理的生物并将其分解为阿拉克涅虫蜜，以滋养虫群。此外，这种督虫还指挥着三只食腐虫，它们会负责处理各种各样的猎物，并在危急时刻喷射酸液对抗入侵者，以保卫阿拉克涅虫巢的财产。</description>
    <alienRace>
      <graphicPaths>
				<body>ArachnaeSwarm/Things/ARA_Myrmecocystus/Bodies/</body>
				<head>ArachnaeSwarm/Things/ARA_Myrmecocystus/Heads/</head>
				<skeleton>Things/Pawn/Humanlike/Bodies/Dessicated/Dessicated_Thin</skeleton> 
        <stump>ArachnaeSwarm/Things/ARA_Myrmecocystus/Bodies/</stump>
      </graphicPaths>
    </alienRace>
    <comps>
      <li Class="CompProperties_Milkable">
        <milkDef>ARA_InsectJelly</milkDef>
        <milkIntervalDays>1</milkIntervalDays>
        <milkAmount>14</milkAmount>
      </li>
      <li Class="ArachnaeSwarm.CompProperties_AutoMechCarrier">
        <freeProduction>true</freeProduction>
        <!--<disableHediff>WULA_MechCarrierSwitchHediff</disableHediff>-->
        <fixedIngredient>ARA_InsectJelly</fixedIngredient>
        <maxIngredientCount>500</maxIngredientCount> 
        <startingIngredientCount>500</startingIngredientCount>
        <costPerPawn>999</costPerPawn>
        <cooldownTicks>9999</cooldownTicks>
        <productionQueue>
          <li>
            <pawnKind>ArachnaeBase_Race_Scavenger</pawnKind>
            <count>3</count>
            <cooldownTicks>6000</cooldownTicks>
          </li>
        </productionQueue>
        <spawnEffecter>CocoonDestroyed</spawnEffecter>
        <!--<spawnedMechEffecter>WarUrchinSpawned</spawnedMechEffecter>-->
      </li>
    </comps>

    <!-- 基础属性设置 -->
    <statBases>
      <!-- 移动速度 -->
      <MoveSpeed>2</MoveSpeed>

      <!-- <RestRateMultiplier>1</RestRateMultiplier> -->
      <!-- <HungerRateMultiplier>1</HungerRateMultiplier> -->
      <EatingSpeed>5</EatingSpeed>
      <MaxNutrition>1</MaxNutrition>

      <CarryingCapacity>100</CarryingCapacity>
      <MeatAmount>45</MeatAmount>
      <LeatherAmount>50</LeatherAmount>

      <MeleeDodgeChance>0.5</MeleeDodgeChance>
      <!-- <MeleeHitChance>1</MeleeHitChance> -->

      <!-- <NegotiationAbility>1</NegotiationAbility> -->
      <!-- <SellPriceFactor>1</SellPriceFactor> -->
      <!-- <SocialImpact>1</SocialImpact> -->
      <!-- <TradePriceImprovement>0.5</TradePriceImprovement> -->

      <!-- 自带的甲壳可以防御外部攻击 -->
      <ArmorRating_Blunt>0.18</ArmorRating_Blunt>
      <ArmorRating_Sharp>0.27</ArmorRating_Sharp>
      <ArmorRating_Heat>0.2</ArmorRating_Heat>
    </statBases>

    <race>
      <foodType>OmnivoreHuman,CarnivoreAnimal,OvivoreAnimal,VegetarianRoughAnimal</foodType>
      <!-- 身体类型 -->
      <body>BeetleLikeWithClaw</body>
      <!-- 身形大小 -->
      <baseBodySize>2.5</baseBodySize>
      <!-- 血量上限 -->
      <baseHealthScale>3</baseHealthScale>
      <lifeStageAges Inherit="False">
        <li>
          <def>ArachnaeNode_Myrmecocystus_Adult</def>
          <minAge>0</minAge>
        </li>
      </lifeStageAges>
    </race>

    <!-- 工具设置（攻击方式） -->
    <tools Inherit="False">
      <li>
        <label>头颚</label>
        <capacities>
          <li>Bite</li>
        </capacities>
        <power>12</power>
        <cooldownTime>2</cooldownTime>
        <linkedBodyPartsGroup>HeadClaw</linkedBodyPartsGroup>
        <ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
        <chanceFactor>1</chanceFactor>
      </li>
    </tools>
  </AlienRace.ThingDef_AlienRace>
</Defs>