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

Make workers flee only when receiving first enemy blow. #90

Closed
Bertram25 opened this issue Aug 20, 2014 · 4 comments · Fixed by #162
Closed

Make workers flee only when receiving first enemy blow. #90

Bertram25 opened this issue Aug 20, 2014 · 4 comments · Fixed by #162
Milestone

Comments

@Bertram25
Copy link
Contributor

It has been discussed on the forum that the workers should continue to work until they get damage (or at least until an enemy actually attacks it).

In the small map, it is quite obvious that there is something weird with the current behaviour as it is really hard to get workers claim tiles when they are not far from the enemy base.

@Bertram25 Bertram25 added this to the 0.4.9 milestone Aug 20, 2014
This was referenced Aug 20, 2014
@Danimal696
Copy link
Contributor

maybe its related to the treath system you once described?

@Bertram25
Copy link
Contributor Author

maybe its related to the treath system you once described?

Can you elaborate?

@Danimal696
Copy link
Contributor

i remember you saying creatures calculate threat levels on each tile depending on enemy proximity, so are they constantly running away because of how small the map is?

@Bertram25
Copy link
Contributor Author

i remember you saying creatures calculate threat levels on each tile depending on enemy proximity, so are they constantly running away because of how small the map is?

Ah yes. In battleField.cpp. Indeed, a threat value is computed according to enemies / allies proximity ratio. Indeed, it surely is.
EDIT: And that's what we try to work around, through this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants