Skip to content

XMLRandomPatch

flango edited this page Mar 5, 2023 · 1 revision

×× Random XML patches ××

Applies a random patch from the list on every game boot.

  • <operations> - Your list of PatchOperation.
  • <enabled> - Random patching enabled. true by default.

Performance impact: 🟩 None

Type: PatchOperation

XML Node: Patch/Operation


Example:

<?xml version="1.0" encoding="UTF-8"?>
<Patch>
    <Operation Class="flangoCore.XMLRandomPatch">
        <operations>
            <li Class="PatchOperationReplace">
                <xpath>Defs/ThingDef[defName="Test_MyCustomThing"]/description</xpath>
                <value>
                    <description>TEST-111</description>
                </value>
            </li>
            <li Class="PatchOperationReplace">
                <xpath>Defs/ThingDef[defName="Test_MyCustomThing"]/description</xpath>
                <value>
                    <description>TEST-222</description>
                </value>
            </li>
            <li Class="PatchOperationReplace">
                <xpath>Defs/ThingDef[defName="Test_MyCustomThing"]/description</xpath>
                <value>
                    <description>TEST-333</description>
                </value>
            </li>
        </operations>
    </Operation>
</Patch>

🦩 Home

🚧 - 404 Page not found.
🖼 - Preview needed.

🟡 - Works but has some TODOs.
🟠 - Basic functionality implemented.
🔴 - Not working properly.
❓ - Not tested.


--== XML ==--

💡 Abilities

General

Ability Givers

Equipment Abilities

🟡 Should recode some stuff 🟡

🌳 Skill Trees

🟠 WIP, work/kill XP gain not implemented 🟠

Defs

Comps

🏘 Buildings

⚙ Comps

🏹 Equipment

General

Weapons

Projectiles

🧪 Hediffs

🧍‍♂‍ Pawn behaviors

📊 Stats

🎲 Misc

🧔 Vanilla Expanded

✨ Debug (Dev Mode)


--== C# ==--

📂 Shared Classes

🧬 Patches


Clone this wiki locally