Skip to content

fix(recipe): 培养室恒星光子配方按档位取 EUt - #161

Open
mmyddd wants to merge 1 commit into
devfrom
fix/142-stellar-energy-eut
Open

mmyddd wants to merge 1 commit into
devfrom
fix/142-stellar-energy-eut

Conversation

@mmyddd

@mmyddd mmyddd commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Closes #142

问题

data/recipe/EUCellRecipes.java:303-312 的九档恒星光子培养配方写成 .EUt(1920 * LV),
而 LV 是 GTValues 的档位下标(值为 1),不是电压表,所以 LV~UHV 九档的功率全部等于 1920 EU/t。

输入电路等级随 tier 升档、输出区间也随 144 * (tier + 1) 放大,只有 EUt 与 duration 保持不变,
等于越高级越划算。

修改

  • .EUt(1920 * LV) → .EUt(VA[tier]),与同文件 DIFFERENTIAL_CENTRIFUGE_RECIPES 一档配方
    用的 .EUt(VA[EV])(同文件 :301)保持同一套写法。
  • duration 保持 2000t 不变,本次只修 issue 指出的功率恒定问题。

验证

:modules:CTNH-Core:compileJava 与 :modules:CTNH-Core:spotlessCheck --offline 通过。
全仓库再 grep 1920 * LV / * LV) 已无同类写法(其它 .EUt(1920) 都是单条固定 EV 档配方,不属于该问题)。
GT 配方是运行时动态包数据,仓库内不产出 JSON,未做游戏内实测。

.outputFluidsRanged(new FluidStack(STELLAR_ENERGY.getFluid(), 100),
UniformInt.of(144, 144 * (tier + 1)))
.EUt(1920 * LV)
// LV 是档位下标(值为 1),不是电压表;写成 1920 * LV 会让九档功率恒等于 EV 的 1920 EU/t

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

不要写这些废话

- stellar_energy 系列配方原本写 .EUt(1920 * LV),LV 是档位下标(值为 1),九档因此恒为 1920 EU/t
- 输入电路与输出区间都随 tier 升档,只有功率不变,导致高档位纯赚,改为 .EUt(VA[tier])
@mmyddd
mmyddd force-pushed the fix/142-stellar-energy-eut branch from 31a112c to 7b7fb47 Compare October 17, 2026 10:13
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.

循环里 EUt 写成常量,九档配方功率完全相同

2 participants