From afe2b2efcf8ffe8af4a2d4735f90b62f5906e788 Mon Sep 17 00:00:00 2001 From: azacha <41060252+azacha@users.noreply.github.com> Date: Sun, 20 Dec 2020 17:10:12 +0100 Subject: [PATCH] Update combat.py color_bk is a float, but used for indexing. So to work it has to be converted to int Traceback (most recent call last): File "combat.py", line 145, in background(screen, 0, WINDOWHEIGHT, colors_hex[color_bk]) TypeError: list indices must be integers or slices, not float --- combat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/combat.py b/combat.py index d6d42c7..7f6b2fa 100644 --- a/combat.py +++ b/combat.py @@ -61,7 +61,7 @@ color_p0 = 68/2 #68 //33 color_p1 = 130/2 #130 // 65 color_pf = 60/2 #60 // 22 -color_bk = 234/2 #234 // 11 +color_bk = int(234/2) #234 // 11