alchemist

package
v0.0.0-...-23eb08f Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmptySlot  = Slot{/* contains filtered or unexported fields */}
	FirstSlot  = Slot{/* contains filtered or unexported fields */}
	SecondSlot = Slot{/* contains filtered or unexported fields */}
	ThirdSlot  = Slot{/* contains filtered or unexported fields */}
	FourthSlot = Slot{/* contains filtered or unexported fields */}
)
View Source
var (
	EquipmentNovice     = EquipmentLevel{/* contains filtered or unexported fields */}
	EquipmentApprentice = EquipmentLevel{/* contains filtered or unexported fields */}
	EquipmentJourneyman = EquipmentLevel{/* contains filtered or unexported fields */}
	EquipmentExpert     = EquipmentLevel{/* contains filtered or unexported fields */}
	EquipmentMaster     = EquipmentLevel{/* contains filtered or unexported fields */}
)

Functions

This section is empty.

Types

type Alchemist

type Alchemist struct {
	// contains filtered or unexported fields
}

func NewAlchemist

func NewAlchemist(level int, luckLevel int, mortar *Mortar) *Alchemist

func (*Alchemist) BrewPotion

func (a *Alchemist) BrewPotion(potionName string) (Potion, error)

func (*Alchemist) CanCombineIngredients

func (a *Alchemist) CanCombineIngredients(ingredient1 *ingredient.Ingredient, ingredient2 *ingredient.Ingredient) bool

func (*Alchemist) CanStartBrewing

func (a *Alchemist) CanStartBrewing() bool

func (*Alchemist) CanUseIngredient

func (a *Alchemist) CanUseIngredient(ingredient *ingredient.Ingredient) bool

func (*Alchemist) DetermineEffects

func (a *Alchemist) DetermineEffects(ofIngredient *ingredient.Ingredient) []ingredient.Effect

func (*Alchemist) DiscardIngredients

func (a *Alchemist) DiscardIngredients()

func (*Alchemist) IdentifiableAmountOfEffects

func (a *Alchemist) IdentifiableAmountOfEffects() int

func (*Alchemist) IsApprentice

func (a *Alchemist) IsApprentice() bool

func (*Alchemist) IsExpert

func (a *Alchemist) IsExpert() bool

func (*Alchemist) IsJourneyMan

func (a *Alchemist) IsJourneyMan() bool

func (*Alchemist) IsMaster

func (a *Alchemist) IsMaster() bool

func (*Alchemist) IsNovice

func (a *Alchemist) IsNovice() bool

func (Alchemist) PredictPotion

func (a Alchemist) PredictPotion() (Potion, error)

func (*Alchemist) Refine

func (a *Alchemist) Refine(effect ingredient.Effect) PotionEffect

func (*Alchemist) UseIngredient

func (a *Alchemist) UseIngredient(newIngredient *ingredient.Ingredient) error

func (*Alchemist) UsedIngredients

func (a *Alchemist) UsedIngredients() []*ingredient.Ingredient

type EquipmentLevel

type EquipmentLevel struct {
	// contains filtered or unexported fields
}

type Mortar

type Mortar struct {
	// contains filtered or unexported fields
}

func NewMortar

func NewMortar(level EquipmentLevel) *Mortar

func (*Mortar) Strength

func (m *Mortar) Strength() float64

type Potion

type Potion struct {
	// contains filtered or unexported fields
}

func (Potion) Description

func (p Potion) Description() string

func (Potion) Effects

func (p Potion) Effects() []PotionEffect

type PotionEffect

type PotionEffect struct {
	// contains filtered or unexported fields
}

func (PotionEffect) Description

func (pe PotionEffect) Description() string

func (PotionEffect) Name

func (pe PotionEffect) Name() string

type Slot

type Slot struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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