<?xml version="1.0" encoding="utf-8"?>
<ThingDefs>
  <ThingDef Name="BenchBase_MTV" ParentName="BuildingBase_MTV" Abstract="True">
    <castEdgeShadows>true</castEdgeShadows>
    <building>
      <workSpeedPenaltyOutdoors>true</workSpeedPenaltyOutdoors>
      <workSpeedPenaltyTemperature>true</workSpeedPenaltyTemperature>
      <deconstructible>false</deconstructible>
    </building>
    <comps>
      <li>
        <compClass>CompReportWorkSpeed</compClass>
      </li>
    </comps>
    <placeWorkers>
      <li>PlaceWorker_ReportWorkSpeedPenalties</li>
    </placeWorkers>
    <statBases>
      <Mass>120</Mass>
      <Flammability>0</Flammability>
    </statBases>
    <minifiedDef>MinifiedFurniture</minifiedDef>
    <tradeability>Sellable</tradeability>
    <tradeTags>
      <li>Exotic</li>
    </tradeTags>
    <leaveResourcesWhenKilled>true</leaveResourcesWhenKilled>
    <recipeMaker>
      <workSpeedStat>WorkSpeedGlobal</workSpeedStat>
      <unfinishedThingDef>Vanya_UnfinishedMech</unfinishedThingDef>
      <skillRequirements>
        <li>
          <skill>Crafting</skill>
          <minLevel>12</minLevel>
        </li>
      </skillRequirements>
      <workSkill>Crafting</workSkill>
      <effectWorking>Repair</effectWorking>
      <soundWorking>Recipe_Smith</soundWorking>
      <recipeUsers>
        <li>Vanya_Assembler</li>
      </recipeUsers>
      <researchPrerequisite>Vanya_AssemTech</researchPrerequisite>
    </recipeMaker>
    <!--<designationCategory>Production</designationCategory>-->
  </ThingDef>
  <!-- ========== Non-standard work buildings ==============-->
  <ThingDef ParentName="BenchBase_MTV">
    <defName>Vanya_CCAI</defName>
    <label>中控AI</label>
    <description>机械族飞船使用的中央控制AI，保存了大量的机械族数据，跟随飞船舰桥零件坠毁的过程里有轻微受损。</description>
    <thingClass>Building_ResearchBench</thingClass>
    <size>(1,1)</size>
    <costList>
      <Vanya_ConsciousnessCube>1</Vanya_ConsciousnessCube>
      <Component>20</Component>
      <Vanya_QuantumAlloy>20</Vanya_QuantumAlloy>
      <Vanya_Cobalt>5</Vanya_Cobalt>
    </costList>
    <graphicData>
      <texPath>Vanya/Things/Building/Production/Vanya_CCAI</texPath>
      <graphicClass>Graphic_Single</graphicClass>
      <drawSize>(3,3)</drawSize>
      <damageData>
        <cornerTL>Damage/Corner</cornerTL>
        <cornerTR>Damage/Corner</cornerTR>
        <cornerBL>Damage/Corner</cornerBL>
        <cornerBR>Damage/Corner</cornerBR>
      </damageData>
      <drawRotated>false</drawRotated>
    </graphicData>
    <altitudeLayer>Building</altitudeLayer>
    <passability>PassThroughOnly</passability>
    <pathCost>70</pathCost>
    <statBases>
      <MaxHitPoints>250</MaxHitPoints>
      <Flammability>0</Flammability>
      <ResearchSpeedFactor>1.0</ResearchSpeedFactor>
      <Mass>50</Mass>
      <WorkToMake>151200</WorkToMake>
    </statBases>
    <comps>
      <li Class="CompProperties_Power">
        <compClass>CompPowerTrader</compClass>
        <basePowerConsumption>2500</basePowerConsumption>
        <startElectricalFires>true</startElectricalFires>
        <shortCircuitInRain>false</shortCircuitInRain>
      </li>
      <li Class="CompProperties_Flickable" />
      <li Class="CompProperties_Glower">
        <glowRadius>2</glowRadius>
        <glowColor>(127,255,255,0)</glowColor>
      </li>
    </comps>
    <fillPercent>0.5</fillPercent>
    <interactionCellOffset>(0,0,-1)</interactionCellOffset>
    <hasInteractionCell>true</hasInteractionCell>
    <terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
    <surfaceType>Item</surfaceType>
  </ThingDef>
  <ThingDef ParentName="BenchBase_MTV">
    <DefName>Vanya_Assembler</DefName>
    <label>机械装配器</label>
    <ThingClass>Building_WorkTable</ThingClass>
    <Description>机械族使用的装配器，将原材料投入之后操作半固化能量来制作。</Description>
    <graphicData>
      <texPath>Vanya/Things/Building/Production/Vanya_Assembler</texPath>
      <graphicClass>Graphic_Single</graphicClass>
      <drawSize>(3,1)</drawSize>
      <damageData>
        <cornerTL>Damage/Corner</cornerTL>
        <cornerTR>Damage/Corner</cornerTR>
        <cornerBL>Damage/Corner</cornerBL>
        <cornerBR>Damage/Corner</cornerBR>
      </damageData>
    </graphicData>
    <costList>
      <Vanya_CompCeramic>100</Vanya_CompCeramic>
      <Vanya_Cobalt>10</Vanya_Cobalt>
      <Component>50</Component>
      <Vanya_tombarthite>1</Vanya_tombarthite>
    </costList>
    <AltitudeLayer>Building</AltitudeLayer>
    <fillPercent>0.5</fillPercent>
    <useHitPoints>True</useHitPoints>
    <statBases>
      <WorkToMake>151200</WorkToMake>
      <MaxHitPoints>180</MaxHitPoints>
      <Flammability>0</Flammability>
    </statBases>
    <Size>(3,1)</Size>
    <Passability>PassThroughOnly</Passability>
    <pathCost>70</pathCost>
    <hasInteractionCell>True</hasInteractionCell>
    <interactionCellOffset>(0,0,-1)</interactionCellOffset>
    <surfaceType>Item</surfaceType>
    <recipes>
      <li>ButcherCorpseMechanoid</li>
      <li>Vanya_ButcherCorpseMechanoid</li>
      <li>Vanya_MakeWolframiumShell</li>
      <li>Vanya_CreatComponent</li>
      <li>Vanya_MakeGlitterworldMedicine</li>
      <li>Vanya_BuildSynthread</li>
      <li>Vanya_BuildHyperweave</li>
      <li>Vanya_BuildUltraweave</li>
    </recipes>
    <inspectorTabs>
      <li>ITab_Bills</li>
    </inspectorTabs>
    <comps>
      <li Class="CompProperties_Power">
        <compClass>CompPowerTrader</compClass>
        <startElectricalFires>true</startElectricalFires>
        <basePowerConsumption>3500</basePowerConsumption>
        <shortCircuitInRain>false</shortCircuitInRain>
      </li>
      <li Class="CompProperties_Flickable" />
      <li Class="CompProperties_Glower">
        <glowRadius>4</glowRadius>
        <glowColor>(127,255,255,0)</glowColor>
      </li>
      <li Class="CompProperties_AffectedByFacilities">
        <linkableFacilities>
          <li>Vanya_ToolAI</li>
        </linkableFacilities>
      </li>
      <li Class="CompProperties_Breakdownable" />
    </comps>
    <building>
      <spawnedConceptLearnOpportunity>BillsTab</spawnedConceptLearnOpportunity>
    </building>
    <constructEffect>ConstructMetal</constructEffect>
    <placeWorkers>
      <li>PlaceWorker_ShowFacilitiesConnections</li>
    </placeWorkers>
  </ThingDef>
  <ThingDef ParentName="BenchBase_MTV">
    <DefName>Vanya_Refiner</DefName>
    <label>机械电弧炉</label>
    <ThingClass>Building_WorkTable</ThingClass>
    <Description>使用高压电弧和冲击粒子来提炼原材料，工业时代的人类难以制作。</Description>
    <graphicData>
      <texPath>Vanya/Things/Building/Production/Vanya_Refiner</texPath>
      <graphicClass>Graphic_Single</graphicClass>
      <drawSize>(3,1)</drawSize>
      <damageData>
        <cornerTL>Damage/Corner</cornerTL>
        <cornerTR>Damage/Corner</cornerTR>
        <cornerBL>Damage/Corner</cornerBL>
        <cornerBR>Damage/Corner</cornerBR>
      </damageData>
    </graphicData>
    <costList>
      <Vanya_CompCeramic>100</Vanya_CompCeramic>
      <Vanya_Wolframium>15</Vanya_Wolframium>
      <Component>30</Component>
      <Vanya_tombarthite>1</Vanya_tombarthite>
    </costList>
    <AltitudeLayer>Building</AltitudeLayer>
    <fillPercent>0.5</fillPercent>
    <useHitPoints>True</useHitPoints>
    <statBases>
      <WorkToMake>151200</WorkToMake>
      <MaxHitPoints>180</MaxHitPoints>
      <Flammability>0</Flammability>
    </statBases>
    <Size>(3,1)</Size>
    <Passability>PassThroughOnly</Passability>
    <pathCost>70</pathCost>
    <hasInteractionCell>True</hasInteractionCell>
    <interactionCellOffset>(0,0,-1)</interactionCellOffset>
    <surfaceType>Item</surfaceType>
    <recipes>
      <li>ExtractMetalFromSlag</li>
      <li>SmeltWeapon</li>
      <li>DestroyWeapon</li>
      <li>CremateCorpse</li>
      <li>BurnApparel</li>
      <li>BurnDrugs</li>
      <li>Vanya_RefineCompCeramic</li>
      <li>Vanya_RefineQuantumAlloy</li>
    </recipes>
    <inspectorTabs>
      <li>ITab_Bills</li>
    </inspectorTabs>
    <comps>
      <li Class="CompProperties_Power">
        <compClass>CompPowerTrader</compClass>
        <startElectricalFires>true</startElectricalFires>
        <basePowerConsumption>10000</basePowerConsumption>
        <shortCircuitInRain>false</shortCircuitInRain>
      </li>
      <li Class="CompProperties_Flickable" />
      <li Class="CompProperties_Glower">
        <glowRadius>4</glowRadius>
        <glowColor>(127,255,255,0)</glowColor>
      </li>
      <li Class="CompProperties_AffectedByFacilities">
        <linkableFacilities>
          <li>Vanya_ToolAI</li>
        </linkableFacilities>
      </li>
      <li Class="CompProperties_Breakdownable" />
    </comps>
    <building>
      <spawnedConceptLearnOpportunity>BillsTab</spawnedConceptLearnOpportunity>
    </building>
    <constructEffect>ConstructMetal</constructEffect>
    <placeWorkers>
      <li>PlaceWorker_ShowFacilitiesConnections</li>
    </placeWorkers>
  </ThingDef>
  <ThingDef ParentName="BuildingBase_MTV">
    <defName>Vanya_ToolAI</defName>
    <label>辅助AI</label>
    <recipeMaker>
      <workSpeedStat>WorkSpeedGlobal</workSpeedStat>
      <unfinishedThingDef>Vanya_UnfinishedMech</unfinishedThingDef>
      <skillRequirements>
        <li>
          <skill>Crafting</skill>
          <minLevel>12</minLevel>
        </li>
      </skillRequirements>
      <workSkill>Crafting</workSkill>
      <effectWorking>Repair</effectWorking>
      <soundWorking>Recipe_Smith</soundWorking>
      <recipeUsers>
        <li>Vanya_Assembler</li>
      </recipeUsers>
      <researchPrerequisite>Vanya_AssemTech</researchPrerequisite>
    </recipeMaker>
    <graphicData>
      <texPath>Vanya/Things/Building/Production/Vanya_ToolAI</texPath>
      <graphicClass>Graphic_Single</graphicClass>
      <drawSize>(1.2,1.2)</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>
    <castEdgeShadows>false</castEdgeShadows>
    <fillPercent>0.5</fillPercent>
    <statBases>
      <WorkToMake>144000</WorkToMake>
      <MaxHitPoints>100</MaxHitPoints>
      <Mass>40</Mass>
      <Flammability>0</Flammability>
    </statBases>
    <description>使用简单的AI进行复杂装配的辅助工作，可以有效提高装配效率。</description>
    <size>(1,1)</size>
    <costList>
      <AIPersonaCore>1</AIPersonaCore>
      <Vanya_Cobalt>5</Vanya_Cobalt>
      <Vanya_tombarthite>1</Vanya_tombarthite>
    </costList>
    <!--<designationCategory>Misc</designationCategory>-->
    <minifiedDef>MinifiedFurniture</minifiedDef>
    <comps>
      <li Class="CompProperties_Facility">
        <statOffsets>
          <WorkTableWorkSpeedFactor>4.5</WorkTableWorkSpeedFactor>
        </statOffsets>
        <maxSimultaneous>2</maxSimultaneous>
      </li>
      <li Class="CompProperties_Breakdownable" />
      <li Class="CompProperties_Glower">
        <glowRadius>2</glowRadius>
        <glowColor>(127,255,255,0)</glowColor>
      </li>
      <li Class="CompProperties_Flickable" />
      <li Class="CompProperties_Power">
        <compClass>CompPowerTrader</compClass>
        <startElectricalFires>true</startElectricalFires>
        <basePowerConsumption>2500</basePowerConsumption>
        <shortCircuitInRain>false</shortCircuitInRain>
      </li>
    </comps>
    <placeWorkers>
      <li>PlaceWorker_ShowFacilitiesConnections</li>
    </placeWorkers>
    <tradeability>Sellable</tradeability>
    <tradeTags>
      <li>Exotic</li>
    </tradeTags>
    <building>
      <deconstructible>false</deconstructible>
    </building>
    <leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
  </ThingDef>
  <!--Vanya_EnergonDish-->
  <ThingDef ParentName="BuildingBase_MTV">
    <defName>Vanya_EnergonDish</defName>
    <label>生物质能培养槽</label>
    <thingClass>NekoyeFermentingBarrel.Building_Vanya_EnergonDish</thingClass>
    <graphicData>
      <texPath>Vanya/Things/Building/Production/Vanya_EnergonDish</texPath>
      <graphicClass>Graphic_Single</graphicClass>
      <drawSize>(3,3)</drawSize>
    </graphicData>
    <minifiedDef>MinifiedFurniture</minifiedDef>
    <altitudeLayer>Building</altitudeLayer>
    <passability>PassThroughOnly</passability>
    <fillPercent>0.45</fillPercent>
    <pathCost>60</pathCost>
    <statBases>
      <WorkToBuild>180000</WorkToBuild>
      <Mass>10</Mass>
      <MaxHitPoints>100</MaxHitPoints>
      <Flammability>1.0</Flammability>
    </statBases>
    <description>用来将有机物合成为不稳定能量块。</description>
    <costList>
      <Vanya_CompCeramic>100</Vanya_CompCeramic>
      <Vanya_Cobalt>100</Vanya_Cobalt>
      <Vanya_tombarthite>5</Vanya_tombarthite>
      <Component>50</Component>
    </costList>
    <comps>
      <li Class="CompProperties_TemperatureRuinable">
        <minSafeTemperature>-1</minSafeTemperature>
        <maxSafeTemperature>32</maxSafeTemperature>
        <progressPerDegreePerTick>0.000015</progressPerDegreePerTick>
      </li>
      <li Class="CompProperties_Forbiddable" />
    </comps>
    <tickerType>Rare</tickerType>
    <rotatable>false</rotatable>
    <designationCategory>Production</designationCategory>
    <constructEffect>ConstructMetal</constructEffect>
    <researchPrerequisites>
      <li>Vanya_RootCCAI</li>
    </researchPrerequisites>
  </ThingDef>
  <JobDef>
    <defName>FillVanya_EnergonDish</defName>
    <driverClass>NekoyeFermentingBarrel.JobDriver_FillVanya_EnergonDish</driverClass>
    <reportString>装填TargetA。</reportString>
  </JobDef>
  <JobDef>
    <defName>TakeproductOutOfVanya_EnergonDish</defName>
    <driverClass>NekoyeFermentingBarrel.JobDriver_TakeproductOutOfVanya_EnergonDish</driverClass>
    <reportString>从TargetA中取出能量块。</reportString>
  </JobDef>
  <WorkGiverDef>
    <defName>TakeproductOutOfNekoyeFermentingBarrel</defName>
    <label>从培养槽中取能量块</label>
    <giverClass>NekoyeFermentingBarrel.WorkGiver_TakeproductOutOfVanya_EnergonDish</giverClass>
    <workType>Hauling</workType>
    <verb>take beer</verb>
    <gerund>taking beer from</gerund>
    <priorityInType>20</priorityInType>
    <requiredCapacities>
      <li>Manipulation</li>
    </requiredCapacities>
  </WorkGiverDef>
  <WorkGiverDef>
    <defName>FillNekoyeFermentingBarrel</defName>
    <label>为培养槽添加物品</label>
    <giverClass>NekoyeFermentingBarrel.WorkGiver_FillVanya_EnergonDish</giverClass>
    <workType>Hauling</workType>
    <verb>fill</verb>
    <gerund>filling</gerund>
    <priorityInType>19</priorityInType>
    <requiredCapacities>
      <li>Manipulation</li>
    </requiredCapacities>
  </WorkGiverDef>
</ThingDefs>