Skip to content

Commit

Permalink
rejig startup sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtraDR committed Dec 12, 2024
1 parent 020caab commit 3c9d1bb
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions dependency.lic
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,24 @@ DRINFOMON_CORE_LICH_DEFINES ||= Array.new
no_pause_all
no_kill_all

unless XMLData.game =~ /^DR/
echo("This script is not intended for usage with games other than Dragonrealms. Exiting now")
exit
end

while Script.running?('repository')
echo("Repository is running, pausing for 10 seconds.")
pause 10
end

unless Settings['dependency_version'] == $DEPENDENCY_VERSION
echo("New dependency version detected. Resetting repository auto-update settings.")
Script.start("repository", "reset-update-settings")
Script.start("repository", "unset-mapdb-updatable") unless XMLData.game == "DR"
Settings['dependency_version'] = $DEPENDENCY_VERSION
Settings.save
end

class Object
# IMPORT FUTURE LAWLZ
def itself
Expand Down Expand Up @@ -189,10 +202,6 @@ class ScriptManager
attr_reader :autostarts

def initialize(debug)
unless XMLData.game =~ /^DR/
echo("This script is not intended for usage with games other than Dragonrealms. Exiting now")
exit
end
unless LICH_VERSION.match?(/^5/)
_respond("<pushBold/>*****************************************************************************<popBold/>")
_respond("<pushBold/>* Unsupported Lich versions detected. *<popBold/>")
Expand Down

0 comments on commit 3c9d1bb

Please sign in to comment.