Finished the framework for having the ai spawn buildings based on the resource stockpile. Still have to define areas around the base that are valid build areas, but that'll be the easy part and has to wait till tomorrow.

TL;DR: progress feelsgodman.