From 2991d7039772a32f5b98474bf5478eaf17a37e3e Mon Sep 17 00:00:00 2001 From: Mahtra <93822896+MahtraDR@users.noreply.github.com> Date: Tue, 12 Nov 2024 10:40:32 +1300 Subject: [PATCH 1/2] [scripts][sew] Use lift instead of stow feet --- sew.lic | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/sew.lic b/sew.lic index 0e7afec7d3..332f38c748 100644 --- a/sew.lic +++ b/sew.lic @@ -228,7 +228,13 @@ 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') + 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 + if command.include?('wax') DRCC.check_consumables('wax', @info['tool-room'], 10, @bag, @bag_items, @belt) swap_tool('wax') @@ -314,8 +320,16 @@ class Sew when /hold/ DRC.message("#{@noun} Complete") end - DRC.bput('stow feet', 'You put', 'Stow what') + + 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 + magic_cleanup + exit end end 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 2/2] 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