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

Add RANGE_* constants #2

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

Conversation

RiftLurker
Copy link

@RiftLurker RiftLurker commented Dec 19, 2016

These constants are used for every kind of intents that are limited by range, the implementation is added with PR#6 in screeps/engine.

The constants OBSERVER_RANGE and NUKE_RANGE are not included as these are used separately and I'm not sure how this will work when changing those e.g. by server-mods.

lib/constants.js Outdated
RANGE_BUILD: 3,
RANGE_CLAIM_CONTROLLER: 1,
RANGE_DISMANTLE: 1,
RANGE_DROP: 1,
Copy link

@bastianh bastianh Jun 19, 2017

Choose a reason for hiding this comment

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

RANGE_DROP: I don't think this is used anywhere .. and I think it's not quite correct :)

Copy link

Choose a reason for hiding this comment

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

I agree, RANGE_DROP seems weird. You can not give a position to where you'd want to drop resources.

Copy link
Author

Choose a reason for hiding this comment

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

It's possible that I just mindlessly added RANGE_ constants for all of the actions, it obviously doesn't make any sense for drop.
I'll update the PR later on.

Copy link

@JestDotty JestDotty left a comment

Choose a reason for hiding this comment

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

matches docs/ingame ranges

@o4kapuk o4kapuk self-assigned this Sep 12, 2018
Copy link
Contributor

@o4kapuk o4kapuk left a comment

Choose a reason for hiding this comment

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

Verified

semperrabbit added a commit to semperrabbit/screeps_common that referenced this pull request Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants