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"
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"