Skip to content

Commit

Permalink
pilgrimage.lic only
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejcook committed Jul 31, 2024
1 parent 7e8c062 commit dd0f1fa
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion pilgrimage.lic
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,24 @@ custom_require.call(%w[common common-items common-money common-travel])

class Pilgrimage
def initialize
arg_definitions = [
[
{ name: 'town', options: $HOMETOWN_LIST, optional: true, description: 'Town to look for shrines in.' }
]
]
args = parse_args(arg_definitions)

town_override = DRC.get_town_name(args.town)

if args.town && !town_override
DRC.message("Could not identify town for argument: #{args.town}")
DRC.message("To avoid ambiguity, please use the town's full name: https://elanthipedia.play.net/Category:Cities")
exit
end

@settings = get_settings
hometown = @settings.hometown
hometown = town_override || @settings.hometown

buy_badge(hometown)

visited = visited_shrines
Expand Down

0 comments on commit dd0f1fa

Please sign in to comment.