Skip to content

Commit

Permalink
[scripts][combat-trainer] Declare variable for @tessera_mindstates
Browse files Browse the repository at this point in the history
As per title.
  • Loading branch information
MahtraDR committed Jun 26, 2024
1 parent 90d5999 commit b5c9b42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion combat-trainer.lic
Original file line number Diff line number Diff line change
Expand Up @@ -2775,6 +2775,9 @@ class TrainerProcess

@always_use_maneuvers = settings.always_use_maneuvers
echo(" @always_use_maneuvers: #{@always_use_maneuvers}") if $debug_mode_ct

@tessera_mindstates = settings.tessera_mindstates
echo(" @tessera_mindstates: #{@tessera_mindstates}") if $debug_mode_ct
end

def execute(game_state)
Expand Down Expand Up @@ -3226,7 +3229,7 @@ class TrainerProcess
return unless DRStats.trader?
return if game_state.retreating?
return if game_state.loaded || game_state.offhand?
return if DRSkill.getxp('Trading') > settings.tessera_mindstates
return if DRSkill.getxp('Trading') > @tessera_mindstates

DRC.retreat
return unless /inside your (.*)\./ =~ DRC.bput("get my tessera", 'You get a .+ tessera from inside your (.*).', 'What were you')
Expand Down

0 comments on commit b5c9b42

Please sign in to comment.