raw

package
v0.0.0-...-a43b89a Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: GPL-3.0, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const LatestVersion = "3.18"

Variables

View Source
var ActiveSkillTypes []*ActiveSkillType
View Source
var ActiveSkills []*ActiveSkill
View Source
var AlternatePassiveAdditions []*AlternatePassiveAddition
View Source
var AlternatePassiveSkills []*AlternatePassiveSkill
View Source
var ArmourTypes []*ArmourType
View Source
var BaseItemTypeByIDMap map[string]*BaseItemType
View Source
var BaseItemTypes []*BaseItemType
View Source
var ComponentAttributeRequirements []*ComponentAttributeRequirement
View Source
var ComponentCharges []*ComponentCharge
View Source
var CostTypes []*CostType
View Source
var CraftingBenchOptions []*CraftingBenchOption
View Source
var DefaultMonsterStats []*DefaultMonsterStat
View Source
var Essences []*Essence
View Source
var Flasks []*Flask
View Source
var GrantedEffectQualityStats []*GrantedEffectQualityStat
View Source
var GrantedEffectStatSets []*GrantedEffectStatSet
View Source
var GrantedEffectStatSetsPerLevels []*GrantedEffectStatSetsPerLevel
View Source
var GrantedEffects []*GrantedEffect
View Source
var GrantedEffectsPerLevels []*GrantedEffectsPerLevel
View Source
var ItemClasses []*ItemClass
View Source
var ItemExperiencePerLevels []*ItemExperiencePerLevel
View Source
var Mods []*Mod
View Source
var MonsterMapBossDifficulties []*MonsterMapBossDifficulty
View Source
var MonsterMapDifficulties []*MonsterMapDifficulty
View Source
var MonsterVarieties []*MonsterVariety
View Source
var PantheonPanelLayouts []*PantheonPanelLayout
View Source
var PassiveTreeExpansionJewels []*PassiveTreeExpansionJewel
View Source
var PassiveTreeExpansionSkills []*PassiveTreeExpansionSkill
View Source
var PassiveTreeExpansionSpecialSkills []*PassiveTreeExpansionSpecialSkill
View Source
var ShieldTypes []*ShieldType
View Source
var SkillGems []*SkillGem
View Source
var SkillStatMap = map[string]*StatMap{

	"spell_minimum_base_fire_damage": {
		Mods: []mod.Mod{skill("FireMin", 0)},
	},

	"spell_maximum_base_fire_damage": {
		Mods: []mod.Mod{skill("FireMax", 0)},
	},

	"global_minimum_added_cold_damage": {
		Mods: []mod.Mod{mod.NewFloat("ColdMin", mod.TypeBase, 0)},
	},
	"global_maximum_added_cold_damage": {
		Mods: []mod.Mod{mod.NewFloat("ColdMax", mod.TypeBase, 0)},
	},

	"base_chance_to_ignite": {
		Mods: []mod.Mod{mod.NewFloat("EnemyIgniteChance", mod.TypeBase, 0)},
	},
}
View Source
var SkillTotemVariations []*SkillTotemVariation
View Source
var SkillTotems []*SkillTotem
View Source
var Stats []*Stat
View Source
var Tags []*Tag
View Source
var WeaponTypes []*WeaponType

Functions

func InitHelper

func InitHelper[T msgp.Decodable](version string, name string, target *[]T, onInit func(count int64), hooks ...func(obj T)) error

func InitializeActiveSkillTypes

func InitializeActiveSkillTypes(version string) error

func InitializeActiveSkills

func InitializeActiveSkills(version string) error

func InitializeAll

func InitializeAll(version string, updateFunc UpdateFunc) error

func InitializeAlternatePassiveAdditions

func InitializeAlternatePassiveAdditions(version string) error

func InitializeAlternatePassiveSkills

func InitializeAlternatePassiveSkills(version string) error

func InitializeArmourTypes

func InitializeArmourTypes(version string) error

func InitializeBaseItemTypes

