Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved leveling #397

Merged
merged 14 commits into from
Aug 12, 2024
Prev Previous commit
Next Next commit
Added check for town portal keybind
  • Loading branch information
TDLofCC authored Aug 11, 2024
commit 7e957da41db4d33069b6a3836034b97a3c43e34c
16 changes: 14 additions & 2 deletions internal/character/sorceress_leveling_lightning.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package character

import (
"log/slog"
"sort"
"time"

Expand All @@ -21,9 +22,20 @@ type SorceressLevelingLightning struct {
}

func (s SorceressLevelingLightning) CheckKeyBindings(d game.Data) []skill.ID {
requireKeybindings := []skill.ID{skill.TomeOfTownPortal}
missingKeybindings := []skill.ID{}

// Not implemented
return []skill.ID{}
for _, cskill := range requireKeybindings {
if _, found := d.KeyBindings.KeyBindingForSkill(cskill); !found {
missingKeybindings = append(missingKeybindings, cskill)
}
}

if len(missingKeybindings) > 0 {
s.logger.Debug("There are missing required key bindings.", slog.Any("Bindings", missingKeybindings))
}

return missingKeybindings
}

func (s SorceressLevelingLightning) KillMonsterSequence(monsterSelector func(d game.Data) (data.UnitID, bool), skipOnImmunities []stat.Resist, opts ...step.AttackOption) action.Action {
Expand Down