RimWorld

RimWorld

Sense Of Depth For Tall Buildings
 This topic has been pinned, so it's probably important
Si-Cafe  [developer] 15 May, 2024 @ 7:14am
About Xml Patch
"SenseOfDepth" can also decide whether or not to apply BSL using an Xml patch.

Mainly used for buildings where BSL support is not required but would be auto applied.
It can also do the opposite.


<li MayRequire="example.modid" Class="PatchOperationAddModExtension"> <success>Always</success> <xpath>Defs/ThingDef[@Name="BaseName" or defName="defName"]</xpath> <value> <li Class="SenseOfDepthForTallBuilding.AddBackSideLayer"> <apply>False</apply> <isImpassable>false</isImpassable> <asWall>false</asWall> </li> </value> </li>

<apply>False</apply> // Must be "False" or "True". (starts with a capital letter)
Setting it to False will remove this ModExtension itself from that Def.


<isImpassable> is an extension of automatic DefsPatch.
If you set this to true, you can forcibly make it impossible to pass through.

<asWall>If true, it will behave like a wall. (Slightly increases covering efficiency, prevents bullets and seeing from enemy.)