From e248cfedf33ef85c7b3b78cec245f58e47b106f7 Mon Sep 17 00:00:00 2001 From: Mahtra Date: Mon, 28 Aug 2023 16:07:14 +1200 Subject: [PATCH] [scripts][magic-training] Set sane defaults for threshold 1 of 2 --- magic-training.lic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magic-training.lic b/magic-training.lic index dd4e52ccab..6f8d81252a 100644 --- a/magic-training.lic +++ b/magic-training.lic @@ -65,7 +65,7 @@ class MagicTraining def train_magics?(training_skills) settings = get_settings DRCT.walk_to(settings.magic_training_room) - exp_threshold = settings.magic_exp_training_max_threshold + settings.magic_exp_training_max_threshold.nil? ? exp_threshold = 32 : exp_threshold = settings.magic_exp_training_max_threshold force_cambrinth = settings.waggle_force_cambrinth training_spells = settings.training_spells.empty? ? settings.magic_training : settings.training_spells