This commit is contained in:
2025-09-04 18:37:22 +08:00
parent fda704ee2e
commit b45df3cbfc
6 changed files with 280 additions and 141 deletions

View File

@@ -72,8 +72,8 @@
<AbilityDef> <AbilityDef>
<defName>ARA_EggSpewBioforgeIncubator</defName> <defName>ARA_EggSpewBioforgeIncubator</defName>
<label>生育培育卵</label> <label>生育孵化茧</label>
<description>工艺卵</description> <description>孵化茧</description>
<iconPath>UI/Commands/EggSpew</iconPath> <iconPath>UI/Commands/EggSpew</iconPath>
<cooldownTicksRange>5000</cooldownTicksRange> <cooldownTicksRange>5000</cooldownTicksRange>
<aiCanUse>true</aiCanUse> <aiCanUse>true</aiCanUse>
@@ -98,7 +98,7 @@
</li> </li>
<li Class="ArachnaeSwarm.CompProperties_AbilityNeedCost"> <li Class="ArachnaeSwarm.CompProperties_AbilityNeedCost">
<needDef>Food</needDef> <needDef>Food</needDef>
<needCost>0</needCost> <needCost>1</needCost>
<failMessage>营养值不足,需要进食</failMessage> <failMessage>营养值不足,需要进食</failMessage>
</li> </li>
</comps> </comps>

View File

@@ -85,4 +85,16 @@
<li>ArachnaeNode_spawnCategories_ShieldHead</li> <li>ArachnaeNode_spawnCategories_ShieldHead</li>
</spawnCategories> </spawnCategories>
</AlienRace.AlienBackstoryDef> </AlienRace.AlienBackstoryDef>
<AlienRace.AlienBackstoryDef ParentName="ARA_BaseBackStory">
<defName>Arachnae_Node_BS_Adult_WeaponSmith</defName>
<title>阿拉克涅工艺种</title>
<titleShort>工艺种</titleShort>
<description>[PAWN_nameDef]是一只阿拉克涅工艺种督虫。能够产出专门用来孵化阿拉克涅武器种的孵化茧,负责阿拉克涅虫巢的基础维护。\n\n[PAWN_nameDef]在战斗中并不是一个值得正视的对手,她没有可以接入武装器官的副肢,脆弱臃肿的特性也决定了她几乎无法躲开任何攻击。</description>
<slot>Adulthood</slot>
<requiredWorkTags>Cooking</requiredWorkTags>
<spawnCategories>
<li>ArachnaeNode_spawnCategories_WeaponSmith</li>
</spawnCategories>
</AlienRace.AlienBackstoryDef>
</Defs> </Defs>

View File

@@ -147,6 +147,27 @@
</apparelTags> </apparelTags>
<apparelMoney>0</apparelMoney> <apparelMoney>0</apparelMoney>
</PawnKindDef> </PawnKindDef>
<PawnKindDef ParentName="ArachnaeNodeABasePawnKind">
<defName>ArachnaeNode_Race_WeaponSmith</defName>
<label>阿拉克涅工艺种</label>
<race>ArachnaeNode_Race_WeaponSmith</race>
<defaultFactionType>PlayerColony</defaultFactionType>
<invNutrition>0</invNutrition>
<backstoryFiltersOverride>
<li>
<categories>
<li>ArachnaeNode_spawnCategoriesA</li>
<li>ArachnaeNode_spawnCategories_WeaponSmith</li>
</categories>
</li>
</backstoryFiltersOverride>
<abilities>
<li>ARA_EggSpewBioforgeIncubator</li>
</abilities>
<apparelTags>
</apparelTags>
<apparelMoney>0</apparelMoney>
</PawnKindDef>
<PawnKindDef Name="ARA_InsectKindBase" ParentName="AnimalKindBase" Abstract="True"> <PawnKindDef Name="ARA_InsectKindBase" ParentName="AnimalKindBase" Abstract="True">
<defaultFactionType>PlayerColony</defaultFactionType> <defaultFactionType>PlayerColony</defaultFactionType>

View File

