Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrChicken = errors.New("chicken")
View Source
var ErrDied = errors.New("you died :(")
View Source
var ErrMercChicken = errors.New("mercenary chicken")
Functions ¶
This section is empty.
Types ¶
type BeltManager ¶
type BeltManager struct {
// contains filtered or unexported fields
}
func NewBeltManager ¶
func NewBeltManager(logger *slog.Logger, hid *game.HID, cfg *config.CharacterCfg, supervisorName string) BeltManager
func (BeltManager) DrinkPotion ¶
func (bm BeltManager) DrinkPotion(d game.Data, potionType data.PotionType, merc bool) bool
func (BeltManager) GetMissingCount ¶
func (bm BeltManager) GetMissingCount(d game.Data, potionType data.PotionType) int
func (BeltManager) ShouldBuyPotions ¶
func (bm BeltManager) ShouldBuyPotions(d game.Data) bool
ShouldBuyPotions will return true if more than 25% of belt is empty (ignoring rejuv)
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager responsibility is to keep our character and mercenary alive, monitoring life and giving potions when needed
func NewHealthManager ¶
func NewHealthManager(logger *slog.Logger, beltManager BeltManager, gm *game.Manager, cfg *config.CharacterCfg) *Manager
Click to show internal directories.
Click to hide internal directories.