-
Notifications
You must be signed in to change notification settings - Fork 707
Automatic train stations #1353
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
Automatic train stations #1353
Conversation
WalkthroughThis update removes support for creating train stations and the "train" unit type from both the user interface and core game logic. All related schemas, events, and UI options for trains and station creation are deleted. Factory integration is updated, and train-specific logic is simplified or removed throughout the codebase. Changes
Sequence Diagram(s)sequenceDiagram
participant Player
participant UI
participant GameServer
participant GameCore
Note over Player,UI: Train station creation and train units are no longer available
Player->>UI: Attempt to create train station (option removed)
UI-->>Player: No option available
Player->>GameServer: No "create_station" intent sent
GameServer-->>GameCore: No train station creation processed
Note over GameCore: Factory and city creation logic now handles station setup internally
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
npm error Exit handler never called! 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (2)📓 Common learningstests/core/game/TrainStation.test.ts (2)⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
evanpelle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Description:
Train stations are now built automatically when a factory is constructed.
Changes:
- When a factory is built, nearby structures are connected to the rail network
- When a city is built near a factory, it is connected to the rail network
- All structures behave the same when a train stops: to be defined
- Removed station badge
- Gold income is now related to the structure's level
Please complete the following:
Please put your Discord username so you can be contacted if a bug or regression is found:
IngloriousTom