Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new game mode #171

Merged
merged 10 commits into from
Apr 10, 2023
Merged

Add a new game mode #171

merged 10 commits into from
Apr 10, 2023

Conversation

r0ngk
Copy link
Contributor

@r0ngk r0ngk commented Mar 28, 2023

Generic V2

Navigation through URL

  • [Only] Support navigating to different battles through url
    • Add a more accurate Calibration algorithm to allow precise location of the url bar
    • Add a new Window class to move down some function from Game class

New format of battle script for this mode

  • User can now play multiple different battles in a single run
    • Add a parser for the new script format

Add support to a Second Window

  • User can now have a second window to increase speed of farming, i.e. claiming loot at second window

I test it on 6-dragon-raids and campaign exclusive on middle notch. The change done to originally code base is minimum but at the cost of introduce some duplication. Frontend is not updated but I provide a .bat script to run the bot headlessly

This pull request also contain another pull requset: #170

Original click method has ~0ms duration and 200cps, patch it to match a normal human capability
Patch a inhuman click behaviour
Implement a entire new game mode, together with many base functions and methods that support the feature
@steve1316 steve1316 self-requested a review April 3, 2023 05:59
@steve1316 steve1316 self-assigned this Apr 3, 2023
@steve1316 steve1316 added enhancement New feature or request documentation Improvements or additions to documentation labels Apr 3, 2023
src-tauri/backend/utils/image_utils_v2.py Outdated Show resolved Hide resolved
src-tauri/backend/bot/combat_mode_v2.py Outdated Show resolved Hide resolved
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can update the frontend to provide the options needed to customize Generic V2 after this PR is merged. We can leave the headless scripts in for people who prefer it that way.

…e bugs

bugs:
- miss-alignment of skill and select character
- enablefullauto after using skill does not press the back button
- improve some document
@steve1316 steve1316 merged commit 3c06eec into steve1316:main Apr 10, 2023
@r0ngk r0ngk deleted the features branch April 18, 2023 15:22
@r0ngk r0ngk restored the features branch April 20, 2023 12:41
@r0ngk r0ngk deleted the features branch April 20, 2023 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants