Ephenia / Pokeclicker-Scripts

Various scripts & enhancements for the game Pokéclicker.
https://github.com/Ephenia/Pokeclicker-Scripts
GNU General Public License v3.0
195 stars 261 forks source link

New Auto Dungeon mode + misc fixes #352

Closed umbralOptimatum closed 9 months ago

umbralOptimatum commented 10 months ago
elrandira commented 10 months ago

I tried parts of your script and when I activate chest mode, my character stay stuck in the bottom left corner a dungeon.

Here's what I did (on my new computer so fresh install):

image

as soon as I deactivate the chest mod, the character goes back on its cleaning route.

here's the console log: image

line 663 of enhancedautoclicker.user.js

elrandira commented 10 months ago

I have some graphical issues a well: image

all these issues seem related to the enhanced auto clicker script as they disappear as soon as I downgraded to the legacy version

umbralOptimatum commented 10 months ago

Thanks for the testing! Pathfinding issue is definitely fixed, I'm a bit embarrassed that one slipped past me. I think the graphical issues came from a limitation of userscript extensions, which is now working on my computer, but you should check it's no longer showing up for you either.

elrandira commented 10 months ago

script is not loading anymore :p

image

unsafeWindow is not defined I think

image

umbralOptimatum commented 10 months ago

unsafeWindow is built into the -monkey userscript extensions, but turns out specifically Tampermonkey on Chrome requires setting an additional permission that's helpfully not mentioned in that part of the documentation. Should be properly fixed now.

elrandira commented 10 months ago

I can know load the script and the chest mode is working.

but I have another issue.. the selection of the chest doesn't work: image

I think Object.keys(baseLootTierChance).keys().includes(val)) should be replaced by Object.keys(baseLootTierChance).includes(val))

umbralOptimatum commented 10 months ago

Fixed. The second .keys() is correct, it returns the actual numeric indices, but the step that gets those in usable form (array rather than array iterator) got lost somewhere in the update process.

elrandira commented 10 months ago

works like a charm. thanks for the PR.

umbralOptimatum commented 10 months ago

Also now with Auto Safari working in the new safaris.

umbralOptimatum commented 10 months ago

In the Bug Catching Contest, Auto Safari now by default prioritizes encounters (i.e. grass/water) with the best average Contest Token reward for your unlocked regions.

umbralOptimatum commented 9 months ago

And that's enough votes!

Ephenia commented 9 months ago

Approved, apologies for the delay.

lnlyssg commented 9 months ago

Seems like there are issues with the Safari script as per #364