eiafx

package
v0.0.0-...-5af5307 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 5 Imported by: 0

README

Update these with proto-explorer/afx/config/

Documentation

Index

Constants

This section is empty.

Variables

Functions

func LoadConfig

func LoadConfig() error

func LoadData

func LoadData() error

Types

type CoreFamily

type CoreFamily struct {
	Id          string                  `json:"id"`
	AfxId       api.ArtifactSpec_Name   `json:"afx_id"`
	Name        string                  `json:"name"`
	AfxType     api.ArtifactSpec_Type   `json:"afx_type"`
	Type        string                  `json:"type"`
	SortKey     uint32                  `json:"sort_key"`
	ChildAfxIds []api.ArtifactSpec_Name `json:"child_afx_ids"`
}

type CoreTier

type CoreTier struct {
	ItemIdentifiers
	TierNumber   int                   `json:"tier_number"`
	TierName     string                `json:"tier_name"`
	AfxType      api.ArtifactSpec_Type `json:"afx_type"`
	Type         string                `json:"type"`
	IconFilename string                `json:"icon_filename"`
}

type CraftingPrice

type CraftingPrice struct {
	Base    float64 `json:"base"`
	Low     float64 `json:"low"`
	Domain  uint32  `json:"domain"`
	Curve   float64 `json:"curve"`
	Initial uint32  `json:"initial"`
	Minimum uint32  `json:"minimum"`
}

type Effect

type Effect struct {
	AfxRarity    api.ArtifactSpec_Rarity `json:"afx_rarity"`
	Rarity       string                  `json:"rarity"`
	Effect       string                  `json:"effect"`
	EffectTarget string                  `json:"effect_target"`
	EffectSize   string                  `json:"effect_size"`
	EffectDelta  float64                 `json:"effect_delta"`
	FamilyEffect string                  `json:"family_effect"`
	// May be null (for stones).
	Slots          *uint32 `json:"slots"`
	OddsMultiplier float64 `json:"odds_multiplier"`
}

type Family

type Family struct {
	CoreFamily

	Effect       string  `json:"effect"`
	EffectTarget string  `json:"effect_target"`
	Tiers        []*Tier `json:"tiers"`
}

type Ingredient

type Ingredient struct {
	CoreTier
	Count uint32 `json:"count"`
}

type ItemIdentifiers

type ItemIdentifiers struct {
	Id       string                 `json:"id"`
	AfxId    api.ArtifactSpec_Name  `json:"afx_id"`
	AfxLevel api.ArtifactSpec_Level `json:"afx_level"`
	Name     string                 `json:"name"`
}

type Recipe

type Recipe struct {
	Ingredients   []Ingredient  `json:"ingredients"`
	CraftingPrice CraftingPrice `json:"crafting_price"`
}

type Store

type Store struct {
	Schema           string    `json:"$schema"`
	ArtifactFamilies []*Family `json:"artifact_families"`
}
var Data *Store

type Tier

type Tier struct {
	Family *CoreFamily `json:"family"`

	CoreTier

	Quality               float64                   `json:"quality"`
	Craftable             bool                      `json:"craftable"`
	BaseCraftingPrices    []float64                 `json:"base_crafting_prices"`
	HasRarities           bool                      `json:"has_rarities"`
	PossibleAfxRarities   []api.ArtifactSpec_Rarity `json:"possible_afx_rarities"`
	HasEffects            bool                      `json:"has_effects"`
	AvailableFromMissions bool                      `json:"available_from_missions"`

	Effects []*Effect `json:"effects"`
	Recipe  *Recipe   `json:"recipe"`

	IngredientsAvailableFromMissions bool         `json:"ingredients_available_from_missions"`
	HardDependencies                 []Ingredient `json:"hard_dependencies"`
	OddsMultiplier                   float64      `json:"odds_multiplier"`
}

func GetTier

func GetTier(spec *api.ArtifactSpec) (*Tier, error)

Jump to

Keyboard shortcuts

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