Skip to content

Commit

Permalink
Add killer table to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Pazdikan committed Sep 16, 2024
1 parent 98ec39c commit f27089f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,12 @@ python run.py
- [X] Attacking
- [X] Random Movement
- [X] Total games and total XP counts
- [ ] Different behaviour for different killers (eg. trapper = setting traps; dracula = shapeshifting) (for bloodpoints)
- [X] Different behaviour for different killers (for bloodpoints)


| Killer | Actions* |
|--------|----------|
| The Trapper | - Placing and picking up traps<br> |


* All killers walk forward-backward and attack.
17 changes: 11 additions & 6 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,16 @@ def attack():
pyautogui.press("space")
time.sleep(10)

def print_stats():
console.print("\n\n")
console.log(Text(f" Game Time: ~{time_in_game / 60} minutes ", style="black on aqua"))
console.log(Text(f" XP Earned: {xp} ({xp / games} average) ", style="black on yellow"))
console.log(Text(f" Games Played: {games} ", style="black on green"))
console.log(Text(f" Running Time: {str(datetime.timedelta(seconds=int(time.time() - script_start_time)))} ({str(datetime.timedelta(seconds=int(total_time_in_game)))} in games; {str(datetime.timedelta(seconds=int((time.time() - script_start_time) - total_time_in_game)))} in lobby)"))
console.print("\n\n")

console = Console()

console.set_window_title("DBD Auto AFK by Pazdikan")
console.clear()
console.log(Text("Initializing..."))
Expand Down Expand Up @@ -152,12 +160,9 @@ def attack():

games += 1
total_time_in_game += time_in_game
console.print("\n\n")
console.log(Text(f" Game Time: ~{time_in_game / 60} minutes ", style="black on aqua"))
console.log(Text(f" XP Earned: {xp} ({xp / games} average) ", style="black on yellow"))
console.log(Text(f" Games Played: {games} ", style="black on green"))
console.log(Text(f" Running Time: {str(datetime.timedelta(seconds=int(time.time() - script_start_time)))} ({str(datetime.timedelta(seconds=int(total_time_in_game)))} in games; {str(datetime.timedelta(seconds=int((time.time() - script_start_time) - total_time_in_game)))} in lobby)"))
console.print("\n\n")

print_stats()

console.log("Setting state to INLOBBY")
console.log("Waiting 30 seconds")
time.sleep(30)
Expand Down

0 comments on commit f27089f

Please sign in to comment.