diff --git a/pick.lic b/pick.lic index fa218c517e..d4605ae084 100644 --- a/pick.lic +++ b/pick.lic @@ -102,7 +102,7 @@ class Pick @picking_room_id = Room.current.id - @refill_town = @settings.refill_town = @settings.refill_town.to_s + @lockpick_costs = picking_data['lockpick_costs'][@settings.refill_town || @settings.fang_cove_override_town || @settings.hometown] if @debug echo "Settings..." @@ -134,12 +134,6 @@ class Pick echo "- assumed_difficulty: #{@assumed_difficulty}" end - if @refill_town.empty? - @lockpick_costs = picking_data['lockpick_costs'][@settings.fang_cove_override_town || @settings.hometown] - else - @lockpick_costs = picking_data['lockpick_costs'][@settings.refill_town] - end - if args.refill refill_ring elsif stop_picking? @@ -325,13 +319,13 @@ class Pick return end - if @refill_town.empty? + if @refill_town.nil? DRCM.ensure_copper_on_hand(cost * lockpicks_needed, @settings) else DRCM.ensure_copper_on_hand(cost * lockpicks_needed, @settings, @refill_town) end - if @refill_town.empty? + if @refill_town.nil? DRCT.refill_lockpick_container(@settings.lockpick_type, @settings.fang_cove_override_town || @settings.hometown, @lockpick_container, lockpicks_needed) else DRCT.refill_lockpick_container(@settings.lockpick_type, @refill_town, @lockpick_container, lockpicks_needed)