Skip to content

Commit

Permalink
Update task-forage.lic
Browse files Browse the repository at this point in the history
Refined boost logic
  • Loading branch information
urbaj-dr authored Sep 21, 2023
1 parent bb771c4 commit f3332f0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions task-forage.lic
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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)
Expand Down

0 comments on commit f3332f0

Please sign in to comment.