Documentation
¶
Index ¶
- func LoadData() error
- type ArtifactName
- type DurationTypeName
- type ItemCount
- type LootStore
- type MissionLootStore
- func (s *MissionLootStore) ItemCount(afxId api.ArtifactSpec_Name, afxLevel api.ArtifactSpec_Level, ...) (*ItemCount, error)
- func (s *MissionLootStore) ItemRarityCount(afxId api.ArtifactSpec_Name, afxLevel api.ArtifactSpec_Level, ...) int
- func (s *MissionLootStore) ItemTotal(afxId api.ArtifactSpec_Name, afxLevel api.ArtifactSpec_Level) int
- type RarityName
- type ShipLootStore
- type ShipName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.