func InitializeBaseItemTypes(version string) error

func InitializeComponentAttributeRequirements

func InitializeComponentAttributeRequirements(version string) error

func InitializeComponentCharges

func InitializeComponentCharges(version string) error

func InitializeCostTypes

func InitializeCostTypes(version string) error

func InitializeCraftingBenchOptions

func InitializeCraftingBenchOptions(version string) error

func InitializeDefaultMonsterStats

func InitializeDefaultMonsterStats(version string) error

func InitializeEssences

func InitializeEssences(version string) error

func InitializeFlasks

func InitializeFlasks(version string) error

func InitializeGrantedEffectQualityStats

func InitializeGrantedEffectQualityStats(version string) error

func InitializeGrantedEffectStatSets

func InitializeGrantedEffectStatSets(version string) error

func InitializeGrantedEffectStatSetsPerLevels

func InitializeGrantedEffectStatSetsPerLevels(version string) error

func InitializeGrantedEffects

func InitializeGrantedEffects(version string) error

func InitializeGrantedEffectsPerLevels

func InitializeGrantedEffectsPerLevels(version string) error

func InitializeItemClasses

func InitializeItemClasses(version string) error

func InitializeItemExperiencePerLevels

func InitializeItemExperiencePerLevels(version string) error

func InitializeMods

func InitializeMods(version string) error

func InitializeMonsterMapBossDifficulties

func InitializeMonsterMapBossDifficulties(version string) error

func InitializeMonsterMapDifficulties

func InitializeMonsterMapDifficulties(version string) error

func InitializeMonsterVarieties

func InitializeMonsterVarieties(version string) error

func InitializePantheonPanelLayouts

func InitializePantheonPanelLayouts(version string) error

func InitializePassiveTreeExpansionJewels

func InitializePassiveTreeExpansionJewels(version string) error

func InitializePassiveTreeExpansionSkills

func InitializePassiveTreeExpansionSkills(version string) error

func InitializePassiveTreeExpansionSpecialSkills

func InitializePassiveTreeExpansionSpecialSkills(version string) error

func InitializeShieldTypes

func InitializeShieldTypes(version string) error

func InitializeSkillGems

func InitializeSkillGems(version string) error

func InitializeSkillTotemVariations

func InitializeSkillTotemVariations(version string) error

func InitializeSkillTotems

func InitializeSkillTotems(version string) error

func InitializeStats

func InitializeStats(version string) error

func InitializeTags

func InitializeTags(version string) error

func InitializeWeaponTypes

func InitializeWeaponTypes(version string) error

func LoadRaw

func LoadRaw[T msgp.Decodable](version string, name string, onInit func(count int64), hooks ...func(obj T)) ([]T, error)

LoadRaw loads a raw brotli-compressed json dump from remote source

Returns data from cache if found

Types

type ActiveSkill

type ActiveSkill struct {
	raw2.ActiveSkill
}

func (*ActiveSkill) GetActiveSkillTypes

func (g *ActiveSkill) GetActiveSkillTypes() []*ActiveSkillType

func (*ActiveSkill) GetWeaponRestrictions

func (g *ActiveSkill) GetWeaponRestrictions() []*ItemClass

type ActiveSkillType

type ActiveSkillType struct {
	raw2.ActiveSkillType
}

type AlternatePassiveAddition

type AlternatePassiveAddition struct {
	raw2.AlternatePassiveAddition
}

type AlternatePassiveSkill

type AlternatePassiveSkill struct {
	raw2.AlternatePassiveSkill
}

type ArmourType

type ArmourType struct {
	raw2.ArmourType
}

type BaseItemType

type BaseItemType struct {
	raw2.BaseItemType
}

func (*BaseItemType) SkillGem

func (b *BaseItemType) SkillGem() *SkillGem

type CalculatedLevel

