RimWorld

RimWorld

Allow Tool
[BUG]Haul+ cannot be patched into Misc Robots
Not a traditional bug report, sorry.
So, Misc. Craftable Robots has a PERFECTLY functional patch to add Haul+ to the Misc Robot hauler, but the patch seems to be actively rejected by Allow Tool. I've tinkered with it a bit, and no matter what I do(even stealing a template from the definitely functional quarry patch), it doesn't seem to want to work. Ironically, Allow Tool DOES add Finish Off to the robot, forcefully at that, so I have no idea what's going on.
Unless my patch is faulty, this seems to be entirely the fault of Allow Tool. Anyone with decent modding experience, here's my patch.
<?xml version="1.0" encoding="utf-8" ?> <Patch> <Operation Class="PatchOperationSequence"> <success>Always</success> <operations> <li Class="PatchOperationTest"><xpath>Defs/WorkTypeDef[defName="HaulingUrgent"]</xpath></li> <li Class="PatchOperationAdd"> <xpath> Defs/ThingDef[defName="AIRobot_Hauler"]/robotWorkTypes </xpath> <value><li><workTypeDef>HaulingUrgent</workTypeDef><priority>2</priority></li></value> </li> </operations> </Operation> </Patch>
Last edited by Bullet Barrage Spy; May 27, 2022 @ 3:59pm