Skip to content

Commit

Permalink
rejig
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtraDR committed Nov 11, 2024
1 parent 2991d70 commit 0b76d69
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 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,13 +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'
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

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 @@ -321,13 +324,7 @@ class Sew
DRC.message("#{@noun} Complete")
end

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

lift_or_stow_feet
magic_cleanup

exit
Expand Down

0 comments on commit 0b76d69

Please sign in to comment.