This commit is contained in:
2025-09-21 16:17:08 +08:00
parent 4fb30a03aa
commit d5d986e62a
14 changed files with 251 additions and 116 deletions

Binary file not shown.

View File

@@ -4,7 +4,7 @@
<JobDef>
<defName>ARA_DeployWormhole</defName>
<driverClass>ArachnaeSwarm.JobDriver_DeployWormhole</driverClass>
<reportString>deploying wormhole.</reportString>
<reportString>正在部署虫洞。</reportString>
<allowOpportunisticPrefix>true</allowOpportunisticPrefix>
</JobDef>

View File

@@ -4,19 +4,18 @@
<!-- ==================== A端传送门 ==================== -->
<ThingDef ParentName="BuildingBase">
<defName>ARA_WormholePortal_A</defName>
<label>wormhole portal (A)</label>
<description>The primary control unit of a wormhole network. It can launch a secondary portal to a distant location, establishing a stable connection.</description>
<label>阿拉克涅坑道虫虫洞</label>
<description>阿拉克涅虫洞网络的主体组成部分。它可以向远方发射尾巴作为虫洞出口,它是阿拉克涅坑道虫头部的一部分,装入虫洞的物体会被坑道虫加压移动从而快速旅行,虫洞允许双向通行。</description>
<thingClass>ArachnaeSwarm.Building_WormholePortal_A</thingClass>
<graphicData>
<texPath>Things/Building/Misc/LongRangeMineralScanner</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<drawSize>(4,4)</drawSize>
<damageData>
<cornerTL>Damage/Corner</cornerTL>
<cornerTR>Damage/Corner</cornerTR>
<cornerBL>Damage/Corner</cornerBL>
<cornerBR>Damage/Corner</cornerBR>
</damageData>
<texPath>ArachnaeSwarm/Building/ARA_Wormhole_A</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>
<altitudeLayer>Building</altitudeLayer>
<passability>Impassable</passability>
@@ -35,10 +34,6 @@
<ComponentSpacer>6</ComponentSpacer>
</costList>
<comps>
<li Class="CompProperties_Power">
<compClass>CompPowerTrader</compClass>
<basePowerConsumption>500</basePowerConsumption>
</li>
<li Class="CompProperties_Flickable"/>
<li Class="ArachnaeSwarm.CompProperties_RefuelableNutrition">
<fuelCapacity>500.0</fuelCapacity>
@@ -52,11 +47,10 @@
<targetFuelLevelConfigurable>true</targetFuelLevelConfigurable>
</li>
<li Class="ArachnaeSwarm.CompProperties_LaunchableWormhole">
<fuelNeededToLaunch>50</fuelNeededToLaunch>
<maxLaunchDistance>100</maxLaunchDistance>
<fuelPerTile>2.5</fuelPerTile>
</li>
</comps>
<designationCategory>Misc</designationCategory>
<designationCategory>ARA_Buildings</designationCategory>
<building>
<ai_chillDestination>false</ai_chillDestination>
</building>
@@ -68,14 +62,18 @@
<!-- ==================== B端传送门 ==================== -->
<ThingDef ParentName="BuildingBase">
<defName>ARA_WormholePortal_B</defName>
<label>wormhole portal (B)</label>
<description>A remotely deployed secondary portal. It is linked to a primary portal (A) and allows for two-way travel.</description>
<label>阿拉克涅坑道虫虫洞出口</label>
<description>一个被远程部署的虫洞出口。它是阿拉克涅坑道虫尾巴的一部分,装入虫洞的物体会被坑道虫加压移动从而快速旅行,虫洞允许双向通行。</description>
<thingClass>ArachnaeSwarm.Building_WormholePortal_B</thingClass>
<graphicData>
<texPath>Things/Building/Misc/LongRangeMineralScanner</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<color>(150, 150, 250)</color> <!-- A different color to distinguish -->
<drawSize>(4,4)</drawSize>
<texPath>ArachnaeSwarm/Building/ARA_Wormhole_B</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>
<altitudeLayer>Building</altitudeLayer>
<passability>Impassable</passability>
@@ -85,10 +83,6 @@
</statBases>
<size>(2,2)</size>
<comps>
<li Class="CompProperties_Power">
<compClass>CompPowerTrader</compClass>
<basePowerConsumption>200</basePowerConsumption>
</li>
<li Class="CompProperties_Flickable"/>
</comps>
<tradeability>None</tradeability>

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<WorldObjectDef>
<defName>ARA_TravelingWormhole</defName>
<label>掘进中的虫洞</label>
<worldObjectClass>ArachnaeSwarm.TravelingWormhole</worldObjectClass>
<texture>World/WorldObjects/Caravan</texture>
<useDynamicDrawer>true</useDynamicDrawer>
<expandingIcon>true</expandingIcon>
<expandingIconTexture>World/WorldObjects/Expanding/Caravan</expandingIconTexture>
<expandingIconPriority>100</expandingIconPriority>
<expandMore>true</expandMore>
<modExtensions>
<li Class="ArachnaeSwarm.DefModExtension_TravelingWormhole">
<travelSpeed>10</travelSpeed>
</li>
</modExtensions>
</WorldObjectDef>
</Defs>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<LanguageData>
<!-- Commands & Messages -->
<CommandDeployWormholePortalB_Pilot>部署虫洞传送门</CommandDeployWormholePortalB_Pilot>
<CommandDeployWormholePortalB_PilotDesc>选择一名驾驶员来启动一个B端传送门。</CommandDeployWormholePortalB_PilotDesc>
<NoPilotAvailable>没有可用的驾驶员</NoPilotAvailable>
</LanguageData>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<LanguageData>
<!-- Commands & Messages -->
<CommandDeployWormholePortalB_Pilot>部署虫洞传送门</CommandDeployWormholePortalB_Pilot>
<CommandDeployWormholePortalB_PilotDesc>选择一名驾驶员来启动一个B端传送门。</CommandDeployWormholePortalB_PilotDesc>
<NoPilotAvailable>没有可用的驾驶员</NoPilotAvailable>
</LanguageData>