Skip to content

Commit

Permalink
Merge pull request #6713 from MahtraDR/athletics_to_i
Browse files Browse the repository at this point in the history
[scripts][Athletics] Uservars.athletics.to_i
  • Loading branch information
MahtraDR authored Oct 9, 2023
2 parents 36533da + 58785f3 commit 341fc07
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions athletics.lic
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,9 @@ class Athletics
end

def crossing_athletics
if UserVars.athletics <= 50
if UserVars.athletics.to_i <= 50
swim_loop(get_data('athletics').swimming_options['arthe_dale']['rooms'])
elsif UserVars.athletics < 290
elsif UserVars.athletics.to_i < 290
waitrt?
pause @performance_pause # to give performance time to complete before_dying if stopped from the previous script
start_script('performance') unless Script.running?('performance')
Expand All @@ -223,28 +223,28 @@ class Athletics
break unless climb?(data['room'], data['targets'])
end
end
elsif UserVars.athletics < 450
elsif UserVars.athletics.to_i < 450
override_location_and_practice('segoltha_bank')
else
DRC.message("The xalas argument will train faster at 650+ athletics. Be aware that it's potentially dangerous.") if UserVars.athletics > 650
DRC.message("The xalas argument will train faster at 650+ athletics. Be aware that it's potentially dangerous.") if UserVars.athletics.to_i > 650
override_location_and_practice('arthelun_rocks')
DRC.message("The xalas argument will train faster at 650+ athletics. Be aware that it's potentially dangerous.") if UserVars.athletics > 650
DRC.message("The xalas argument will train faster at 650+ athletics. Be aware that it's potentially dangerous.") if UserVars.athletics.to_i > 650
end
end

def shard_athletics
until done_training?
if UserVars.athletics < 240
if UserVars.athletics.to_i < 240
until done_training?
@athletics_options['shard']
.reject { |data| @settings.avoid_athletics_in_justice && data['justice'] }
.each do |data|
break unless climb?(data['room'], data['targets'])
end
end
elsif UserVars.athletics < 540
elsif UserVars.athletics.to_i < 540
climb_cliffs
elsif UserVars.athletics < 850
elsif UserVars.athletics.to_i < 850
climb_branch
elsif UserVars.athletics
climb_wyvern
Expand Down Expand Up @@ -342,10 +342,10 @@ class Athletics
end

def climb_branch
if UserVars.athletics < 540
if UserVars.athletics.to_i < 540
override_location_and_practice('undergondola_branch')
else
DRC.message("Warning: Using the undergondola arg with more than 850 athletics is not best use and you may consider the wyvern option instead.") if UserVars.athletics > 850
DRC.message("Warning: Using the undergondola arg with more than 850 athletics is not best use and you may consider the wyvern option instead.") if UserVars.athletics.to_i > 850
DRCT.walk_to(9607)
DRCT.walk_to(9515)
until done_training?
Expand Down Expand Up @@ -375,7 +375,7 @@ class Athletics
def climb_wyvern
DRCT.walk_to(19_464)
until done_training?
DRCT.walk_to(2245) if UserVars.athletics > 540
DRCT.walk_to(2245) if UserVars.athletics.to_i > 540
DRCT.walk_to(9607)
DRCT.walk_to(11_126)
DRCT.walk_to(19_464)
Expand Down

0 comments on commit 341fc07

Please sign in to comment.