Skip to content

Set Target: remove crashing, dead, object, critter, and fake units#7935

Draft
efrec wants to merge 3 commits into
beyond-all-reason:masterfrom
efrec:set-target/clear-crashing-aircraft
Draft

Set Target: remove crashing, dead, object, critter, and fake units#7935
efrec wants to merge 3 commits into
beyond-all-reason:masterfrom
efrec:set-target/clear-crashing-aircraft

Conversation

@efrec

@efrec efrec commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Work done

Removes units from targeting that have become non-interactive: dead or dying, crashing, objects, critters, and fake/paired units (Printer, Fortifier).

Some units are not selectable but are still part of gameplay interaction: drones, some dead/dying units, in-progress unit upgrades.

Drafted until I can test and probably until I can be bothered to handle the NoSelect shims/utils as more distinct cases. I don't think we need a mini-api for this but it would at least make explicit what we have implicitly lying around in code.

efrec added 2 commits June 11, 2026 11:42
This is slightly hack but is reliable at the moment. UnitNoSelect is our most general term for "this unit is not part of gameplay" so it works here.

We also fix the unit alwaysSeen check and add a guard/reset around it.
@github-actions

github-actions Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Integration Test Results

16 tests  ±0   8 ✅ ±0   4s ⏱️ -1s
 1 suites ±0   8 💤 ±0 
 1 files   ±0   0 ❌ ±0 

Results for commit 712b7b2. ± Comparison against base commit 4a562e1.

♻️ This comment has been updated with latest results.

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.

2 participants