Skip to content

feat: Add config option for turbine power generation multiplier#364

Open
vgeary96 wants to merge 4 commits into
railcraft-reborn:1.20.xfrom
vgeary96:1.20.x-steam-turbine-config
Open

feat: Add config option for turbine power generation multiplier#364
vgeary96 wants to merge 4 commits into
railcraft-reborn:1.20.xfrom
vgeary96:1.20.x-steam-turbine-config

Conversation

@vgeary96

Copy link
Copy Markdown

Directly copied from #322

The Issue
#201

The Proposal
This adds a config option in railcraft-server.toml that allows users to modify the amount of RF a steam turbine generates

Possible Side Effects
I had to change the SteamTurbineBlock::getChargeSpecs method to construct a new object to allow for the config option to affect the RF the turbine outputs as well as generates; additionally, this adds a call to query the config each tick in the SteamTurbineBlockEntity class. The config is already being queried each tick in other spots, like in the steam boiler classes, so I decided it was a negligible side effect. This is an avenue of optimization in the future, if necessary.

Alternatives
Just boosting the turbine power generation across the board is both less configurable and could ruin the balance of other energy consumers in the mod.

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.

1 participant