exposition

package
v0.0.0-...-25a4f9c Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: GPL-3.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GemTypeStrength     = GemType("STR")
	GemTypeDexterity    = GemType("DEX")
	GemTypeIntelligence = GemType("INT")
	GemTypeNone         = GemType("NONE")
)

Variables

This section is empty.

Functions

func CalculateAllocationPaths

func CalculateAllocationPaths(version pob.TreeVersion, activeNodes []int64, rootNodes []int64) map[int64]int64

func CalculatePrunableNodes

func CalculatePrunableNodes(version pob.TreeVersion, activeNodes []int64, rootNodes []int64) []int64

TODO: Need some algorithm that figures out which nodes would be disconnected and therefore removed if the target node is removed Important steps: 1a. On allocation calculate and store a list of adjacent nodes that are currently on a path towards a start node (pathsToStart) 1b. Also make sure to check all previously allocated nodes and recalculate any new start paths adjacent nodes 2. On Deallocate start pruning all subtrees connected to the target node that ARE NOT listed in the pathsToStart

func Expose

func Expose() *crystalline.Exposer

func GetRawTree

func GetRawTree(version pob.TreeVersion) []byte

func GetStatByIndex

func GetStatByIndex(id int) *poe.Stat

func SetCalcTabElements

func SetCalcTabElements(elements *ElementWrapper)

Types

type ElementWrapper

type ElementWrapper struct {
	Elements map[string]calculator.ColProps
}

type GemPart

type GemPart struct {
	Name        string
	Description string
}

type GemType

type GemType string

type SkillGem

type SkillGem struct {
	MaxLevel int
	ID       string
	GemType  GemType
	Base     GemPart
	Vaal     GemPart
	Support  bool
}

func GetSkillGems

func GetSkillGems() []SkillGem

func (SkillGem) CalculateStuff

func (g SkillGem) CalculateStuff()

Jump to

Keyboard shortcuts

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