Skip to content

refactor: Hydraulic Fracker UI and Efficiency Rework#122

Open
LoseUFaith wants to merge 6 commits into
mainfrom
fs/hydraulic-fracker
Open

refactor: Hydraulic Fracker UI and Efficiency Rework#122
LoseUFaith wants to merge 6 commits into
mainfrom
fs/hydraulic-fracker

Conversation

@LoseUFaith

Copy link
Copy Markdown
Contributor

Reworked Hydraulic Fractor, with new UI display and add ability to consume up to 20x of it's original working voltage to boost the replenish progress.
image

image

@LoseUFaith LoseUFaith requested a review from MagicSweepy July 6, 2026 03:50
@LoseUFaith LoseUFaith added the type: refactor [Issue & PR] Changes or Plans for rewriting a part of the code to have a nicer code overall. label Jul 6, 2026
@MagicSweepy MagicSweepy changed the title refactor: hydraulic fracker rework refactor: Hydraulic Fracker UI and Efficiency Rework Jul 6, 2026
@@ -242,15 +265,21 @@ class MultiblockHydraulicFracker(id: ResourceLocation, private val tier: Int)
}

private fun replenishVein(simulate: Boolean): Boolean

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Short cut this method by Kotlin default parameter, just like replenishVein(simulate: Boolean, multiplier: Int = 1).


guiSyncManager.syncValue("veinRemaining", veinValue)

templateBars.add { bar -> bar

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe we can use it instead of specific lambda name?

gtlitecore.machine.hydraulic_fracker.tooltip.2=§e能量消耗:§f%s EU/t
gtlitecore.machine.hydraulic_fracker.tooltip.2=提供至多§f%s倍§7的基础能量输入来提高压裂压力
gtlitecore.machine.hydraulic_fracker.tooltip.3=§e基础能量消耗:§f%s EU/t
gtlitecore.machine.hydraulic_fracker.tooltip.4=输入每增加§f%s EU/t§7,效率都将提升§f100%%§7

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

"效率都将..." -> "效率就..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: refactor [Issue & PR] Changes or Plans for rewriting a part of the code to have a nicer code overall.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants