parse_static_data

package
v0.0.0-...-1d786e0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwakenMaterial

type AwakenMaterial string
const (
	AwakenMaterial_LesserMagic    AwakenMaterial = "103"
	AwakenMaterial_GreaterMagic   AwakenMaterial = "103"
	AwakenMaterial_SuperiorMagic  AwakenMaterial = "103"
	AwakenMaterial_LesserForce    AwakenMaterial = "111"
	AwakenMaterial_GreaterForce   AwakenMaterial = "112"
	AwakenMaterial_SuperiorForce  AwakenMaterial = "113"
	AwakenMaterial_LesserSpirit   AwakenMaterial = "121"
	AwakenMaterial_GreaterSpirit  AwakenMaterial = "122"
	AwakenMaterial_SuperiorSpirit AwakenMaterial = "123"
	AwakenMaterial_LesserVoid     AwakenMaterial = "131"
	AwakenMaterial_GreaterVoid    AwakenMaterial = "132"
	AwakenMaterial_SuperiorVoid   AwakenMaterial = "133"
	AwakenMaterial_LesserArcane   AwakenMaterial = "141"
	AwakenMaterial_GreaterArcane  AwakenMaterial = "142"
	AwakenMaterial_SuperiorArcane AwakenMaterial = "143"
)

type Command

type Command struct {
	DataFile      *string
	DataDirectory *string
}

func New

func New(cmd *kingpin.CmdClause) *Command

func (*Command) Run

func (c *Command) Run()

type Data

type Data struct {
	Strings  map[string]string `json:"StaticDataLocalization"`
	HeroData struct {
		HeroTypes                []HeroType
		HeroExperienceByKey      map[string]int64
		SacrificeExperienceByKey map[string]int64
		RankHeroCountByGrade     map[string]int64
		RankSilverByGrade        map[string]int64
		LevelUpPriceByGrade      map[string]struct {
			RawValues map[string]int64
		}
		FractionsByRace           map[string][]int64
		HeroIdsByRarities         map[string][]int64
		LevelUpMaterialsLimit     int64
		MultipleHeroesSummonCount int64
		MaxInventorySlotsCount    int64
		MaxStorageSlotsCount      int64
		InventorySlotsPrices      []struct {
			UserSlotsCount int64
			SilverPrice    struct {
				RawValues map[string]int64
			}
			GemsPrice struct {
				RawValues map[string]int64
			}
		}
		StorageSlotsPrices []struct {
			UserSlotsCount int64
			SilverPrice    struct {
				RawValues map[string]int64
			}
			GemsPrice struct {
				RawValues map[string]int64
			}
		}
		HeroesOnIntroFinish             []int64
		HeroRatingUpdateCooldownMinutes int64
		HeroPartsCountByHeroType        map[string]int64
	}
	SkillData struct {
		SkillTypes []SkillType
	}
}

type Element

type Element uint8
const (
	Element_Spirit Element = 3
)

type HeroRepresentation

type HeroRepresentation struct {
	Name   string
	Awaken map[uint8]HeroType
}

type HeroType

type HeroType struct {
	ID   int64 `json:"Id"`
	Name struct {
		Key          string
		DefaultValue string
	}
	AvatarName      string
	ModelName       string
	Element         Element
	Role            Role
	Rarity          Rarity
	AwakenMaterials struct {
		RawValues map[AwakenMaterial]uint8
	}
	BaseStats struct {
		Health         int64
		Attack         int64
		Defense        int64 `json:"Defence"`
		Speed          int64
		Resistance     int64
		Accuracy       int64
		CriticalChance int64
		CriticalDamage int64
		CriticalHeal   int64
	}
	// SkillTypeIDs holds champion's skill IDs. Skill can evolve depending on the awakening level of the champion
	SkillTypeIDs        []int64 `json:"SkillTypeIds"`
	SummonWeight        int64
	IsLocationOnly      uint8
	Brain               int64
	ArtifactSuggestions []struct {
		KindID         int64 `json:"KindId"`
		SetKindID      int64 `json:"SetKindId"`
		PrimaryBonuses []struct {
			KindID     int64 `json:"KindId"`
			IsAbsolute uint8
		}
	}
	LeaderSkill struct {
		StatKindID StatKind `json:"StatKindId"`
		IsAbsolute uint8
		Amount     int64
	}
}

type Rarity

type Rarity uint8
const (
	Rarity_Epic Rarity = 4
)

type Role

type Role uint8
const (
	Role_Def Role = 1
)

type SkillBonusType

type SkillBonusType uint8
const (
	SkillBonusType_Damage             SkillBonusType = 0
	SkillBonusType_Buff_Debuff_Chance SkillBonusType = 2
	SkillBonusType_Cooldown           SkillBonusType = 3
)

type SkillType

type SkillType struct {
	ID       int64 `json:"Id"`
	Revision int64
	Name     struct {
		Key          string
		DefaultValue string
	}
	Description struct {
		Key          string
		DefaultValue string
	}
	Group                    int64
	Cooldown                 int64
	ReduceCooldownProhibited uint8
	IsHidden                 uint8
	ShowDamageScale          uint8
	Visibility               uint8
	SkillLevelBonuses        []struct {
		SkillBonusType SkillBonusType
		Value          WeirdValue
	}
	Effects []struct {
		ID           int64 `json:"Id"`
		KindID       int64 `json:"KindId"`
		Group        int64
		TargetParams struct {
			TargetType         uint8
			Exclusive          uint8
			FirstHitInSelected uint8
		}
		IsEffectDescription      uint8
		ConsidersDead            uint8
		LeaveThroughDeath        uint8
		DoesntSetSkillOnCooldown uint8
		IgnoresCooldown          uint8
		IsUnique                 uint8
		IterationChanceRolling   uint8
		Relation                 struct {
			EffectKindIDs         []int64 `json:"EffectKindIds"`
			Phase                 int64
			ActivateOnGlancingHit int64
		}
		Condition             string
		Count                 int64
		StackCount            int64
		MultiplierFormula     string
		ValueCap              string
		PersistsThroughRounds uint8
		SnapshotRequired      uint8
		HealParams            struct {
			CanBeCritical uint8
		}
	}
}

type StatKind

type StatKind uint8
const (
	StatKind_HP  StatKind = 1
	StatKind_ATK StatKind = 2
)

type WeirdValue

type WeirdValue int64

func (*WeirdValue) UnmarshalJSON

func (v *WeirdValue) UnmarshalJSON(src []byte) error

Jump to

Keyboard shortcuts

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