From 0f5ee25ced9a4bf0fe8cb95c643c1c37d8538c7f Mon Sep 17 00:00:00 2001 From: desertkaz Date: Tue, 19 Nov 2024 01:48:34 -0700 Subject: [PATCH 1/2] mechanism updates set tool for mechanism in proper case. otherwise, swap_tool goes to first entry in tinkering_tools (bellow in base.yaml) add mechanism to bag_items if not present and making mechanisms --- tinker.lic | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tinker.lic b/tinker.lic index ec124b5f45..cd6b502b7e 100644 --- a/tinker.lic +++ b/tinker.lic @@ -71,6 +71,11 @@ class Tinker work("analyze my #{@noun}") elsif args.mechanisms DRCC.get_adjust_tongs?('reset shovel', @bag, @bag_items, @belt, true) if @settings.adjustable_tongs + if @bag_items == nil + @bag_items = ["mechanisms"] + else + @bag_items.push("mechanisms") unless @bag_items.any? { |item| /mechanism/.match(item) } + end mechanisms(args) else DRCC.check_consumables('stain', @info['tool-room'], @info['stain-number'], @bag, @bag_items, @belt) unless args.skip @@ -237,6 +242,7 @@ class Tinker DRCI.stow_hands exit when /pulling on the gear press/ + tool = 'pliers' command = "pull my #{@noun} with press" when /you are left with several complete mechanisms/ DRCC.stow_crafting_item(DRC.right_hand, @bag, nil) From 7fc0801774b8790cd01085ee016f681ad603b263 Mon Sep 17 00:00:00 2001 From: desertkaz Date: Tue, 19 Nov 2024 01:50:09 -0700 Subject: [PATCH 2/2] rubocop --- tinker.lic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinker.lic b/tinker.lic index cd6b502b7e..453eb9b51d 100644 --- a/tinker.lic +++ b/tinker.lic @@ -72,7 +72,7 @@ class Tinker elsif args.mechanisms DRCC.get_adjust_tongs?('reset shovel', @bag, @bag_items, @belt, true) if @settings.adjustable_tongs if @bag_items == nil - @bag_items = ["mechanisms"] + @bag_items = ["mechanisms"] else @bag_items.push("mechanisms") unless @bag_items.any? { |item| /mechanism/.match(item) } end