边缘世界 RimWorld

边缘世界 RimWorld

Sense Of Depth For Tall Buildings
 此主题已被置顶,因此可能具有重要性
Si-Cafe  [开发者] 2024 年 5 月 15 日 上午 7:14
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.)