Files
WulaFallenEmpireRW/1.6/1.6/Defs/ThingDefs_Buildings/Buildings_Spawner.xml
2025-08-29 15:52:40 +08:00

103 lines
3.6 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<ThingDef ParentName="BuildingBase">
<defName>WULA_ComponentAssembler</defName>
<label>零件组装机</label>
<description>一台复杂的机器,可以缓慢地用原材料组装零部件。需要钢铁和木材才能运作。</description>
<thingClass>Building</thingClass>
<graphicData>
<texPath>Things/Building/Production/FabricationBench</texPath>
<graphicClass>Graphic_Multi</graphicClass>
<drawSize>(3.5, 1.5)</drawSize>
<damageData>
<cornerTL>Damage/Corner</cornerTL>
<cornerTR>Damage/Corner</cornerTR>
<cornerBL>Damage/Corner</cornerBL>
<cornerBR>Damage/Corner</cornerBR>
</damageData>
</graphicData>
<altitudeLayer>Building</altitudeLayer>
<passability>PassThroughOnly</passability>
<fillPercent>0.5</fillPercent>
<pathCost>70</pathCost>
<rotatable>true</rotatable>
<statBases>
<MaxHitPoints>350</MaxHitPoints>
<WorkToBuild>4000</WorkToBuild>
<Flammability>1.0</Flammability>
<Beauty>-15</Beauty>
</statBases>
<tickerType>Normal</tickerType>
<size>(3,1)</size>
<costList>
<Steel>200</Steel>
<ComponentIndustrial>8</ComponentIndustrial>
</costList>
<comps>
<!-- Power Connection -->
<li Class="CompProperties_Power">
<compClass>CompPowerTrader</compClass>
<basePowerConsumption>350</basePowerConsumption>
</li>
<li Class="CompProperties_Flickable"/>
<!-- Our simple spawner component -->
<li Class="WulaFallenEmpire.CompProperties_MultiFuelSpawner">
<spawnIntervalRange>120000~120000</spawnIntervalRange>
<products>
<li>
<thingDef>ComponentIndustrial</thingDef>
<count>5</count>
</li>
<li>
<thingDef>ComponentSpacer</thingDef>
<count>1</count>
</li>
</products>
<showMessageIfOwned>true</showMessageIfOwned>
</li>
<!-- First fuel component: Steel -->
<li Class="WulaFallenEmpire.CompProperties_RefuelableWithKey">
<saveKeysPrefix>steel</saveKeysPrefix>
<fuelLabel>钢材储量</fuelLabel>
<fuelFilter>
<thingDefs>
<li>Steel</li>
</thingDefs>
</fuelFilter>
<fuelCapacity>200</fuelCapacity>
<fuelConsumptionRate>1</fuelConsumptionRate>
<consumeFuelOnlyWhenUsed>true</consumeFuelOnlyWhenUsed>
<showAllowAutoRefuelToggle>true</showAllowAutoRefuelToggle>
<targetFuelLevelConfigurable>true</targetFuelLevelConfigurable>
</li>
<!-- Second fuel component: Wood -->
<li Class="WulaFallenEmpire.CompProperties_RefuelableWithKey">
<saveKeysPrefix>wood</saveKeysPrefix>
<fuelLabel>木材储量</fuelLabel>
<fuelFilter>
<thingDefs>
<li>WoodLog</li>
</thingDefs>
</fuelFilter>
<fuelCapacity>300</fuelCapacity>
<fuelConsumptionRate>2</fuelConsumptionRate>
<consumeFuelOnlyWhenUsed>true</consumeFuelOnlyWhenUsed>
<showAllowAutoRefuelToggle>true</showAllowAutoRefuelToggle>
<targetFuelLevelConfigurable>true</targetFuelLevelConfigurable>
</li>
<li Class="CompProperties_Breakdownable"/>
</comps>
<terrainAffordanceNeeded>Heavy</terrainAffordanceNeeded>
<designationCategory>Production</designationCategory>
<constructionSkillPrerequisite>6</constructionSkillPrerequisite>
<researchPrerequisites>
<li>Fabrication</li>
</researchPrerequisites>
</ThingDef>
</Defs>