potiontype

package
v0.0.0-...-d7572e3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Empty           PotionType = iota // empty potion
	RecoverHP10                       // heal 10 hp
	RecoverHPRate10                   // heal 10% hp
	RecoverSP10                       // heal 10 sp
	RecoverSPRate10                   // heal 10% sp
	RecoverHP50                       // heal 50 hp
	RecoverHPRate50                   // heal 50% hp
	RecoverSP50                       // heal 50 sp
	RecoverSPRate50                   // heal 50% sp
	RecoverHP100                      // heal 100 hp
	RecoverHPFull                     // heal 100% hp
	RecoverSP100                      // heal 100 sp
	RecoverSPFull                     // heal 100% sp
	BuffRecoverHP1                    // heal span 1 hp for 300 turn
	BuffRecoverSP1                    // heal span 1 sp for 300 turn
	BuffSight1                        // enhance sight 1 for 300 turn
	BuffSight5                        // enhance sight 5 for 300 turn
	BuffSightMax                      // enhance sight max for 300 turn

	PotionType_Count int = iota
)

Variables

View Source
var AIRecycleMap = map[PotionType]bool{
	Empty:           true,
	RecoverHP10:     false,
	RecoverHPRate10: false,
	RecoverSP10:     false,
	RecoverSPRate10: false,
	RecoverHP50:     false,
	RecoverHPRate50: false,
	RecoverSP50:     false,
	RecoverSPRate50: false,
	RecoverHP100:    false,
	RecoverSP100:    false,
	RecoverHPFull:   false,
	RecoverSPFull:   false,
	BuffRecoverHP1:  false,
	BuffRecoverSP1:  false,
	BuffSight1:      false,
	BuffSight5:      false,
	BuffSightMax:    false,
}
View Source
var TotalPotionMakeRate int

Functions

func GetBuffByPotionType

func GetBuffByPotionType(pt PotionType) []statusoptype.OpArg

Types

type PotionType

type PotionType uint8

func String2PotionType

func String2PotionType(s string) (PotionType, bool)

func (PotionType) Color24

func (pt PotionType) Color24() htmlcolors.Color24

func (PotionType) CommentString

func (e PotionType) CommentString() string

func (PotionType) MakeRate

func (pt PotionType) MakeRate() int

func (PotionType) Rune

func (pt PotionType) Rune() string

func (PotionType) String

func (e PotionType) String() string

Jump to

Keyboard shortcuts

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