Documentation
¶
Index ¶
- Constants
- Variables
- type Artifact
- func RandomArtifact(base4Chance float32) *Artifact
- func RandomArtifactFromDomain(setA, setB string) *Artifact
- func RandomArtifactOfSet(set string, base4Chance float32) *Artifact
- func RandomArtifactOfSlot(slot artifactSlot, base4Chance float32) *Artifact
- func RemoveTrashArtifacts(arts []*Artifact, subValue map[stat]float32, n int) []*Artifact
- type ArtifactSubstat
- type GOODArtifact
- type GOODExport
- type GOODSubstat
Constants ¶
View Source
const ( Physical = iota Pyro Hydro Anemo Electro Dendro Cryo Geo )
View Source
const ( SlotFlower artifactSlot = iota SlotPlume SlotSands SlotGoblet SlotCirclet )
View Source
const ( HP stat = iota ATK DEF HPP ATKP DEFP EnergyRecharge ElementalMastery CritRate CritDmg PyroDMG ElectroDMG CryoDMG HydroDMG AnemoDMG GeoDMG DendroDMG PhysDMG HealingBonus GlobalDMGBonus BaseDMGIncrease )
View Source
const AverageDropsPerDomainRun = 1.065
View Source
const BossBase4Chance = 1.0 / 3.0
View Source
const DomainBase4Chance = 1.0 / 5.0
View Source
const DomainExtraArtifactChance = 0.065
View Source
const MaxSubstats = 4
View Source
const StrongboxBase4Chance = 1.0 / 3.0
Variables ¶
View Source
var AllArtifactSets = []artifactSet{
"GladiatorsFinale",
"WanderersTroupe",
"Thundersoother",
"ThunderingFury",
"MaidenBeloved",
"ViridescentVenerer",
"CrimsonWitchOfFlames",
"Lavawalker",
"NoblesseOblige",
"BloodstainedChivalry",
"ArchaicPetra",
"RetracingBolide",
"BlizzardStrayer",
"HeartOfDepth",
"TenacityOfTheMillelith",
"PaleFlame",
"EmblemOfSeveredFate",
"ShimenawasReminiscence",
"HuskOfOpulentDreams",
"OceanHuedClam",
"EchoesOfAnOffering",
"VermillionHereafter",
"DeepwoodMemories",
"GildedDreams",
"DesertPavilionChronicle",
"FlowerOfParadiseLost",
"NymphsDream",
"VourukashasGlow",
"MarechausseeHunter",
"GoldenTroupe",
"SongOfDaysPast",
"NighttimeWhispersInTheEchoingWoods",
}
5* sets only though
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact struct { Set artifactSet Slot artifactSlot MainStat stat MainStatValue float32 SubStats [MaxSubstats]*ArtifactSubstat IsFourLiner bool }
func RandomArtifact ¶
func RandomArtifactOfSet ¶
func RandomArtifactOfSlot ¶
func RemoveTrashArtifacts ¶
RemoveTrashArtifacts processes a slice of artifacts and keeps the best ones that have the correct mainstat subValue: To know which artifacts are more desirable n: Amount of artifacts to keep for every set, slot and main stat (example: n = 10, it will keep at most 10 gladiator atk sands)
type ArtifactSubstat ¶
func (*ArtifactSubstat) String ¶
func (s *ArtifactSubstat) String() string
type GOODArtifact ¶
type GOODExport ¶
type GOODExport struct { Artifacts []GOODArtifact `json:"artifacts"` Format string `json:"format"` Version int `json:"version"` Source string `json:"source"` }
func ExportToGOOD ¶
func ExportToGOOD(arts []*Artifact) GOODExport
type GOODSubstat ¶
Click to show internal directories.
Click to hide internal directories.