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

Implement a basic area reclaim command #6049

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

Garanas
Copy link
Member

@Garanas Garanas commented Apr 4, 2024

Description of the proposed changes

Introduces an area-like reclaim command as a side effect to the standard reclaim command. Future iterations will allow the user to tweak (or disable) the behavior. The implementation is similar to an actual area reclaim command in BAR: the implementation attempts to add additional reclaim commands to props and/or structures that are similar to the entity that received the original reclaim command.

The behavior is at the moment:

  • For units, all adjacent units of the same type
  • For tree (groups), all other tree groups in a very small radius that overlap
  • For rocks and wrecks, all other rocks and wrecks in a decent radius that overlap
adjacent-reclaim-05.mp4

Testing done on the proposed changes

Click around and issue reclaim orders.

Additional context

This is experimental.

Checklist

  • Changes are annotated, including comments where useful

@Garanas Garanas added the area: sim Area that is affected by the Simulation of the Game label Apr 4, 2024
@Garanas Garanas merged commit c635c94 into deploy/fafdevelop Apr 4, 2024
3 checks passed
@Garanas Garanas deleted the feature/area-reclaim-command branch April 4, 2024 15:44
@lL1l1 lL1l1 added the feature: area commands related to area attack/reclaim or other broad-effect commands label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: sim Area that is affected by the Simulation of the Game feature: area commands related to area attack/reclaim or other broad-effect commands
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants