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

Update map generation to be more natural, turn off unnecessary settings #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

John-Ender
Copy link

@John-Ender John-Ender commented Aug 9, 2020

Update the map generation logic to naturally spawn islands, and place generated resources on those islands.

Remove all resource spawning settings from map creation GUI since they don't do anything.

Added mod settings option to set distance based resource richness, defaulted to false to match King's design intention.

I also did a little bit of code organization and commenting to help others figure out what the intention of certain blocks is.

image

Remove distance based richness

Remove dead code

Add trailing new line to generator-updates

Final scrub of unused code

Finalize map generation updates
@@ -292,7 +248,7 @@ else
--log(serpent.block(c.name))
--log(serpent.block(c.position))

if c.name ~= "iron-rock" and c.name ~= 'seaweed' and c.name ~= 'fish' then
if RocksSet[c.name] == nil and c.name ~= 'seaweed' and c.name ~= 'fish' then
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not deleting generated resources is important because otherwise there are occasions when the next chunk is generated it will delete the resource generated on the nearby chunk leaving map artifacts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant