fetools

package
v0.0.0-...-975fa30 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get5etoolsItemMap

func Get5etoolsItemMap(paths []string) map[string]Item

Types

type Class

type Class struct {
	Name   string `json:"name"`
	Source string `json:"source"`
}

type Item

type Item struct {
	Name       string        `json:"name"`
	Source     string        `json:"source"`
	Page       int           `json:"page"`
	Rarity     string        `json:"rarity"`
	Wondrous   bool          `json:"wondrous"`
	Entries    []interface{} `json:"entries"`
	Weight     float32       `json:"weight"`
	BaseItem   string        `json:"baseItem"`
	Type       string        `json:"type"`
	Property   []interface{} `json:"property"`
	DamageType string        `json:"dmgType"`
	Tier       string        `json:"tier"`
	LootTables []interface{} `json:"lootTables"`
	Value      float32       `json:"value"`
}

func Get5etoolsItems

func Get5etoolsItems(paths []string) []Item

type ItemList

type ItemList struct {
	Items     []Item `json:"item"`
	BaseItems []Item `json:"baseitem"`
}

type Monster

type Monster struct {
	Name   string    `json:"name"`
	Size   string    `json:"size"`
	Source string    `json:"source"`
	HP     MonsterHP `json:"hp"`
	Dex    int       `json:"dex"`
}

func Get5etoolsMonsters

func Get5etoolsMonsters(path string) []Monster

type MonsterHP

type MonsterHP struct {
	Average int    `json:"average"`
	Formula string `json:"formula"`
}

type MonsterList

type MonsterList struct {
	Monsters []Monster `json:"monster"`
}

type MonsterType

type MonsterType struct {
	Type string   `json:"type"`
	Tags []string `json:"tags"`
}

type Spell

type Spell struct {
	Name   string `json:"name"`
	Level  int    `json:"level"`
	School string `json:"school"`
	//Time SpellTime `json:"time"`
	Range       SpellRange    `json:"range"`
	Classes     SpellClasses  `json:"classes"`
	Source      string        `json:"source"`
	Entries     []interface{} `json:"entries"`
	Page        int           `json:"page"`
	DamageTypes []string      `json:"damageInflict"`
}

func Get5etoolsSpells

func Get5etoolsSpells(path string) []Spell

type SpellClasses

type SpellClasses struct {
	ClassList []Class `json:"fromClassList"`
}

type SpellDistance

type SpellDistance struct {
	Type   string `json:"type"`
	Amount int    `json:"amount"`
}

type SpellList

type SpellList struct {
	Spells []Spell `json:"spell"`
}

type SpellRange

type SpellRange struct {
	Type     string        `json:"type"`
	Distance SpellDistance `json:"disance"`
}

type SpellTime

type SpellTime struct {
	Number int    `json:"number"`
	Unit   string `json:"unit"`
}

Jump to

Keyboard shortcuts

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