Skip to content

Commit

Permalink
Merge pull request #81 from hunterjm/develop
Browse files Browse the repository at this point in the history
v0.2.2
  • Loading branch information
hunterjm authored Feb 4, 2017
2 parents e4e4871 + 65fdeef commit b9eca61
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
16 changes: 12 additions & 4 deletions app/actions/logic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,18 @@ export function bidCycle() {
// Keep a manual record of our watched trades
// let trades = _.keyBy(state.bid.watchlist, 'tradeId');
dispatch(bidActions.setTrades(_.keyBy(state.bid.watchlist, 'tradeId')));
// Loop players

// Loop players for price update
for (const player of Object.values(playerList)) {
// refresh state every player
state = getState();
// Setup API - resets RPM every cycle
const settings = _.merge({}, state.settings, player.settings);
// Update prices every hour if auto update price is enabled
await dispatch(bidActions.updatePrice(player, settings));
}

// Loop players for bidding
for (const player of Object.values(playerList)) {
// refresh state every player
state = getState();
Expand Down Expand Up @@ -57,9 +68,6 @@ export function bidCycle() {
trade => Fut.getBaseId(trade.itemData.resourceId)
)));

// Update prices every hour if auto update price is enabled
await dispatch(bidActions.updatePrice(player, settings));

// Only bid if we don't already have a full trade pile and don't own too many of this player
dispatch(bidActions.setBINStatus(!!state.bid.unassigned.length));
if (
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fifa-autobuyer",
"productName": "FIFA Autobuyer",
"version": "0.2.1",
"version": "0.2.2",
"description": "Autobuyer for FIFA 17 Ultimate Team",
"main": "./main.js",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fifa-autobuyer",
"productName": "FIFA Autobuyer",
"version": "0.2.1",
"version": "0.2.2",
"description": "Autobuyer for FIFA 17 Ultimate Team",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit b9eca61

Please sign in to comment.