public bool ValidateTool(ThingWithComps tool) { if (!tool.IsInAnyStorage()) { UpdateStoredTools(); return(false); } var faction = Find.FactionManager.OfPlayer; if (tool.IsForbidden(faction) || map.reservationManager.IsReservedByAnyoneOf(tool, faction)) { UpdateUseableTools(); return(false); } return(true); }