vherasymenk0 / hamster-kombat-automator

16 stars 9 forks source link

Ignores best upgrade #11

Open niklv opened 2 months ago

niklv commented 2 months ago

When started with some coins This cycle ignores new upgrades after purchase https://github.com/vherasymenk0/hamster-kombat-automator/blob/6cdfaa9714c22c82367fc2a317955315b0999c8e/src/automator/automator.ts#L304

For example: Balance: 2m coins Upgrades:

At first iteration automator will purchase Upgrade A. Cause it has higher PPR. At second iteration it purchase Upgrade B. it ignores that there are possible new level of Upgrade A that still has a higher PPR that Upgrade B and maybe for this card there no CD.