This commit is contained in:
2025-09-16 14:00:50 +08:00
parent a7c96c6aed
commit 26f66d2ca4
9 changed files with 89 additions and 11 deletions

Binary file not shown.

View File

@@ -9,6 +9,10 @@
<graphicData>
<texPath>Things/Building/Misc/ToolCabinet</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<shadowData>
<volume>(0.7, 0.4, 0.7)</volume>
<offset>(0,0,-0.1)</offset>
</shadowData>
</graphicData>
<size>(1,1)</size>
<comps>
@@ -32,6 +36,10 @@
<graphicClass>Graphic_Single</graphicClass>
<shaderType>CutoutComplex</shaderType>
<drawSize>(5,6)</drawSize>
<shadowData>
<volume>(4.0, 0.5, 4.0)</volume>
<offset>(0,0,-0.1)</offset>
</shadowData>
</graphicData>
<size>(5,5)</size>
<tickerType>Normal</tickerType>
@@ -149,12 +157,16 @@
<label>生物质孵化池</label>
<description>一个大型的、需要消耗大量营养物质的孵化设施,可以同时孵化多个单位,并能通过链接外部设备来提高效率。</description>
<graphicData>
<texPath>Things/Building/AncientHeatVent</texPath>
<texPath>ArachnaeSwarm/Building/ARA_BioforgeIncubatorPawn</texPath>
<graphicClass>Graphic_Single</graphicClass>
<shaderType>CutoutComplex</shaderType>
<drawSize>(7,7)</drawSize>
<drawSize>(8,8)</drawSize>
<shadowData>
<volume>(6.0, 0.6, 4.0)</volume>
<offset>(0,0,-0.1)</offset>
</shadowData>
</graphicData>
<size>(7,7)</size>
<size>(7,5)</size>
<tickerType>Normal</tickerType>
<stuffCategories Inherit="False" />
<costStuffCount>0</costStuffCount>
@@ -243,9 +255,14 @@
<description>一个活体虫族器官,通过分别消化植物和肉类物质,来缓慢培育出营养丰富的阿拉克涅虫蜜。需要同时填充素食和肉类才能工作。</description>
<thingClass>Building</thingClass>
<graphicData>
<texPath>Things/Building/Natural/Hive</texPath>
<graphicClass>Graphic_Random</graphicClass>
<drawSize>2</drawSize>
<texPath>ArachnaeSwarm/Building/ARA_JellyVat</texPath>
<graphicClass>Graphic_Single</graphicClass>
<shaderType>CutoutComplex</shaderType>
<drawSize>(2.2,2.2)</drawSize>
<shadowData>
<volume>(1.6, 0.5, 1.6)</volume>
<offset>(0,0,-0.1)</offset>
</shadowData>
</graphicData>
<size>(2,2)</size>
<tickerType>Normal</tickerType>
@@ -298,7 +315,7 @@
<!-- 燃料槽 1: 素食 -->
<li Class="ArachnaeSwarm.CompProperties_RefuelableNutrition_WithKey">
<saveKeysPrefix>veg_vat</saveKeysPrefix>
<fuelLabel>植物原料</fuelLabel>
<fuelLabel>素食</fuelLabel>
<fuelFilter>
<categories>
<li>PlantFoodRaw</li>
@@ -312,7 +329,7 @@
<!-- 燃料槽 2: 肉类 -->
<li Class="ArachnaeSwarm.CompProperties_RefuelableNutrition_WithKey">
<saveKeysPrefix>meat_vat</saveKeysPrefix>
<fuelLabel>动物蛋白</fuelLabel>
<fuelLabel>肉食</fuelLabel>
<fuelFilter>
<categories>
<li>MeatRaw</li>

View File

