Skip to content

Commit

Permalink
[almanac.lic] check almanac is defined in gear
Browse files Browse the repository at this point in the history
  • Loading branch information
vtcifer authored Feb 29, 2024
1 parent fc19c02 commit 3a135f8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions almanac.lic
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ class Almanac

startup_delay = settings.almanac_startup_delay

# check to ensure almanac is defined in gear, and warn user if not
if settings.gear.find { |item| @almanac =~ /#{item[:adjective]}\s*#{item[:name]}/i }.nil?
message = "To minimize the possibility that items that you hold in your hands could be lost they should be listed in your `gear:`. Your almanac is not listed in your `gear:` settings:"
message += "\n - #{@almanac}"
message += "\nIf you need assistance with this, please ask in the lich discord (listed in #{$clean_lich_char}links) for help."
message += "\n\n---This check is *advisory* for now, but will become mandatory in the near future.---"
DRC.message(message)
pause 10
end

pause startup_delay
passive_loop
end
Expand Down

0 comments on commit 3a135f8

Please sign in to comment.