Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.029] Chocholate Egg & Stock Market integration #305

Closed
Kallinteris-Andreas opened this issue Aug 24, 2020 · 2 comments · Fixed by #345
Closed

[2.029] Chocholate Egg & Stock Market integration #305

Kallinteris-Andreas opened this issue Aug 24, 2020 · 2 comments · Fixed by #345

Comments

@Kallinteris-Andreas
Copy link

Current Behaviour: When Caclulating the Chocholate egg Bonus it caclulates based on current cookies balance + cookies obtained from sell all buildings

Wanted Behaviour:When Caclulating the Chocholate egg Bonus it caclulates based on current cookies balance + cookies obtained from sell all buildings + dumping all owned stock market stocks

@Kallinteris-Andreas
Copy link
Author

Kallinteris-Andreas commented Aug 24, 2020

sorry i dont know javascript but this should work

// Get Total Worth of all owned Stocks in cookies
// Author: @Kallinteris-Andreas
GetStockNetWorth(){
     var dollarsInStockMarket =0;
     for (var i=0;i<Game.ObjectsById[5].minigame.goodsById.length;i++){
          dollarsInStockMarket += Game.ObjectsById[5].minigame.getGoodPrice(Game.ObjectsById[5].minigame.goodsById[i])
     }
     Return dollarsInStockMarket*Game.cookiesPsRawHighest; 
}

@Aktanusa
Copy link
Collaborator

Thanks for the heads up. I am planning on making time to do some fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants