Documentation
¶
Overview ¶
Package dungeons picks the dungeons that fit a captured character from the dataset's instances, instance_bosses and loot_sources tables, and lists the boss drops that gear.Upgrades scores as upgrades for the character's spec. The rules are in docs/dungeons.md.
Index ¶
Constants ¶
const LevelWindow = 3
LevelWindow is how far a dungeon's level range may lie from the character's level.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Drop ¶
type Drop struct {
Boss string
ItemID int64
Item string
Slot string
Delta float64
Empty bool // the slot is empty
Chance *float64 // percent of loot windows
}
Drop is one upgrade a boss drops. Chance is nil when the dataset has no kill count.
type DungeonPick ¶
type DungeonPick struct {
MapID int64
Name string
MinLevel *int
MaxLevel *int
MaxPlayers *int
// LevelUnknown is true when the dataset holds no level range; such picks are unranked.
LevelUnknown bool
// Fit is how many levels the character is outside the range (0 inside it).
Fit int
// Upgrades counts the distinct items among Drops.
Upgrades int
Drops []Drop
Quests []Quest
// UnlinkedBosses are the encounters the dataset cannot tie to a creature, so their drops are
// unknown.
UnlinkedBosses []string
}
DungeonPick is one dungeon and what it offers the character.
type Result ¶
type Result struct {
Picks []DungeonPick
Unknown []DungeonPick
Spec string
// ItemLevelOnly is true when upgrades were scored without stat weights.
ItemLevelOnly bool
Reason string // why scoring fell back to item level, when it did
}
Result is a plan: ranked picks, then the dungeons with no level range.