Documentation ¶
Index ¶
- func ItemsToBeSold(d game.Data) (items []data.Item)
- type A1
- type A2
- type A3
- type A4
- type A5
- type ShopManager
- func (sm ShopManager) BuyConsumables(d game.Data, forceRefill bool)
- func (sm ShopManager) BuyItem(i data.Item, quantity int)
- func (sm ShopManager) SellItem(i data.Item)
- func (sm ShopManager) SellJunk(d game.Data)
- func (sm ShopManager) ShouldBuyIDs(d game.Data) bool
- func (sm ShopManager) ShouldBuyKeys(d game.Data) (int, bool)
- func (sm ShopManager) ShouldBuyTPs(d game.Data) bool
- type Town
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ShopManager ¶
type ShopManager struct {
// contains filtered or unexported fields
}
func NewShopManager ¶
func NewShopManager(logger *slog.Logger, bm health.BeltManager, container container.Container) ShopManager
func (ShopManager) BuyConsumables ¶
func (sm ShopManager) BuyConsumables(d game.Data, forceRefill bool)
func (ShopManager) BuyItem ¶ added in v0.3.0
func (sm ShopManager) BuyItem(i data.Item, quantity int)
func (ShopManager) SellItem ¶ added in v0.3.0
func (sm ShopManager) SellItem(i data.Item)
func (ShopManager) SellJunk ¶
func (sm ShopManager) SellJunk(d game.Data)
func (ShopManager) ShouldBuyIDs ¶
func (sm ShopManager) ShouldBuyIDs(d game.Data) bool
func (ShopManager) ShouldBuyKeys ¶
func (sm ShopManager) ShouldBuyKeys(d game.Data) (int, bool)
func (ShopManager) ShouldBuyTPs ¶
func (sm ShopManager) ShouldBuyTPs(d game.Data) bool
Click to show internal directories.
Click to hide internal directories.