Ephenia / Pokeclicker-Scripts

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

Pokerus mode does not work properly. #304

Closed StanleyAlbayeros closed 11 months ago

StanleyAlbayeros commented 1 year ago

Pokerus mode seems to only do the following:

Since the types have to be the same between the spreader and the target, this almost never works and it would take ages to spread this way. I propose the following solutions, maybe i'll get to fixing myself sometime next week:

Ephenia commented 1 year ago

Yeah, it's outdated since it's a long time since I had wrote it at the time when PKRS worked differently.

Someone will need to update all of it and make it better again.

StanleyAlbayeros commented 1 year ago

@Ephenia ty for the reply!

As usual work piles up so I haven't been able to get to this. Mind sharing how to setup the dev environment so I can jump right in when I get the time? :) I'm more of a traditional tech stack dev (FW, Hardware, low level) so not too familiar with web stuff

elrandira commented 1 year ago

if you play in browser using TemperMonkey it is quite easy. You just need to open a copy of the script you want to modify in your favorite text GUI (notepad++...). You modify the script according to your needs.

For testing, you click on TemperMonkey icon > select the script > edit and paste your code in the new window. image

you can then refresh your pokeclicker tab to start testing and use the console tab of the dev tool to debug (Ctrl + Shift + I on firefox)

elrandira commented 1 year ago

additionally, if you open the console on your pokeclicker page, you can start digging into the property. For example, App.game.party.caughtPokemon returns an array of your captured pokemons you can then reach further to find their pokerus status: image

This is equivalent of App.game.party.caughtPokemon[0].pokerus