How did the formulation of evolution theory impact the development of psychology as a formal discipline?

It changed the way people looked at their actions. It might be something from evolution that causes them to act the way that they do.