Skip to content

Commit

Permalink
[scripts][combat-trainer] Honor stop_hunting_if_bleeding for exiting …
Browse files Browse the repository at this point in the history
…combat

We were defaulting to exiting combat with untendable bleeders. Now we honor the `stop_hunting_if_bleeding` setting, as with weird necros who want to heal in combat...
  • Loading branch information
MahtraDR committed Jul 17, 2024
1 parent 4268b82 commit 6e9af3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion combat-trainer.lic
Original file line number Diff line number Diff line change
Expand Up @@ -1061,12 +1061,13 @@ class SafetyProcess
Flags.add('ct-parasite', 'blood mite on your (?<body_part>.*)\.')
@equipment_manager = equipment_manager
@health_threshold = settings.health_threshold
@stop_on_bleeding = settings.stop_hunting_if_bleeding
echo(" @health_threshold: #{@health_threshold}") if $debug_mode_ct
@untendable_counter = 0
end

def execute(game_state)
if @untendable_counter >= 3
if @untendable_counter >= 3 && @stop_on_bleeding
echo('Skipping tendme check due to untendable backoff') if $debug_mode_ct
echo("Couldn't tend bleeders after trying three times. Stopping hunt to heal.")
$HUNTING_BUDDY.stop_hunting
Expand Down

0 comments on commit 6e9af3c

Please sign in to comment.