Skip to content

Commit

Permalink
Merge pull request #6748 from MahtraDR/dependency_exit_for_non_dr
Browse files Browse the repository at this point in the history
[scripts][dependency] Exit unless game is DR.
  • Loading branch information
MahtraDR authored Dec 27, 2023
2 parents df04a3d + 1cb7fbe commit 0b65964
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dependency.lic
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require 'ostruct'
require 'digest/sha1'
require 'monitor'

$DEPENDENCY_VERSION = '1.6.3'
$DEPENDENCY_VERSION = '1.6.4'
$MIN_RUBY_VERSION = '2.5.5'

no_pause_all
Expand Down Expand Up @@ -183,6 +183,10 @@ class ScriptManager
attr_accessor :developer, :ignore_dependency

def initialize(debug)
unless XMLData.game =~ /^DR/
echo("This script is not intended for usage with games other than Dragonrealms. Exiting now")
exit
end
@debug = debug
@paste_bin_token = 'dca351a27a8af501a8d3123e29af7981'
@paste_bin_url = 'https://pastebin.com/api/api_post.php'
Expand Down

0 comments on commit 0b65964

Please sign in to comment.