advice

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const (
	KindTurnIn     = "turn_in"
	KindQuest      = "quest"
	KindTalent     = "talent"
	KindProfession = "profession"
	KindGear       = "gear"
)

Step kinds.

View Source
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.

View Source
const AbandonPrefix = "Abandon "

AbandonPrefix starts the title of the step for a failed quest.

Variables

This section is empty.

Functions

func Render

func Render(c character.Character, steps []Step, total int) string

Render is the plain-text rendering; total is the count before any limit.

Types

type Step

type Step struct {
	Kind    string   `json:"kind"`
	Title   string   `json:"title"`
	Reason  string   `json:"reason"`
	Zone    string   `json:"zone,omitempty"`
	QuestID int      `json:"quest_id,omitempty"`
	Sources []string `json:"sources"`
}

Step is one piece of advice.

func Limit

func Limit(steps []Step, n int) []Step

Limit keeps the first n steps; n <= 0 keeps all.

func WhatsNext

func WhatsNext(c character.Character, ds store.DataStore) []Step

WhatsNext returns every step for the character, best first. ds may be nil (no dataset).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL