Recoded anything that was hard coded to look for building ID's to be much more robust, should be much easier now to add new Buildings.
Instead of having to go through all the code and add the new building ID to the if statement, I've added a script isBuilding, when I add a new Building Type I just need to add the typeID to that and all the checks will get updated!
Also added scr_GetBuildingSize, which will grab the size of the array used for that building type and use it for the default size values, so as long as there's a default shape all the code will have the correct values!
Also, new Building. The Dormitory!
Gives the Goblins somewhere to sleep if they don't have a House, but has no other benefits.
8 comments