roulette

package
v0.0.0-...-cb097dc Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChooseChaoRouletteItem

func ChooseChaoRouletteItem(items []string, weights []int64) (string, error)

func ChooseChaoRouletteItemIndex

func ChooseChaoRouletteItemIndex(items []string, weights []int64) (int, error)

func GetRandomChaoRouletteItems

func GetRandomChaoRouletteItems(rarities []int64, allowedCharacters, allowedChao []string, oldCharacters bool) ([]string, []int64, error)

func GetRandomChaoWheelChao

func GetRandomChaoWheelChao(rarity int64, count int, oldChao bool) ([]string, error)

func GetRandomChaoWheelCharacter

func GetRandomChaoWheelCharacter(count int, oldCharacters bool) ([]string, error)

Types

type LogicChao

type LogicChao struct {
	ID       string `json:"chaoId"`
	Rarity   int64  `json:"rarity"`
	Hidden   int64  `json:"hidden"` // this value is required, but is never really used in game... Best to keep at "1"
	Status   int64  `json:"status"` // enums.ChaoStatus*
	Level    int64  `json:"level"`
	Dealing  int64  `json:"setStatus"` // enums.ChaoDealing*
	Acquired int64  `json:"acquired"`  // flag
}

Jump to

Keyboard shortcuts

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