Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Market chest and Train station teleport #1478

Merged
merged 2 commits into from
Jan 4, 2025

Conversation

RedRafe
Copy link
Contributor

@RedRafe RedRafe commented Jan 2, 2025

Changes:

  1. Added "Teleport to train station" feature: this is a vanilla teleporter that allows players to teleport between train stations as long as they stand nearby a valid train stop and destination is also valid (not ghost) by simply adding a teleport button to vanilla's train stations. Disabled by default.

Screenshot from 2024-12-30 10-52-53

  1. Added "Market chest": market chests can automatically trade items based on their value (in the example, a 2:1 ratio, as per default). To build a market chest, place down a linked chest and it'll be swapped for a buffer chest with the additional GUI.

Screenshot from 2025-01-02 09-47-08

  1. Added new group event to utils/event.lua: on_built, on_destroyed, on_built_tile, & on_mined_tile to bulk register an handler to all built/destroy events

@RedRafe RedRafe changed the title Trainport Add Market chest and Train station teleport Jan 2, 2025
Copy link
Collaborator

@grilledham grilledham left a comment

Choose a reason for hiding this comment

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

Sorry for the late review I somehow missed this. But LGTM.

@grilledham grilledham merged commit 772845f into Refactorio:develop Jan 4, 2025
1 check passed
@RedRafe
Copy link
Contributor Author

RedRafe commented Jan 4, 2025

No worries, nothing urgent :) Ty

@RedRafe RedRafe deleted the trainport branch January 4, 2025 10:59
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.

2 participants