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

impr(nei): simpler check for unspecified power #1232

Closed
wants to merge 1 commit into from

Conversation

leagris
Copy link
Contributor

@leagris leagris commented Aug 9, 2022

Better check for unspecified power

@leagris leagris added enhancement Improve an existing mechanic. Please explain the change with a before/after comparison. refactor For PRs rewritting a part of the code to have a nicer code overall. labels Aug 9, 2022
@leagris leagris requested a review from a team August 9, 2022 07:50
Copy link
Member

@miozune miozune left a comment

Choose a reason for hiding this comment

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

I agree current implementations are ugly, I want to rework them after RecipeBuilder is done, along with RecipeProperty.

@@ -370,13 +370,13 @@ private void drawDescription(GT_Recipe recipe) {
mPower.computePowerUsageAndDuration(recipe.mEUt, recipe.mDuration);

int lineCounter = 0;
if (mPower.getEuPerTick() > 0) {
if (!(mPower instanceof UnspecifiedEUPower) && mPower.getEuPerTick() > 0) {
Copy link
Member

Choose a reason for hiding this comment

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

This completely cut off info for some recipes
2022-08-09_17 14 09

@leagris
Copy link
Contributor Author

leagris commented Aug 9, 2022

I agree that the whole class need a good refactor. Closing this PR as it does not address the extend of the refactor need.

@leagris leagris closed this Aug 9, 2022
@leagris leagris deleted the neiPowerCheck branch August 9, 2022 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve an existing mechanic. Please explain the change with a before/after comparison. refactor For PRs rewritting 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