stat

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Status = GameStatus{}

Functions

func FinishCurrentRun

func FinishCurrentRun(evt event.Event)

func ItemStashed

func ItemStashed(item data.Item, screenshot image.Image)

func StartRun

func StartRun(runName string)

func UsedPotion

func UsedPotion(potionType data.PotionType, onMerc bool)

Types

type GameStatus

type GameStatus struct {
	ApplicationStartedAt time.Time
	TotalGames           int
	RunStats             map[string]*RunStats

	CurrentRun      string
	CurrentRunStart time.Time
}

type RunStats

type RunStats struct {
	TotalRunsTime          time.Duration
	Kills                  int
	Deaths                 int
	Chickens               int
	MerChicken             int
	Errors                 int
	ItemsFound             []data.Item
	HealingPotionsUsed     int
	ManaPotionsUsed        int
	RejuvPotionsUsed       int
	MercHealingPotionsUsed int
	MercRejuvPotionsUsed   int
}

Jump to

Keyboard shortcuts

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