scorzy / IdleAnt2

IdleAnt 2
https://scorzy.github.io/IdleAnt2/
MIT License
41 stars 15 forks source link

Issue with auto-buyers #35

Open DatrixTHLK opened 5 years ago

DatrixTHLK commented 5 years ago

Hi again @Scorzy and @AndrewTru

I like the auto-buyers, but the problem I keep finding is that they stop working after a certain point or after warping as it's mentioned in the game. I'm not familiar with what formula causes that, but it should still work after warping. Also, it stops working after going to a new world and you'll have to buy the auto-buyers again. The auto-buyers also buy the first of any unit for free without using any materials which I feel is odd. This could be moot or non-critical since I can live without it, but I thought I'd make you aware of it.

AndrewTru commented 5 years ago

That's a good point. the auto-buyers are a new system the game is trying out. it was in the first IA1 but under another name.

the part about the buyers are that the state switch that runs them is not saved from world to world. or run to run. the buyers may have some code that is not working as intended. so maybe it means to run the math as if you the user hit the buy button, but the code fails to do so.

thank you for the info, Scorzy will take a look when able.

DatrixTHLK commented 5 years ago

Your welcome and thanks for the response!