Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Patch>
- <Operation Class="PatchOperationFindMod">
- <mods>
- <li>GloomyFurniture</li>
- </mods>
- <match Class="PatchOperationSequence">
- <success>Always</success>
- <operations>
- <li Class="PatchOperationAdd">
- <xpath>Defs/ThingDef[@Name="BasicBedBase"]/comps/li[@Class="CompProperties_AffectedByFacilities"]/linkableFacilities</xpath>
- <value>
- <li>WardrobeA</li>
- <li>GL_Teddy</li>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="Bed"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Building/Furniture/RGK_bedSingle</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <shaderType>CutoutComplex</shaderType>
- <drawSize>(3,4)</drawSize>
- <damageData>
- <rect>(0,0.05,1,1.95)</rect>
- </damageData>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="DoubleBed"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Building/Furniture/RGK_bedDouble</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <shaderType>CutoutComplex</shaderType>
- <drawSize>(4.05,4.05)</drawSize>
- <damageData>
- <rect>(0,0.05,2,1.95)</rect>
- </damageData>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="RoyalBed"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Building/Furniture/GL_ClassyDoubleBed</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <shaderType>CutoutComplex</shaderType>
- <drawSize>(4,4)</drawSize>
- <damageData>
- <rect>(0,0.05,2,1.95)</rect>
- </damageData>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="EndTable"]/graphicData/texPath</xpath>
- <value>
- <texPath>Things/Building/Furniture/RGK_EndTable</texPath>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="Dresser"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Building/Furniture/RGK_Dresser</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <drawSize>(4,4)</drawSize>
- <damageData>
- <cornerTL>Damage/Corner</cornerTL>
- <cornerTR>Damage/Corner</cornerTR>
- <cornerBL>Damage/Corner</cornerBL>
- <cornerBR>Damage/Corner</cornerBR>
- </damageData>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="Stool"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Building/Furniture/RGK_Chair2</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <damageData>
- <rectN>(0.125,0.296875,0.734375,0.421875)</rectN>
- <rectS>(0.125,0.296875,0.734375,0.421875)</rectS>
- <rectE>(0.234375,0.296875,0.5,0.546875)</rectE>
- <rectW>(0.234375,0.296875,0.5,0.546875)</rectW>
- <cornerTL>Damage/Corner</cornerTL>
- <cornerTR>Damage/Corner</cornerTR>
- <cornerBL>Damage/Corner</cornerBL>
- <cornerBR>Damage/Corner</cornerBR>
- </damageData>
- <drawSize>(3,3)</drawSize>
- <shadowData>
- <volume>(0.18, 0.23, 0.18)</volume>
- </shadowData>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="DiningChair"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Building/Furniture/RGK_Chair</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <drawSize>(3,3)</drawSize>
- <damageData>
- <rectN>(0.25,0.234375,0.5,0.28125)</rectN>
- <rectS>(0.25,0.234375,0.5,0.28125)</rectS>
- <rectE>(0.28125,0.25,0.453125,0.25)</rectE>
- <rectW>(0.28125,0.25,0.453125,0.25)</rectW>
- </damageData>
- <shadowData>
- <volume>(0.23, 0.26, 0.23)</volume>
- </shadowData>
- </graphicData>
- </value>
- </li>
- <!-- Toolcabinet -->
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="ToolCabinet"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Linkables/ToolCabinet</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <drawSize>(4,4)</drawSize>
- <damageData>
- <cornerTL>Damage/Corner</cornerTL>
- <cornerTR>Damage/Corner</cornerTR>
- <cornerBL>Damage/Corner</cornerBL>
- <cornerBR>Damage/Corner</cornerBR>
- </damageData>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="ToolCabinet"]/size</xpath>
- <value>
- <size>(2,1)</size>
- </value>
- </li>
- <li Class="PatchOperationConditional">
- <xpath>Defs/ThingDef[defName="ToolCabinet"]/stuffCategories</xpath>
- <nomatch Class="PatchOperationSequence">
- <operations>
- <li Class="PatchOperationAdd">
- <xpath>Defs/ThingDef[defName="ToolCabinet"]</xpath>
- <value>
- <costStuffCount>10</costStuffCount>
- </value>
- </li>
- <li Class="PatchOperationAdd">
- <xpath>Defs/ThingDef[defName="ToolCabinet"]</xpath>
- <value>
- <stuffCategories>
- <li>Metallic</li>
- <li>Woody</li>
- <li>Stony</li>
- </stuffCategories>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="ToolCabinet"]/costList</xpath>
- <value>
- <costList>
- <Steel>200</Steel>
- </costList>
- </value>
- </li>
- </operations>
- </nomatch>
- </li>
- <!-- Other vanilla stuff -->
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="TorchLamp"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Building/Furniture/TorchLamp</texPath>
- <graphicClass>Graphic_Single</graphicClass>
- <drawSize>(1,1)</drawSize>
- <damageData>
- <cornerTL>Damage/Corner</cornerTL>
- <cornerTR>Damage/Corner</cornerTR>
- <cornerBL>Damage/Corner</cornerBL>
- <cornerBR>Damage/Corner</cornerBR>
- </damageData>
- </graphicData>
- </value>
- </li>
- <!-- Joy -->
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="Telescope"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Joy/Telescope</texPath>
- <graphicClass>Graphic_Single</graphicClass>
- <drawSize>(1,1)</drawSize>
- <shadowData>
- <volume>(0.5, 0.3, 0.4)</volume>
- </shadowData>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="HoopstoneRing"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Joy/HoopstoneRing</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <shaderType>CutoutComplex</shaderType>
- <shadowData>
- <volume>(0.08, 0.2, 0.08)</volume>
- <offset>(0, 0, -0.47)</offset>
- </shadowData>
- <damageData>
- <rect>(0.3,0.3,0.4,0.4)</rect>
- </damageData>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="HoopstoneRing"]/rotatable</xpath>
- <value>
- <rotatable>true</rotatable>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="GameOfUrBoard"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Joy/GameOfUr</texPath>
- <graphicClass>Graphic_multi</graphicClass>
- <shaderType>CutoutComplex</shaderType>
- <drawSize>(2,2)</drawSize>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="HorseshoesPin"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Joy/HorseshoesPin</texPath>
- <graphicClass>Graphic_multi</graphicClass>
- <drawSize>(1,1)</drawSize>
- <shadowData>
- <volume>(0.08, 0.2, 0.08)</volume>
- <offset>(0, 0, -0.1)</offset>
- </shadowData>
- <damageData>
- <rect>(0.3,0.3,0.4,0.4)</rect>
- </damageData>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="HorseshoesPin"]/rotatable</xpath>
- <value>
- <rotatable>true</rotatable>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="TubeTelevision"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Joy/TubeTelevision</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <drawSize>(1,1)</drawSize>
- <shadowData>
- <volume>(0.5, 0.3, 0.4)</volume>
- </shadowData>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="ChessTable"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Joy/Gloomy_ChessTable</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <drawSize>(2,2)</drawSize>
- <shadowData>
- <volume>(0.65, 0.25, 0.6)</volume>
- <offset>(0, 0, -0.15)</offset>
- </shadowData>
- <damageData>
- <rect>(0.09375,0.296875,0.796875,0.703125)</rect>
- <cornerTL>Damage/Corner</cornerTL>
- <cornerTR>Damage/Corner</cornerTR>
- <cornerBL>Damage/Corner</cornerBL>
- <cornerBR>Damage/Corner</cornerBR>
- </damageData>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="PokerTable"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Joy/Gloomy_PokerTable2x2</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <shaderType>CutoutComplex</shaderType>
- <drawSize>(4,4)</drawSize>
- <shadowData>
- <volume>(1.6, 0.3, 1.6)</volume>
- <offset>(0, 0, -0.15)</offset>
- </shadowData>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="BilliardsTable"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Joy/BilliardsTable</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <shaderType>CutoutComplex</shaderType>
- <drawSize>(4,4)</drawSize>
- <damageData>
- <cornerTL>Damage/Corner</cornerTL>
- <cornerTR>Damage/Corner</cornerTR>
- <cornerBL>Damage/Corner</cornerBL>
- <cornerBR>Damage/Corner</cornerBR>
- </damageData>
- </graphicData>
- </value>
- </li>
- <!-- Tables -->
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="Table1x2c"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Building/Table/RGK_Table2x1</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <drawSize>(4,4)</drawSize>
- <damageData>
- <cornerTL>Damage/Corner</cornerTL>
- <cornerTR>Damage/Corner</cornerTR>
- <cornerBL>Damage/Corner</cornerBL>
- <cornerBR>Damage/Corner</cornerBR>
- </damageData>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="Table1x2c"]/size</xpath>
- <value>
- <size>(2,1)</size>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="Table2x2c"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Building/Furniture/RGK_TableC2x2</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <drawSize>(4,4)</drawSize>
- <damageData>
- <cornerTL>Damage/Corner</cornerTL>
- <cornerTR>Damage/Corner</cornerTR>
- <cornerBL>Damage/Corner</cornerBL>
- <cornerBR>Damage/Corner</cornerBR>
- </damageData>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="Table2x4c"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Building/Table/RGK_Tableb3x2</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <drawSize>(4,4)</drawSize>
- <damageData>
- <cornerTL>Damage/Corner</cornerTL>
- <cornerTR>Damage/Corner</cornerTR>
- <cornerBL>Damage/Corner</cornerBL>
- <cornerBR>Damage/Corner</cornerBR>
- </damageData>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="Table2x4c"]/size</xpath>
- <value>
- <size>(3,2)</size>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="Table3x3c"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Building/Table/RGK_Table3x3</texPath>
- <graphicClass>Graphic_Single</graphicClass>
- <drawSize>(4,4)</drawSize>
- <damageData>
- <cornerTL>Damage/Corner</cornerTL>
- <cornerTR>Damage/Corner</cornerTR>
- <cornerBL>Damage/Corner</cornerBL>
- <cornerBR>Damage/Corner</cornerBR>
- </damageData>
- </graphicData>
- </value>
- </li>
- <!-- Benches -->
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="HandTailoringBench"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Building/Production/GL_HandTailoringBench</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <drawSize>3.7</drawSize>
- <shaderType>CutoutComplex</shaderType>
- <damageData>
- <cornerTL>Damage/Corner</cornerTL>
- <cornerTR>Damage/Corner</cornerTR>
- <cornerBL>Damage/Corner</cornerBL>
- <cornerBR>Damage/Corner</cornerBR>
- </damageData>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="ElectricTailoringBench"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Building/Production/GL_TailoringBench</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <drawSize>3.7</drawSize>
- <shaderType>CutoutComplex</shaderType>
- <damageData>
- <cornerTL>Damage/Corner</cornerTL>
- <cornerTR>Damage/Corner</cornerTR>
- <cornerBL>Damage/Corner</cornerBL>
- <cornerBR>Damage/Corner</cornerBR>
- </damageData>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="FueledSmithy"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Building/Production/GL_Smithy</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <shaderType>CutoutComplex</shaderType>
- <drawSize>3.7</drawSize>
- <shadowData>
- <volume>(2.8, 0.35, 0.59)</volume>
- <offset>(0, 0, 0.08)</offset>
- </shadowData>
- <damageData>
- <cornerTL>Damage/Corner</cornerTL>
- <cornerTR>Damage/Corner</cornerTR>
- <cornerBL>Damage/Corner</cornerBL>
- <cornerBR>Damage/Corner</cornerBR>
- </damageData>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="FueledStove"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Building/Production/RGK_Countertop</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <drawSize>(4,4)</drawSize>
- <shaderType>CutoutComplex</shaderType>
- <damageData>
- <cornerTL>Damage/Corner</cornerTL>
- <cornerTR>Damage/Corner</cornerTR>
- <cornerBL>Damage/Corner</cornerBL>
- <cornerBR>Damage/Corner</cornerBR>
- </damageData>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="Shelf"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Building/Furniture/GL_Shelf</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <drawSize>(3,2)</drawSize>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="SimpleResearchBench"]/graphicData</xpath>
- <value>
- <graphicData>
- <texPath>Things/Building/Production/RGK_reserch</texPath>
- <graphicClass>Graphic_Multi</graphicClass>
- <shaderType>CutoutComplex</shaderType>
- <drawSize>4</drawSize>
- <damageData>
- <cornerTL>Damage/Corner</cornerTL>
- <cornerTR>Damage/Corner</cornerTR>
- <cornerBL>Damage/Corner</cornerBL>
- <cornerBR>Damage/Corner</cornerBR>
- </damageData>
- </graphicData>
- </value>
- </li>
- <li Class="PatchOperationReplace">
- <xpath>Defs/ThingDef[defName="SimpleResearchBench"]/size</xpath>
- <value>
- <size>(3,1)</size>
- </value>
- </li>
- <li Class="PatchOperationAdd">
- <success>Always</success>
- <xpath>Defs/ThingDef[defName="SimpleResearchBench"][not(comps)]</xpath>
- <value>
- <comps />
- </value>
- </li>
- <li Class="PatchOperationAdd">
- <success>Always</success>
- <xpath>Defs/ThingDef[defName="SimpleResearchBench"]/comps[not(li/@Class="CompProperties_AffectedByFacilities")]</xpath>
- <value>
- <li Class="CompProperties_AffectedByFacilities">
- <linkableFacilities />
- </li>
- </value>
- </li>
- <li Class="PatchOperationAdd">
- <success>Always</success>
- <xpath>Defs/ThingDef[defName="SimpleResearchBench"]/comps/li[@Class="CompProperties_AffectedByFacilities"]/linkableFacilities</xpath>
- <value>
- <li>GL_Bookshelf</li>
- </value>
- </li>
- </operations>
- </match>
- </Operation>
- </Patch>
Add Comment
Please, Sign In to add comment