Documentation
¶
Overview ¶
Package advice ranks what a captured character should do next. Every step names its source; a fact neither the capture nor the dataset holds is reported as unknown, never guessed. The rules are in docs/advice.md.
Index ¶
Constants ¶
const ( KindTurnIn = "turn_in" KindQuest = "quest" KindTalent = "talent" KindProfession = "profession" KindGear = "gear" )
Step kinds.
const ( MaxBelow = 5 // a quest more than this far below is grey and skipped MaxAbove = 3 // a quest more than this far above is too hard and skipped )
Quest level window around the character's level.
const ( AvailBelow = 2 AvailAbove = 2 // MaxAvailable caps how many "Pick up" steps WhatsNext adds. MaxAvailable = 3 )
Level band for a quest the character has not picked up: the character's level -2 to +2.
const ( ClassQuestPrefix = "Class quest: pick up " ClassQuestNote = "Class quests often teach a core ability." // MaxClassQuests caps how many class quests lead the list (the prompt budget). MaxClassQuests = 3 )
Class quest wording. A class quest is a pick-up limited to the player's class (or a few classes).
const AbandonPrefix = "Abandon "
AbandonPrefix starts the title of the step for a failed quest.
const MaxLocated = 5
MaxLocated is how many quests in the log get a location from Questie (the prompt budget).
const PickUpPrefix = "Pick up: "
PickUpPrefix starts the title of a step for a quest that is not yet in the log.
const TalentAsk = `ask "What talents should I get?"`
TalentAsk is the question that gets the player's talent picks.
Variables ¶
This section is empty.
Functions ¶
func IsClassQuest ¶ added in v0.7.0
IsClassQuest reports whether the step is a class quest pick-up.
Types ¶
type Available ¶ added in v0.4.0
Available is the quests a character could pick up now. Unchecked names each rule the dataset could not support, so an empty list is never read as "nothing to pick up".
func AvailableQuests ¶ added in v0.4.0
AvailableQuests finds quests the character has not picked up but could: level within the band, class and race allowed, the previous step of its quest line completed, not completed, not in the log, not a DNT or deprecated placeholder, and in a zone the log already has quests in (the last-saved zone, or else the zones of the log's quests, is "nearby"). Ranked by level fit, then a shared quest line, then a shared zone. ds may be nil.
type Step ¶
type Step struct {
Kind string `json:"kind"`
Title string `json:"title"`
Reason string `json:"reason"`
Zone string `json:"zone,omitempty"`
// Progress is the quest's objective progress, such as "Crab Season: 3/8 Crab Claws".
Progress string `json:"progress,omitempty"`
QuestID int `json:"quest_id,omitempty"`
// Location is where to go (an NPC or objective and its map percent), when the player's own
// Questie could place it.
Location string `json:"location,omitempty"`
Sources []string `json:"sources"`
}
Step is one piece of advice.