Skip to content

Commit

Permalink
[scripts][dependency][bootstrap][spellmonitor] Prep for inclusion in …
Browse files Browse the repository at this point in the history
…core lich

As per title. Adjusting for namespace changes in core lich.
  • Loading branch information
MahtraDR committed Feb 6, 2025
1 parent c39a8da commit ad849ec
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
4 changes: 1 addition & 3 deletions bootstrap.lic
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
Documentation: https://elanthipedia.play.net/Lich_script_development#bootstrap
=end

$BOOTSTRAP_VERSION = '1.0.3'
DRINFOMON_IN_CORE_LICH ||= false
DRINFOMON_CORE_LICH_DEFINES ||= []
$BOOTSTRAP_VERSION = '1.0.4'

class_defs = {
'drinfomon' => :DRINFOMON,
Expand Down
12 changes: 9 additions & 3 deletions dependency.lic
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ require 'ostruct'
require 'digest/sha1'
require 'monitor'

$DEPENDENCY_VERSION = '2.0.5'
$DEPENDENCY_VERSION = '2.0.6'
$MIN_RUBY_VERSION = '3.2.2'
DRINFOMON_IN_CORE_LICH ||= false
DRINFOMON_CORE_LICH_DEFINES ||= Array.new

if defined?(Lich::Common) && defined?(DRInfomon) # testing for minimum 5.11.0
DRINFOMON_IN_CORE_LICH = true # this should never be true pre 5.11
DRINFOMON_CORE_LICH_DEFINES = DRInfomon::DRINFOMON_CORE_LICH_DEFINES # always defined in 5.11
else
DRINFOMON_IN_CORE_LICH = false # this should always be false pre 5.11
RINFOMON_CORE_LICH_DEFINES = Array.new # this should always be an empty array pre 5.11
end

no_pause_all
no_kill_all
Expand Down
3 changes: 1 addition & 2 deletions spellmonitor.lic
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
Documentation: https://elanthipedia.play.net/Lich_script_development#spellmonitor
=end

$SPELLMONITOR_VERSION = '2.0.1'
DRINFOMON_IN_CORE_LICH ||= false
$SPELLMONITOR_VERSION = '2.0.2'

if DRINFOMON_IN_CORE_LICH
DRC.message("DRInfomon in core lich includes spellmonitor. Exiting.")
Expand Down

0 comments on commit ad849ec

Please sign in to comment.