Skip to content

Conversation

@SethDGamre
Copy link
Collaborator

@SethDGamre SethDGamre commented Nov 22, 2025

defaults to excluding antinuke, because I keep seeing the same thread over and over again with reputable players like Chronopolize and Blodir agreeing that you wouldn't want to area-select antinuke with your combat units. See the most recent incarnation: https://discord.com/channels/549281623154229250/1441111177605156986
This adds a settings toggle to do that.

2025-11-22.07-50-44.mp4

@github-actions
Copy link
Contributor

Test Results

14 tests  ±0   7 ✅ ±0   9s ⏱️ ±0s
 1 suites ±0   7 💤 ±0 
 1 files   ±0   0 ❌ ±0 

Results for commit 8ce93e2. ± Comparison against base commit 5afa4b8.

@przystuj
Copy link
Contributor

It's a bit unsettling to me, how many places have to be changed to include such a feature. Maybe there is room for some refactoring?

@PtaQQ PtaQQ added the Approved Approved for implementation by the Game Design Team label Nov 23, 2025
@sprunk
Copy link
Collaborator

sprunk commented Nov 24, 2025

more toggles 🎉

udid = spGetUnitDefID(uid)
if buildingFilter[udid] == false then
if includeBuilders or not builderFilter[udid] then
if (includeBuilders or not builderFilter[udid]) and (includeAntinuke or not antinukeFilter[udid]) then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't even merged and has already set a bad precedent (see #6309), but this would've been fine in isolation so let's let it be.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe instead of checking if this and if this and if this, make a table of all exclusions and have a single key lookup?

Copy link

@GTGalaxi GTGalaxi Nov 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just commented on my PR but will put here too, happy to refactor this if preferred before merging future tech debt 😅

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure! Steal whatever code you need I'll close this one. Marking as draft for now.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have included these in my PR now, thanks @SethDGamre ❤️

@SethDGamre SethDGamre marked this pull request as draft November 25, 2025 13:52
@sprunk
Copy link
Collaborator

sprunk commented Nov 25, 2025

Included into #6309

@sprunk sprunk closed this Nov 25, 2025
GTGalaxi added a commit to GTGalaxi/Beyond-All-Reason that referenced this pull request Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved Approved for implementation by the Game Design Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants