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

Jump+up+up classes are unable to adjust the step function #181

Open
Jonas5623 opened this issue Mar 26, 2023 · 2 comments
Open

Jump+up+up classes are unable to adjust the step function #181

Jonas5623 opened this issue Mar 26, 2023 · 2 comments

Comments

@Jonas5623
Copy link

Many classes have an up-jump (high-jump in y direction) with key-order: double or tirple jump while self-direction is up. But classes like demon avenger has other up-jump type with key-order: jump-up-up which is not allowed in the step function(since the arrow keys are controlled by auto maple):
def step(direction, target):
"""
Performs one movement step in the given DIRECTION towards TARGET.
Should not press any arrow keys, as those are handled by Auto Maple.
"""

num_presses = 2
if direction == 'up' or direction == 'down':
    num_presses = 1
if config.stage_fright and direction != 'up' and utils.bernoulli(0.75):
    time.sleep(utils.rand_float(0.1, 0.3))
d_y = target[1] - config.player_pos[1]
if abs(d_y) > settings.move_tolerance * 1.5:
    if direction == 'down':
        press(Key.JUMP, 3)
    elif direction == 'up':
        press(Key.JUMP, 1)
press(Key.FLASH_JUMP, num_presses)
@KeiZc
Copy link

KeiZc commented May 29, 2023

Hi Jonas, have you found a way to resolve the DA/DS jump?

@LiliaTheSuccubus
Copy link

I would assume you can add an exemption into the main bot code to handle Demons, or explicitly perform the arrow keypresses in the Demon commandbook. I would just set the Demon wings to auto flash jump and use Rope Lift to maneuver verticality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants