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 Pipe Swapping functionality #3836

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

mak8427
Copy link
Contributor

@mak8427 mak8427 commented Jan 20, 2025

Add the same functionality discussed here but for pipes : #3826
-Feature: Swap different pipes with ctrl+rightclick

@Dream-Master Dream-Master requested a review from a team January 21, 2025 15:59
@Dream-Master Dream-Master added the 🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta label Jan 21, 2025
@Dream-Master Dream-Master added the enhancement Improve an existing mechanic. Please explain the change with a before/after comparison. label Jan 22, 2025
@Dream-Master Dream-Master requested review from Lyfts and a team January 25, 2025 21:30
Copy link
Member

@serenibyss serenibyss left a comment

Choose a reason for hiding this comment

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

Other note: When swapping a pipe, all stored fluid is lost. I think it should at least transfer what it "can" fit, if not some other more creative solution to prevent voiding fluid accidentally

if (message.length() > 0) {
GTUtility.sendChatToPlayer(
aPlayer,
StatCollector.translateToLocal("GT5U.item.pipe.swap") + message.toString());
Copy link
Member

@serenibyss serenibyss Jan 25, 2025

Choose a reason for hiding this comment

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

Suggested change
StatCollector.translateToLocal("GT5U.item.pipe.swap") + message.toString());
StatCollector.translateToLocal("GT5U.item.pipe.swap") + " " + message.toString());

Comment on lines +495 to +496
// Preserve connections
newPipe.mConnections = oldConnections;
Copy link
Member

Choose a reason for hiding this comment

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

We also need to transfer over mDisableInput here so that the directional flow settings are preserved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta enhancement Improve an existing mechanic. Please explain the change with a before/after comparison.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants