Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[scripts][taskmaster] Bugfix #6971

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading