consumption

package
v0.0.0-...-607d84f Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func LoadData

func LoadData() error

Types

type ConsumptionOutcome

type ConsumptionOutcome struct {
	Item                    Item                `json:"item"`
	RawProduct              []RawProduct        `json:"raw_rewards"`
	ExpectedByproducts      []ExpectedByproduct `json:"product_rewards"`
	ExpectedFullConsumption []RawProduct        `json:"full_consumption"`
	DemotionGold            *float64            `json:"demotion_gold"`
}

func (*ConsumptionOutcome) Complete

func (c *ConsumptionOutcome) Complete()

type ExpectedByproduct

type ExpectedByproduct struct {
	Item
	ExpectedCount float64 `json:"expected_count"`
}

type Item

type Item struct {
	AfxId        api.ArtifactSpec_Name   `json:"afx_id"`
	AfxLevel     api.ArtifactSpec_Level  `json:"afx_level"`
	AfxRarity    api.ArtifactSpec_Rarity `json:"afx_rarity"`
	Id           string                  `json:"id"` // Not in original, must be populated.
	Name         string                  `json:"name"`
	TierNumber   int                     `json:"tier_number"`
	Rarity       string                  `json:"rarity"`
	IconFilename string                  `json:"icon_filename"` // Not in original, must be populated.
}

func (*Item) Complete

func (it *Item) Complete()

type RawProduct

type RawProduct struct {
	RewardType     int     `json:"reward_type"`
	RewardTypeName string  `json:"reward_type_name"`
	RewardAmount   float64 `json:"reward_amount"`
}

Jump to

Keyboard shortcuts

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