@@ -749,7 +749,7 @@
<productionQueue> <productionQueue>
<li> <li>
<pawnKind>ArachnaeBase_Race_HardJaw</pawnKind> <pawnKind>ArachnaeBase_Race_HardJaw</pawnKind>
<count>5</count> <count>2</count>
<cooldownTicks>1000</cooldownTicks> <cooldownTicks>1000</cooldownTicks>
</li> </li>
</productionQueue> </productionQueue>
@@ -802,4 +802,126 @@
</lifeStageAges> </lifeStageAges>
</race> </race>
</AlienRace.ThingDef_AlienRace> </AlienRace.ThingDef_AlienRace>
<AlienRace.ThingDef_AlienRace ParentName="ARA_NodeBase">
<defName>ArachnaeNode_Race_WeaponSmith</defName>
<label>阿拉克涅工艺种</label>
<description>阿拉克涅督虫之一,天生牛马。\n\n作为督虫她可以繁育并监管若干阿拉克涅坚颚种辅虫以协助巢穴开采矿脉。</description>
<alienRace>
<generalSettings>
<!-- 各种零件定义 -->
<alienPartGenerator>
<!-- 额外身体部件 -->
<bodyAddons>
<li>
<path>ArachnaeSwarm/Things/ARA_HiveNode/Addons/ArachnaeNode_Race_Addons_ShieldHead</path>
<offsets>
<south>
<offset>(0,0.32)</offset>
</south>
<north>
<offset>(0,0.32)</offset>
</north>
<east>
<offset>(-0.1,0.32)</offset>
</east>
<west>
<offset>(-0.1,0.32)</offset>
</west>
</offsets>
<inFrontOfBody>true</inFrontOfBody>
</li>
<li>
<path>ArachnaeSwarm/Things/ARA_HiveNode/Addons/ArachnaeNode_Race_Addons_ShieldBody</path>
<inFrontOfBody>true</inFrontOfBody>
<offsets>
<south>
<!-- <layerOffset>0.25</layerOffset> -->
</south>
<north>
<layerOffset>-0.6</layerOffset>
</north>
<east>
<!-- same structure repeated -->
</east>
<west>
<!-- optional, mirrors east if omitted -->
</west>
</offsets>
</li>
</bodyAddons>
</alienPartGenerator>
</generalSettings>
<raceRestriction>
<!-- 食物列表 -->
<foodList>
<li>ARA_InsectJelly</li>
</foodList>
<onlyEatRaceRestrictedFood>true</onlyEatRaceRestrictedFood>
</raceRestriction>
</alienRace>
<comps>
<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_Slavey</pawnKind>
<count>2</count>
<cooldownTicks>1000</cooldownTicks>
</li>
</productionQueue>
<spawnEffecter>CocoonDestroyed</spawnEffecter>
</li>
</comps>
<!-- 基础属性设置 -->
<statBases>
<!-- 移动速度 -->
<MoveSpeed>2</MoveSpeed>
<!-- <RestRateMultiplier>1</RestRateMultiplier> -->
<!-- <HungerRateMultiplier>1</HungerRateMultiplier> -->
<EatingSpeed>5</EatingSpeed>
<MaxNutrition>1</MaxNutrition>
<CarryingCapacity>100</CarryingCapacity>
<MeatAmount>50</MeatAmount>
<LeatherAmount>80</LeatherAmount>
<MeleeDodgeChance>0.75</MeleeDodgeChance>
<!-- <MeleeHitChance>1</MeleeHitChance> -->
<!-- <NegotiationAbility>1</NegotiationAbility> -->
<!-- <SellPriceFactor>1</SellPriceFactor> -->
<!-- <SocialImpact>1</SocialImpact> -->
<!-- <TradePriceImprovement>0.5</TradePriceImprovement> -->
<!-- 自带的甲壳可以防御外部攻击 -->
<ArmorRating_Blunt>1</ArmorRating_Blunt>
<ArmorRating_Sharp>1.25</ArmorRating_Sharp>
<ArmorRating_Heat>1</ArmorRating_Heat>
</statBases>
<race>
<!-- 身体类型 -->
<body>ArachnaeMyrmecocystus_Body</body>
<!-- 身形大小 -->
<baseBodySize>2</baseBodySize>
<!-- 血量上限 -->
<baseHealthScale>5</baseHealthScale>
<!-- 蜜罐虫的寿命很低 -->
<lifeExpectancy>2</lifeExpectancy>
<lifeStageAges Inherit="False">
<li>
<def>ArachnaeNode_Myrmecocystus_Adult</def>
<minAge>0</minAge>
</li>
</lifeStageAges>
</race>
</AlienRace.ThingDef_AlienRace>
</Defs> </Defs>

View File

@@ -739,23 +739,7 @@
</recipes> </recipes>
<comps> <comps>
<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_Slavey</pawnKind>
<count>5</count>
<cooldownTicks>1000</cooldownTicks>
</li>
</productionQueue>
<spawnEffecter>CocoonDestroyed</spawnEffecter>
</li>
</comps> </comps>
</AlienRace.ThingDef_AlienRace> </AlienRace.ThingDef_AlienRace>
</Defs> </Defs>

View File

@@ -4,7 +4,7 @@
<ThingDef ParentName="BuildingBase"> <ThingDef ParentName="BuildingBase">
<defName>ARA_BioforgeIncubator</defName> <defName>ARA_BioforgeIncubator</defName>
<label>阿拉克涅孵化茧</label> <label>阿拉克涅孵化茧</label>
<description>一个脆弱、易燃、黏滑的囊状物,是阿拉克涅工艺种所诞之卵,内含哺育阿拉克涅武器种虫族所需的营养和遗传物质,可以通过阿拉克涅工艺种的交互完成激活进程。</description> <description>一个脆弱、易燃、黏滑的囊状物,是阿拉克涅工艺种所诞之卵,内含哺育阿拉克涅武器种虫族所需的营养和遗传物质,可以通过阿拉克涅工艺种的交互完成激活进程。孵化茧对温度极度敏感,遭受极端温度将会受损需要小心保护。</description>
<thingClass>Building</thingClass> <thingClass>Building</thingClass>
<graphicData> <graphicData>
<texPath>ArachnaeSwarm/Building/ARA_EggSac</texPath> <texPath>ArachnaeSwarm/Building/ARA_EggSac</texPath>
@@ -57,7 +57,7 @@
</processes> </processes>
<whitelist> <whitelist>
<li>ARA_ArachnaeQueen</li> <li>ArachnaeNode_Race_WeaponSmith</li>
</whitelist> </whitelist>
<spawnCount>1</spawnCount> <spawnCount>1</spawnCount>
<destroyOnSpawn>True</destroyOnSpawn> <destroyOnSpawn>True</destroyOnSpawn>