Skip to content

Conversation

@Goober5000
Copy link
Contributor

@Goober5000 Goober5000 commented Nov 29, 2025

The $Scannable field in objecttypes.tbl controls whether a ship can be targeted by the "target unscanned ship" key. This is independent of which ship types can actually be scanned, which is not connected to any field in objecttypes.tbl.

So, this PR renames the $Scannable field to $Targetable as unscanned: to be clearer about what it actually does, and it adds the missing counterpart $Scannable by default: flag to specify which ship types can actually be scanned.

Note that this is only relevant for legacy scanning behavior. Mods which use $Unify scanning behavior: do not need either of the ship type flags.

Tested and works as expected. Depends on #7130; in draft until that is merged.

@Goober5000 Goober5000 added enhancement A new feature or upgrade of an existing feature to add additional functionality. fix A fix for bugs, not-a-bugs, and/or regressions. Requested by Active Mod A feature request that has been requested by a mod that is actively in development. labels Nov 29, 2025
@Goober5000 Goober5000 force-pushed the fix_scannable_ship_types branch from e65ad85 to f775606 Compare November 29, 2025 06:38
@Goober5000 Goober5000 changed the title fix scannable ship types enhance and clean up scannable ship types Nov 29, 2025
@Goober5000 Goober5000 marked this pull request as draft November 29, 2025 06:41
@Goober5000 Goober5000 added Waiting for Stable Marks a pull request that is to be merged after the next stable release, due to a release cycle and removed fix A fix for bugs, not-a-bugs, and/or regressions. labels Nov 29, 2025
@Goober5000 Goober5000 force-pushed the fix_scannable_ship_types branch from f775606 to 8077da4 Compare November 29, 2025 18:48
@Goober5000 Goober5000 marked this pull request as ready for review November 29, 2025 18:48
The `$Scannable` field in objecttypes.tbl controls whether a ship can be targeted by the "target unscanned ship" key.  This is independent of which ship types can actually be *scanned*, which is not connected to any field in objecttypes.tbl.

So, this PR renames the `$Scannable` field to `$Targetable as unscanned:` to be clearer about what it actually does, and it adds the missing counterpart `$Scannable by default:` flag to specify which ship types can actually be scanned.

Note that this is only relevant for legacy scanning behavior.  Mods which use `$Unify scanning behavior:` do not need either of the ship type flags.
@Goober5000 Goober5000 force-pushed the fix_scannable_ship_types branch from 8077da4 to 32c07ef Compare November 29, 2025 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement A new feature or upgrade of an existing feature to add additional functionality. Requested by Active Mod A feature request that has been requested by a mod that is actively in development. Waiting for Stable Marks a pull request that is to be merged after the next stable release, due to a release cycle

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant