spells

package
Version: v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CastingDamage

type CastingDamage struct {
	DamageType   api.Ref        `json:"damage_type"`
	DamageAtSlot map[int]string `json:"damage_at_slot_level"`
}

type SpellClient

type SpellClient interface {
	GetList() (*api.ListResponse, error)
	QueryList(query map[string]string) (*api.ListResponse, error)
	GetByIndex(index string) (*SpellDetail, error)
}

func NewClient

func NewClient(basicsProvider api.BasicsProvider) SpellClient

type SpellDetail

type SpellDetail struct {
	Index         string        `json:"index"`
	Name          string        `json:"name"`
	Url           string        `json:"url"`
	Description   []string      `json:"desc"`
	HigherLevel   []string      `json:"higher_level"`
	Components    []string      `json:"components"`
	Range         string        `json:"range"`
	Material      string        `json:"material"`
	Ritual        bool          `json:"ritual"`
	Duration      string        `json:"duration"`
	Concentration bool          `json:"concentration"`
	CastingTime   string        `json:"casting_time"`
	Level         int           `json:"level"`
	AttackType    string        `json:"attack_type"`
	Damage        CastingDamage `json:"damage"`
	School        api.Ref       `json:"school"`
	Classes       []api.Ref     `json:"classes"`
	Subclasses    []api.Ref     `json:"subclasses"`
}

Jump to

Keyboard shortcuts

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