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

Live power system: fixed bugs and it is should be ready to use #949

Merged
merged 2 commits into from
Aug 27, 2016
Merged

Live power system: fixed bugs and it is should be ready to use #949

merged 2 commits into from
Aug 27, 2016

Conversation

Grenkin1988
Copy link
Contributor

Next step would be use this system.
Add to World and Furniture

.Sum(connection =>
connection.AccumulatedPower - connection.OutputRate < 0.0f ?
connection.AccumulatedPower :
connection.OutputRate) < 0)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ive been staring at those four lines for a while now (144-147), something needs to happen but Im not sure what. The expression is very complicated. Could we indent 144 with one tab and 145, 146, 147 with two tabs? Or, consider breaking out the logic into methods so that you just do .Sum(MyMethod);.

@alexanderfast
Copy link
Collaborator

Nice! :)

@alexanderfast alexanderfast merged commit 317abd8 into TeamPorcupine:master Aug 27, 2016
@Grenkin1988 Grenkin1988 deleted the power-system branch August 27, 2016 13:32
f-montanari pushed a commit to f-montanari/ProjectPorcupine that referenced this pull request Sep 2, 2016
…orcupine#949)

* Live power system: fixed bugs and it is should be ready to use

* Made code more readable
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.

2 participants