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

fix: Room.findPath default plainCost (2) and swampCost (10) #167

Closed
wants to merge 1 commit into from

Conversation

admon84
Copy link

@admon84 admon84 commented Nov 30, 2020

Since the ignoreRoads option is false by default, this means the default plainCost is 2 and swampCost is 10, rather than 1 and 5 respectively.

This makes the default behavior of the following methods to prefer pathing on roads (if roads are available)

  • Room.findPath, RoomPosition.findPathTo, RoomPosition.findClosestByPath, Creep.moveTo

@admon84 admon84 closed this Aug 17, 2024
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