This commit is contained in:
2025-09-16 12:20:36 +08:00
parent 040bb17f94
commit c336450e87
10 changed files with 986 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<ThingDef ParentName="BuildingBase">
<defName>ARA_SmartThermostat</defName>
<label>智能恒温器</label>
<description>一个先进的、不耗电的温控设备。它是一个可逆的热泵,能自动制热或制冷以维持设定的目标温度。必须像制冷器一样安装在墙上。</description>
<thingClass>ArachnaeSwarm.Building_SmartThermostat</thingClass> <!-- 使用我们新的建筑类 -->
<graphicData>
<texPath>Things/Building/Misc/TempControl/Cooler</texPath> <!-- 暂时使用制冷器的贴图 -->
<graphicClass>Graphic_Multi</graphicClass>
</graphicData>
<altitudeLayer>Building</altitudeLayer>
<passability>Impassable</passability>
<blockWind>true</blockWind>
<fillPercent>1</fillPercent>
<coversFloor>true</coversFloor>
<statBases>
<WorkToBuild>2000</WorkToBuild>
<MaxHitPoints>100</MaxHitPoints>
<Flammability>0.7</Flammability>
</statBases>
<tickerType>Rare</tickerType>
<costList>
<Steel>120</Steel>
<ComponentIndustrial>4</ComponentIndustrial>
</costList>
<terrainAffordanceNeeded>Medium</terrainAffordanceNeeded>
<placeWorkers>
<li>PlaceWorker_Cooler</li> <!-- 使用制冷器的放置规则,确保它被正确地安装在墙上 -->
</placeWorkers>
<drawPlaceWorkersWhileSelected>true</drawPlaceWorkersWhileSelected>
<building>
<canPlaceOverWall>true</canPlaceOverWall>
</building>
<comps>
<!-- 提供开关按钮 -->
<li Class="CompProperties_Flickable"/>
<!-- 提供温度控制UI和逻辑 -->
<li Class="CompProperties_TempControl">
<!-- 这是设备的热交换功率。数值越大,制冷/制热速度越快。-->
<energyPerSecond>21</energyPerSecond>
</li>
<li Class="CompProperties_Breakdownable"/>
</comps>
<designationCategory>Temperature</designationCategory>
<researchPrerequisites>
<li>AirConditioning</li>
</researchPrerequisites>
</ThingDef>
</Defs>