<?xml version="1.0" encoding="utf-8" ?>
<Defs>

	<!--QX==================== Imperial Guard Core Mod - Building Base =========================QX-->

	<ThingDef Name="BuildingBase" 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>
	</ThingDef>

	<!--QX==================== Imperial Guard Core Mod - Natural Building Base =========================QX-->

	<ThingDef Name="BuildingNaturalBase" Abstract="True">
		<category>Building</category>
		<selectable>true</selectable>
		<drawerType>MapMeshOnly</drawerType>
		<filthLeaving>RockRubble</filthLeaving>
	</ThingDef>

	<!--QX==================== Imperial Guard Core Mod - Rock Base =========================QX-->

	<ThingDef Name="RockBase" ParentName="BuildingNaturalBase" Abstract="True" >
		<thingClass>Mineable</thingClass>
		<graphicData>
		  <texPath>Things/Building/Linked/Rock_Atlas</texPath>
		  <graphicClass>Graphic_Single</graphicClass>
		  <linkType>CornerFiller</linkType>
		  <linkFlags>
			<li>Rock</li>
			<li>MapEdge</li>
		  </linkFlags>
		</graphicData>
		<altitudeLayer>Building</altitudeLayer>
		<passability>Impassable</passability>
		<blockWind>true</blockWind>
		<castEdgeShadows>true</castEdgeShadows>
		<fillPercent>1</fillPercent>
		<coversFloor>true</coversFloor>
		<neverMultiSelect>true</neverMultiSelect>
		<rotatable>false</rotatable>
		<saveCompressible>true</saveCompressible>
		<holdsRoof>true</holdsRoof>
		<staticSunShadowHeight>1.0</staticSunShadowHeight>
		<blockLight>true</blockLight>
		<mineable>true</mineable>
		<statBases>
		  <Flammability>0</Flammability>
		</statBases>
		<building>
		  <isInert>true</isInert>
		  <isNaturalRock>true</isNaturalRock>
		  <canBuildNonEdificesUnder>false</canBuildNonEdificesUnder>
		  <deconstructible>false</deconstructible>
		</building>
	</ThingDef>

	<!--QX==================== Imperial Guard Core Mod - Doorbase =========================QX-->

	<ThingDef ParentName="BuildingBase" Name="DoorBase" Abstract="True">
		<thingClass>Building_Door</thingClass>
		<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>
			<MaxHitPoints>250</MaxHitPoints>
			<Flammability>1.0</Flammability>
		</statBases>
		<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>true</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"/>
		</comps>
	</ThingDef>

	<!--QX==================== Imperial Guard Core Mod - Base Furniture =========================QX-->

	<ThingDef Name="IGCFurnitureBase" ParentName="BuildingBase" Abstract="True">
		<comps>
			<li>
				<compClass>CompQuality</compClass>
			</li>
		</comps>
		<DesignationCategory>Furniture</DesignationCategory>
		<minifiedDef>MinifiedFurniture</minifiedDef>
		<tradeTags>
			<li>Furniture</li>
		</tradeTags>
	</ThingDef>

	<!--QX==================== Imperial Guard Core Mod - Base Beds =========================QX-->

	<ThingDef Name="IGCHighQualityBedBase" ParentName="BuildingBase" Abstract="True">
		<comps>
			<li>
				<compClass>CompQuality</compClass>
			</li>
			<li Class="CompProperties_Art">
				<nameMaker>ArtName_Furniture</nameMaker>
				<descriptionMaker>ArtDescription_Furniture</descriptionMaker>
				<minQualityForArtistic>Excellent</minQualityForArtistic>
			</li>
		</comps>
		<inspectorTabs>
			<li>ITab_Art</li>
		</inspectorTabs>
		<DesignationCategory>Furniture</DesignationCategory>
		<minifiedDef>MinifiedFurniture</minifiedDef>
	</ThingDef>

    <!--QX========================= Imperial Assembler - Bench Base==========================QX-->

	<ThingDef Name="BenchBase" ParentName="BuildingBase" Abstract="True">
		<castEdgeShadows>true</castEdgeShadows>
		<staticSunShadowHeight>0.20</staticSunShadowHeight>
	</ThingDef>

</Defs>