Lua method for SetNumFreeBuilding