Skip to content

refactor: share ShipReached's reach with tools - #1218

Merged
vdmkenny merged 1 commit into
mainfrom
refactor/public-reached-reach
Oct 15, 2026
Merged

vdmkenny merged 1 commit into
mainfrom
refactor/public-reached-reach

Conversation

@vdmkenny

Copy link
Copy Markdown
Collaborator

reached_reach, how far ShipReached's watches look, becomes public, so that tools can read it rather than keep a copy.

The editor's map rings each marker a ShipReached trigger watches at this distance, and keeps its own 4000 for now (OpenReliant/openreliant-editor#31). Once a release includes this, the editor reads mission.events.reached_reach and drops its copy.

One local test run had a failure in the platform tests' binary, which passed on every rerun, also with the same seed; this change doesn't touch them.

The editor's map rings each marker a ShipReached trigger watches, at the
distance the game watches within. It kept its own copy of the 4000, since
the engine's constant was private. Making it public lets the editor read it
from OpenReliant, so the two can't drift apart.
@vdmkenny
vdmkenny merged commit 8d44d09 into main Oct 15, 2026
4 checks passed
@vdmkenny
vdmkenny deleted the refactor/public-reached-reach branch October 15, 2026 12:26
vdmkenny added a commit to OpenReliant/openreliant-editor that referenced this pull request Oct 15, 2026
Pins OpenReliant 0.17.0. The profile reads ShipReached's reach from it
(`mission.events.reached_reach`, made public in
OpenReliant/openreliant#1218) and drops its own copy of the 4000.

`make check` passes, and `--check-missions` builds all 44 of the game's
missions from source again as the same missions.
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.

1 participant