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
feat: grid water wheels #4571
base: main
Are you sure you want to change the base?
feat: grid water wheels #4571
Conversation
About the steady consumption of the wind turbine. I choose those high time numbers because the game would start to lag on weaker machines. Not sure if the discussion was on GitHub or discord, but I think either olanti or chulu pointed it out. It was kheir |
Co-authored-by: Viss Valdyr <33199510+Lamandus@users.noreply.github.com>
Ah, weird. I should note that those power numbers were still inaccurate relative to the output of vehicle wind turbines, but I could put them back to a slow-but-corrected value if desired I guess? |
that would be nice, yes. I think we should check all grid appliances if they follow that rule. They should. |
Co-authored-by: Viss Valdyr <33199510+Lamandus@users.noreply.github.com>
Purpose of change
This follows up on #4448 by starting work on a basic implementation of grid water wheels. As with plutonium generators and wind turbines, right now they use the hacky method of "steady consumer that uses negative power drain" and construction restrictions like turbines, but in the future I want to follow up on both these items by implementing some proper checks for terrain conditions to make them work more like solar panels.
Describe the solution
epower
rates, close as I can get them. Consumer grid furniture deals in kJ while vehicle power and grid solar panels deal in watts, so they're set to generate 1 kJ in however many seconds would be a reasonable fit for their vehicle version's wattage (rounded up). Bigger version also is now a bit harder to smack down than normal ones, and both get ballistic data and coverage values.CURRENT
flag.I could've sworn you were able to fill in water channels as if it was a pit, but evidently you can't so the exploit in the code I was gonna close is no longer a problem it seems.
Describe alternatives you've considered
Screaming at C++ and fixing the hackery now instead of later.
Testing
Checked affected files for syntax and lint errors. Testing to continue once I tackle the C++ stuff.
Additional context
Checklist