Skip to content

Commit

Permalink
Merge pull request #6977 from MahtraDR/sew_lift
Browse files Browse the repository at this point in the history
[scripts][sew] Use lift instead of stow feet
  • Loading branch information
MahtraDR authored Nov 11, 2024
2 parents fb8f5f3 + 0b76d69 commit f34db87
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions sew.lic
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,15 @@ class Sew
end
end

def lift_or_stow_feet
if DRCI.lift?
DRCC.stow_crafting_item(DRC.right_hand, @bag, @belt) if DRC.right_hand
DRCC.stow_crafting_item(DRC.left_hand, @bag, @belt) if DRC.left_hand
else
DRC.bput('stow feet', 'You put', 'Stow what')
end
end

def work(command)
DRC.bput("touch my #{@cube}", /^Warm vapor swirls around your head in a misty halo/, /^A thin cloud of vapor manifests with no particular effect./, /^Touch what/) if @cube
loop do
Expand Down Expand Up @@ -228,7 +237,7 @@ class Sew
swap_tool('sewing needles')
command = "push my #{@noun} with my sewing needles"
when 'What were you referring', 'I could not find what you were'
DRC.bput('stow feet', 'You put', 'Stow what')
lift_or_stow_feet
if command.include?('wax')
DRCC.check_consumables('wax', @info['tool-room'], 10, @bag, @bag_items, @belt)
swap_tool('wax')
Expand Down Expand Up @@ -314,8 +323,10 @@ class Sew
when /hold/
DRC.message("#{@noun} Complete")
end
DRC.bput('stow feet', 'You put', 'Stow what')

lift_or_stow_feet
magic_cleanup

exit
end
end
Expand Down

0 comments on commit f34db87

Please sign in to comment.