Skip to content

Commit

Permalink
[script] [combat-trainer] Added necro_corpse_priority: setting
Browse files Browse the repository at this point in the history
Added `necro_corpse_priority:` setting to allow for prioritization of using corpses for either healing or pet creation.

Default behavior is to prioritze healing from corpses. Exclude it, leave it blank or set it to `heal`.
To have it prioritize pet creation from corpses set it to `pet`.

Rituals other than consue/arise have not changed. They are handled separately in the rituals section and continue to be prioritized behind pets and healing as before.
  • Loading branch information
hat071af authored Aug 20, 2024
1 parent 90683e2 commit 4b1f4e3
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions combat-trainer.lic
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,9 @@ class LootProcess
@make_bonebug = settings.bonebug['make']
echo(" @make_bonebug: #{@make_bonebug}") if $debug_mode_ct

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

@wound_level_threshold = settings.necromancer_healing['wound_level_threshold'] || 1
echo(" @wound_level_threshold: #{@wound_level_threshold}") if $debug_mode_ct

Expand Down Expand Up @@ -1428,10 +1431,17 @@ class SpellProcess
end
check_slivers(game_state)
check_regalia(game_state)
check_consume(game_state)
heal_corpse(game_state)
check_cfw(game_state)
check_cfb(game_state)
if @settings.necro_corpse_priority == 'pet'
check_cfw(game_state)
heal_corpse(game_state)
check_cfb(game_state)
check_consume(game_state)
elsif @settings.necro_corpse_priority['heal'] || !@settings.necro_corpse_priority
check_consume(game_state)
check_cfw(game_state)
heal_corpse(game_state)
check_cfb(game_state)
end
check_bless(game_state)
check_ignite(game_state)
check_rutilors_edge(game_state)
Expand Down

0 comments on commit 4b1f4e3

Please sign in to comment.