5 Commits

Author SHA1 Message Date
Valentin Anger
ace37afacf Distribute energy according to node types 2017-08-30 14:42:26 +02:00
kamirama
ad3c8fca41 modified blocks for new energy system 2017-08-20 17:07:58 +02:00
kamirama
90239eb6b4 started energy rewrite as networks 2017-08-20 01:45:36 +02:00
kamirama
816eafe311 enabled digging of debug nodes with sparkwrench 2017-02-16 22:37:22 +01:00
Valentin Anger
895d503270 Finish rewrite of the new energy system - Closes #14
Changes:
- A connection between two nodes get updated once per cycle
- Nodes have a type specified in sparktech_energy_conductor as follows
1 for a transfer node like cables
2 for a producer like solarpanels
3 for a storage like capacitors
4 for a consumer like electric furnaces
- Nodes of type 2 balance between each other and push to all other nodes
- Nodes of type 1 and 3 balance between each other
- Nodes of type 4 pull from all other nodes that are not of type 4
- When balancing, the relative charge of a node is concidered
2017-01-04 16:30:52 +01:00