-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Doctor with static blast and shock therapy actions
- Loading branch information
Showing
3 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import pyautogui | ||
from time import sleep, time | ||
from util.console import log | ||
|
||
static_blast_used = None | ||
|
||
def static_blast(): | ||
log("Doctor action: Static Shock") | ||
|
||
global static_blast_used | ||
static_blast_used = time() | ||
|
||
pyautogui.keyDown("ctrlleft") | ||
sleep(3) | ||
pyautogui.keyUp("ctrlleft") | ||
|
||
sleep(3) | ||
|
||
def shock_therapy(): | ||
log("Doctor action: Shock Therapy") | ||
|
||
pyautogui.mouseDown(button="right") | ||
sleep(2) | ||
pyautogui.mouseUp(button="right") | ||
|
||
sleep(3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters