From f27089f05b1c104c585c504890893225f776ecb8 Mon Sep 17 00:00:00 2001
From: Pazdikan <pazdikan@gmail.com>
Date: Mon, 16 Sep 2024 14:08:27 +0200
Subject: [PATCH] Add killer table to readme

---
 README.md | 10 +++++++++-
 run.py    | 17 +++++++++++------
 2 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md
index 178e092..9258edb 100644
--- a/README.md
+++ b/README.md
@@ -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)
\ No newline at end of file
+- [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.
diff --git a/run.py b/run.py
index 5e8e9f5..2accd94 100644
--- a/run.py
+++ b/run.py
@@ -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..."))
@@ -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)