loot

package
v0.0.0-...-271bb02 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadData

func LoadData() error

Types

type ArtifactName

type ArtifactName string

type DurationTypeName

type DurationTypeName string

type ItemCount

type ItemCount struct {
	Total    int                             `json:"total"`
	Rarities map[api.ArtifactSpec_Rarity]int `json:"rarities"`
}

type LootStore

type LootStore map[ShipName]ShipLootStore
var Data LootStore

func (LootStore) MissionLoot

func (s LootStore) MissionLoot(
	ship api.MissionInfo_Spaceship,
	durationType api.MissionInfo_DurationType,
) *MissionLootStore

type MissionLootStore

type MissionLootStore struct {
	TotalArtifactsCount int                                   `json:"count"`
	LootCounts          map[ArtifactName][]map[RarityName]int `json:"rewards"`
}

func (*MissionLootStore) ItemCount

func (s *MissionLootStore) ItemCount(
	afxId api.ArtifactSpec_Name,
	afxLevel api.ArtifactSpec_Level,
	possibleAfxRarities []api.ArtifactSpec_Rarity,
) (*ItemCount, error)

func (*MissionLootStore) ItemRarityCount

func (s *MissionLootStore) ItemRarityCount(
	afxId api.ArtifactSpec_Name,
	afxLevel api.ArtifactSpec_Level,
	afxRarity api.ArtifactSpec_Rarity,
) int

func (*MissionLootStore) ItemTotal

func (s *MissionLootStore) ItemTotal(
	afxId api.ArtifactSpec_Name,
	afxLevel api.ArtifactSpec_Level,
) int

type RarityName

type RarityName string

func (RarityName) AfxRarity

func (r RarityName) AfxRarity() api.ArtifactSpec_Rarity

type ShipLootStore

type ShipLootStore map[DurationTypeName]*MissionLootStore

type ShipName

type ShipName string

Jump to

Keyboard shortcuts

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