attributes

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 4 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ElementString = [...]string{
	"electro",
	"pyro",
	"cryo",
	"hydro",
	"dendro",
	"quicken",
	"frozen",
	"anemo",
	"geo",
	"",
	"physical",
	"unknown",
}
View Source
var StatTypeString = [...]string{
	"n/a",
	"def%",
	"def",
	"hp",
	"hp%",
	"atk",
	"atk%",
	"er",
	"em",
	"cr",
	"cd",
	"heal",
	"pyro%",
	"hydro%",
	"cryo%",
	"electro%",
	"anemo%",
	"geo%",
	"dendro%",
	"phys%",
	"atkspd%",
	"dmg%",
}

Functions

func PrettyPrintStats

func PrettyPrintStats(stats []float64) string

func PrettyPrintStatsSlice

func PrettyPrintStatsSlice(stats []float64) []string

Types

type Element

type Element int

Element is a string representing an element i.e. HYDRO/PYRO/etc...

const (
	Electro Element = iota
	Pyro
	Cryo
	Hydro
	Dendro
	Quicken // or overdose
	Frozen
	Anemo
	Geo
	NoElement
	Physical
	UnknownElement
	EndEleType
)

ElementType should be pryo, Hydro, Cryo, Electro, Geo, Anemo and maybe dendro

func StringToEle

func StringToEle(s string) Element

func (Element) MarshalJSON

func (e Element) MarshalJSON() ([]byte, error)

func (Element) String

func (e Element) String() string

func (*Element) UnmarshalJSON

func (e *Element) UnmarshalJSON(b []byte) error

type Stat

type Stat int
const (
	NoStat Stat = iota
	DEFP
	DEF
	HP
	HPP
	ATK
	ATKP
	ER
	EM
	CR
	CD
	Heal
	PyroP
	HydroP
	CryoP
	ElectroP
	AnemoP
	GeoP
	DendroP
	PhyP
	AtkSpd
	DmgP
	//delim
	EndStatType
)

stat types

func EleToDmgP

func EleToDmgP(e Element) Stat

func StrToStatType

func StrToStatType(s string) Stat

func (Stat) String

func (s Stat) String() string

Jump to

Keyboard shortcuts

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