From d18d8fa4af2ea10d4c1d8b9630cc0e0fa66c25fe Mon Sep 17 00:00:00 2001 From: Torwent Date: Tue, 31 Aug 2021 16:38:34 +0200 Subject: [PATCH] added option to have an overrides file --- osr.simba | 4 ++++ osr/interface/minimap.simba | 1 - utils/scriptconfig.simba | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/osr.simba b/osr.simba index 1c0c4e87..62523a10 100644 --- a/osr.simba +++ b/osr.simba @@ -85,3 +85,7 @@ {$ELSE}{$ENDIF} {$ELSE}{$ENDIF} +{$IFHASFILE overrides.simba} + {$I overrides.simba} +{$ENDIF} + diff --git a/osr/interface/minimap.simba b/osr/interface/minimap.simba index 8d67a262..57b5c29a 100644 --- a/osr/interface/minimap.simba +++ b/osr/interface/minimap.simba @@ -222,7 +222,6 @@ begin TPA.Fill; ColorAmount := Length(GetColors(TPA, True)); - Writeln ColorAmount; Result := (ColorAmount > 3) and (ColorAmount < 40); //I'm not sure if 50 is too generous. end; diff --git a/utils/scriptconfig.simba b/utils/scriptconfig.simba index 34f0732a..f787e80e 100644 --- a/utils/scriptconfig.simba +++ b/utils/scriptconfig.simba @@ -2,7 +2,7 @@ {$IFNDEF WL_UTILS} {$I WaspLib/utils.simba} {$ENDIF} -{$IFHASFILE ../credentials.simba}{$I ../credentials.simba}{$ENDIF} +{$IFHASFILE credentials.simba}{$I credentials.simba}{$ENDIF} const CREDENTIALS_FILE = AppPath + 'credentials.simba';