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

Shouldn't the withdrawal plot be randomly selected? #1465

Open
alberts8 opened this issue Dec 9, 2023 · 2 comments
Open

Shouldn't the withdrawal plot be randomly selected? #1465

alberts8 opened this issue Dec 9, 2023 · 2 comments

Comments

@alberts8
Copy link
Contributor

alberts8 commented Dec 9, 2023

At the moment the first matching plot is chosen.

https://github.com/caveman2cosmos/Caveman2Cosmos/blob/e9ba0e14ce9ab2f0bbac128a1eb8e648fc7ba5ff/Sources/CvUnit.cpp#L2326

@Toffer90
Copy link
Contributor

Toffer90 commented Dec 9, 2023

It should be random, I think there's a case where it also can sometimes chose a plot the unit can't actually walk to normally as well.

@Toffer90
Copy link
Contributor

Toffer90 commented Dec 9, 2023

It should be random, I think there's a case where it also can sometimes chose a plot the unit can't actually walk to normally as well.

Though maybe it should ideally we weighted towards plots with less enemy presence in neighboring plots or something, weighted towards directions that are more away from the direction of the unit that engaged it in combat perhaps.

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

No branches or pull requests

2 participants