From 95abea392092c64d9ce726fccb3242931232426e Mon Sep 17 00:00:00 2001 From: Thaloria Date: Mon, 17 Jul 2023 20:33:14 +0200 Subject: [PATCH] added first draft new pickaxe try --- pickaxe.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pickaxe.py b/pickaxe.py index 6bb68ac..6150639 100644 --- a/pickaxe.py +++ b/pickaxe.py @@ -171,24 +171,26 @@ class Pickaxe_Field(GameBase): else: points = points - 10000 - if np.unique(shift_dir)[-2] is not None: + try: second_higest = np.unique(shift_dir)[-2] if shift_dir[1][3] == second_higest: points = points + 300 - if np.unique(shift_dir)[-3] is not None: + if shift_dir[2][3] is not 0: if shift_dir[2][3] == np.unique(shift_dir)[-3]: #third_higest = np.unique(shift_dir)[-3] #if shift_dir[2][3] == third_higest: points = points + 300 - if np.unique(shift_dir)[-4] is not None: + if shift_dir[3][3] is not 0: if shift_dir[3][3] == np.unique(shift_dir)[-4]: #fourth_higest = np.unique(shift_dir)[-4] #if shift_dir[3][3] == fourth_higest: points = points + 300 + except: + pass if shift_dir[1][3] == highest - 1: points = points + 100