You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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.
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.
"""
The text was updated successfully, but these errors were encountered: