mouseas / steamSummerMinigame

Steam Summer Sale 2015 - Auto-play Optimizer
MIT License
136 stars 189 forks source link

Added wormholes + error handler #109

Closed sktan closed 8 years ago

sktan commented 9 years ago

Added method to use wormholes every 500 levels (after 11 minutes past game start) Also added error-handlers that are crashing the script so it continues running even if the script bugs out.

Also added new helper methods:

JCKE commented 9 years ago

Why does the game level have to be a multiple of 500?

sktan commented 9 years ago

@JCKE The most currently used script (wchill) is set at 500 from what I've read, and it's better to sync the wormholes rather than using it anytime whenever. (And the ability gains most at intervals of 100).

And the current level-gain rate is far to quick so intervals of 100 might be hard to catch (and with the 1 minute cooldown you'll go through 300 or so levels pretty quickly anyways.

sktan commented 9 years ago

Oh, and in the off-chance the script fires a bit late and the level increases by 1 then we'll need to wait another 199 levels before we can run the wormhole item again to maximise use (if I understood correctly)

ArcticZeroo commented 9 years ago

Two things:

  1. Why 11 minutes? I'm currently at 9:30 and we're on level 2500.
  2. You didn't change the console.log to say "Divisible by 100" instead of the current "Divisible by 500" when you changed it.
sktan commented 9 years ago

Sorry, script was written with old patches in mind (where you couldn't activate before 10 mintues) And noticed the log message thanks.

mouseas commented 9 years ago

I've added the error handling separately so users can benefit from it while the wormholes code is evaluated. @sktan In future, please send separate pull requests for unrelated changes.