type CalculatedLevel struct {
	Level             int
	Values            []float64
	Cost              map[string]int
	StatInterpolation []int
	LevelRequirement  int

	ManaReservationFlat    *float64
	ManaReservationPercent *float64
	LifeReservationFlat    *float64
	LifeReservationPercent *float64
	ManaMultiplier         *float64
	DamageEffectiveness    *float64
	CritChance             *float64
	BaseMultiplier         *float64
	AttackSpeedMultiplier  *float64
	AttackTime             *float64
	Cooldown               *float64
	SoulCost               *float64
	SkillUseStorage        *float64
	SoulPreventionDuration *float64
}

type ComponentAttributeRequirement

type ComponentAttributeRequirement struct {
	raw2.ComponentAttributeRequirement
}

type ComponentCharge

type ComponentCharge struct {
	raw2.ComponentCharge
}

type CostType

type CostType struct {
	raw2.CostType
}

type CraftingBenchOption

type CraftingBenchOption struct {
	raw2.CraftingBenchOption
}

type DefaultMonsterStat

type DefaultMonsterStat struct {
	raw2.DefaultMonsterStat
}

type Essence

type Essence struct {
	raw2.Essence
}

type Flask

type Flask struct {
	raw2.Flask
}

type GrantedEffect

type GrantedEffect struct {
	raw2.GrantedEffect
	// contains filtered or unexported fields
}

func GrantedEffectByID

func GrantedEffectByID(id string) *GrantedEffect

func (*GrantedEffect) Calculate

func (g *GrantedEffect) Calculate()

func (*GrantedEffect) GetActiveSkill

func (g *GrantedEffect) GetActiveSkill() *ActiveSkill

func (*GrantedEffect) GetCalculatedConstantStats

func (g *GrantedEffect) GetCalculatedConstantStats() map[string]float64

func (*GrantedEffect) GetCalculatedLevels

func (g *GrantedEffect) GetCalculatedLevels() map[int]*CalculatedLevel

func (*GrantedEffect) GetCalculatedStatMap

func (g *GrantedEffect) GetCalculatedStatMap() *cache.ComputationCache[string, *StatMap]

func (*GrantedEffect) GetCalculatedStats

func (g *GrantedEffect) GetCalculatedStats() []string

func (*GrantedEffect) GetEffectQualityStats

func (g *GrantedEffect) GetEffectQualityStats() map[int]*GrantedEffectQualityStat

func (*GrantedEffect) GetEffectStatSetsPerLevel

func (g *GrantedEffect) GetEffectStatSetsPerLevel() map[int]*GrantedEffectStatSetsPerLevel

func (*GrantedEffect) GetEffectsPerLevel

func (g *GrantedEffect) GetEffectsPerLevel() map[int]*GrantedEffectsPerLevel

func (*GrantedEffect) GetExcludeTypes

func (g *GrantedEffect) GetExcludeTypes() []*ActiveSkillType

func (*GrantedEffect) GetGrantedEffectStatSet

func (g *GrantedEffect) GetGrantedEffectStatSet() *GrantedEffectStatSet

func (*GrantedEffect) GetSkillGem

func (g *GrantedEffect) GetSkillGem() *SkillGem

func (*GrantedEffect) GetSupportTypes

func (g *GrantedEffect) GetSupportTypes() []*ActiveSkillType

func (*GrantedEffect) HasGlobalEffect

func (g *GrantedEffect) HasGlobalEffect() bool

func (*GrantedEffect) Levels

func (g *GrantedEffect) Levels() map[int]*GrantedEffectsPerLevel

type GrantedEffectQualityStat

type GrantedEffectQualityStat struct {
	raw2.GrantedEffectQualityStat
}

func (*GrantedEffectQualityStat) GetStats

func (s *GrantedEffectQualityStat) GetStats() []*Stat

type GrantedEffectStatSet

type GrantedEffectStatSet struct {
	raw2.GrantedEffectStatSet
}

func (*GrantedEffectStatSet) GetConstantStats

func (g *GrantedEffectStatSet) GetConstantStats() []*Stat

func (*GrantedEffectStatSet) GetImplicitStats

