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

Winds: initial winds implementation #217

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Winds: initial winds implementation #217

wants to merge 6 commits into from

Conversation

ftomassetti
Copy link
Member

This is based on this: http://www.dungeonleague.com/2010/03/28/wind-direction/

This PR is based on top of #214

Example of generated winds:
seed_27421_wind

@tcld
Copy link
Contributor

tcld commented Dec 5, 2015

This is based on #214 , right? I will wait until that one is polished and merged before looking at the code in here then.

The map looks interesting. :)

EDIT: Well, I took a little peek at the code. Some small comments below.

world.set_wind_direction(direction)

@staticmethod
def _wind_direction(world, distorsion_factor, seed):
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be called _calculate() - that's how it is done in all the other modules, right?

EDIT: Yes, it is (copied from irrigation.py):

@staticmethod
    def _calculate(world):

Copy link
Member Author

Choose a reason for hiding this comment

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

makes sense (and yes it is copied :D)

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.

2 participants