From 0b76d69325b8076183f69c59df086587c60b8648 Mon Sep 17 00:00:00 2001 From: Mahtra <93822896+MahtraDR@users.noreply.github.com> Date: Tue, 12 Nov 2024 10:48:00 +1300 Subject: [PATCH] rejig --- sew.lic | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/sew.lic b/sew.lic index 332f38c748..6f70175a57 100644 --- a/sew.lic +++ b/sew.lic @@ -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 @@ -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') @@ -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