Skip to content

Commit

Permalink
Updated hometown detection logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyt3 committed Nov 22, 2023
1 parent f27abb8 commit 1fb848e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pick.lic
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Pick

@picking_room_id = Room.current.id

@refill_town = @settings.refill_town
@refill_town = @settings.refill_town = @settings.refill_town.to_s

if @debug
echo "Settings..."
Expand Down Expand Up @@ -134,10 +134,10 @@ class Pick
echo "- assumed_difficulty: #{@assumed_difficulty}"
end

if @settings.refill_town
@lockpick_costs = picking_data['lockpick_costs'][@settings.refill_town]
else
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
Expand Down

0 comments on commit 1fb848e

Please sign in to comment.