Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scale oil refinery edge distance up by map size #7514

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
3 participants
@nielsmh
Copy link
Contributor

commented Apr 15, 2019

I was playing on a huge map and got annoyed at how relatively close to the edges oil refineries had to be built. I think it makes sense to scale the distance up on larger maps.

@SamuXarick

This comment has been minimized.

Copy link
Contributor

commented Apr 16, 2019

The setting description is misleading. It also applies to Oil Rigs.

@nielsmh

This comment has been minimized.

Copy link
Contributor Author

commented Apr 24, 2019

Hm true, the setting value is also used for oil rigs, but I did not change that check to use the same scaling. I should do that too.

Add: Scale oil refinery edge distance up by map size
Also scales oil rig distance up, since they use the same algorithm.

@nielsmh nielsmh force-pushed the nielsmh:ind-mapedge-check branch from 82796cb to 4ed36eb Apr 24, 2019

@PeterN

This comment has been minimized.

Copy link
Member

commented Apr 24, 2019

Should ScaleByMapSize be involved here?

@nielsmh

This comment has been minimized.

Copy link
Contributor Author

commented Apr 24, 2019

I looked at that function and decided it's not going to do what I want. ScaleByMapSize scales by the area of the map compared to 256x256, and ScaleByMapSize1D scales by circumference of the map. The scaling I'm going for here is independent in each axis so the setting value effectively acts as numerator in a fraction with denominator 256.

With a setting value of 32, if MapSizeX is 512 the threshold should be doubled in X axis independent of the Y axis dimension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.