@@ -58,10 +58,15 @@
<texPath>ArachnaeSwarm/Building/Linked/ARA_InsectWall</texPath>
<graphicClass>Graphic_Single</graphicClass>
<shaderType>CutoutComplex</shaderType>
<shadowData>
<volume>(0.7, 0.4, 0.2)</volume>
<offset>(0,0,-0.1)</offset>
</shadowData>
</graphicData>
<designationCategory>ARA_Buildings</designationCategory>
<!-- <mineable>true</mineable> -->
<blockLight>true</blockLight>
<staticSunShadowHeight>0</staticSunShadowHeight>
<statBases>
<MarketValue>0</MarketValue>
<Beauty>-6</Beauty>
@@ -119,6 +124,10 @@
<graphicData>
<texPath>ArachnaeSwarm/Building/Door/ARA_InsectDoor</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<shadowData>
<volume>(0.7, 0.6, 0.7)</volume>
<offset>(0,0,-0.1)</offset>
</shadowData>
<damageData>
<!-- no damage marks because they don't move with the door
<rect>(0,0.12,1,0.76)</rect>-->
@@ -151,7 +160,7 @@
<!-- <terrainAffordanceNeeded>ARA_Creep</terrainAffordanceNeeded> -->
<designationCategory>ARA_Buildings</designationCategory>
<holdsRoof>true</holdsRoof>
<staticSunShadowHeight>1.0</staticSunShadowHeight>
<staticSunShadowHeight>0</staticSunShadowHeight>
<blockLight>true</blockLight>
<drawerType>RealtimeOnly</drawerType>
<repairEffect>EatVegetarian</repairEffect>
@@ -342,6 +351,10 @@
<graphicClass>Graphic_Multi</graphicClass>
<shaderType>CutoutComplex</shaderType>
<drawSize>(3,4.5)</drawSize>
<shadowData>
<volume>(2.5, 0.5, 2.5)</volume>
<offset>(0,0,-0.1)</offset>
</shadowData>
</graphicData>
<castEdgeShadows>false</castEdgeShadows>
<staticSunShadowHeight>0</staticSunShadowHeight>
@@ -388,6 +401,10 @@
<graphicClass>Graphic_Multi</graphicClass>
<shaderType>CutoutComplex</shaderType>
<drawSize>(2,2)</drawSize>
<shadowData>
<volume>(0.8, 0.4, 1.7)</volume>
<offset>(0,0,-0.1)</offset>
</shadowData>
</graphicData>
<staticSunShadowHeight Inherit="False" IsNull="True" />
<castEdgeShadows>False</castEdgeShadows>

View File

@@ -6,6 +6,10 @@
<texPath>ArachnaeSwarm/Building/ARA_Cocoon</texPath>
<graphicClass>Graphic_Single</graphicClass>
<drawSize>(1.1,1.1)</drawSize>
<shadowData>
<volume>(0.7, 0.4, 0.7)</volume>
<offset>(0,0,-0.1)</offset>
</shadowData>
</graphicData>
<size>(1,1)</size>
<altitudeLayer>Building</altitudeLayer>

View File

@@ -9,6 +9,10 @@
<graphicData>
<texPath>Things/Building/Misc/TempControl/Cooler</texPath> <!-- 暂时使用制冷器的贴图 -->
<graphicClass>Graphic_Multi</graphicClass>
<shadowData>
<volume>(0.6, 0.4, 0.3)</volume>
<offset>(0,0,-0.1)</offset>
</shadowData>
</graphicData>
<altitudeLayer>Building</altitudeLayer>
<passability>Impassable</passability>
@@ -19,7 +23,7 @@
<blockWeather>true</blockWeather>
<castEdgeShadows>true</castEdgeShadows>
<canOverlapZones>false</canOverlapZones>
<staticSunShadowHeight>1.0</staticSunShadowHeight>
<staticSunShadowHeight>0</staticSunShadowHeight>
<statBases>
<WorkToBuild>400</WorkToBuild>
<MaxHitPoints>100</MaxHitPoints>
@@ -52,7 +56,7 @@
</li>
<!-- 提供温度控制UI和逻辑 -->
<li Class="CompProperties_TempControl">
<li Class="ArachnaeSwarm.CompProperties_TempControl_Fixed">
<!-- 这是设备的热交换功率。数值越大,制冷/制热速度越快。-->
<energyPerSecond>34</energyPerSecond>
</li>

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

View File

@@ -223,6 +223,9 @@
<Compile Include="WULA_MutiFuelSpawner\Patch_CompRefuelableWithKey.cs" />
<Compile Include="WULA_MutiFuelSpawner\CompRefuelableNutrition_WithKey.cs" />
</ItemGroup>
<ItemGroup>
<Compile Include="Utils\CompTempControl_Fixed.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- 自定义清理任务删除obj文件夹中的临时文件 -->
<Target Name="CleanDebugFiles" AfterTargets="Build">

View File

@@ -0,0 +1,33 @@
using RimWorld;
using Verse;
namespace ArachnaeSwarm
{
// First, we need a new properties class that points to our new component class
public class CompProperties_TempControl_Fixed : CompProperties_TempControl
{
public CompProperties_TempControl_Fixed()
{
compClass = typeof(CompTempControl_Fixed);
}
}
// This is our new component class that inherits from the original
public class CompTempControl_Fixed : CompTempControl
{
// We override the problematic method
public override string CompInspectStringExtra()
{
// Call the original method to get its string
string baseString = base.CompInspectStringExtra();
// If the string is not null, trim any whitespace from the end and return it
if (!string.IsNullOrEmpty(baseString))
{
return baseString.TrimEnd();
}
return baseString;
}
}
}