From f3332f043a896b9c86b7c4930ef28c7df5312206 Mon Sep 17 00:00:00 2001 From: urbaj-dr <110074842+urbaj-dr@users.noreply.github.com> Date: Thu, 21 Sep 2023 18:02:22 -0400 Subject: [PATCH] Update task-forage.lic Refined boost logic --- task-forage.lic | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/task-forage.lic b/task-forage.lic index aa5a0722ea..1aee33b6e4 100644 --- a/task-forage.lic +++ b/task-forage.lic @@ -370,12 +370,12 @@ class TaskForage echo 'use_boosts' if @debug # Check to see if a boost is already active - case DRC.bput('info', ' +Task Master, expiring ', ' +Encumbrance :', { 'timeout' => 0.5, 'suppress_no_match' => true }) + case DRC.bput('info', { 'timeout' => 0.5, 'suppress_no_match' => true }, ' +Task Master, expiring ') when / +Task Master, expiring / echo 'Already boosted' if @debug @boosted = true return true - when / +Encumbrance :/ + else echo 'Not boosted' if @debug case DRC.bput('boost task', 'You\'ve activated the Task Master boost', 'You don\'t have enough credits for the Task Master boost') @@ -389,6 +389,9 @@ class TaskForage return false end end + echo 'Unable to determine boost status' if @debug + @boosted = false + return false end def kill_time(repetitions = 1)