-
Notifications
You must be signed in to change notification settings - Fork 0
XMLToggleablePatch
flango edited this page Mar 5, 2023
·
1 revision
Changes behavior of your XML patch depending on your mod's settings.
-
<settingsPath>- Path to your mod's settings inNamespace.Mod.ModSettingsformat. -
<key>- Name of yourboolfield. -
<trueOperation Class="...">- AppliedPatchOperationif the setting is true. (✔) -
<falseOperation Class="...">- AppliedPatchOperationif the setting is false. (❌)
<?xml version="1.0" encoding="UTF-8"?>
<Patch>
<Operation Class="flangoCore.XMLToggleablePatch">
<settingsPath>YourModName.Controller.settings</settingsPath>
<key>optionalPatchTest</key>
<trueOperation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Test_MyCustomThing"]/description</xpath>
<value>
<description>My new description.</description>
</value>
</trueOperation>
</Operation>
</Patch>🦩 Home
🚧 - 404 Page not found.
🖼 - Preview needed.
🟡 - Works but has some TODOs.
🟠 - Basic functionality implemented.
🔴 - Not working properly.
❓ - Not tested.
🟡 Should recode some stuff 🟡
🟠 WIP, work/kill XP gain not implemented 🟠
-
🚧Give Hediff Severity Extended (aka Autobong)
-
Weapon Animations 🟡 (Not included)