-
Notifications
You must be signed in to change notification settings - Fork 3
Interchangeable Items
Interchangeable Items are items that you want to be able to replace with one another. For example, Braziers and Darklight Braziers are considered "Interchangeable" since we can replace the Brazier with the Darklight Brazier and vice-versa. If you create a list of interchangeable items, any one of those items can replace and be replaced by another item in that list.
<Defs>
<Replace_Stuff_Compatibility.InterchangeableItems>
<defName>ReplacementMod_TVs</defName>
<replaceLists>
<li>
<items>
<li>TubeTelevision</li>
<li>FlatscreenTelevision</li>
<li>MegascreenTelevision</li>
</items>
</li>
</replaceLists>
</Replace_Stuff_Compatibility.InterchangeableItems>
</Defs>In this example, any of Tube Television, Flatscreen Television, or Megascreen television can replace each other without a problem. However, having the same item on two separate lists does not make all items in both lists interchangeable. For example:
<Defs>
<Replace_Stuff_Compatibility.InterchangeableItems>
<defName>ReplacementMod_TVs</defName>
<replaceLists>
<li>
<items>
<li>TubeTelevision</li>
<li>FlatscreenTelevision</li>
<li>MegascreenTelevision</li>
</items>
</li>
<li>
<items>
<li>TubeTelevision</li>
<li>Column</li>
</items>
</li>
</replaceLists>
</Replace_Stuff_Compatibility.InterchangeableItems>
</Defs>While this Def would allow TubeTelevision to be replaced by FlatscreenTelevision, MegascreenTelevision or Column, Column would not be able to replace FlatscreenTelevision or MegascreenTelevision