Skip to content

Commit

Permalink
added support for more linkables
Browse files Browse the repository at this point in the history
  • Loading branch information
zymex22 committed Oct 18, 2020
1 parent d4f50b6 commit 937b88f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 61 deletions.
31 changes: 18 additions & 13 deletions Defs/ThingDefs_Buildings/Buildings_Common.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Defs>
<!-- ############################################# AI research bench ##################################################### -->
<ThingDef ParentName="PRFBenchBase">
<ThingDef ParentName="ResearchBenchVanilla">
<defName>AIResearchBench</defName>
<label>AI research bench</label>
<description>A high-tech bench with an AI module installed. Required for tier 2 automation research and is not a replacement for the hi-tech research bench. Requires power.</description>
<thingClass>Building_ResearchBench</thingClass>
<category>Building</category>
<soundImpactDefault>BulletImpact_Metal</soundImpactDefault>
<selectable>true</selectable>
<drawerType>MapMeshAndRealTime</drawerType>
<repairEffect>Repair</repairEffect> <!-- Effect when the building is being repaired. Any, Light, Heavy, GrowSoil, Diggable, SmoothHard, SmoothableStone -->
<leaveResourcesWhenKilled>true</leaveResourcesWhenKilled> <!-- Whether it leaves part of its resource cost when killed. -->
<filthLeaving>Filth_RubbleBuilding</filthLeaving>
<castEdgeShadows>true</castEdgeShadows>
<staticSunShadowHeight>0.20</staticSunShadowHeight> <!-- staticSunShadowHeight defines how much of a shadow the strucure casts (Range: 0.0 - 1.0) -->
<canOverlapZones>false</canOverlapZones>
<size>(3,1)</size>
<stuffCategories>
<li>Metallic</li>
Expand Down Expand Up @@ -36,18 +46,11 @@
<WorkToBuild>5000</WorkToBuild>
<Flammability>1.0</Flammability>
<ResearchSpeedFactor>1.0</ResearchSpeedFactor>
<SellPriceFactor>0.70</SellPriceFactor>
</statBases>
<comps>
<li Class="CompProperties_Power">
<compClass>CompPowerTrader</compClass>
<basePowerConsumption>250</basePowerConsumption>

</li>
<li Class="CompProperties_Flickable"/>
<li Class="CompProperties_AffectedByFacilities">
<linkableFacilities>
<li>MultiAnalyzer</li>
</linkableFacilities>
<li>
<compClass>CompReportWorkSpeed</compClass>
</li>
</comps>
<fillPercent>0.5</fillPercent>
Expand All @@ -56,7 +59,9 @@
<terrainAffordanceNeeded>Heavy</terrainAffordanceNeeded>
<designationCategory>Production</designationCategory>
<surfaceType>Item</surfaceType>
<placeWorkers>
<designationHotKey />
<constructionSkillPrerequisite />
<placeWorkers Inherit="false">
<li>PlaceWorker_ShowFacilitiesConnections</li>
</placeWorkers>
<researchPrerequisites>
Expand All @@ -69,7 +74,7 @@
<defName>TableRoboticMachining</defName>
<label>robotic machining table</label>
<thingClass>Building_WorkTable</thingClass>
<description>A work station for creating parts for automation buildings.</description>
<description>A work station for creating parts, frames and more for automation buildings.</description>
<graphicData>
<texPath>Common/TableRobotics</texPath>
<graphicClass>Graphic_Multi</graphicClass>
Expand Down
48 changes: 0 additions & 48 deletions Patches/AIResearchBench.xml

This file was deleted.

9 changes: 9 additions & 0 deletions Patches/vanilla.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>

<Patch>
<!--================================ Patches for vanilla ====================================== -->

<!--================================ Add name for vanilla Research bench so we can use it as parent ====================================== -->
<Operation Class="PatchOperationAttributeSet">
<xpath>/Defs/ThingDef[defName="HiTechResearchBench"]</xpath>
<attribute>Name</attribute>
<value>ResearchBenchVanilla</value>
</Operation>

<!--================================ Add concrete dropdown Menu ====================================== -->

<Operation Class="PatchOperationFindMod">
Expand Down

0 comments on commit 937b88f

Please sign in to comment.