Pathfinding cleanup & optimizations
Lua cleanup & optimizations
Code cleanup