Documentation
¶
Overview ¶
Package vendors finds who sells an item, from the dataset's vendor_sources table (offers players saw in game and reported to Everloot, CC BY-SA 4.0). The rules are in docs/upgrade-paths.md.
Index ¶
Constants ¶
const ( Source = "everloot" Credit = "Everloot (CC BY-SA)" )
Source tags the facts as Everloot's; Credit is the attribution line for an answer's sources.
const CheapPerBand = 10000
CheapPerBand is the price, in copper, a vendor path may cost per ten levels of the character's level band (level/10 + 1 bands) to count as cheap: 1 gold at levels 1-9, 2 gold at 10-19, and so on.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Offer ¶
type Offer struct {
NPCID int64 `json:"-"`
Vendor string `json:"vendor"`
Zone string `json:"zone,omitempty"`
PriceCopper int64 `json:"price_copper"`
Price string `json:"price,omitempty" jsonschema:"the price in gold, silver and copper; empty when the price is unknown"`
Limited bool `json:"limited,omitempty" jsonschema:"the vendor has limited stock"`
Source string `json:"source" jsonschema:"everloot"`
}
Offer is one vendor selling one item.
func Best ¶
Best is the cheapest offer for the item (a known price before an unknown one, then the lowest NPC id), or false when the table is missing or has no vendor for it. A vendor the dataset does not name is skipped: advice never points at "vendor 1234".