Documentation
¶
Index ¶
- func LoadDataFiles()
- type Food
- type Pet
- func (p *Pet) DisplayName() string
- func (p *Pet) Exists() bool
- func (p *Pet) Filename() string
- func (p *Pet) Filepath() string
- func (p *Pet) FindItem(itemName string) (items.Item, bool)
- func (p *Pet) GetBuffs() []int
- func (p *Pet) GetDiceRoll() (attacks int, dCount int, dSides int, bonus int, buffOnCrit []int)
- func (p *Pet) Id() string
- func (p *Pet) RemoveItem(i items.Item) bool
- func (p *Pet) Save() error
- func (p *Pet) StatMod(statName string) int
- func (p *Pet) StoreItem(i items.Item) bool
- func (p *Pet) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pet ¶
type Pet struct {
Name string `yaml:"name,omitempty"` // Name of the pet (player provided hopefully)
NameStyle string `yaml:"namestyle,omitempty"` // Optional color pattern to apply
Type string `yaml:"type"` // type of pet
Food Food `yaml:"food,omitempty"` // how much food the pet has
LastMealRound uint8 `yaml:"lastmealround,omitempty"` // When the pet was last fed
Damage items.Damage `yaml:"damage,omitempty"` // When the pet was last fed
StatMods statmods.StatMods `yaml:"statmods,omitempty"` // stat mods the pet provides
BuffIds []int `yaml:"buffids,omitempty"` // Permabuffs this pet affords the player
Capacity int `yaml:"capacity,omitempty"` // How many items this mob can carry
Items []items.Item `yaml:"items,omitempty"` // Items held by this pet
}
func GetPetCopy ¶
func GetPetSpec ¶
func (*Pet) DisplayName ¶
func (*Pet) GetDiceRoll ¶
Click to show internal directories.
Click to hide internal directories.