Compare commits
14 Commits
Hivemindhe
...
建筑生成菌毯的com
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8672eb9f40 | ||
|
|
b1d6df2523 | ||
|
|
e78c858d5a | ||
|
|
8688e469f6 | ||
|
|
4e80aa3432 | ||
|
|
952f1ae851 | ||
|
|
61a7013946 | ||
|
|
259eb3530e | ||
|
|
bf8a13ae60 | ||
|
|
06b0a74cbd | ||
|
|
f6cd9bfd6c | ||
|
|
cebccfebe5 | ||
|
|
7ae4b5db88 | ||
|
|
a4dd99c751 |
@@ -1,5 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Defs>
|
||||
<AbilityDef ParentName="AbilityTouchBase">
|
||||
<defName>ARA_BindDrone</defName>
|
||||
<label>信息素标记</label>
|
||||
<description>使用信息素标记一只阿拉克涅督虫,受到标记的督虫和其麾下的辅虫将誓死效忠于女皇种,并与其建立心灵链接。</description>
|
||||
<iconPath>UI/Commands/EggSpew</iconPath> <!-- Placeholder: You'll need to create this icon -->
|
||||
|
||||
<jobDef>CastAbilityOnThing</jobDef>
|
||||
<targetRequired>true</targetRequired>
|
||||
<cooldownTicksRange>60</cooldownTicksRange> <!-- 1 second cooldown -->
|
||||
|
||||
<verbProperties>
|
||||
<verbClass>Verb_CastAbility</verbClass>
|
||||
<warmupTime>0</warmupTime>
|
||||
<range>99</range>
|
||||
<targetParams>
|
||||
<canTargetPawns>true</canTargetPawns>
|
||||
<canTargetBuildings>false</canTargetBuildings>
|
||||
<canTargetAnimals>true</canTargetAnimals>
|
||||
<canTargetMechs>false</canTargetMechs>
|
||||
<canTargetCorpses>false</canTargetCorpses>
|
||||
<canTargetSelf>false</canTargetSelf>
|
||||
</targetParams>
|
||||
</verbProperties>
|
||||
|
||||
<comps>
|
||||
<li Class="ArachnaeSwarm.CompProperties_AbilityBindDrone">
|
||||
<!-- No custom properties needed for now -->
|
||||
</li>
|
||||
</comps>
|
||||
</AbilityDef>
|
||||
|
||||
|
||||
<AbilityDef>
|
||||
<defName>ARA_EggSpew</defName>
|
||||
<label>生育虫卵</label>
|
||||
@@ -29,7 +61,7 @@
|
||||
<li Class="ArachnaeSwarm.CompProperties_AbilityNeedCost">
|
||||
<needDef>Food</needDef>
|
||||
<needCost>4</needCost>
|
||||
<failMessage>食物不足</failMessage>
|
||||
<failMessage>营养值不足,需要进食</failMessage>
|
||||
</li>
|
||||
<li Class="ArachnaeSwarm.CompProperties_AbilityBodyPartCheck">
|
||||
<requiredPart>ARA_Ovary</requiredPart>
|
||||
@@ -51,7 +83,7 @@
|
||||
<verbProperties>
|
||||
<verbClass>Verb_CastAbility</verbClass>
|
||||
<range>32.9</range>
|
||||
<warmupTime>0.25</warmupTime>
|
||||
<warmupTime>2</warmupTime>
|
||||
<soundCast>AcidSpray_Resolve</soundCast>
|
||||
<targetParams>
|
||||
<canTargetLocations>true</canTargetLocations>
|
||||
@@ -71,14 +103,18 @@
|
||||
<li Class="ArachnaeSwarm.CompProperties_AbilityNeedCost">
|
||||
<needDef>Food</needDef>
|
||||
<needCost>0.5</needCost>
|
||||
<failMessage>食物不足</failMessage>
|
||||
<failMessage>营养值不足,需要进食</failMessage>
|
||||
</li>
|
||||
<li Class="ArachnaeSwarm.CompProperties_AbilityBodyPartCheck">
|
||||
<requiredPart>ARA_Acid_sac</requiredPart>
|
||||
<failMessage>酸囊受损或缺失,无法喷射酸液</failMessage>
|
||||
</li>
|
||||
</comps>
|
||||
</AbilityDef>
|
||||
|
||||
<ThingDef>
|
||||
<defName>ARA_Proj_StrongSludgeSpray</defName>
|
||||
<label>虫族酸液</label>
|
||||
<label>阿拉克涅虫族酸液</label>
|
||||
<thingClass>Projectile_Liquid</thingClass>
|
||||
<category>Projectile</category>
|
||||
<tickerType>Normal</tickerType>
|
||||
@@ -94,7 +130,7 @@
|
||||
<projectile>
|
||||
<damageDef>ARA_AcidBurn</damageDef>
|
||||
<speed>25</speed>
|
||||
<damageAmountBase>18</damageAmountBase>
|
||||
<damageAmountBase>2</damageAmountBase>
|
||||
<arcHeightFactor>0.4</arcHeightFactor>
|
||||
<armorPenetrationBase>0.1</armorPenetrationBase>
|
||||
<stoppingPower>1</stoppingPower>
|
||||
@@ -108,11 +144,11 @@
|
||||
</ThingDef>
|
||||
<ThingDef ParentName="BaseGrenadeProjectile">
|
||||
<defName>ARA_Proj_EggSac</defName>
|
||||
<label>虫卵</label>
|
||||
<label>阿拉克涅虫卵</label>
|
||||
<thingClass>Projectile_SpawnsThing</thingClass>
|
||||
<graphicData>
|
||||
<texPath>Things/Projectile/EggSac</texPath>
|
||||
<graphicClass>Graphic_Random</graphicClass>
|
||||
<texPath>ArachnaeSwarm/Building/ARA_EggSac</texPath>
|
||||
<graphicClass>Graphic_Single</graphicClass>
|
||||
</graphicData>
|
||||
<projectile>
|
||||
<damageDef>Bullet</damageDef>
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<AbilityDef ParentName="AbilityTouchBase">
|
||||
<defName>ARA_BindDrone</defName>
|
||||
<label>虫群联结</label>
|
||||
<description>Allows the hive mind master to bind with an unlinked drone, bringing it under direct psychic control.</description>
|
||||
<iconPath>UI/Commands/EggSpew</iconPath> <!-- Placeholder: You'll need to create this icon -->
|
||||
|
||||
<jobDef>CastAbilityOnThing</jobDef>
|
||||
<targetRequired>true</targetRequired>
|
||||
<cooldownTicksRange>60</cooldownTicksRange> <!-- 1 second cooldown -->
|
||||
|
||||
<verbProperties>
|
||||
<verbClass>Verb_CastAbility</verbClass>
|
||||
<warmupTime>0.5</warmupTime>
|
||||
<range>99</range> <!-- Short range, like touch -->
|
||||
<targetParams>
|
||||
<canTargetPawns>true</canTargetPawns>
|
||||
<canTargetBuildings>false</canTargetBuildings>
|
||||
<canTargetAnimals>true</canTargetAnimals>
|
||||
<canTargetMechs>false</canTargetMechs>
|
||||
<canTargetCorpses>false</canTargetCorpses>
|
||||
<canTargetSelf>false</canTargetSelf>
|
||||
</targetParams>
|
||||
</verbProperties>
|
||||
|
||||
<comps>
|
||||
<li Class="ArachnaeSwarm.CompProperties_AbilityBindDrone">
|
||||
<!-- No custom properties needed for now -->
|
||||
</li>
|
||||
</comps>
|
||||
</AbilityDef>
|
||||
|
||||
</Defs>
|
||||
@@ -154,7 +154,7 @@
|
||||
<!-- 尾部组织群 -->
|
||||
<li>
|
||||
<def>ARA_Tail</def>
|
||||
<coverage>0</coverage>
|
||||
<coverage>0.02</coverage>
|
||||
<height>Bottom</height>
|
||||
<depth>Inside</depth>
|
||||
<groups>
|
||||
@@ -174,7 +174,7 @@
|
||||
<li>
|
||||
<def>ARA_Gonad</def>
|
||||
<coverage>0.005</coverage>
|
||||
<depth>Outside</depth>
|
||||
<depth>Inside</depth>
|
||||
<groups>
|
||||
<li>ARA_Genitalias</li>
|
||||
</groups>
|
||||
@@ -183,11 +183,20 @@
|
||||
<li>
|
||||
<def>ARA_Ovary</def>
|
||||
<coverage>0.01</coverage>
|
||||
<depth>Outside</depth>
|
||||
<depth>Inside</depth>
|
||||
<groups>
|
||||
<li>ARA_Genitalias</li>
|
||||
</groups>
|
||||
</li>
|
||||
<!-- 酸囊 -->
|
||||
<li>
|
||||
<def>ARA_Acid_sac</def>
|
||||
<coverage>0.005</coverage>
|
||||
<depth>Inside</depth>
|
||||
<groups>
|
||||
<li>ARA_Acid_sacs</li>
|
||||
</groups>
|
||||
</li>
|
||||
</parts>
|
||||
</li>
|
||||
<!-- 脖子往上头部 -->
|
||||
@@ -420,7 +429,7 @@
|
||||
<coverage>0.14</coverage>
|
||||
<groups>
|
||||
<li>Hands</li>
|
||||
<li>LeftHand</li>
|
||||
<li>RightHand</li>
|
||||
</groups>
|
||||
</li>
|
||||
</parts>
|
||||
@@ -634,18 +643,32 @@
|
||||
<BodyPartDef>
|
||||
<defName>ARA_Ovary</defName>
|
||||
<label>卵巢</label>
|
||||
<hitPoints>50</hitPoints>
|
||||
<hitPoints>2</hitPoints>
|
||||
<permanentInjuryChanceFactor>0</permanentInjuryChanceFactor>
|
||||
<skinCovered>false</skinCovered>
|
||||
<solid>false</solid>
|
||||
<bleedRate>2</bleedRate>
|
||||
</BodyPartDef>
|
||||
<BodyPartDef>
|
||||
<defName>ARA_Acid_sac</defName>
|
||||
<label>酸囊</label>
|
||||
<hitPoints>10</hitPoints>
|
||||
<permanentInjuryChanceFactor>0.1</permanentInjuryChanceFactor>
|
||||
<skinCovered>false</skinCovered>
|
||||
<solid>false</solid>
|
||||
<bleedRate>1.5</bleedRate>
|
||||
</BodyPartDef>
|
||||
|
||||
<BodyPartGroupDef>
|
||||
<defName>ARA_Genitalias</defName>
|
||||
<label>女皇生殖器官</label>
|
||||
<listOrder>120</listOrder>
|
||||
</BodyPartGroupDef>
|
||||
<BodyPartGroupDef>
|
||||
<defName>ARA_Acid_sacs</defName>
|
||||
<label>酸腺器官</label>
|
||||
<listOrder>125</listOrder>
|
||||
</BodyPartGroupDef>
|
||||
|
||||
<!-- EN: beetle-like with claw -->
|
||||
<BodyDef>
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<HediffDef>
|
||||
<defName>ARA_AcidCoverd</defName>
|
||||
<label>虫族酸液</label>
|
||||
<description>你的身上沾上了虫族强酸,可能会痛一会。</description>
|
||||
<label>阿拉克涅虫液</label>
|
||||
<description>一支拥有酸囊的阿拉克涅虫族向此人喷射了强酸,沾染的强酸将使得此人痛不欲生,盔甲和表皮软化,并持续灼烧它的身体。</description>
|
||||
<defaultLabelColor>(1, 1, 0.8)</defaultLabelColor>
|
||||
<hediffClass>ArachnaeSwarm.HediffCurseFlame</hediffClass>
|
||||
<comps>
|
||||
@@ -85,5 +84,4 @@
|
||||
</li>
|
||||
</stages>
|
||||
</HediffDef>
|
||||
|
||||
</Defs>
|
||||
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<HediffDef>
|
||||
<defName>ARA_HiveMindMaster</defName>
|
||||
<label>阿拉克涅主巢</label>
|
||||
@@ -31,9 +30,14 @@
|
||||
<li Class="ArachnaeSwarm.HediffCompProperties_HiveMindDrone">
|
||||
<unlinkedDieDelayTicks>6400</unlinkedDieDelayTicks> <!-- Default to 30 seconds -->
|
||||
</li>
|
||||
<li Class="HediffCompProperties_MessageAfterTicks">
|
||||
<ticks>1</ticks>
|
||||
<letterLabel>{0_labelShort} 诞生</letterLabel>
|
||||
<letterText>一只新的阿拉克涅督虫 {0_labelShort} 已经破茧而出!她正在四处徘徊,等待女皇种与其建立链接——使用阿拉克涅女皇种的信息素标记技能完成链接,否则督虫将在一段时间后死亡!</letterText>
|
||||
<letterType>HumanPregnancy</letterType>
|
||||
</li>
|
||||
</comps>
|
||||
<stages>
|
||||
</stages>
|
||||
</HediffDef>
|
||||
|
||||
</Defs>
|
||||
61
1.6/1.6/Defs/JobDefs/ARA_Duties.xml
Normal file
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Defs>
|
||||
<![CDATA[
|
||||
<DutyDef>
|
||||
<defName>ARA_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>2.5</mtbHours>
|
||||
<subNodes>
|
||||
<li Class="ArachnaeSwarm.JobGiver_MaintainBuildings">
|
||||
<maintainableThingDefs>
|
||||
<li>ARA_InteractiveEggSac</li> <!-- 默认维护Hive -->
|
||||
</maintainableThingDefs>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
<li Class="ArachnaeSwarm.JobGiver_MaintainBuildings">
|
||||
<maintainableThingDefs>
|
||||
<li>ARA_InteractiveEggSac</li> <!-- 默认维护Hive -->
|
||||
</maintainableThingDefs>
|
||||
<onlyIfDamagingState>true</onlyIfDamagingState>
|
||||
</li>
|
||||
<li Class="ThinkNode_ConditionalBodySize">
|
||||
<min>0.7</min>
|
||||
<subNodes>
|
||||
<li Class="ThinkNode_ConditionalHiveCanReproduce">
|
||||
<subNodes>
|
||||
<li Class="ThinkNode_ChancePerHour_InsectDigChance">
|
||||
<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>
|
||||
]]>
|
||||
</Defs>
|
||||
@@ -1,10 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<JobDef>
|
||||
<defName>ARA_IncubateJob</defName>
|
||||
<driverClass>ArachnaeSwarm.JobDriver_Incubate</driverClass>
|
||||
<reportString>incubating TargetA.</reportString>
|
||||
<reportString>为 TargetA 注入信息素.</reportString>
|
||||
</JobDef>
|
||||
|
||||
</Defs>
|
||||
@@ -15,4 +15,19 @@
|
||||
</silhouetteGraphicData>
|
||||
</LifeStageDef>
|
||||
|
||||
<LifeStageDef>
|
||||
<defName>ArachnaeNode_Myrmecocystus_Adult</defName>
|
||||
<label>adult</label>
|
||||
<workerClass MayRequire="Ludeon.RimWorld.Biotech">LifeStageWorker_HumanlikeAdult</workerClass>
|
||||
<visible>false</visible>
|
||||
<reproductive>true</reproductive>
|
||||
<sittingOffset>0.18</sittingOffset>
|
||||
<silhouetteGraphicData>
|
||||
<texPath>Things/Pawn/Humanlike/Silhouettes/Silhouette_HumanAdult</texPath>
|
||||
<graphicClass>Graphic_Single</graphicClass>
|
||||
<drawSize>1</drawSize>
|
||||
</silhouetteGraphicData>
|
||||
<milkable>true</milkable>
|
||||
</LifeStageDef>
|
||||
|
||||
</Defs>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
<PawnKindDef Name="ArachnaeQueenBasePawnKind" Abstract="True">
|
||||
<race>ArachnaeQueen_Race</race>
|
||||
<combatPower>500</combatPower>
|
||||
<isFighter>true</isFighter>
|
||||
<trader>false</trader>
|
||||
@@ -45,6 +44,7 @@
|
||||
<PawnKindDef Name="ArachnaeQueen_Colonist" ParentName="ArachnaeQueenBasePawnKind">
|
||||
<defName>ARA_ArachnaeQueen</defName>
|
||||
<label>阿拉克涅女皇种</label>
|
||||
<race>ArachnaeQueen_Race</race>
|
||||
<defaultFactionType>PlayerColony</defaultFactionType>
|
||||
<invNutrition>2.55</invNutrition>
|
||||
<backstoryFiltersOverride>
|
||||
@@ -61,7 +61,6 @@
|
||||
</PawnKindDef>
|
||||
|
||||
<PawnKindDef Name="ArachnaeNodeABasePawnKind" Abstract="True">
|
||||
<race>ArachnaeNodeA_Race</race>
|
||||
<combatPower>50</combatPower>
|
||||
<isFighter>true</isFighter>
|
||||
<trader>false</trader>
|
||||
@@ -100,8 +99,9 @@
|
||||
</startingHediffs>
|
||||
</PawnKindDef>
|
||||
<PawnKindDef Name="ArachnaeNodeA_Colonist" ParentName="ArachnaeNodeABasePawnKind">
|
||||
<defName>ARA_ArachnaeNodeA</defName>
|
||||
<defName>ArachnaeNode_Race_Myrmecocystus</defName>
|
||||
<label>阿拉克涅督虫种</label>
|
||||
<race>ArachnaeNode_Race_Myrmecocystus</race>
|
||||
<defaultFactionType>PlayerColony</defaultFactionType>
|
||||
<invNutrition>2.55</invNutrition>
|
||||
<backstoryFiltersOverride>
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
<![CDATA[
|
||||
<!-- 该文件仅做备用 -->
|
||||
|
||||
<!-- 定义一个基础的ThingDef,作为阿拉克涅Pawn的基类 -->
|
||||
<ThingDef Name="Arachnae_PawnBase" ParentName="BasePawn" Abstract="True">
|
||||
<!-- 屠宰产品设置 -->
|
||||
@@ -39,10 +42,9 @@
|
||||
<MinimumContainmentStrength MayRequire="Ludeon.RimWorld.Anomaly">120</MinimumContainmentStrength>
|
||||
</statBases>
|
||||
</ThingDef>
|
||||
|
||||
<!-- 定义阿拉克涅女皇种族,继承自Arachnae_PawnBase -->
|
||||
<AlienRace.ThingDef_AlienRace ParentName="Arachnae_PawnBase" Name="ArachnaeQueenBase">
|
||||
<defName>ArachnaeQueen_Race</defName>
|
||||
<defName>ArachnaeQueen222_Race</defName>
|
||||
<label>阿拉克涅女皇种</label>
|
||||
<description>阿拉克涅女皇种是阿拉克涅虫巢中唯一可以生育督虫的个体,并且是虫巢意识金字塔的核心,肩负着引领阿拉克涅虫群前进的伟大使命。她与麾下的虫族的灵能链接所构成的蜂群意识网络可以使得虫群以极高的效率运转,但是一旦女皇种死亡,其麾下的虫群将全部死亡!</description>
|
||||
|
||||
@@ -58,15 +60,15 @@
|
||||
<!-- 女性生育能力年龄因子 -->
|
||||
<femaleFertilityAgeFactor>
|
||||
<points>
|
||||
<li>(1, 1)</li>
|
||||
<li>(9999, 1)</li>
|
||||
<li>(1, 0)</li>
|
||||
<li>(9999, 0)</li>
|
||||
</points>
|
||||
</femaleFertilityAgeFactor>
|
||||
<!-- 男性生育能力年龄因子 -->
|
||||
<maleFertilityAgeFactor>
|
||||
<points>
|
||||
<li>(1, 1)</li>
|
||||
<li>(9999, 1)</li>
|
||||
<li>(1, 0)</li>
|
||||
<li>(9999, 0)</li>
|
||||
</points>
|
||||
</maleFertilityAgeFactor>
|
||||
</reproduction>
|
||||
@@ -271,7 +273,7 @@
|
||||
<!-- 皮肤着色器 -->
|
||||
<skinShader>Cutout</skinShader>
|
||||
<!-- 头部纹理路径 -->
|
||||
<head>Pawns/General/Invisible/Inv</head>
|
||||
<head>Pawns/ARA_HiveQueen/Heads/Average_Normal</head>
|
||||
<!-- 身体纹理路径 -->
|
||||
<body>Pawns/ARA_HiveQueen/Bodies/Naked_Thin</body>
|
||||
<!-- 骨骼纹理路径 -->
|
||||
@@ -564,7 +566,7 @@
|
||||
<race>
|
||||
<!-- 身体类型 -->
|
||||
<body>ArachnaeQueen_Body</body>
|
||||
<fleshType>Normal</fleshType>
|
||||
|
||||
<!-- 思考树 -->
|
||||
<thinkTreeMain>Humanlike</thinkTreeMain>
|
||||
<thinkTreeConstant>HumanlikeConstant</thinkTreeConstant>
|
||||
@@ -589,7 +591,7 @@
|
||||
<renderTree>Humanlike</renderTree>
|
||||
<!-- 无法被异常尸体锁定 -->
|
||||
<hasUnnaturalCorpse>false</hasUnnaturalCorpse>
|
||||
<lifeStageAges>
|
||||
<lifeStageAges Inherit="False">
|
||||
<li>
|
||||
<def>EusocialInsectAdult</def>
|
||||
<soundWounded>Pawn_HiveQueen_Wounded</soundWounded>
|
||||
@@ -669,9 +671,8 @@
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">ImplantIUD</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">RemoveIUD</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">TerminatePregnancy</li>
|
||||
</recipes>
|
||||
|
||||
</AlienRace.ThingDef_AlienRace>
|
||||
|
||||
</recipes>
|
||||
|
||||
</AlienRace.ThingDef_AlienRace>
|
||||
]]>
|
||||
</Defs>
|
||||
740
1.6/1.6/Defs/ThingDef_Races/ARA_RaceQueen.xml
Normal file
@@ -0,0 +1,740 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
<ThingDef Abstract="True" Name="ARA_PawnBase" ParentName="BasePawn">
|
||||
<statBases>
|
||||
<MarketValue>1750</MarketValue>
|
||||
<MoveSpeed>4.6</MoveSpeed>
|
||||
<ComfyTemperatureMin>16</ComfyTemperatureMin>
|
||||
<ComfyTemperatureMax>26</ComfyTemperatureMax>
|
||||
<LeatherAmount>75</LeatherAmount>
|
||||
<RoyalFavorValue>3</RoyalFavorValue>
|
||||
<Wildness>0.75</Wildness> <!-- Hidden except for wild people -->
|
||||
</statBases>
|
||||
<tools>
|
||||
<li>
|
||||
<label>left fist</label>
|
||||
<labelNoLocation>fist</labelNoLocation>
|
||||
<capacities>
|
||||
<li>Blunt</li>
|
||||
</capacities>
|
||||
<power>8.2</power>
|
||||
<cooldownTime>2</cooldownTime>
|
||||
<linkedBodyPartsGroup>LeftHand</linkedBodyPartsGroup>
|
||||
<surpriseAttack>
|
||||
<extraMeleeDamages>
|
||||
<li>
|
||||
<def>Stun</def>
|
||||
<amount>14</amount>
|
||||
</li>
|
||||
</extraMeleeDamages>
|
||||
</surpriseAttack>
|
||||
</li>
|
||||
<li>
|
||||
<label>right fist</label>
|
||||
<labelNoLocation>fist</labelNoLocation>
|
||||
<capacities>
|
||||
<li>Blunt</li>
|
||||
</capacities>
|
||||
<power>8.2</power>
|
||||
<cooldownTime>2</cooldownTime>
|
||||
<linkedBodyPartsGroup>RightHand</linkedBodyPartsGroup>
|
||||
<surpriseAttack>
|
||||
<extraMeleeDamages>
|
||||
<li>
|
||||
<def>Stun</def>
|
||||
<amount>14</amount>
|
||||
</li>
|
||||
</extraMeleeDamages>
|
||||
</surpriseAttack>
|
||||
</li>
|
||||
<li>
|
||||
<label>teeth</label>
|
||||
<capacities>
|
||||
<li>Bite</li>
|
||||
</capacities>
|
||||
<power>8.2</power>
|
||||
<cooldownTime>2</cooldownTime>
|
||||
<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
|
||||
<chanceFactor>0.07</chanceFactor>
|
||||
<soundMeleeHit>Pawn_Melee_HumanBite_Hit</soundMeleeHit>
|
||||
<soundMeleeMiss>Pawn_Melee_HumanBite_Miss</soundMeleeMiss>
|
||||
</li>
|
||||
<li>
|
||||
<label>head</label>
|
||||
<capacities>
|
||||
<li>Blunt</li>
|
||||
</capacities>
|
||||
<power>5</power>
|
||||
<cooldownTime>2</cooldownTime>
|
||||
<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
|
||||
<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
|
||||
<chanceFactor>0.2</chanceFactor>
|
||||
</li>
|
||||
</tools>
|
||||
<race>
|
||||
<thinkTreeMain>Humanlike</thinkTreeMain>
|
||||
<thinkTreeConstant>HumanlikeConstant</thinkTreeConstant>
|
||||
<intelligence>Humanlike</intelligence>
|
||||
<makesFootprints>true</makesFootprints>
|
||||
<lifeExpectancy>80</lifeExpectancy>
|
||||
<bloodDef>Filth_Blood</bloodDef>
|
||||
<bloodSmearDef>Filth_BloodSmear</bloodSmearDef>
|
||||
<leatherDef>Leather_Human</leatherDef>
|
||||
<nameCategory>HumanStandard</nameCategory>
|
||||
<body>Human</body>
|
||||
<renderTree>Humanlike</renderTree>
|
||||
<baseBodySize>1</baseBodySize>
|
||||
<baseHealthScale>1</baseHealthScale>
|
||||
<foodType>OmnivoreHuman</foodType>
|
||||
<gestationPeriodDays>18</gestationPeriodDays>
|
||||
<meatMarketValue>0.8</meatMarketValue>
|
||||
<manhunterOnDamageChance>0.50</manhunterOnDamageChance>
|
||||
<manhunterOnTameFailChance>0.10</manhunterOnTameFailChance>
|
||||
<soundCallIntervalRange>2000~5000</soundCallIntervalRange>
|
||||
<canBecomeShambler>true</canBecomeShambler>
|
||||
<knowledgeCategory MayRequire="Ludeon.RimWorld.Anomaly">Basic</knowledgeCategory>
|
||||
<anomalyKnowledge>1</anomalyKnowledge>
|
||||
<hasUnnaturalCorpse>true</hasUnnaturalCorpse>
|
||||
<litterSizeCurve>
|
||||
<points>
|
||||
<li>(0.5, 0)</li>
|
||||
<li>(1, 1)</li>
|
||||
<li>(1.01, 0.02)</li>
|
||||
<li>(3.5, 0)</li>
|
||||
</points>
|
||||
</litterSizeCurve>
|
||||
<lifeStageAges>
|
||||
<li>
|
||||
<def>HumanlikeBaby</def>
|
||||
<minAge>0</minAge>
|
||||
</li>
|
||||
<li>
|
||||
<def>HumanlikeChild</def>
|
||||
<minAge>3</minAge>
|
||||
</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">
|
||||
<def>HumanlikePreTeenager</def>
|
||||
<minAge>9</minAge>
|
||||
</li>
|
||||
<li>
|
||||
<def>HumanlikeTeenager</def>
|
||||
<minAge>13</minAge>
|
||||
</li>
|
||||
<li>
|
||||
<def>HumanlikeAdult</def>
|
||||
<minAge>18</minAge>
|
||||
</li>
|
||||
</lifeStageAges>
|
||||
<lifeStageWorkSettings MayRequire="Ludeon.RimWorld.Biotech">
|
||||
<Firefighter>7</Firefighter>
|
||||
<Patient>0</Patient>
|
||||
<Doctor>10</Doctor>
|
||||
<PatientBedRest>0</PatientBedRest>
|
||||
<Childcare MayRequire="Ludeon.RimWorld.Biotech">0</Childcare>
|
||||
<BasicWorker>3</BasicWorker>
|
||||
<Warden>10</Warden>
|
||||
<Handling>7</Handling>
|
||||
<Cooking>7</Cooking>
|
||||
<Hunting>7</Hunting>
|
||||
<Construction>10</Construction>
|
||||
<Growing>7</Growing>
|
||||
<Mining>7</Mining>
|
||||
<PlantCutting>7</PlantCutting>
|
||||
<Smithing>13</Smithing>
|
||||
<Tailoring>7</Tailoring>
|
||||
<Art>10</Art>
|
||||
<Crafting>7</Crafting>
|
||||
<Hauling>3</Hauling>
|
||||
<Cleaning>3</Cleaning>
|
||||
<Research>13</Research>
|
||||
<DarkStudy MayRequire="Ludeon.RimWorld.Anomaly">13</DarkStudy>
|
||||
</lifeStageWorkSettings>
|
||||
<soundMeleeDodge>Pawn_MeleeDodge</soundMeleeDodge>
|
||||
<specialShadowData>
|
||||
<volume>(0.3, 0.8, 0.4)</volume>
|
||||
<offset>(0,0,-0.3)</offset>
|
||||
</specialShadowData>
|
||||
<ageGenerationCurve>
|
||||
<points>
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">(0,0)</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">(0.001,43)</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">(8,86)</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">(12.5,118)</li> <!-- Exclude 12.5-13 years to avoid spawning pawns who are very close to becoming adults -->
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">(12.51,0)</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">(13,0)</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">(13.001,122)</li> <!-- End exclude -->
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">(13.999,130)</li>
|
||||
<li>(14,0)</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">(14.001,130)</li>
|
||||
<li>(16,100)</li>
|
||||
<li>(50,100)</li>
|
||||
<li>(60,30)</li>
|
||||
<li>(70,18)</li>
|
||||
<li>(80,10)</li>
|
||||
<li>(90,3)</li>
|
||||
<li>(100,0)</li>
|
||||
</points>
|
||||
</ageGenerationCurve>
|
||||
<hediffGiverSets>
|
||||
<li>OrganicStandard</li>
|
||||
<li>Human</li>
|
||||
</hediffGiverSets>
|
||||
</race>
|
||||
<recipes>
|
||||
<li>ExciseCarcinoma</li>
|
||||
<li>AdministerMechSerumHealer</li>
|
||||
<li>RemoveBodyPart</li>
|
||||
<li>Euthanize</li>
|
||||
<li>Anesthetize</li>
|
||||
<li>CureScaria</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">Vasectomy</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">ReverseVasectomy</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">TubalLigation</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">ExtractOvum</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Royalty">CureBloodRot</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Royalty">CureAbasia</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">ExtractHemogenPack</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">BloodTransfusion</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">ImplantXenogerm</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">ImplantIUD</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">RemoveIUD</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Biotech">TerminatePregnancy</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Anomaly">SurgicalInspection</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Anomaly">BlissLobotomy</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Anomaly">GhoulInfusion</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Odyssey">RemovePorcupineQuill</li>
|
||||
</recipes>
|
||||
<ingredient>
|
||||
<mergeCompatibilityTags>
|
||||
<li>HumanMeat</li>
|
||||
</mergeCompatibilityTags>
|
||||
</ingredient>
|
||||
<comps>
|
||||
<li MayRequire="Ludeon.RimWorld.Anomaly" Class="CompProperties_HoldingPlatformTarget">
|
||||
<baseEscapeIntervalMtbDays>120</baseEscapeIntervalMtbDays>
|
||||
<getsColdContainmentBonus>true</getsColdContainmentBonus>
|
||||
</li>
|
||||
<li MayRequire="Ludeon.RimWorld.Anomaly" Class="CompProperties_Studiable">
|
||||
<frequencyTicks>120000</frequencyTicks>
|
||||
<minMonolithLevelForStudy>1</minMonolithLevelForStudy>
|
||||
<requiresImprisonment>true</requiresImprisonment>
|
||||
</li>
|
||||
</comps>
|
||||
</ThingDef>
|
||||
<AlienRace.ThingDef_AlienRace Name="ARA_QueenBase" ParentName="ARA_PawnBase">
|
||||
<defName>ArachnaeQueen_Race</defName>
|
||||
<label>阿拉克涅女皇种</label>
|
||||
<description>阿拉克涅女皇种是阿拉克涅虫巢中唯一可以生育督虫的个体,并且是虫巢意识金字塔的核心,肩负着引领阿拉克涅虫群前进的伟大使命。她与麾下的虫族的灵能链接所构成的蜂群意识网络可以使得虫群以极高的效率运转,但是一旦女皇种死亡,其麾下的虫群将全部死亡!</description>
|
||||
|
||||
<alienRace>
|
||||
<!-- 核心设置 -->
|
||||
<generalSettings>
|
||||
<!-- 男性生成几率 -->
|
||||
<maleGenderProbability>0</maleGenderProbability>
|
||||
<!-- 无视年龄疾病 -->
|
||||
<immuneToAge>true</immuneToAge>
|
||||
<!-- 在口角中造成的最大伤害 -->
|
||||
<maxDamageForSocialfight>15</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,0)</li>
|
||||
<li>(1,0)</li>
|
||||
<li>(999,0)</li>
|
||||
<li>(9999,0)</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>
|
||||
<!-- 异种类型列表 -->
|
||||
<xenotypeList>
|
||||
</xenotypeList>
|
||||
<onlyUseRaceRestrictedXenotypes>true</onlyUseRaceRestrictedXenotypes>
|
||||
<!-- 食物列表 -->
|
||||
<foodList>
|
||||
</foodList>
|
||||
<onlyEatRaceRestrictedFood>false</onlyEatRaceRestrictedFood>
|
||||
<!-- 可以穿戴的衣服 -->
|
||||
<apparelList>
|
||||
</apparelList>
|
||||
<blackApparelList>
|
||||
</blackApparelList>
|
||||
<!-- 仅使用种族限制的服装 -->
|
||||
<onlyUseRaceRestrictedApparel>true</onlyUseRaceRestrictedApparel>
|
||||
<!-- 生育能力 -->
|
||||
<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>Naked</li>
|
||||
<li>ApparelDamaged</li>
|
||||
<li>ProsthophileHappy</li>
|
||||
<li>ProsthophobeUnhappy</li>
|
||||
<li>BrawlerUnhappy</li>
|
||||
<li>PyromaniacHappy</li>
|
||||
<li>Greedy</li>
|
||||
<li>Jealous</li>
|
||||
<li>SharedBed</li>
|
||||
<li>AteWithoutTable</li>
|
||||
<li>SleptOutside</li>
|
||||
<li>SleptOnGround</li>
|
||||
<li>SleptInCold</li>
|
||||
<li>SleptInHeat</li>
|
||||
<li>Ugly</li>
|
||||
<li>AteKibble</li>
|
||||
<li>AteInsectMeatDirect</li>
|
||||
<li>AteInsectMeatAsIngredient</li>
|
||||
<li>AteRawFood</li>
|
||||
<li>AteHumanlikeMeatDirect</li>
|
||||
<li>AteHumanlikeMeatAsIngredient</li>
|
||||
<li>KnowButcheredHumanlikeCorpse</li>
|
||||
<li>ButcheredHumanlikeCorpseOpinion</li>
|
||||
<li>AteRawHumanlikeMeat</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>2000</MarketValue>
|
||||
<RoyalFavorValue>5</RoyalFavorValue>
|
||||
|
||||
<!-- 移动速度 -->
|
||||
<MoveSpeed>1.75</MoveSpeed>
|
||||
<Mass>250</Mass>
|
||||
|
||||
<!-- <RestRateMultiplier>1</RestRateMultiplier> -->
|
||||
<!-- <HungerRateMultiplier>1</HungerRateMultiplier> -->
|
||||
<EatingSpeed>2</EatingSpeed>
|
||||
<!-- 女皇很长时间才需要补充一次食物 -->
|
||||
<MaxNutrition>0.5</MaxNutrition>
|
||||
|
||||
<!-- 女皇的负重,设为0以避免女皇能背东西 -->
|
||||
<CarryingCapacity>0</CarryingCapacity>
|
||||
<MeatAmount>450</MeatAmount>
|
||||
<LeatherAmount>600</LeatherAmount>
|
||||
|
||||
<!-- 疼痛休克,女皇很难因为疼痛而倒下,虽并不是像机器人一样不会休克 -->
|
||||
<PainShockThreshold>1</PainShockThreshold>
|
||||
<!-- 女皇非常擅长灵能,以维持蜂群的蜂巢意识链接 -->
|
||||
<PsychicSensitivity>5</PsychicSensitivity>
|
||||
<!-- 女皇的崩溃概率 -->
|
||||
<MentalBreakThreshold>0</MentalBreakThreshold>
|
||||
<!-- 女皇的高耸身躯和强健循环系统使得很难被毒倒下 -->
|
||||
<ToxicResistance>0.95</ToxicResistance>
|
||||
<ToxicEnvironmentResistance MayRequire="Ludeon.RimWorld.Biotech">0.95</ToxicEnvironmentResistance>
|
||||
<!-- 女皇的甲壳可以抵御火焰侵袭,难以燃烧-->
|
||||
<Flammability>0.1</Flammability>
|
||||
|
||||
<!-- 女皇的庞大申请很难闪开近战 -->
|
||||
<MeleeDodgeChance>0.25</MeleeDodgeChance>
|
||||
<!-- <MeleeHitChance>1</MeleeHitChance> -->
|
||||
|
||||
<!-- <NegotiationAbility>1</NegotiationAbility> -->
|
||||
<!-- <SellPriceFactor>1</SellPriceFactor> -->
|
||||
<!-- <SocialImpact>1</SocialImpact> -->
|
||||
<!-- <TradePriceImprovement>0.5</TradePriceImprovement> -->
|
||||
|
||||
<!-- 自带的甲壳可以防御外部攻击 -->
|
||||
<ArmorRating_Blunt>0.6</ArmorRating_Blunt>
|
||||
<ArmorRating_Sharp>0.8</ArmorRating_Sharp>
|
||||
<ArmorRating_Heat>0.5</ArmorRating_Heat>
|
||||
|
||||
<!-- 虫群拥有惊人的愈合速度 -->
|
||||
<InjuryHealingFactor>5</InjuryHealingFactor>
|
||||
|
||||
<!-- 在野外采集的营养 -->
|
||||
<ForagedNutritionPerDay>0</ForagedNutritionPerDay>
|
||||
</statBases>
|
||||
|
||||
<race>
|
||||
<!-- 身体类型 -->
|
||||
<body>ArachnaeQueen_Body</body>
|
||||
<fleshType>Normal</fleshType>
|
||||
<!-- AI行为,勿改 -->
|
||||
<thinkTreeMain>ARA_Humanlike</thinkTreeMain>
|
||||
<!-- 智力水平 -->
|
||||
<intelligence>Humanlike</intelligence>
|
||||
<!-- 肉和皮革的定义 -->
|
||||
<leatherDef>Leather_Light</leatherDef>
|
||||
<specificMeatDef>Meat_Megaspider</specificMeatDef>
|
||||
<nameCategory>HumanStandard</nameCategory>
|
||||
<bloodDef>Filth_BloodInsect</bloodDef>
|
||||
<bloodSmearDef>Filth_BloodSmear</bloodSmearDef>
|
||||
<!-- 身形大小 -->
|
||||
<baseBodySize>10</baseBodySize>
|
||||
<!-- 基础血量,很高 -->
|
||||
<baseHealthScale>10</baseHealthScale>
|
||||
<!-- 解剖产物 -->
|
||||
<leatherDef>Steel</leatherDef>
|
||||
<specificMeatDef>Steel</specificMeatDef>
|
||||
|
||||
<soundMeleeHitPawn>Pawn_Melee_BigBash_HitPawn</soundMeleeHitPawn>
|
||||
<soundMeleeHitBuilding>Pawn_Melee_BigBash_HitBuilding</soundMeleeHitBuilding>
|
||||
<soundMeleeMiss>Pawn_Melee_BigBash_Miss</soundMeleeMiss>
|
||||
<soundMeleeDodge>Pawn_MeleeDodge</soundMeleeDodge>
|
||||
<!-- 年龄阶段 -->
|
||||
<!-- <lifeExpectancy>5000</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>
|
||||
<soundWounded>Pawn_HiveQueen_Wounded</soundWounded>
|
||||
<soundDeath>Pawn_HiveQueen_Death</soundDeath>
|
||||
<soundCall>Pawn_HiveQueen_Call</soundCall>
|
||||
<soundAngry>Pawn_HiveQueen_Angry</soundAngry>
|
||||
</li>
|
||||
</lifeStageAges>
|
||||
<canFlyInVacuum>false</canFlyInVacuum>
|
||||
|
||||
</race>
|
||||
|
||||
<!-- 工具设置(攻击方式) -->
|
||||
<tools>
|
||||
<li>
|
||||
<label>头顶</label>
|
||||
<capacities>
|
||||
<li>Poke</li>
|
||||
</capacities>
|
||||
<power>16</power>
|
||||
<cooldownTime>2</cooldownTime>
|
||||
<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
|
||||
<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
|
||||
<chanceFactor>0.01</chanceFactor>
|
||||
</li>
|
||||
<li>
|
||||
<label>踩踏</label>
|
||||
<capacities>
|
||||
<li>Blunt</li>
|
||||
<li>Poke</li>
|
||||
</capacities>
|
||||
<power>35</power>
|
||||
<cooldownTime>2.5</cooldownTime>
|
||||
<linkedBodyPartsGroup>Legs</linkedBodyPartsGroup>
|
||||
</li>
|
||||
<li>
|
||||
<label>腿部穿刺</label>
|
||||
<capacities>
|
||||
<li>Stab</li>
|
||||
</capacities>
|
||||
<power>50</power>
|
||||
<cooldownTime>3</cooldownTime>
|
||||
<linkedBodyPartsGroup>Legs</linkedBodyPartsGroup>
|
||||
</li>
|
||||
<li>
|
||||
<label>钳击</label>
|
||||
<capacities>
|
||||
<li>Cut</li>
|
||||
</capacities>
|
||||
<power>30</power>
|
||||
<cooldownTime>2</cooldownTime>
|
||||
<linkedBodyPartsGroup>Hands</linkedBodyPartsGroup>
|
||||
</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>
|
||||
</Defs>
|
||||
34
1.6/1.6/Defs/Thing_Misc/ARA_Things_Items.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Defs>
|
||||
<ThingDef ParentName="OrganicProductBase">
|
||||
<defName>ARA_InsectJelly</defName>
|
||||
<label>阿拉克涅虫蜜</label>
|
||||
<description>由虫族储存和用作食物的果冻。它顺滑、浓郁,能满足食用者的娱乐需求。由于其独特的生物特性,它几乎可以滋养任何生物,永不腐烂。</description>
|
||||
<possessionCount>10</possessionCount>
|
||||
<graphicData>
|
||||
<texPath>Things/Item/Resource/AnimalProductRaw/InsectJelly</texPath>
|
||||
<graphicClass>Graphic_StackCount</graphicClass>
|
||||
</graphicData>
|
||||
<socialPropernessMatters>true</socialPropernessMatters>
|
||||
<statBases>
|
||||
<MarketValue>8.0</MarketValue>
|
||||
<Mass>0.025</Mass>
|
||||
<Nutrition>0.1</Nutrition>
|
||||
<FoodPoisonChanceFixedHuman>0.02</FoodPoisonChanceFixedHuman>
|
||||
</statBases>
|
||||
<ingestible>
|
||||
<foodType>AnimalProduct</foodType>
|
||||
<preferability>MealFine</preferability>
|
||||
<joy>0.04</joy>
|
||||
<joyKind>Gluttonous</joyKind>
|
||||
<ingestEffect>EatVegetarian</ingestEffect>
|
||||
<ingestSound>Meal_Eat</ingestSound>
|
||||
<lowPriorityCaravanFood>true</lowPriorityCaravanFood>
|
||||
<babiesCanIngest>true</babiesCanIngest>
|
||||
</ingestible>
|
||||
<thingCategories>
|
||||
<li>AnimalProductRaw</li>
|
||||
</thingCategories>
|
||||
<allowedArchonexusCount>150</allowedArchonexusCount>
|
||||
</ThingDef>
|
||||
</Defs>
|
||||
@@ -1,49 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Defs>
|
||||
|
||||
<ThingDef ParentName="BuildingNaturalBase">
|
||||
<defName>ARA_EggSac</defName>
|
||||
<label>虫卵囊</label>
|
||||
<description>一个黏滑的囊状物,内含昆虫幼虫。幼虫的孕育过程会产生微弱的生物荧光。</description>
|
||||
<thingClass>Building</thingClass>
|
||||
<category>Building</category>
|
||||
<graphicData>
|
||||
<texPath>Things/Building/EggSac</texPath>
|
||||
<graphicClass>Graphic_Random</graphicClass>
|
||||
</graphicData>
|
||||
<altitudeLayer>Building</altitudeLayer>
|
||||
<passability>PassThroughOnly</passability>
|
||||
<fillPercent>0.3</fillPercent>
|
||||
<rotatable>false</rotatable>
|
||||
<terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
|
||||
<statBases>
|
||||
<MaxHitPoints>20</MaxHitPoints>
|
||||
<Flammability>0.4</Flammability>
|
||||
<Beauty>-6</Beauty>
|
||||
</statBases>
|
||||
<building>
|
||||
<isInert>true</isInert>
|
||||
<claimable>false</claimable>
|
||||
<deconstructible>false</deconstructible>
|
||||
<repairable>false</repairable>
|
||||
<quickTargetable>true</quickTargetable>
|
||||
<isTargetable>true</isTargetable>
|
||||
<expandHomeArea>false</expandHomeArea>
|
||||
</building>
|
||||
<comps>
|
||||
<li Class="CompProperties_Glower">
|
||||
<glowRadius>6</glowRadius>
|
||||
<glowColor>(113,141,117,0)</glowColor>
|
||||
</li>
|
||||
<li Class="CompProperties_SpawnPawnOnDestroyed">
|
||||
<compClass>CompSpawnLarva</compClass>
|
||||
<pawnKind>Larva</pawnKind>
|
||||
<lordJob>LordJob_WanderNest</lordJob>
|
||||
</li>
|
||||
<li Class="CompProperties_SpawnEffecterOnDestroy">
|
||||
<effect>CocoonDestroyed</effect>
|
||||
</li>
|
||||
</comps>
|
||||
</ThingDef>
|
||||
|
||||
</Defs>
|
||||
@@ -3,8 +3,11 @@
|
||||
<ThingDef ParentName="BuildingNaturalBase">
|
||||
<defName>ARA_InteractiveEggSac</defName>
|
||||
<label>阿拉克涅虫卵囊-休眠中</label>
|
||||
<description>一个脆弱、易燃、黏滑的囊状物,,是阿拉克涅女皇种所诞之卵,内含哺育一只新督虫所需的营养和遗传物质——可以通过阿拉克涅女皇种的交互完成激活进程。</description>
|
||||
<thingClass>ArachnaeSwarm.Building_Incubator</thingClass>
|
||||
<description>一个脆弱、易燃、黏滑的囊状物,是阿拉克涅女皇种所诞之卵,内含哺育一只新督虫所需的营养和遗传物质——可以通过阿拉克涅女皇种的交互完成激活进程。</description>
|
||||
<thingClass>Building</thingClass>
|
||||
<descriptionHyperlinks>
|
||||
<ThingDef>ArachnaeNode_Race_Myrmecocystus</ThingDef>
|
||||
</descriptionHyperlinks>
|
||||
<category>Building</category>
|
||||
<size>(1,1)</size>
|
||||
<minifiedDef>MinifiedThing</minifiedDef>
|
||||
@@ -12,8 +15,8 @@
|
||||
<li>BuildingsMisc</li>
|
||||
</thingCategories>
|
||||
<graphicData>
|
||||
<texPath>Things/Building/EggSac</texPath>
|
||||
<graphicClass>Graphic_Random</graphicClass>
|
||||
<texPath>ArachnaeSwarm/Building/ARA_EggSac</texPath>
|
||||
<graphicClass>Graphic_Single</graphicClass>
|
||||
<drawSize>(1.5,1.5)</drawSize>
|
||||
</graphicData>
|
||||
<altitudeLayer>Building</altitudeLayer>
|
||||
@@ -48,22 +51,83 @@
|
||||
<li>Megascarab</li>
|
||||
<li>Spelopede</li>
|
||||
<li>Megaspider</li>
|
||||
<li>ARA_ArachnaeNodeA</li>
|
||||
<li>ArachnaeNode_Race_Myrmecocystus</li>
|
||||
</pawnKinds>
|
||||
<whitelist>
|
||||
<li>ARA_ArachnaeQueen</li>
|
||||
</whitelist>
|
||||
<delay>300</delay> <!-- 5 seconds -->
|
||||
<pawnKindDelays>
|
||||
<li>
|
||||
<pawnKind>Megascarab</pawnKind>
|
||||
<delay>3000</delay>
|
||||
</li>
|
||||
<li>
|
||||
<pawnKind>Spelopede</pawnKind>
|
||||
<delay>3000</delay>
|
||||
</li>
|
||||
<li>
|
||||
<pawnKind>Megaspider</pawnKind>
|
||||
<delay>3000</delay>
|
||||
</li>
|
||||
<li>
|
||||
<pawnKind>ArachnaeNode_Race_Myrmecocystus</pawnKind>
|
||||
<delay>300</delay>
|
||||
</li>
|
||||
</pawnKindDelays>
|
||||
<destroyOnSpawn>true</destroyOnSpawn>
|
||||
<hatchingGraphicData>
|
||||
<texPath>Things/Building/Natural/Hive</texPath>
|
||||
<graphicClass>Graphic_Random</graphicClass>
|
||||
<drawSize>1.6</drawSize>
|
||||
</hatchingGraphicData>
|
||||
</li>
|
||||
<li Class="CompProperties_Maintainable">
|
||||
<ticksHealthy>60000</ticksHealthy>
|
||||
<ticksNeedsMaintenance>60000</ticksNeedsMaintenance>
|
||||
<damagePerTickRare>10</damagePerTickRare>
|
||||
</li>
|
||||
<li Class="CompProperties_SpawnEffecterOnDestroy">
|
||||
<effect>CocoonDestroyed</effect>
|
||||
</li>
|
||||
<li Class="CompProperties_SpawnerFilth">
|
||||
<filthDef>Filth_Slime</filthDef>
|
||||
<spawnCountOnSpawn>10</spawnCountOnSpawn>
|
||||
<spawnMtbHours>4</spawnMtbHours>
|
||||
<spawnRadius>5</spawnRadius>
|
||||
</li>
|
||||
<li Class="ArachnaeSwarm.CompProperties_DelayedTerrainSpawn">
|
||||
<delayTicks>60</delayTicks> <!-- 60 ticks = 1 second -->
|
||||
<terrainToSpawn>ARA_InsectSludge</terrainToSpawn>
|
||||
<spawnRadius>4.6</spawnRadius>
|
||||
</li>
|
||||
</comps>
|
||||
|
||||
</ThingDef>
|
||||
|
||||
<TerrainDef ParentName="FloorBase">
|
||||
<defName>ARA_InsectSludge</defName>
|
||||
<label>阿拉克涅菌毯</label>
|
||||
<description>由阿拉克涅虫族所铺设的由真菌和分泌物混合得到的地面,清洁速度很快,但是对其他种族来说不太好看。</description>
|
||||
<designationCategory>Floors</designationCategory>
|
||||
<texturePath>Terrain/Surfaces/InsectSludge</texturePath>
|
||||
<pollutionShaderType MayRequire="Ludeon.RimWorld.Biotech">TerrainFadeRoughLinearBurn</pollutionShaderType>
|
||||
<pollutionOverlayTexturePath>Terrain/Surfaces/PollutionMud</pollutionOverlayTexturePath>
|
||||
<pollutionColor>(1, 1, 1, 1)</pollutionColor>
|
||||
<edgeType>FadeRough</edgeType>
|
||||
<resourcesFractionWhenDeconstructed>0</resourcesFractionWhenDeconstructed>
|
||||
<renderPrecedence>330</renderPrecedence>
|
||||
<pathCost>0</pathCost>
|
||||
<generatedFilth>Filth_Slime</generatedFilth>
|
||||
<filthAcceptanceMask>
|
||||
<li>Unnatural</li>
|
||||
</filthAcceptanceMask>
|
||||
<natural>true</natural>
|
||||
<fertility>0</fertility>
|
||||
<takeFootprints>True</takeFootprints>
|
||||
<avoidWander>false</avoidWander>
|
||||
<statBases>
|
||||
<Beauty>-6</Beauty>
|
||||
<CleaningTimeFactor>0.25</CleaningTimeFactor>
|
||||
<Cleanliness>0</Cleanliness>
|
||||
<Flammability>0.2</Flammability>
|
||||
</statBases>
|
||||
<!-- <tags>
|
||||
<li>Insect</li>
|
||||
</tags> -->
|
||||
</TerrainDef>
|
||||
</Defs>
|
||||
501
1.6/1.6/Defs/ThinkTreeDefs/ARA_ThinkTrees.xml
Normal file
@@ -0,0 +1,501 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Defs>
|
||||
<ThinkTreeDef>
|
||||
<defName>ARA_Humanlike</defName> <!-- 更改defName以避免与原版Humanlike冲突 -->
|
||||
<thinkRoot Class="ThinkNode_Priority">
|
||||
<subNodes>
|
||||
|
||||
<!-- Do lovin' -->
|
||||
<li Class="ThinkNode_ConditionalLyingDown">
|
||||
<subNodes>
|
||||
<li Class="ThinkNode_ChancePerHour_Lovin">
|
||||
<subNodes>
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>SatisfyingNeeds</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_DoLovin" />
|
||||
</subNodes>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- If we HAVE to keep lying down... -->
|
||||
<li Class="ThinkNode_ConditionalMustKeepLyingDown">
|
||||
<subNodes>
|
||||
<!-- Do a queued job if possible (e.g. watch tv in bed) -->
|
||||
<li Class="ThinkNode_QueuedJob">
|
||||
<inBedOnly>true</inBedOnly>
|
||||
</li>
|
||||
|
||||
<!-- Get joy -->
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>SatisfyingNeeds</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="ThinkNode_PrioritySorter">
|
||||
<subNodes>
|
||||
<li Class="ThinkNode_Priority_GetJoy">
|
||||
<subNodes>
|
||||
<li Class="JobGiver_GetJoyInBed" />
|
||||
</subNodes>
|
||||
</li>
|
||||
<li Class="JobGiver_MeditateInBed"/>
|
||||
</subNodes>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- Keep lying down -->
|
||||
<li Class="JobGiver_KeepLyingDown" />
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<li Class="ThinkNode_Subtree">
|
||||
<treeDef>Downed</treeDef>
|
||||
</li>
|
||||
<li Class="ThinkNode_Subtree">
|
||||
<treeDef>BurningResponse</treeDef>
|
||||
</li>
|
||||
<li Class="ThinkNode_Subtree">
|
||||
<treeDef>MentalStateCritical</treeDef>
|
||||
</li>
|
||||
|
||||
<!-- Escaping threats -->
|
||||
<li Class="ThinkNode_Subtree" MayRequire="Ludeon.RimWorld.Biotech">
|
||||
<treeDef>Abilities_Escape</treeDef>
|
||||
</li>
|
||||
|
||||
<!-- React to close melee threat -->
|
||||
<li Class="JobGiver_ReactToCloseMeleeThreat" />
|
||||
|
||||
<!-- Mental state non critical -->
|
||||
<li Class="ThinkNode_Subtree">
|
||||
<treeDef>MentalStateNonCritical</treeDef>
|
||||
</li>
|
||||
|
||||
<!-- Behavior when roped -->
|
||||
<li Class="ThinkNode_Subtree">
|
||||
<treeDef>RopedPawn</treeDef>
|
||||
</li>
|
||||
|
||||
<!-- Insertion hook for modders -->
|
||||
<li Class="ThinkNode_SubtreesByTag">
|
||||
<insertTag>Humanlike_PostMentalState</insertTag>
|
||||
</li>
|
||||
|
||||
<!-- Do a queued job -->
|
||||
<li Class="ThinkNode_QueuedJob" />
|
||||
|
||||
<!-- Wait if drafted -->
|
||||
<li Class="ThinkNode_ConditionalColonist">
|
||||
<subNodes>
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>DraftedOrder</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_MoveToStandable" />
|
||||
<li Class="JobGiver_Orders" />
|
||||
</subNodes>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- Self-tend if you're an NPC -->
|
||||
<li Class="ThinkNode_ConditionalNPCCanSelfTendNow">
|
||||
<subNodes>
|
||||
<li Class="JobGiver_SelfTend" />
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- Lord directives (high priority) -->
|
||||
<li Class="ThinkNode_JoinVoluntarilyJoinableLord">
|
||||
<dutyHook>HighPriority</dutyHook>
|
||||
<subNodes>
|
||||
<li Class="ThinkNode_Subtree">
|
||||
<treeDef>LordDuty</treeDef>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- Insertion hook for modders -->
|
||||
<li Class="ThinkNode_SubtreesByTag">
|
||||
<insertTag>Humanlike_PostDuty</insertTag>
|
||||
</li>
|
||||
|
||||
<!-- JobGiver_MaintainBuildings start -->
|
||||
<li Class="ThinkNode_ChancePerHour_Constant">
|
||||
<mtbHours>2.5</mtbHours>
|
||||
<subNodes>
|
||||
<li Class="ArachnaeSwarm.JobGiver_MaintainBuildings">
|
||||
<maintainableThingDefs>
|
||||
<li>ARA_InteractiveEggSac</li> <!-- 默认维护Hive -->
|
||||
</maintainableThingDefs>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
<li Class="ArachnaeSwarm.JobGiver_MaintainBuildings">
|
||||
<maintainableThingDefs>
|
||||
<li>ARA_InteractiveEggSac</li> <!-- 默认维护Hive -->
|
||||
</maintainableThingDefs>
|
||||
<onlyIfDamagingState>true</onlyIfDamagingState>
|
||||
</li>
|
||||
<!-- JobGiver_MaintainBuildings end -->
|
||||
|
||||
<!-- Prisoner -->
|
||||
<li Class="ThinkNode_ConditionalPrisoner">
|
||||
<leaveJoinableLordIfIssuesJob>true</leaveJoinableLordIfIssuesJob>
|
||||
<subNodes>
|
||||
<!-- If it's the player home map... -->
|
||||
<li Class="ThinkNode_ConditionalInNonPlayerHomeMap">
|
||||
<invert>true</invert>
|
||||
<subNodes>
|
||||
<!-- Wait instead of escaping if should -->
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>Idle</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_PrisonerWaitInsteadOfEscaping">
|
||||
<maxDanger>Deadly</maxDanger>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- Escape -->
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>Escaping</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_PrisonerEscape" />
|
||||
</subNodes>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- Exit map if released -->
|
||||
<li Class="ThinkNode_ConditionalReleased">
|
||||
<subNodes>
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>Misc</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_ExitMapBest">
|
||||
<defaultLocomotion>Walk</defaultLocomotion>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>RestingForMedicalReasons</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_PatientGoToBed" />
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>ChangingApparel</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_PrisonerGetDressed" />
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>SatisfyingNeeds</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="ThinkNode_PrioritySorter">
|
||||
<subNodes>
|
||||
<li Class="JobGiver_Autofeed" MayRequire="Ludeon.RimWorld.Biotech" />
|
||||
<li Class="JobGiver_GetFood"/>
|
||||
<li Class="JobGiver_GetRest"/>
|
||||
<li Class="JobGiver_SatisfyChemicalNeed"/>
|
||||
<li Class="JobGiver_SatifyChemicalDependency" MayRequire="Ludeon.RimWorld.Biotech" />
|
||||
<li Class="JobGiver_GetHemogen" MayRequire="Ludeon.RimWorld.Biotech" />
|
||||
<li Class="JobGiver_GetDeathrest" MayRequire="Ludeon.RimWorld.Biotech" />
|
||||
<li Class="ThinkNode_Priority_GetJoy">
|
||||
<subNodes>
|
||||
<li Class="JobGiver_GetJoy"/>
|
||||
<li Class="JobGiver_GetJoyInBed"/>
|
||||
</subNodes>
|
||||
</li>
|
||||
<li Class="JobGiver_Meditate"/>
|
||||
</subNodes>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- If in non-PlayerHomeMap -->
|
||||
<li Class="ThinkNode_ConditionalInNonPlayerHomeMap">
|
||||
<subNodes>
|
||||
<!-- No colonist spawned in the map -->
|
||||
<li Class="ThinkNode_ConditionalAnyUndownedColonistSpawnedNearby">
|
||||
<invert>true</invert>
|
||||
<subNodes>
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>Escaping</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_PrisonerEscape" />
|
||||
</subNodes>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
<!-- Wander -->
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>Idle</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_WanderColony">
|
||||
<maxDanger>Deadly</maxDanger>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>Idle</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_WanderCurrentRoom">
|
||||
<maxDanger>Deadly</maxDanger>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<li Class="JobGiver_IdleError" />
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- If on colonist team, do forced and emergency work -->
|
||||
<li Class="ThinkNode_ConditionalColonist">
|
||||
<subNodes>
|
||||
<!-- Seek allowed area -->
|
||||
<li Class="JobGiver_SeekAllowedArea" />
|
||||
|
||||
<!-- Seek safe temperatures -->
|
||||
<li Class="JobGiver_BringBabyToSafety" />
|
||||
<li Class="JobGiver_SeekSafeTemperature" />
|
||||
|
||||
<!-- Drop unnused inventory -->
|
||||
<li Class="JobGiver_DropUnusedInventory" />
|
||||
|
||||
<!-- Emergency work -->
|
||||
<li Class="JobGiver_Work">
|
||||
<leaveJoinableLordIfIssuesJob>true</leaveJoinableLordIfIssuesJob>
|
||||
<emergency>true</emergency>
|
||||
</li>
|
||||
|
||||
<!-- Get food (only if starving) -->
|
||||
<li Class="ThinkNode_ConditionalStarving">
|
||||
<subNodes>
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>SatisfyingNeeds</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_GetFood">
|
||||
<leaveJoinableLordIfIssuesJob>true</leaveJoinableLordIfIssuesJob>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- Breastfeed -->
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>Misc</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_Autofeed" MayRequire="Ludeon.RimWorld.Biotech" />
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- Lord directives (medium priority) -->
|
||||
<li Class="ThinkNode_JoinVoluntarilyJoinableLord">
|
||||
<dutyHook>MediumPriority</dutyHook>
|
||||
<subNodes>
|
||||
<li Class="ThinkNode_Subtree">
|
||||
<treeDef>LordDuty</treeDef>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- Pick up a weapon dropped while previously downed -->
|
||||
<li Class="JobGiver_PickupDroppedWeapon">
|
||||
<ignoreForbidden>true</ignoreForbidden>
|
||||
</li>
|
||||
|
||||
<!-- Optimize apparel -->
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>ChangingApparel</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_OptimizeApparel">
|
||||
<leaveJoinableLordIfIssuesJob>true</leaveJoinableLordIfIssuesJob>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- Look change -->
|
||||
<li MayRequire="Ludeon.RimWorld.Ideology" Class="ThinkNode_ConditionalWantsLookChange">
|
||||
<subNodes>
|
||||
<li Class="JobGiver_UseStylingStationAutomatic" />
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- Dye hair -->
|
||||
<li MayRequire="Ludeon.RimWorld.Ideology" Class="JobGiver_DyeHair" />
|
||||
|
||||
<!-- Take for inventory stock -->
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>TakeForInventoryStock</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_TakeForInventoryStock">
|
||||
<leaveJoinableLordIfIssuesJob>true</leaveJoinableLordIfIssuesJob>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- Unload your inventory -->
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>UnloadingOwnInventory</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_UnloadYourInventory" />
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- Pack food if not hungry-->
|
||||
<li Class="ThinkNode_ConditionalNeedPercentageAbove">
|
||||
<need>Food</need>
|
||||
<threshold>0.6</threshold>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_PackFood">
|
||||
<leaveJoinableLordIfIssuesJob>true</leaveJoinableLordIfIssuesJob>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- Behavior from traits -->
|
||||
<li Class="ThinkNode_TraitBehaviors" />
|
||||
|
||||
<!-- Insertion hook for modders -->
|
||||
<li Class="ThinkNode_SubtreesByTag">
|
||||
<insertTag>Humanlike_PreMain</insertTag>
|
||||
</li>
|
||||
|
||||
<!-- Main colonist behavior core -->
|
||||
<li Class="ThinkNode_ConditionalColonist">
|
||||
<subNodes>
|
||||
<li Class="ThinkNode_Subtree">
|
||||
<treeDef>MainColonistBehaviorCore</treeDef>
|
||||
<leaveJoinableLordIfIssuesJob>true</leaveJoinableLordIfIssuesJob>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
<!-- Main wild man behavior core -->
|
||||
<li Class="ThinkNode_ConditionalPawnKind">
|
||||
<pawnKind>WildMan</pawnKind>
|
||||
<subNodes>
|
||||
<li Class="ThinkNode_Subtree">
|
||||
<treeDef>MainWildManBehaviorCore</treeDef>
|
||||
<leaveJoinableLordIfIssuesJob>true</leaveJoinableLordIfIssuesJob>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- Insertion hook for modders -->
|
||||
<li Class="ThinkNode_SubtreesByTag">
|
||||
<insertTag>Humanlike_PostMain</insertTag>
|
||||
</li>
|
||||
|
||||
<!-- Idle colonist -->
|
||||
<li Class="ThinkNode_ConditionalColonist">
|
||||
<subNodes>
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>Idle</tagToGive>
|
||||
<subNodes>
|
||||
<!-- Do random joy activity -->
|
||||
<li Class="ThinkNode_ConditionalNeedPercentageAbove">
|
||||
<need>Joy</need>
|
||||
<threshold>0.9</threshold>
|
||||
<invert>true</invert>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_IdleJoy" />
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- Wander -->
|
||||
<li Class="JobGiver_WanderColony">
|
||||
<maxDanger>None</maxDanger>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- Idle wild man -->
|
||||
<li Class="ThinkNode_ConditionalPawnKind">
|
||||
<pawnKind>WildMan</pawnKind>
|
||||
<subNodes>
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>Idle</tagToGive>
|
||||
<subNodes>
|
||||
<!-- Wander -->
|
||||
<li Class="JobGiver_WanderAnywhere">
|
||||
<maxDanger>Deadly</maxDanger>
|
||||
<ticksBetweenWandersRange>120~240</ticksBetweenWandersRange>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- If you're a neutral guest, if you're not hurt exit the map, otherwise use a medical bed -->
|
||||
<li Class="ThinkNode_ConditionalGuest">
|
||||
<subNodes>
|
||||
<li Class="ThinkNode_ConditionalNonPlayerNonHostileFactionOrFactionless">
|
||||
<subNodes>
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>RestingForMedicalReasons</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_PatientGoToBed" />
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>Misc</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_ExitMapBest">
|
||||
<defaultLocomotion>Walk</defaultLocomotion>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- Final backup: If you're just here for no apparent reason, and not a colonist, leave the map
|
||||
e.g. This happens for pawns who are downed during combat, then later self-heal -->
|
||||
<li Class="ThinkNode_ConditionalColonist">
|
||||
<invert>true</invert>
|
||||
<subNodes>
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>Misc</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_ExitMapBest">
|
||||
<defaultLocomotion>Walk</defaultLocomotion>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<!-- If you can't leave, just wander -->
|
||||
<li Class="ThinkNode_Tagger">
|
||||
<tagToGive>Idle</tagToGive>
|
||||
<subNodes>
|
||||
<li Class="JobGiver_WanderAnywhere">
|
||||
<maxDanger>Deadly</maxDanger>
|
||||
</li>
|
||||
</subNodes>
|
||||
</li>
|
||||
|
||||
<li Class="JobGiver_IdleError" />
|
||||
</subNodes>
|
||||
</thinkRoot>
|
||||
</ThinkTreeDef>
|
||||
</Defs>
|
||||
BIN
Content/Textures/ArachnaeSwarm/Building/ARA_EggSac.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 299 KiB |
|
After Width: | Height: | Size: 266 KiB |
|
After Width: | Height: | Size: 320 KiB |
|
Before Width: | Height: | Size: 117 B After Width: | Height: | Size: 117 B |
|
Before Width: | Height: | Size: 117 B After Width: | Height: | Size: 117 B |
|
After Width: | Height: | Size: 117 B |
|
After Width: | Height: | Size: 299 KiB |
|
After Width: | Height: | Size: 266 KiB |
|
After Width: | Height: | Size: 320 KiB |
|
After Width: | Height: | Size: 117 B |
|
After Width: | Height: | Size: 117 B |
|
After Width: | Height: | Size: 117 B |
|
After Width: | Height: | Size: 117 B |
|
Before Width: | Height: | Size: 121 B After Width: | Height: | Size: 121 B |
|
Before Width: | Height: | Size: 122 B After Width: | Height: | Size: 122 B |
|
Before Width: | Height: | Size: 298 KiB |
|
Before Width: | Height: | Size: 265 KiB |
|
Before Width: | Height: | Size: 325 KiB |
@@ -83,9 +83,17 @@
|
||||
<Compile Include="HediffComp_HiveMindDrone.cs" />
|
||||
<Compile Include="CompAbilityEffect_BindDrone.cs" />
|
||||
<Compile Include="CompProperties_AbilityBindDrone.cs" />
|
||||
<Compile Include="Alert_UnlinkedHiveMindDrone.cs" />
|
||||
<Compile Include="JobGiver_MaintainBuildings.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="CompProperties_DelayedTerrainSpawn.cs" />
|
||||
<Compile Include="CompDelayedTerrainSpawn.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="WULA_AutoMechCarrier\CompAutoMechCarrier.cs" />
|
||||
<Compile Include="WULA_AutoMechCarrier\CompProperties_AutoMechCarrier.cs" />
|
||||
<Compile Include="WULA_AutoMechCarrier\PawnProductionEntry.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- 自定义清理任务,删除obj文件夹中的临时文件 -->
|
||||
<Target Name="CleanDebugFiles" AfterTargets="Build">
|
||||
|
||||
57
Source/ArachnaeSwarm/CompDelayedTerrainSpawn.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
using RimWorld;
|
||||
using Verse;
|
||||
|
||||
namespace ArachnaeSwarm
|
||||
{
|
||||
public class CompDelayedTerrainSpawn : ThingComp
|
||||
{
|
||||
private CompProperties_DelayedTerrainSpawn Props => (CompProperties_DelayedTerrainSpawn)props;
|
||||
|
||||
private int ticksToSpawn;
|
||||
private bool started;
|
||||
|
||||
public override void PostSpawnSetup(bool respawningAfterLoad)
|
||||
{
|
||||
base.PostSpawnSetup(respawningAfterLoad);
|
||||
StartDelayedSpawn();
|
||||
}
|
||||
|
||||
public override void CompTick()
|
||||
{
|
||||
base.CompTick();
|
||||
if (started)
|
||||
{
|
||||
ticksToSpawn--;
|
||||
if (ticksToSpawn <= 0)
|
||||
{
|
||||
DoTerrainSpawn();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void StartDelayedSpawn()
|
||||
{
|
||||
started = true;
|
||||
ticksToSpawn = Props.delayTicks;
|
||||
}
|
||||
|
||||
private void DoTerrainSpawn()
|
||||
{
|
||||
if (parent.Destroyed)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (Props.terrainToSpawn != null)
|
||||
{
|
||||
foreach (IntVec3 current in GenRadial.RadialCellsAround(parent.Position, Props.spawnRadius, true))
|
||||
{
|
||||
if (current.InBounds(parent.Map) && current.Walkable(parent.Map))
|
||||
{
|
||||
parent.Map.terrainGrid.SetTerrain(current, Props.terrainToSpawn);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
16
Source/ArachnaeSwarm/CompProperties_DelayedTerrainSpawn.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Verse;
|
||||
|
||||
namespace ArachnaeSwarm
|
||||
{
|
||||
public class CompProperties_DelayedTerrainSpawn : CompProperties
|
||||
{
|
||||
public int delayTicks = 0;
|
||||
public TerrainDef terrainToSpawn;
|
||||
public float spawnRadius = 0f;
|
||||
|
||||
public CompProperties_DelayedTerrainSpawn()
|
||||
{
|
||||
compClass = typeof(CompDelayedTerrainSpawn);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ namespace ArachnaeSwarm
|
||||
{
|
||||
public List<PawnKindDef> pawnKinds;
|
||||
public List<PawnKindDef> whitelist;
|
||||
public int delay = 0;
|
||||
public List<PawnKindDelay> pawnKindDelays;
|
||||
public bool destroyOnSpawn = false;
|
||||
public IntRange spawnCount = new IntRange(1, 1);
|
||||
public Type lordJob;
|
||||
@@ -32,4 +32,10 @@ namespace ArachnaeSwarm
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class PawnKindDelay
|
||||
{
|
||||
public PawnKindDef pawnKind;
|
||||
public int delay;
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Verse;
|
||||
using RimWorld;
|
||||
using Verse.AI;
|
||||
@@ -45,7 +46,8 @@ namespace ArachnaeSwarm
|
||||
public void StartIncubation()
|
||||
{
|
||||
spawningPawnKind = selectedPawnKind;
|
||||
spawnUntilTick = Find.TickManager.TicksGame + Props.delay;
|
||||
int delay = Props.pawnKindDelays?.FirstOrDefault(pkd => pkd.pawnKind == selectedPawnKind)?.delay ?? 0;
|
||||
spawnUntilTick = Find.TickManager.TicksGame + delay;
|
||||
}
|
||||
|
||||
public override void CompTick()
|
||||
|
||||
56
Source/ArachnaeSwarm/JobGiver_MaintainBuildings.cs
Normal file
@@ -0,0 +1,56 @@
|
||||
using System.Collections.Generic;
|
||||
using Verse;
|
||||
using RimWorld;
|
||||
using Verse.AI;
|
||||
using Verse.AI.Group;
|
||||
|
||||
namespace ArachnaeSwarm
|
||||
{
|
||||
public class JobGiver_MaintainBuildings : JobGiver_AIFightEnemies
|
||||
{
|
||||
private bool onlyIfDamagingState;
|
||||
|
||||
// 新增属性,用于存储可维护的ThingDef列表
|
||||
public List<ThingDef> maintainableThingDefs;
|
||||
|
||||
private static readonly float CellsInScanRadius = GenRadial.NumCellsInRadius(7.9f);
|
||||
|
||||
public override ThinkNode DeepCopy(bool resolve = true)
|
||||
{
|
||||
JobGiver_MaintainBuildings obj = (JobGiver_MaintainBuildings)base.DeepCopy(resolve);
|
||||
obj.onlyIfDamagingState = onlyIfDamagingState;
|
||||
obj.maintainableThingDefs = maintainableThingDefs; // 复制列表
|
||||
return obj;
|
||||
}
|
||||
|
||||
protected override Job TryGiveJob(Pawn pawn)
|
||||
{
|
||||
Room room = pawn.GetRoom();
|
||||
for (int i = 0; (float)i < CellsInScanRadius; i++)
|
||||
{
|
||||
IntVec3 intVec = pawn.Position + GenRadial.RadialPattern[i];
|
||||
if (!intVec.InBounds(pawn.Map) || intVec.GetRoom(pawn.Map) != room)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// 遍历可维护的ThingDef列表
|
||||
foreach (ThingDef thingDef in maintainableThingDefs)
|
||||
{
|
||||
// 查找指定ThingDef的建筑
|
||||
Thing targetThing = (Thing)pawn.Map.thingGrid.ThingAt(intVec, thingDef);
|
||||
|
||||
if (targetThing != null && pawn.CanReserve(targetThing))
|
||||
{
|
||||
CompMaintainable compMaintainable = targetThing.TryGetComp<CompMaintainable>();
|
||||
if (compMaintainable != null && compMaintainable.CurStage != 0 && (!onlyIfDamagingState || compMaintainable.CurStage == MaintainableStage.Damaging))
|
||||
{
|
||||
return JobMaker.MakeJob(JobDefOf.Maintain, targetThing);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
195
Source/ArachnaeSwarm/WULA_AutoMechCarrier/CompAutoMechCarrier.cs
Normal file
@@ -0,0 +1,195 @@
|
||||
using RimWorld;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using UnityEngine;
|
||||
using Verse;
|
||||
using Verse.AI.Group;
|
||||
|
||||
namespace ArachnaeSwarm
|
||||
{
|
||||
public class CompAutoMechCarrier : CompMechCarrier
|
||||
{
|
||||
#region Reflected Fields
|
||||
private static FieldInfo spawnedPawnsField;
|
||||
private static FieldInfo cooldownTicksRemainingField;
|
||||
private static FieldInfo innerContainerField;
|
||||
|
||||
private List<Pawn> SpawnedPawns
|
||||
{
|
||||
get
|
||||
{
|
||||
if (spawnedPawnsField == null)
|
||||
spawnedPawnsField = typeof(CompMechCarrier).GetField("spawnedPawns", BindingFlags.NonPublic | BindingFlags.Instance);
|
||||
return (List<Pawn>)spawnedPawnsField.GetValue(this);
|
||||
}
|
||||
}
|
||||
|
||||
private int CooldownTicksRemaining
|
||||
{
|
||||
get
|
||||
{
|
||||
if (cooldownTicksRemainingField == null)
|
||||
cooldownTicksRemainingField = typeof(CompMechCarrier).GetField("cooldownTicksRemaining", BindingFlags.NonPublic | BindingFlags.Instance);
|
||||
return (int)cooldownTicksRemainingField.GetValue(this);
|
||||
}
|
||||
set
|
||||
{
|
||||
if (cooldownTicksRemainingField == null)
|
||||
cooldownTicksRemainingField = typeof(CompMechCarrier).GetField("cooldownTicksRemaining", BindingFlags.NonPublic | BindingFlags.Instance);
|
||||
cooldownTicksRemainingField.SetValue(this, value);
|
||||
}
|
||||
}
|
||||
|
||||
private ThingOwner InnerContainer
|
||||
{
|
||||
get
|
||||
{
|
||||
if (innerContainerField == null)
|
||||
innerContainerField = typeof(CompMechCarrier).GetField("innerContainer", BindingFlags.NonPublic | BindingFlags.Instance);
|
||||
return (ThingOwner)innerContainerField.GetValue(this);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
public CompProperties_AutoMechCarrier AutoProps => (CompProperties_AutoMechCarrier)props;
|
||||
|
||||
private int TotalPawnCapacity => AutoProps.productionQueue.Sum(e => e.count);
|
||||
|
||||
private int LiveSpawnedPawnsCount(PawnKindDef kind)
|
||||
{
|
||||
SpawnedPawns.RemoveAll(p => p == null || p.Destroyed);
|
||||
return SpawnedPawns.Count(p => p.kindDef == kind);
|
||||
}
|
||||
|
||||
private AcceptanceReport CanSpawnNow(PawnKindDef kind)
|
||||
{
|
||||
if (parent is Pawn pawn && (pawn.IsSelfShutdown() || !pawn.Awake() || pawn.Downed || pawn.Dead || !pawn.Spawned))
|
||||
return false;
|
||||
if (CooldownTicksRemaining > 0)
|
||||
return "CooldownTime".Translate() + " " + CooldownTicksRemaining.ToStringSecondsFromTicks();
|
||||
|
||||
PawnProductionEntry entry = AutoProps.productionQueue.First(e => e.pawnKind == kind);
|
||||
int cost = entry.cost ?? Props.costPerPawn;
|
||||
|
||||
if (!AutoProps.freeProduction && InnerContainer.TotalStackCountOfDef(Props.fixedIngredient) < cost)
|
||||
return "MechCarrierNotEnoughResources".Translate();
|
||||
return true;
|
||||
}
|
||||
|
||||
private void TrySpawnPawn(PawnKindDef kind)
|
||||
{
|
||||
PawnGenerationRequest request = new PawnGenerationRequest(kind, parent.Faction, PawnGenerationContext.NonPlayer, -1, forceGenerateNewPawn: true);
|
||||
Pawn pawn = PawnGenerator.GeneratePawn(request);
|
||||
GenSpawn.Spawn(pawn, parent.Position, parent.Map);
|
||||
SpawnedPawns.Add(pawn);
|
||||
|
||||
if (parent is Pawn p && p.GetLord() != null)
|
||||
p.GetLord().AddPawn(pawn);
|
||||
|
||||
if (!AutoProps.freeProduction)
|
||||
{
|
||||
PawnProductionEntry entry = AutoProps.productionQueue.First(e => e.pawnKind == kind);
|
||||
int costLeft = entry.cost ?? Props.costPerPawn;
|
||||
|
||||
List<Thing> things = new List<Thing>(InnerContainer);
|
||||
for (int j = 0; j < things.Count; j++)
|
||||
{
|
||||
Thing thing = InnerContainer.Take(things[j], Mathf.Min(things[j].stackCount, costLeft));
|
||||
costLeft -= thing.stackCount;
|
||||
thing.Destroy();
|
||||
if (costLeft <= 0) break;
|
||||
}
|
||||
}
|
||||
|
||||
PawnProductionEntry spawnEntry = AutoProps.productionQueue.First(e => e.pawnKind == kind);
|
||||
CooldownTicksRemaining = spawnEntry.cooldownTicks ?? Props.cooldownTicks;
|
||||
|
||||
if (Props.spawnedMechEffecter != null)
|
||||
EffecterTrigger(Props.spawnedMechEffecter, Props.attachSpawnedMechEffecter, pawn);
|
||||
if (Props.spawnEffecter != null)
|
||||
EffecterTrigger(Props.spawnEffecter, Props.attachSpawnedEffecter, parent);
|
||||
}
|
||||
|
||||
private void EffecterTrigger(EffecterDef effecterDef, bool attach, Thing target)
|
||||
{
|
||||
Effecter effecter = new Effecter(effecterDef);
|
||||
effecter.Trigger(attach ? ((TargetInfo)target) : new TargetInfo(target.Position, target.Map), TargetInfo.Invalid);
|
||||
effecter.Cleanup();
|
||||
}
|
||||
|
||||
public override void CompTick()
|
||||
{
|
||||
base.CompTick();
|
||||
|
||||
if (parent.IsHashIntervalTick(60)) // 每秒检查一次
|
||||
{
|
||||
// 检查是否有抑制生产的Hediff
|
||||
if (AutoProps.disableHediff != null && (parent as Pawn)?.health.hediffSet.HasHediff(AutoProps.disableHediff) == true)
|
||||
{
|
||||
return; // 有Hediff,停止生产
|
||||
}
|
||||
|
||||
// 1. 先检查是否满员
|
||||
bool isFull = true;
|
||||
foreach (var entry in AutoProps.productionQueue)
|
||||
{
|
||||
if (LiveSpawnedPawnsCount(entry.pawnKind) < entry.count)
|
||||
{
|
||||
isFull = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (isFull)
|
||||
{
|
||||
return; // 如果已满员,则不进行任何操作,包括冷却计时
|
||||
}
|
||||
|
||||
// 2. 如果未满员,才检查冷却时间
|
||||
if (CooldownTicksRemaining > 0) return;
|
||||
|
||||
// 3. 寻找空位并生产
|
||||
foreach (var entry in AutoProps.productionQueue)
|
||||
{
|
||||
if (LiveSpawnedPawnsCount(entry.pawnKind) < entry.count)
|
||||
{
|
||||
if (CanSpawnNow(entry.pawnKind).Accepted)
|
||||
{
|
||||
TrySpawnPawn(entry.pawnKind);
|
||||
break; // 每次只生产一个
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override IEnumerable<Gizmo> CompGetGizmosExtra()
|
||||
{
|
||||
// 移除所有Gizmo逻辑
|
||||
return Enumerable.Empty<Gizmo>();
|
||||
}
|
||||
|
||||
public override string CompInspectStringExtra()
|
||||
{
|
||||
SpawnedPawns.RemoveAll(p => p == null || p.Destroyed);
|
||||
string text = "Pawns: " + SpawnedPawns.Count + " / " + TotalPawnCapacity;
|
||||
|
||||
foreach (var entry in AutoProps.productionQueue)
|
||||
{
|
||||
text += $"\n- {entry.pawnKind.LabelCap}: {LiveSpawnedPawnsCount(entry.pawnKind)} / {entry.count}";
|
||||
}
|
||||
|
||||
if (CooldownTicksRemaining > 0)
|
||||
{
|
||||
text += "\n" + "CooldownTime".Translate() + ": " + CooldownTicksRemaining.ToStringSecondsFromTicks();
|
||||
}
|
||||
|
||||
if (!AutoProps.freeProduction)
|
||||
{
|
||||
text += "\n" + base.CompInspectStringExtra();
|
||||
}
|
||||
return text;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
using RimWorld;
|
||||
using Verse;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace ArachnaeSwarm
|
||||
{
|
||||
public class CompProperties_AutoMechCarrier : CompProperties_MechCarrier
|
||||
{
|
||||
// XML中定义,生产是否消耗资源
|
||||
public bool freeProduction = false;
|
||||
|
||||
// 如果单位拥有这个Hediff,则停止生产
|
||||
public HediffDef disableHediff;
|
||||
|
||||
// 定义生产队列
|
||||
public List<PawnProductionEntry> productionQueue = new List<PawnProductionEntry>();
|
||||
|
||||
public CompProperties_AutoMechCarrier()
|
||||
{
|
||||
// 确保这个属性类指向我们新的功能实现类
|
||||
compClass = typeof(CompAutoMechCarrier);
|
||||
}
|
||||
|
||||
public override IEnumerable<string> ConfigErrors(ThingDef parentDef)
|
||||
{
|
||||
foreach (string error in base.ConfigErrors(parentDef))
|
||||
{
|
||||
yield return error;
|
||||
}
|
||||
|
||||
if (productionQueue.NullOrEmpty())
|
||||
{
|
||||
yield return "CompProperties_AutoMechCarrier must have at least one entry in productionQueue.";
|
||||
}
|
||||
}
|
||||
|
||||
public override void ResolveReferences(ThingDef parentDef)
|
||||
{
|
||||
base.ResolveReferences(parentDef);
|
||||
// Prevent division by zero if costPerPawn is not set, which the base game AI might try to access.
|
||||
if (costPerPawn <= 0)
|
||||
{
|
||||
costPerPawn = 1;
|
||||
}
|
||||
|
||||
// 如果spawnPawnKind为空(因为我们用了新的队列系统),
|
||||
// 就从队列里取第一个作为“假”值,以防止基类方法在生成Gizmo标签时出错。
|
||||
if (spawnPawnKind == null && !productionQueue.NullOrEmpty())
|
||||
{
|
||||
spawnPawnKind = productionQueue[0].pawnKind;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using Verse;
|
||||
|
||||
namespace ArachnaeSwarm
|
||||
{
|
||||
/// <summary>
|
||||
/// A data class to hold information about a pawn to be produced in a queue.
|
||||
/// Used in XML definitions.
|
||||
/// </summary>
|
||||
public class PawnProductionEntry
|
||||
{
|
||||
// The PawnKindDef of the unit to spawn.
|
||||
public PawnKindDef pawnKind;
|
||||
|
||||
// The maximum number of this kind of unit to maintain.
|
||||
public int count = 1;
|
||||
|
||||
// Optional: specific cooldown for this entry. If not set, the parent comp's cooldown is used.
|
||||
public int? cooldownTicks;
|
||||
|
||||
// Optional: specific cost for this entry. If not set, the parent comp's costPerPawn is used.
|
||||
public int? cost;
|
||||
}
|
||||
}
|
||||
BIN
非公开资源/Content/Textures/Building/ARA_EggSac.sai2
Normal file
BIN
非公开资源/Content/Textures/Things/General/Invisible/Inv_east.png
Normal file
|
After Width: | Height: | Size: 117 B |
|
Before Width: | Height: | Size: 121 B After Width: | Height: | Size: 121 B |
|
Before Width: | Height: | Size: 122 B After Width: | Height: | Size: 122 B |