Skip to content
Nightinggale edited this page Sep 15, 2018 · 1 revision

What it does

It moves xml elements around to make them appear in a different order ingame.


Why you want to use this

Say you add a bed and you want to place it together with the vanilla beds in the build menu rather than attaching it to the end.


Tags

Tag Mandatory Type Description
patchName no string Name of patch for log/profiling
xpath yes string Xpath search for the Def to attach to
followers yes list of strings Xpath searches for Defs to follow xpath
Log writing no

Pass condition

Xpath is found and at least one member of followers will find at least one def.


Example

<li Class="ModCheck.Move">
    <patchName>Move all beds together</patchName>
    <xpath>Defs/ThingDef[defName="StandardBed"]</xpath>
    <followers>
        <li>Defs/ThingDef[defName="NewBedA"]</li>
        <li>Defs/ThingDef[defName="NewBedB"]</li>
        <li>Defs/ThingDef[defName="NewBedC"]</li>
    </followers>
</li>

Following this the build menu will have StandardBed, NewBedA, NewBedB, NewBedC in that order regardless of where vanilla would place them.

Clone this wiki locally