Skip to content

Commit

Permalink
Fixed cluttered room error (elanthia-online#1372)
Browse files Browse the repository at this point in the history
* Fixed ice road clogging

* Updated to use common collect method

* Added rt wait
  • Loading branch information
adamgoerdt authored and rpherbig committed Feb 19, 2017
1 parent 6d5f19f commit 16c9278
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
8 changes: 4 additions & 4 deletions bescort.lic
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,9 @@ class Bescort
else
path.each do |movement|
move(movement)
waitrt
fput('collect rock')
waitrt
waitrt?
collect('rock')
waitrt?
end
end
end
Expand Down Expand Up @@ -681,4 +681,4 @@ class Bescort
end
end

Bescort.new
Bescort.new
11 changes: 11 additions & 0 deletions common.lic
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,17 @@ module DRC
end
true
end

def collect(item)
case bput("collect #{item}",'You manage to collect a pile', 'The room is too cluttered')
when 'The room is too cluttered'
fput('kick pile')
fput('kick pile')
fput('kick pile')
fput("collect #{item}")
waitrt?
end
end

def kick_pile?(item = 'pile')
fix_standing
Expand Down
4 changes: 2 additions & 2 deletions crossing-training.lic
Original file line number Diff line number Diff line change
Expand Up @@ -576,12 +576,12 @@ class CrossingTraining
end

def train_outdoorsmanship
if DRSkill.getrank('Outdoorsmanship') < 30
if DRSkill.getrank('Outdoorsmanship') < 20
forage?('rock')
dispose_trash 'rock'
else
item = @settings.forage_item || 'rock'
bput("collect #{item}", 'You manage to collect', 'The room is too cluttered to find anything here')
collect(item)
waitrt?
kick_pile? unless kick_pile?("#{item}s")
end
Expand Down

0 comments on commit 16c9278

Please sign in to comment.