<?xml version="1.0" encoding="utf-8"?>
<Defs>
  <ThingDef Name="BuildingBase_MTV" Abstract="True">
    <category>Building</category>
    <thingClass>Building</thingClass>
    <soundImpactDefault>BulletImpactMetal</soundImpactDefault>
    <selectable>true</selectable>
    <drawerType>MapMeshAndRealTime</drawerType>
    <terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
    <repairEffect>Repair</repairEffect>
    <leaveResourcesWhenKilled>true</leaveResourcesWhenKilled>
    <filthLeaving>BuildingRubble</filthLeaving>
    <tradeability>Sellable</tradeability>
  </ThingDef>
  <!--door-->
  <ThingDef ParentName="BuildingBase_MTV">
    <defName>Vanya_CompDoor</defName>
    <label>复合门</label>
    <description>主体为量子合金的复合门，采取了多层结构，可以有效减弱来自冲击波和能量武器的伤害。</description>
    <thingClass>Building_Door</thingClass>
    <graphicData>
      <texPath>Vanya/Things/Building/Door/Vanya_CompDoor_Mover</texPath>
      <graphicClass>Graphic_Single</graphicClass>
      <shaderType>CutoutComplex</shaderType>
      <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>
    <uiIconPath>Vanya/Things/Building/Door/Vanya_CompDoor_MenuIcon</uiIconPath>
    <blueprintClass>Blueprint_Door</blueprintClass>
    <category>Building</category>
    <blueprintGraphicData>
      <texPath>Things/Building/Door/Door_Blueprint</texPath>
    </blueprintGraphicData>
    <altitudeLayer>DoorMoveable</altitudeLayer>
    <fillPercent>1</fillPercent>
    <useHitPoints>true</useHitPoints>
    <stuffCategories>
      <li>Metallic</li>
      <li>Woody</li>
      <li>Stony</li>
    </stuffCategories>
    <statBases>
      <WorkToBuild>1800</WorkToBuild>
      <MaxHitPoints>360</MaxHitPoints>
      <Flammability>0</Flammability>
    </statBases>
    <costList>
      <Vanya_QuantumAlloy>20</Vanya_QuantumAlloy>
      <Vanya_Wolframium>20</Vanya_Wolframium>
      <Component>6</Component>
    </costList>
    <costStuffCount>25</costStuffCount>
    <leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
    <selectable>true</selectable>
    <tickerType>Normal</tickerType>
    <rotatable>false</rotatable>
    <soundImpactDefault>BulletImpactMetal</soundImpactDefault>
    <terrainAffordanceNeeded>Light</terrainAffordanceNeeded>
    <designationCategory>Structure</designationCategory>
    <holdsRoof>true</holdsRoof>
    <staticSunShadowHeight>1.0</staticSunShadowHeight>
    <blockLight>false</blockLight>
    <drawerType>RealtimeOnly</drawerType>
    <building>
      <soundDoorOpenPowered>DoorOpenPowered</soundDoorOpenPowered>
      <soundDoorClosePowered>DoorClosePowered</soundDoorClosePowered>
      <soundDoorOpenManual>DoorOpenManual</soundDoorOpenManual>
      <soundDoorCloseManual>DoorCloseManual</soundDoorCloseManual>
      <ignoreNeedsPower>true</ignoreNeedsPower>
      <canPlaceOverWall>true</canPlaceOverWall>
    </building>
    <comps>
      <li Class="CompProperties_Forbiddable" />
      <li Class="CompProperties_Power">
        <compClass>CompPowerTrader</compClass>
        <basePowerConsumption>50</basePowerConsumption>
      </li>
      <li Class="CompProperties_Breakdownable" />
      <li Class="CompProperties_Glower">
        <glowRadius>1.3</glowRadius>
        <glowColor>(127,255,255,0)</glowColor>
      </li>
    </comps>
    <researchPrerequisites>
      <li>Vanya_RootCCAI</li>
    </researchPrerequisites>
    <damageMultipliers>
      <li>
        <damageDef>Bomb</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Bullet</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Arrow</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Cut</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Crush</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Blunt</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Stab</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Scratch</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Bite</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>ToxicBite</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Flame</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Burn</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Frostbite</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Vanya_IgnoreBleed</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Vanya_IgnoreDiffusion</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Vanya_IgnoreDiffusionEX</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Vanya_Burn</damageDef>
        <multiplier>0.01</multiplier>
      </li>
    </damageMultipliers>
  </ThingDef>
  <!--wall-->
  <ThingDef ParentName="BuildingBase_MTV">
    <!--Name="Wall"-->
    <defName>Vanya_CompWall</defName>
    <label>复合墙</label>
    <thingClass>Building</thingClass>
    <category>Building</category>
    <description>采用了多层结构和量子合金的墙壁，非常坚固，冲击波和能量武器对这种墙壁效果非常有限。</description>
    <graphicData>
      <texPath>Vanya/Things/Building/Linked/VanyaCompWall</texPath>
      <graphicClass>Graphic_Single</graphicClass>
      <linkType>CornerFiller</linkType>
      <shaderType>CutoutComplex</shaderType>
      <linkFlags>
        <li>Wall</li>
        <li>Rock</li>
      </linkFlags>
      <damageData>
        <cornerTL>Damage/Corner</cornerTL>
        <cornerTR>Damage/Corner</cornerTR>
        <cornerBL>Damage/Corner</cornerBL>
        <cornerBR>Damage/Corner</cornerBR>
        <edgeTop>Damage/Edge</edgeTop>
        <edgeBot>Damage/Edge</edgeBot>
        <edgeLeft>Damage/Edge</edgeLeft>
        <edgeRight>Damage/Edge</edgeRight>
      </damageData>
    </graphicData>
    <blueprintGraphicData>
      <texPath>Things/Building/Linked/Wall_Blueprint_Atlas</texPath>
    </blueprintGraphicData>
    <uiIconPath>Vanya/Things/Building/Linked/VanyaCompWallIco</uiIconPath>
    <statBases>
      <MaxHitPoints>420</MaxHitPoints>
      <WorkToBuild>300</WorkToBuild>
      <Flammability>0</Flammability>
    </statBases>
    <CostList>
      <Vanya_Wolframium>10</Vanya_Wolframium>
      <Vanya_QuantumAlloy>4</Vanya_QuantumAlloy>
    </CostList>
    <costStuffCount>5</costStuffCount>
    <leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
    <altitudeLayer>Building</altitudeLayer>
    <passability>Impassable</passability>
    <blockWind>true</blockWind>
    <castEdgeShadows>true</castEdgeShadows>
    <fillPercent>1</fillPercent>
    <coversFloor>true</coversFloor>
    <placingDraggableDimensions>1</placingDraggableDimensions>
    <tickerType>Never</tickerType>
    <rotatable>false</rotatable>
    <selectable>true</selectable>
    <neverMultiSelect>true</neverMultiSelect>
    <terrainAffordanceNeeded>Heavy</terrainAffordanceNeeded>
    <holdsRoof>true</holdsRoof>
    <designationCategory>Structure</designationCategory>
    <staticSunShadowHeight>1.0</staticSunShadowHeight>
    <blockLight>false</blockLight>
    <stuffCategories>
      <li>Metallic</li>
      <li>Woody</li>
      <li>Stony</li>
    </stuffCategories>
    <building>
      <isInert>true</isInert>
      <ignoreNeedsPower>true</ignoreNeedsPower>
    </building>
    <comps>
      <li Class="CompProperties_Glower">
        <glowRadius>1.3</glowRadius>
        <glowColor>(127,255,255,0)</glowColor>
      </li>
    </comps>
    <researchPrerequisites>
      <li>Vanya_RootCCAI</li>
    </researchPrerequisites>
    <damageMultipliers>
      <li>
        <damageDef>Bomb</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Bullet</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Arrow</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Cut</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Crush</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Blunt</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Stab</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Scratch</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Bite</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>ToxicBite</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Flame</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Burn</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Frostbite</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Vanya_IgnoreBleed</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Vanya_IgnoreDiffusion</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Vanya_IgnoreDiffusionEX</damageDef>
        <multiplier>0.01</multiplier>
      </li>
      <li>
        <damageDef>Vanya_Burn</damageDef>
        <multiplier>0.01</multiplier>
      </li>
    </damageMultipliers>
  </ThingDef>
  <!--light-->
  <ThingDef ParentName="BuildingBase_MTV">
    <defName>Vanya_ArcLamp</defName>
    <label>弧光灯</label>
    <description>通过特制的装置吸收周围环境的热能来发光，可以让植物生长。</description>
    <thingClass>Building_SunLamp</thingClass>
    <minifiedDef>MinifiedFurniture</minifiedDef>
    <altitudeLayer>Building</altitudeLayer>
    <passability>PassThroughOnly</passability>
    <category>Building</category>
    <selectable>true</selectable>
    <fillPercent>0.20</fillPercent>
    <pathCost>8</pathCost>
    <designationCategory>Furniture</designationCategory>
    <leaveResourcesWhenKilled>false</leaveResourcesWhenKilled>
    <graphicData>
      <texPath>Vanya/Things/Building/Production/Vanya_ArcLamp</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>
    <rotatable>false</rotatable>
    <blockLight>false</blockLight>
    <blockWind>true</blockWind>
    <holdsRoof>true</holdsRoof>
    <statBases>
      <MaxHitPoints>50</MaxHitPoints>
      <WorkToBuild>1800</WorkToBuild>
      <Mass>4.5</Mass>
      <Flammability>0</Flammability>
    </statBases>
    <costList>
      <Vanya_CompCeramic>10</Vanya_CompCeramic>
      <Vanya_Cobalt>25</Vanya_Cobalt>
      <Component>3</Component>
      <Vanya_InstabEnergon>1</Vanya_InstabEnergon>
    </costList>
    <tickerType>Normal</tickerType>
    <comps>
      <li Class="CompProperties_Flickable" />
      <li Class="CompProperties_Glower">
        <overlightRadius>7.0</overlightRadius>
        <glowRadius>14</glowRadius>
        <glowColor>(370,370,370,0)</glowColor>
      </li>
      <li Class="CompProperties_HeatPusher">
        <heatPerSecond>-25</heatPerSecond>
        <heatPushMinTemperature>-10</heatPushMinTemperature>
      </li>
    </comps>
    <soundImpactDefault>BulletImpactMetal</soundImpactDefault>
    <specialDisplayRadius>5.8</specialDisplayRadius>
    <building>
      <ignoreNeedsPower>true</ignoreNeedsPower>
    </building>
    <researchPrerequisites>
      <li>Vanya_RootCCAI</li>
    </researchPrerequisites>
    <!--<drawerType>RealtimeOnly</drawerType>-->
  </ThingDef>
</Defs>