Skip to content

Commit

Permalink
Update combat-trainer.lic
Browse files Browse the repository at this point in the history
Co-authored-by: Mahtra <[email protected]>
  • Loading branch information
mdr55 and MahtraDR authored Jan 26, 2025
1 parent 57cc3e0 commit 038ee1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions combat-trainer.lic
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class SetupProcess
# 30 is a magic number and there are multiple factors determining what would be an optimal value, which may not practically
# exist for the wide range of CT use cases.

if @offhand_trainables && game_state.focus_threshold_active then
if @offhand_trainables && game_state.focus_threshold_active

# define what mainhand skills look like
mainhand_skills = $melee_skills + $thrown_skills + $martial_skills - game_state.aiming_trainables
Expand All @@ -217,13 +217,13 @@ class SetupProcess
echo("mainhand_selection_pool #{mainhand_selection_pool}") if $debug_mode_ct
echo("offhand_selection_pool #{offhand_selection_pool}") if $debug_mode_ct

if bow_selection_pool.length > 0 then
if bow_selection_pool.length > 0
# choose a bow from this restricted pool (i.e. preferencing bow)
new_weapon_skill = game_state.sort_by_rate_then_rank(bow_selection_pool).first
elsif mainhand_selection_pool.length > 0 then
elsif mainhand_selection_pool.length > 0
# choose a mainhander from this restricted pool (once bows are done)
new_weapon_skill = game_state.sort_by_rate_then_rank(mainhand_selection_pool).first
elsif offhand_selection_pool.length > 0 then
elsif offhand_selection_pool.length > 0
# choose an offhand weapon (wielded in the main hand) from this restricted pool
new_weapon_skill = game_state.sort_by_rate_then_rank(offhand_selection_pool).first
else
Expand Down

0 comments on commit 038ee1b

Please sign in to comment.