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

A shortest-path algorithm for power manager to indicate whether a building is powered or unpowered #962

Open
iaGuoZhi opened this issue May 27, 2022 · 0 comments
Assignees

Comments

@iaGuoZhi
Copy link
Member

when a building has no power or water it is „unhappy“. Residents will move out, property value lowers and eventually it will get abandoned.
But it will stay there (and later display a symbol that it’s unpowered)
Police / hospital / … will stop working
But nothing of that is implemented. Right now, there should only be a bool in mapnode to determine if a node is powered or not
So for now the task would be:
When power consumption > production use the algorithm to determine which buildings are powered and set their entire mapnode to powered or unpowered
If there’s enough power we won’t need to use the algorithm, all are powered

Originally posted by @SimplyLiz in #879 (comment)

@iaGuoZhi iaGuoZhi self-assigned this May 27, 2022
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

No branches or pull requests

1 participant