RimWorld

RimWorld

Vanilla Furniture Expanded - Medical Module
Kaedys Jul 12, 2021 @ 9:38pm
Compatibility patch request
Been using the Animal Medical Bed mod (which adds an animal version of the normal hospital bed, including linkage with vitals monitors). Created a local patch for this mod for connecting to the vitals center, requesting it be added to the mod baseline. I omitted the IV stand from it, because it felt a bit silly, but I guess that can be included too, if y'all feel it makes sense.

<Operation Class="PatchOperationFindMod"> <mods> <li>Animal Medical Bed</li> </mods> <match Class="PatchOperationAdd"> <xpath>Defs/ThingDef[defName = "SUN_MedicalAnimalBed"]/comps/li[@Class = "CompProperties_AffectedByFacilities"]/linkableFacilities</xpath> <value> <li>Facility_VitalsCentre</li> </value> </match> </Operation>

Mod in question: https://steamcommunity.com/sharedfiles/filedetails/?id=2016958187

Alternatively, pulling from another mod I use (Wall Vitals Monitor), I believe you could do a patch like this to just universally grab anything affected by the normal vitals monitor:

<Operation Class="PatchOperationAdd"> <xpath>/Defs/ThingDef/comps/li[@Class="CompProperties_AffectedByFacilities"]/linkableFacilities/li[text()="VitalsMonitor"]/..</xpath> <value> <li>Facility_VitalsCentre</li> <li>Facility_IVDrip</li> </value> </Operation>