spells

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package spells provides type definitions for spell-related constants. These types are used by rulebooks to define spell identifiers, schools, components, and range types for magical abilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentType

type ComponentType string

ComponentType identifies spell components required. Example: const ComponentVerbal ComponentType = "verbal"

const (
	ComponentVerbal   ComponentType = "verbal"
	ComponentSomatic  ComponentType = "somatic"
	ComponentMaterial ComponentType = "material"
	ComponentFocus    ComponentType = "focus"
)

Common component types used in many systems

type ID

type ID string

ID identifies a specific spell. Rulebooks define constants of this type for their spells. Example: const Fireball ID = "fireball"

type RangeType

type RangeType string

RangeType identifies the range category of a spell. Example: const RangeTouch RangeType = "touch"

const (
	RangeSelf    RangeType = "self"
	RangeTouch   RangeType = "touch"
	RangeShort   RangeType = "short"
	RangeMedium  RangeType = "medium"
	RangeLong    RangeType = "long"
	RangeSight   RangeType = "sight"
	RangeSpecial RangeType = "special"
)

Common range types

type School

type School string

School identifies the school of magic a spell belongs to. Example: const SchoolEvocation School = "evocation"

type TargetType

type TargetType string

TargetType identifies what a spell can target. Example: const TargetCreature TargetType = "creature"

Jump to

Keyboard shortcuts

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