func (g *GrantedEffectStatSet) GetImplicitStats() []*Stat

type GrantedEffectStatSetsPerLevel

type GrantedEffectStatSetsPerLevel struct {
	raw2.GrantedEffectStatSetsPerLevel
}

func (*GrantedEffectStatSetsPerLevel) GetAdditionalBooleanStats

func (g *GrantedEffectStatSetsPerLevel) GetAdditionalBooleanStats() []*Stat

func (*GrantedEffectStatSetsPerLevel) GetAdditionalStats

func (g *GrantedEffectStatSetsPerLevel) GetAdditionalStats() []*Stat

func (*GrantedEffectStatSetsPerLevel) GetFloatStats

func (g *GrantedEffectStatSetsPerLevel) GetFloatStats() []*Stat

type GrantedEffectsPerLevel

type GrantedEffectsPerLevel struct {
	raw2.GrantedEffectsPerLevel
}

func (*GrantedEffectsPerLevel) GetCostTypes

func (l *GrantedEffectsPerLevel) GetCostTypes() []*CostType

type InitFunction

type InitFunction func(version string) error

type ItemClass

type ItemClass struct {
	raw2.ItemClass
}

type ItemExperiencePerLevel

type ItemExperiencePerLevel struct {
	raw2.ItemExperiencePerLevel
}

type Mod

type Mod struct {
	raw2.Mod
}

type MonsterMapBossDifficulty

type MonsterMapBossDifficulty struct {
	raw2.MonsterMapBossDifficulty
}

type MonsterMapDifficulty

type MonsterMapDifficulty struct {
	raw2.MonsterMapDifficulty
}

type MonsterVariety

type MonsterVariety struct {
	raw2.MonsterVariety
}

type PantheonPanelLayout

type PantheonPanelLayout struct {
	raw2.PantheonPanelLayout
}

type PassiveTreeExpansionJewel

type PassiveTreeExpansionJewel struct {
	raw2.PassiveTreeExpansionJewel
}

type PassiveTreeExpansionSkill

type PassiveTreeExpansionSkill struct {
	raw2.PassiveTreeExpansionSkill
}

type PassiveTreeExpansionSpecialSkill

type PassiveTreeExpansionSpecialSkill struct {
	raw2.PassiveTreeExpansionSpecialSkill
}

type ShieldType

type ShieldType struct {
	raw2.ShieldType
}

type SkillGem

type SkillGem struct {
	raw2.SkillGem
}

func (*SkillGem) DefaultLevel

func (s *SkillGem) DefaultLevel() int

func (*SkillGem) GetBaseItemType

func (s *SkillGem) GetBaseItemType() *BaseItemType

func (*SkillGem) GetGrantedEffect

func (s *SkillGem) GetGrantedEffect() *GrantedEffect

func (*SkillGem) GetGrantedEffects

func (s *SkillGem) GetGrantedEffects() []*GrantedEffect

func (*SkillGem) GetNonVaal

func (s *SkillGem) GetNonVaal() *SkillGem

func (*SkillGem) GetSecondaryGrantedEffect

func (s *SkillGem) GetSecondaryGrantedEffect() *GrantedEffect

func (*SkillGem) GetTags

func (s *SkillGem) GetTags() map[raw2.TagName]*Tag

type SkillTotem

type SkillTotem struct {
	raw2.SkillTotem
}

type SkillTotemVariation

type SkillTotemVariation struct {
	raw2.SkillTotemVariation
}

type Stat

type Stat struct {
	raw2.Stat
}

type StatMap

type StatMap struct {
	Mods  []mod.Mod
	Value *float64
	Mult  *float64
	Div   *float64
	Base  *float64
}

func (*StatMap) Clone

func (s *StatMap) Clone() *StatMap

type Tag

type Tag struct {
	raw2.Tag
}

type UpdateFunc

type UpdateFunc func(data string)

type WeaponType

type WeaponType struct {
	raw2.WeaponType
}

Jump to

Keyboard shortcuts

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