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

Allow autotravel to autoswim #36547

Merged
merged 2 commits into from Dec 31, 2019
Merged

Allow autotravel to autoswim #36547

merged 2 commits into from Dec 31, 2019

Conversation

ghost
Copy link

@ghost ghost commented Dec 30, 2019

Summary

SUMMARY: Features "Allow autotravel to autoswim"

Purpose of change

Allow autotravel to autoswim

Describe the solution

made some changes to the pathing, so it can take a number of options with a struct for road_only, water_only or amphibious.

If you are walking, and your destination is a river or lake overmap tile, it wont prompt, itll assume you know what you are doing and will path over water to swim.

Else if you are walking but your destination is on land, it will prompt if youwant to include swimming in your path ( to swim across a river for example ) if oyu press yes, itll include river /lake in the path, if you press no it will avoid all water to get to its path.

Describe alternatives you've considered

N/A

Testing

spawned new char, teleported nex tto lake, opened overmap UI and selected destination in middle of lake, path points were correct, autotravel started, charcater jumped in lake, swam to destination.

Tried othe rthings too like setting a route that crossed over a river, and the player jumped in and out of the water fine.,

Additional context

N/A

@ZhilkinSerg ZhilkinSerg added <Enhancement / Feature> New features, or enhancements on existing [C++] Changes (can be) made in C++. Previously named `Code` Mechanics: Character / Player Character / Player mechanics labels Dec 30, 2019
@ZhilkinSerg ZhilkinSerg merged commit 2bc8ccf into CleverRaven:master Dec 31, 2019
@ghost ghost deleted the autoswim branch January 17, 2020 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` <Enhancement / Feature> New features, or enhancements on existing Mechanics: Character / Player Character / Player mechanics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant