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][sew] Use lift instead of stow feet #6977

Merged
merged 2 commits into from
Nov 11, 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
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
Loading