Files
ArachnaeSwarm/1.6/1.6/Defs/Thing_building/ARA_Building.xml
2025-09-03 19:41:22 +08:00

223 lines
8.6 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<TerrainDef ParentName="FloorBase">
<defName>ARA_InsectSludge</defName>
<label>阿拉克涅菌毯</label>
<description>由阿拉克涅虫族所铺设的由真菌和分泌物混合得到的地面,不需要资源进行铺设,清洁速度很快,但是对其他种族来说不太好看。</description>
<designationCategory>ARA_Buildings</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>
<ThingDef ParentName="Wall">
<defName>ARA_InsectWall</defName>
<label>阿拉克涅甲壳墙</label>
<description>阿拉克涅工蜂将硬质岩石和甲壳素混合堆起来形成的墙壁,非常坚硬,就是看起来不太美观。</description>
<uiOrder>1800</uiOrder>
<uiIconPath>ArachnaeSwarm/Building/Linked/ARA_InsectWall_MenuIcon</uiIconPath>
<graphicData>
<texPath>ArachnaeSwarm/Building/Linked/ARA_InsectWall</texPath>
<graphicClass>Graphic_Single</graphicClass>
<shaderType>CutoutComplex</shaderType>
</graphicData>
<designationCategory>ARA_Buildings</designationCategory>
<!-- <mineable>true</mineable> -->
<blockLight>true</blockLight>
<statBases>
<MarketValue>0</MarketValue>
<Beauty>-6</Beauty>
<MaxHitPoints>1000</MaxHitPoints>
<WorkToBuild>1500</WorkToBuild>
<Flammability>0</Flammability>
<Cleanliness>0</Cleanliness>
</statBases>
<building>
<isAirtight>true</isAirtight>
<!-- <isNaturalRock>true</isNaturalRock> -->
<blueprintGraphicData>
<texPath>ArachnaeSwarm/Building/Linked/ARA_InsectWall_Blueprint</texPath>
</blueprintGraphicData>
</building>
<useStuffTerrainAffordance>false</useStuffTerrainAffordance>
<terrainAffordanceNeeded>Heavy</terrainAffordanceNeeded>
<costStuffCount>0</costStuffCount>
<stuffCategories Inherit="False"/>
<costList>
<ARA_Carapace>2</ARA_Carapace>
</costList>
<!-- <placeWorkers>
<li>PlaceWorker_OnSubstructure</li>
</placeWorkers> -->
<damageMultipliers Inherit="False">
<li>
<damageDef>Bomb</damageDef>
<multiplier>0.1</multiplier>
</li>
<li>
<damageDef>Thump</damageDef>
<multiplier>0.1</multiplier>
</li>
</damageMultipliers>
</ThingDef>
<ThingDef ParentName="DoorBase">
<defName>ARA_InsectDoor</defName>
<label>阿拉克涅甲壳门</label>
<description>阿拉克涅虫巢的入口,主体由硬质岩石和甲壳素混合而成,而开合机构是没有完整意识的阿拉克涅虫组织结构,这使得其可以实现自动开关。</description>
<thingClass>Building_MultiTileDoor</thingClass>
<category>Building</category>
<altitudeLayer>DoorMoveable</altitudeLayer>
<fillPercent>1</fillPercent>
<useHitPoints>true</useHitPoints>
<graphicData>
<texPath>ArachnaeSwarm/Building/Door/ARA_InsectDoor</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<damageData>
<!-- no damage marks because they don't move with the door
<rect>(0,0.12,1,0.76)</rect>-->
<enabled>false</enabled>
</damageData>
</graphicData>
<statBases>
<MarketValue>2</MarketValue>
<MaxHitPoints>1200</MaxHitPoints>
<Flammability>0</Flammability>
<WorkToBuild>1000</WorkToBuild>
<Beauty>-10</Beauty>
<DoorOpenSpeed>2</DoorOpenSpeed>
</statBases>
<costList>
<ARA_Carapace>5</ARA_Carapace>
</costList>
<leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
<selectable>true</selectable>
<tickerType>Normal</tickerType>
<!-- <rotatable>false</rotatable> -->
<!--<soundImpactDefault>BulletImpact_Metal</soundImpactDefault>-->
<useStuffTerrainAffordance>false</useStuffTerrainAffordance>
<stuffCategories Inherit="False"></stuffCategories>
<terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
<designationCategory>ARA_Buildings</designationCategory>
<holdsRoof>true</holdsRoof>
<staticSunShadowHeight>1.0</staticSunShadowHeight>
<blockLight>true</blockLight>
<drawerType>RealtimeOnly</drawerType>
<comps>
<li Class="CompProperties_Breakdownable"/>
<li Class="CompProperties_Forbiddable">
<allowNonPlayer>true</allowNonPlayer>
</li>
</comps>
<damageMultipliers Inherit="False">
<li>
<damageDef>Bomb</damageDef>
<multiplier>0.1</multiplier>
</li>
<li>
<damageDef>Thump</damageDef>
<multiplier>0.1</multiplier>
</li>
</damageMultipliers>
<building>
<paintable>true</paintable>
<isInert>true</isInert>
<canPlaceOverWall>true</canPlaceOverWall>
<soundDoorOpenPowered>Door_OpenPowered</soundDoorOpenPowered>
<soundDoorClosePowered>Door_ClosePowered</soundDoorClosePowered>
<soundDoorOpenManual>Door_OpenManual</soundDoorOpenManual>
<soundDoorCloseManual>Door_CloseManual</soundDoorCloseManual>
<blueprintClass>Blueprint_Build</blueprintClass>
<ai_chillDestination>false</ai_chillDestination>
<isSupportDoor>true</isSupportDoor>
<blueprintGraphicData>
<texPath>ArachnaeSwarm/Building/Door/ARA_InsectDoor_BluePrint</texPath>
</blueprintGraphicData>
<doorTopGraphic>
<texPath>ArachnaeSwarm/Building/Door/ARA_InsectDoor_Top</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<drawSize>(1.7, 1.2)</drawSize>
</doorTopGraphic>
<doorSupportGraphic>
<texPath>ArachnaeSwarm/Building/Door/ARA_InsectDoor_Support</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<drawSize>(1.7, 1.2)</drawSize>
</doorSupportGraphic>
</building>
<uiOrder>2505</uiOrder>
<uiIconPath>ArachnaeSwarm/Building/Door/ARA_InsectDoor_Icon</uiIconPath>
<designationHotKey>Misc2</designationHotKey>
<constructionSkillPrerequisite>6</constructionSkillPrerequisite>
</ThingDef>
<ThingDef ParentName="BuildingNaturalBase">
<defName>ARA_Tumor</defName>
<label>阿拉克涅菌瘤</label>
<description>会发出微光以照亮阿拉克涅巢穴的菌瘤,除了照明外还会在地上扩散菌毯,以便工蜂在其上建立更多的阿拉克涅建筑。</description>
<thingClass>Building</thingClass>
<!-- <minifiedDef>MinifiedThing</minifiedDef> -->
<altitudeLayer>Building</altitudeLayer>
<passability>PassThroughOnly</passability>
<selectable>true</selectable>
<fillPercent>0.20</fillPercent>
<leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
<rotatable>false</rotatable>
<tickerType>Normal</tickerType>
<designationCategory>ARA_Buildings</designationCategory>
<thingCategories>
<li>BuildingsSpecial</li>
</thingCategories>
<statBases>
<MaxHitPoints>50</MaxHitPoints>
<Mass>4</Mass>
<Flammability>1.0</Flammability>
<MarketValue>50</MarketValue>
</statBases>
<comps>
<li Class="CompProperties_Glower">
<glowRadius>8</glowRadius>
<glowColor>(220,210,171,0)</glowColor>
</li>
<li Class="CompProperties_Lifespan">
<lifespanTicks>1200000</lifespanTicks>
</li>
<li Class="ArachnaeSwarm.CompProperties_DelayedTerrainSpawn">
<delayTicks>60</delayTicks> <!-- 60 ticks = 1 second -->
<terrainToSpawn>ARA_InsectSludge</terrainToSpawn>
<spawnRadius>6</spawnRadius>
</li>
</comps>
<graphicData>
<texPath>ArachnaeSwarm/Building/ARA_Tumor</texPath>
<graphicClass>Graphic_Single</graphicClass>
<shadowData>
<volume>(0.3, 0.6, 0.3)</volume>
<offset>(0,0,-0.1)</offset>
</shadowData>
<damageData>
<rect>(0.2,0.2,0.6,0.6)</rect>
</damageData>
</graphicData>
</ThingDef>
</Defs>