An assortment of bug fixes and refactorings, particularly for farming and exploration behaviours.