-
Notifications
You must be signed in to change notification settings - Fork 21
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
base: master
Are you sure you want to change the base?
Conversation
lib/constants.js
Outdated
RANGE_BUILD: 3, | ||
RANGE_CLAIM_CONTROLLER: 1, | ||
RANGE_DISMANTLE: 1, | ||
RANGE_DROP: 1, |
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified
PR screeps#2 to screeps/common clone
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.