Skip to content

Commit

Permalink
better log info
Browse files Browse the repository at this point in the history
  • Loading branch information
suddjian committed Oct 21, 2023
1 parent 4f40c7d commit 0d97813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cookieclickermanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ function adjustStockPortfolio() {
var analysis = analyzeStockMarket();
var { toBuy, toSell } = analysis;
toBuy.forEach(good => {
var $ = Math.round(good.val * good.stock);
var $ = Beautify(good.val * good.stock);
var cookies = Beautify(Game.cookiesPsRawHighest * good.val * good.stock);
console.log(`%cCookie manager: buying ${good.symbol} at ${good.val} for $${$} (${cookies} 🍪)`, "color:sienna");
clickOn(document.getElementById(good.l.id + "_Max"));
});
toSell.forEach(good => {
var $ = Math.round(good.val * good.stock);
var $ = Beautify(good.val * good.stock);
var cookies = Beautify(Game.cookiesPsRawHighest * good.val * good.stock);
console.log(`%cCookie manager: selling ${good.symbol} at ${Beautify(good.val, 2)} for $${$} (${cookies} 🍪)`, "color:green");
clickOn(document.getElementById(good.l.id + "_-All"));
Expand Down

0 comments on commit 0d97813

Please sign in to comment.