Skip to content

Commit

Permalink
[scripts][taskmaster] Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtraDR committed Nov 8, 2024
1 parent 298bacf commit 00bc5da
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions taskmaster.lic
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
## Important: set default stow to the same bag as your crafting bag ##
=end

custom_require.call(%w[common common-items common-money common-travel common-crafting events slackbot])
custom_require.call(%w[common common-items common-money common-travel common-crafting events])

class TaskMaster
def initialize
Expand All @@ -34,8 +34,6 @@ class TaskMaster
@pickup_tools = @settings.task_get_tools_on_completion
@boost = @settings.task_use_boost
@crafting_room = @settings.task_crafting_room
@username = get_settings.slack_username
register_slackbot(@username)

DRCM.ensure_copper_on_hand(110000, @settings, "Crossing")
@stockdata = get_data('crafting')['stock']
Expand Down Expand Up @@ -599,7 +597,6 @@ class TaskMaster
if result.match?(@keeplist_regex)
result.sub!(/In the woven sack you see (a|an|some) /, '').sub!(/\.$/, '')
DRC.message("Found a keeper: #{result}")
SlackBot.new.direct_message(@username, "Found a keeper: #{result}")
DRCI.put_away_item?('sack', @lootbag)
else
DRC.message("Nothing special: #{result}")
Expand Down

0 comments on commit 00bc5da

Please sign in to comment.