Cytopia icon indicating copy to clipboard operation
Cytopia copied to clipboard

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

Open iaGuoZhi opened this issue 2 years ago • 0 comments

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 https://github.com/CytopiaTeam/Cytopia/issues/879#issuecomment-1135804020

iaGuoZhi avatar May 27 '22 03:05 iaGuoZhi