Skip to content

Commit

Permalink
Merge pull request #6838 from MahtraDR/deprecated_commands
Browse files Browse the repository at this point in the history
[scripts][afk][common-arcana][hunting-buddy] Remove deprecated calls
  • Loading branch information
MahtraDR authored Jun 15, 2024
2 parents b2d0a53 + 6773c65 commit c4afdd0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion afk.lic
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ loop do
exit_game('You died!')
end

if !warned && (health < warning_threshold || spirit < warning_threshold)
if !warned && (DRStats.health < warning_threshold || DRStats.spirit < warning_threshold)
echo 'Afk - approaching low vitality/spirit threshold'
warned = true
end
Expand Down
2 changes: 1 addition & 1 deletion common-arcana.lic
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module DRCA
failure = ['as if it hungers for more', 'Your infusion fails completely', 'You don\'t have enough harnessed mana to infuse that much', 'You have no harnessed']

loop do
pause 5 while mana <= 40
pause 5 while DRStats.mana <= 40
harness_mana([amount]) if harness
break if success.include?(DRC.bput("infuse om #{amount}", success, failure))

Expand Down
2 changes: 1 addition & 1 deletion hunting-buddy.lic
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ class HuntingBuddy
loop do
clear
if DRStats.health < @settings.health_threshold
DRC.message("***STATUS*** Exiting because low health: #{health} < #{@settings.health_threshold}")
DRC.message("***STATUS*** Exiting because low health: #{DRStats.health} < #{@settings.health_threshold}")
fput('avoid all')
fput('exit')
end
Expand Down

0 comments on commit c4afdd0

Please sign in to comment.