Mod Request: Clean Thrumbos

Started by zombienerd, October 20, 2021, 10:13:03 PM

Previous topic - Next topic

zombienerd

Thrumbo are majestic creatures and I like to treat them like my dogs, freeroaming with access to everything.  Unfortunately, 1.3 codes them as High Filth, and keeps the "Animal filth" message up whenever they're in my buildings.

A quick mod to reduce their filth to match Dogs would be appreciated!


JT


<?xml version="1.0" encoding="utf-8" ?>
<Patch>

<Operation Class="PatchOperationConditional">
<xpath>/Defs/ThingDef[defName="Thrumbo"]/statBases/FilthRate</xpath>
<match Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[defName="Thrumbo"]/statBases/FilthRate</xpath>
<value><FilthRate>1.0</FilthRate></value> <!-- Filth rate 1.0 is the same as humans and dogs -->
</match>
<nomatch Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="Thrumbo"]/statBases</xpath>
<value><FilthRate>1.0</FilthRate></value>
</nomatch>
</Operation>

</Patch>


All you gotta do now is learn how to stick that into an XML file in a mod folder and publish the mod, and you're good to go.  Tweak the filth rate as desired, but dogs are 1.0. =)

I, Jeremy T. Gibson, hereby release the above into the public domain, subject to the Ludeon EULA.  No credit is necessary.

zombienerd