Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refs #749.
Extends the
rulesexample with the missing order lifecycle demonstration:order_pushreadse.orderande.targetfor the player's ship.order_popshows where an order-ending hook runs.The new handlers only print example output. They do not change orders, damage, or gameplay state.
Verification
luau-analyze examples/mods/rules/rules.luaucompleted. It reports the existingImplicitReturnwarning in the damage hook at lines 28 to 32, not in the new order handlers.make check-filespassed.git diff --checkpassed.Gaps
I could not run the example in the game. This checkout has no Zig toolchain or game installation, so the hook output and order flow were not observed in a mission. A maintainer smoke test with an order push and pop in flight remains necessary before merging.
AI assistance disclosure
An automated AI coding agent prepared this change. The API fields were checked against the current scripting reference, and the local checks above were run by the agent.