Skip to content

Commit

Permalink
Merge pull request #6779 from vtcifer/advisory_check_of_gear_for_tome
Browse files Browse the repository at this point in the history
[tome.lic] Add an advisory check for tome to ensure there is a listing in gear settings for it
  • Loading branch information
MahtraDR authored Mar 24, 2024
2 parents 9a0b6e7 + 3834f61 commit 21d2db1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tome.lic
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ class Tome
@passive = args.active ? false : @tome_settings['passive']
@no_use_rooms = @settings.sanowret_no_use_rooms

# check to ensure tome is defined in gear, and warn user if not
if settings.gear.find { |item| @tome =~ /#{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 tome is not listed in your `gear:` settings:"
message += "\n - #{@tome}"
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

@penultimate_pages = {
'tel\'athi treatise' => "Most S'Kra, whether they call them such or not, are familiar with the Eight Gifts",
'mikkhalbamar manuscript' => "In both cases the rituals involving consignment are nearly identical",
Expand Down

0 comments on commit 21d2db1

Please sign in to comment.