I created a buy order for energy since my colony had little energy and overmind decided to sell energy to itself.
The problem is somewhere around here
let energyThreshold = Energetics.settings.terminal.energy.outThreshold;
if (terminalNearCapacity) { // if you're close to full, be more agressive with selling energy
energyThreshold = Energetics.settings.terminal.energy.equilibrium;
}
if (terminal.store[RESOURCE_ENERGY] > 200000) {
if (terminalNearCapacity) { // just get rid of stuff at high capacities
let response = Overmind.tradeNetwork.sellDirectly(terminal, RESOURCE_ENERGY, 10000, true);
if (response == OK)
return;
}
else if (energyOrders.length < 0) {
let response = Overmind.tradeNetwork.sell(terminal, RESOURCE_ENERGY, 50000);
if (response == OK)
return;
}
}
Steps to reproduce:
Create buy order for energy when you have some energy in the terminal.
Issue summary
Overmind is selling energy to itself.
Description of issue:
I created a buy order for energy since my colony had little energy and overmind decided to sell energy to itself.
The problem is somewhere around here
Steps to reproduce:
Create buy order for energy when you have some energy in the terminal.
Suggested fix (optional):
add something that checks if the order is yours.
Other information: