screeps/proc.sales.js
2017-07-13 23:24:42 -05:00

14 lines
414 B
JavaScript

/*
Create order for energy and set price, store order id in room
if terminal has more than X in it, extend the sell order
if energy cost is below X buy it, and resell it at higher price
Game.market.createOrder(ORDER_SELL,RESOURCE_ENERGY,PRICE,AMOUNT,ROOM)
Game.market.createOrder(ORDER_SELL,RESOURCE_ENERGY,.03,10000,'W53N52')
Game.market.extendOrder('5953e604f605574924e58ec0',10000)
*/
module.exports = {
};