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

@@ -40,12 +40,12 @@
</requiredWorkTags> </requiredWorkTags>
<startingHediffs> <startingHediffs>
</startingHediffs> </startingHediffs>
<moveSpeedFactorByTerrainTag> <moveSpeedFactorByTerrainTag>
<li> <li>
<key>ARA_Creep</key> <key>ARA_Creep</key>
<value>8.0</value> <value>8.0</value>
</li> </li>
</moveSpeedFactorByTerrainTag> </moveSpeedFactorByTerrainTag>
</PawnKindDef> </PawnKindDef>
<PawnKindDef Name="ArachnaeQueen_Colonist" ParentName="ArachnaeQueenBasePawnKind"> <PawnKindDef Name="ArachnaeQueen_Colonist" ParentName="ArachnaeQueenBasePawnKind">
<defName>ARA_ArachnaeQueen</defName> <defName>ARA_ArachnaeQueen</defName>
@@ -101,12 +101,12 @@
</requiredWorkTags> </requiredWorkTags>
<startingHediffs> <startingHediffs>
</startingHediffs> </startingHediffs>
<moveSpeedFactorByTerrainTag> <moveSpeedFactorByTerrainTag>
<li> <li>
<key>ARA_Creep</key> <key>ARA_Creep</key>
<value>8.0</value> <value>8.0</value>
</li> </li>
</moveSpeedFactorByTerrainTag> </moveSpeedFactorByTerrainTag>
</PawnKindDef> </PawnKindDef>
<PawnKindDef ParentName="ArachnaeNodeABasePawnKind"> <PawnKindDef ParentName="ArachnaeNodeABasePawnKind">
<defName>ArachnaeNode_Race_Myrmecocystus</defName> <defName>ArachnaeNode_Race_Myrmecocystus</defName>
@@ -123,7 +123,7 @@
</li> </li>
</backstoryFiltersOverride> </backstoryFiltersOverride>
<abilities> <abilities>
<li>ARA_AcidSprayBurst_Myrmecocystus</li> <li>ARA_AcidSprayBurst_Myrmecocystus</li>
</abilities> </abilities>
<apparelTags> <apparelTags>
</apparelTags> </apparelTags>
@@ -147,107 +147,128 @@
</apparelTags> </apparelTags>
<apparelMoney>0</apparelMoney> <apparelMoney>0</apparelMoney>
</PawnKindDef> </PawnKindDef>
<PawnKindDef ParentName="ArachnaeNodeABasePawnKind">
<PawnKindDef Name="ARA_InsectKindBase" ParentName="AnimalKindBase" Abstract="True"> <defName>ArachnaeNode_Race_WeaponSmith</defName>
<defaultFactionType>PlayerColony</defaultFactionType> <label>阿拉克涅工艺种</label>
<canArriveManhunter>false</canArriveManhunter> <race>ArachnaeNode_Race_WeaponSmith</race>
<forceDeathOnDowned>true</forceDeathOnDowned> <defaultFactionType>PlayerColony</defaultFactionType>
<forceNoDeathNotification>true</forceNoDeathNotification> <invNutrition>0</invNutrition>
<combatPower>75</combatPower> <backstoryFiltersOverride>
<ecoSystemWeight>0</ecoSystemWeight> <li>
<moveSpeedFactorByTerrainTag> <categories>
<li> <li>ArachnaeNode_spawnCategoriesA</li>
<key>ARA_Creep</key> <li>ArachnaeNode_spawnCategories_WeaponSmith</li>
<value>8.0</value> </categories>
</li> </li>
</moveSpeedFactorByTerrainTag> </backstoryFiltersOverride>
</PawnKindDef> <abilities>
<PawnKindDef ParentName="ARA_InsectKindBase"> <li>ARA_EggSpewBioforgeIncubator</li>
<defName>ArachnaeBase_Race_Slavey</defName> </abilities>
<label>阿拉克涅苦役种</label> <apparelTags>
<race>ArachnaeBase_Race_Slavey</race> </apparelTags>
<lifeStages> <apparelMoney>0</apparelMoney>
<li> </PawnKindDef>
<bodyGraphicData>
<texPath>Things/Pawn/Animal/Spelopede/Spelopede</texPath> <PawnKindDef Name="ARA_InsectKindBase" ParentName="AnimalKindBase" Abstract="True">
<drawSize>1</drawSize> <defaultFactionType>PlayerColony</defaultFactionType>
<color>(156,148,125)</color> <canArriveManhunter>false</canArriveManhunter>
<shadowData> <forceDeathOnDowned>true</forceDeathOnDowned>
<volume>(0.4, 0.5, 0.37)</volume> <forceNoDeathNotification>true</forceNoDeathNotification>
<offset>(0,0,-0.15)</offset> <combatPower>75</combatPower>
</shadowData> <ecoSystemWeight>0</ecoSystemWeight>
</bodyGraphicData> <moveSpeedFactorByTerrainTag>
<dessicatedBodyGraphicData> <li>
<texPath>Things/Pawn/Animal/Spelopede/Dessicated_Spelopede</texPath> <key>ARA_Creep</key>
<drawSize>1</drawSize> <value>8.0</value>
</dessicatedBodyGraphicData> </li>
</li> </moveSpeedFactorByTerrainTag>
</lifeStages> </PawnKindDef>
</PawnKindDef> <PawnKindDef ParentName="ARA_InsectKindBase">
<PawnKindDef ParentName="ARA_InsectKindBase"> <defName>ArachnaeBase_Race_Slavey</defName>
<defName>ArachnaeBase_Race_Scavenger</defName> <label>阿拉克涅苦役种</label>
<label>阿拉克涅食腐种</label> <race>ArachnaeBase_Race_Slavey</race>
<race>ArachnaeBase_Race_Scavenger</race> <lifeStages>
<lifeStages> <li>
<li> <bodyGraphicData>
<bodyGraphicData> <texPath>Things/Pawn/Animal/Spelopede/Spelopede</texPath>
<texPath>Things/Pawn/Animal/Spelopede/Spelopede</texPath> <drawSize>1</drawSize>
<drawSize>1</drawSize> <color>(156,148,125)</color>
<color>(156,148,125)</color> <shadowData>
<shadowData> <volume>(0.4, 0.5, 0.37)</volume>
<volume>(0.4, 0.5, 0.37)</volume> <offset>(0,0,-0.15)</offset>
<offset>(0,0,-0.15)</offset> </shadowData>
</shadowData> </bodyGraphicData>
</bodyGraphicData> <dessicatedBodyGraphicData>
<dessicatedBodyGraphicData> <texPath>Things/Pawn/Animal/Spelopede/Dessicated_Spelopede</texPath>
<texPath>Things/Pawn/Animal/Spelopede/Dessicated_Spelopede</texPath> <drawSize>1</drawSize>
<drawSize>1</drawSize> </dessicatedBodyGraphicData>
</dessicatedBodyGraphicData> </li>
</li> </lifeStages>
</lifeStages> </PawnKindDef>
</PawnKindDef> <PawnKindDef ParentName="ARA_InsectKindBase">
<PawnKindDef ParentName="ARA_InsectKindBase"> <defName>ArachnaeBase_Race_Scavenger</defName>
<defName>ArachnaeBase_Race_HardJaw</defName> <label>阿拉克涅食腐种</label>
<label>阿拉克涅坚颚种</label> <race>ArachnaeBase_Race_Scavenger</race>
<race>ArachnaeBase_Race_HardJaw</race> <lifeStages>
<lifeStages> <li>
<li> <bodyGraphicData>
<bodyGraphicData> <texPath>Things/Pawn/Animal/Spelopede/Spelopede</texPath>
<texPath>Things/Pawn/Animal/Spelopede/Spelopede</texPath> <drawSize>1</drawSize>
<drawSize>1</drawSize> <color>(156,148,125)</color>
<color>(156,148,125)</color> <shadowData>
<shadowData> <volume>(0.4, 0.5, 0.37)</volume>
<volume>(0.4, 0.5, 0.37)</volume> <offset>(0,0,-0.15)</offset>
<offset>(0,0,-0.15)</offset> </shadowData>
</shadowData> </bodyGraphicData>
</bodyGraphicData> <dessicatedBodyGraphicData>
<dessicatedBodyGraphicData> <texPath>Things/Pawn/Animal/Spelopede/Dessicated_Spelopede</texPath>
<texPath>Things/Pawn/Animal/Spelopede/Dessicated_Spelopede</texPath> <drawSize>1</drawSize>
<drawSize>1</drawSize> </dessicatedBodyGraphicData>
</dessicatedBodyGraphicData> </li>
</li> </lifeStages>
</lifeStages> </PawnKindDef>
</PawnKindDef> <PawnKindDef ParentName="ARA_InsectKindBase">
<PawnKindDef ParentName="ARA_InsectKindBase"> <defName>ArachnaeBase_Race_HardJaw</defName>
<defName>ArachnaeBase_Race_Acid</defName> <label>阿拉克涅坚颚种</label>
<label>阿拉克涅酸嗜种</label> <race>ArachnaeBase_Race_HardJaw</race>
<race>ArachnaeBase_Race_Acid</race> <lifeStages>
<lifeStages> <li>
<li> <bodyGraphicData>
<bodyGraphicData> <texPath>Things/Pawn/Animal/Spelopede/Spelopede</texPath>
<texPath>Things/Pawn/Animal/Spelopede/Spelopede</texPath> <drawSize>1</drawSize>
<drawSize>1</drawSize> <color>(156,148,125)</color>
<color>(156,148,125)</color> <shadowData>
<shadowData> <volume>(0.4, 0.5, 0.37)</volume>
<volume>(0.4, 0.5, 0.37)</volume> <offset>(0,0,-0.15)</offset>
<offset>(0,0,-0.15)</offset> </shadowData>
</shadowData> </bodyGraphicData>
</bodyGraphicData> <dessicatedBodyGraphicData>
<dessicatedBodyGraphicData> <texPath>Things/Pawn/Animal/Spelopede/Dessicated_Spelopede</texPath>
<texPath>Things/Pawn/Animal/Spelopede/Dessicated_Spelopede</texPath> <drawSize>1</drawSize>
<drawSize>1</drawSize> </dessicatedBodyGraphicData>
</dessicatedBodyGraphicData> </li>
</li> </lifeStages>
</lifeStages> </PawnKindDef>
</PawnKindDef> <PawnKindDef ParentName="ARA_InsectKindBase">
<defName>ArachnaeBase_Race_Acid</defName>
<label>阿拉克涅酸嗜种</label>
<race>ArachnaeBase_Race_Acid</race>
<lifeStages>
<li>
<bodyGraphicData>
<texPath>Things/Pawn/Animal/Spelopede/Spelopede</texPath>
<drawSize>1</drawSize>
<color>(156,148,125)</color>
<shadowData>
<volume>(0.4, 0.5, 0.37)</volume>
<offset>(0,0,-0.15)</offset>
</shadowData>
</bodyGraphicData>
<dessicatedBodyGraphicData>
<texPath>Things/Pawn/Animal/Spelopede/Dessicated_Spelopede</texPath>
<drawSize>1</drawSize>
</dessicatedBodyGraphicData>
</li>
</lifeStages>
</PawnKindDef>
</Defs> </Defs>

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>
@@ -38,7 +38,7 @@
<li>Foods</li> <li>Foods</li>
</categories> </categories>
</fuelFilter> </fuelFilter>
<fuelConsumptionRate>0</fuelConsumptionRate> <!-- IMPORTANT: Disable base class consumption --> <fuelConsumptionRate>0</fuelConsumptionRate> <!-- IMPORTANT: Disable base class consumption -->
</li> </li>
<!-- The refactored producer component --> <!-- The refactored producer component -->
@@ -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>
@@ -165,7 +165,7 @@
<recoveryRate>0.001</recoveryRate> <recoveryRate>0.001</recoveryRate>
</li> </li>
</comps> </comps>
</ThingDef> </ThingDef>
</Defs> </Defs>