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

Feat/centralize ressources #65

Merged
merged 7 commits into from May 29, 2021
Merged

Feat/centralize ressources #65

merged 7 commits into from May 29, 2021

Conversation

CremaFR
Copy link
Contributor

@CremaFR CremaFR commented May 29, 2021

Adding a new plugin to collect energy and silver from close planets to your selected planet.
V0.1. Suggestions are welcome

Current implementation checks for the closest planet 1st and ignore any senders that can't give more than 1% of the max energy of the requesting planet

Copy link
Contributor

@phated phated left a comment

Choose a reason for hiding this comment

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

Interesting! 1 thing I wanted to point out is that you are checking all planets within the distance of your target planet, which means they might not have enough range/etc on them to fill it. Additionally, you might be missing a planet out of range that could fill it up.

However, doing it by iterating all your planets and running the planetsInRange call is very expensive, so this could still be useful for people.

@phated phated merged commit 0365249 into darkforest-eth:master May 29, 2021
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.

None yet

2 participants