Files
OpenRCT2-Web/distribution/scripting
Ben SpurlockandCursor 0fc88ab16c [Plugin API] Automation helpers for park directors and programmatic ride building (#26675)
* [Plugin API] Add automation helpers for park directors and ride building

Expose ride maintenance metrics, context.gameSpeed, map bulk queries,
riderefurbish action alias, FootpathElement.isAdditionFull, and
TrackSegment.getNextValidSegments. Bump plugin API version to 115.

Includes TrackPieceSelection from markusklock's work (#25840).

Co-authored-by: Cursor <cursoragent@cursor.com>

* Add PR #26675 to distribution/changelog.txt

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix CI: clang-format and changelog ordering

Reorder 0.5.3 changelog entries and apply format-changelog.js output.
Apply clang-format fixes to ScriptEngine.cpp and ScMap.cpp.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix contributor name to Ben Spurlock (BenDaSpur)

Co-authored-by: Cursor <cursoragent@cursor.com>

* Fix changelog EOF for CI check-changelog-formatting

Remove trailing blank line so the file matches formatter output via
echo (bash strips trailing newlines from command substitution).
Also correct contributor name to Ben Spurlock (BenDaSpur).

Co-authored-by: Cursor <cursoragent@cursor.com>

* Remove #25840 TrackPieceSelection overlap from PR #26675

Per maintainer feedback, drop TrackSegment.getNextValidSegments and the
TrackPieceSelection implementation copied from markusklock's open PR #25840
so this change set can be reviewed independently. Those additions will be
picked up when #25840 lands.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Simplify plugin API per maintainer review

Drop the riderefurbish alias and bulk map query APIs in favor of existing
primitives, and consolidate the changelog entry.

* Fix isAdditionFull to only report visibly full / emptiable bins

Per review feedback, a litter bin slot is only "full" (shows the full
sprite and can be emptied by a handyman) once its 2-bit edge slot reaches
0, not whenever the status byte is below 255. Mirror the engine's own
Staff::updatePatrollingFindBin logic and require the addition to be a bin.

* Remove unused includes left over from dropped APIs

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-20 09:16:29 +02:00
..