边缘世界 RimWorld

边缘世界 RimWorld

RimFlix
Pelador 2020 年 2 月 8 日 下午 9:23
Best Compatibility
To help with compatibility with other mods, it would be helpful to apply the tickerType use as conditional patching e.g.:

Patched in a sequence hence as listing:

<li Class="PatchOperationConditional">
<xpath>/Defs/ThingDef[defName="TubeTelevision"]/tickerType</xpath>
<match Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[defName="TubeTelevision"]/tickerType</xpath>
<value>
<tickerType>Normal</tickerType>
</value>
</match>
<nomatch Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="TubeTelevision"]</xpath>
<value>
<tickerType>Normal</tickerType>
</value>
</nomatch>
</li>

This will mean that other mods that equally patch a tickerType of normal as an addition to vanilla TVs will then not have to worry about mod load orders as it will check for an occurrence only adding if then not present. Though of course if another mod where to apply an alternative tickerType (Rare) then there would be an incompatibility.
< >
正在显示第 1 - 1 条,共 1 条留言
Taiyaki >{{{º>  [开发者] 2020 年 3 月 1 日 下午 4:32 
Thanks, added in the latest update.
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50