Documentation
¶
Index ¶
Constants ¶
View Source
const ( WaitRoundsDefault = 3 Neutral SpellType = "neutral" // Neutral, no expected actor target, use on HarmSingle SpellType = "harmsingle" // Harmful, defaults to current aggro - magic missile etc HarmMulti SpellType = "harmmulti" // Harmful, defaults to all aggro mobs - chain lightning etc HelpSingle SpellType = "helpsingle" // Helpful, defaults on self - heal etc HelpMulti SpellType = "helpmulti" // Helpful, defaults on party - mass heal etc HarmArea SpellType = "harmarea" // Hits everyone in the room, even if hidden or friendly HelpArea SpellType = "helparea" // Hits everyone in the room, even if hidden SchoolRestoration SpellSchool = "restoration" // Healing, curing conditions, etc. SchoolIllusion SpellSchool = "illusion" // Light, darkness, invisibility, blink, etc. SchoolConjuration SpellSchool = "conjuration" // Summoning, teleportation, etc. )
Variables ¶
This section is empty.
Functions ¶
func CreateNewSpellFile ¶
func GetAllSpells ¶
func LoadSpellFiles ¶
func LoadSpellFiles()
Types ¶
type SpellData ¶
type SpellData struct {
SpellId string `yaml:"spellid,omitempty"`
Name string `yaml:"name,omitempty"`
Description string `yaml:"description,omitempty"`
Type SpellType `yaml:"type,omitempty"`
School SpellSchool `yaml:"school,omitempty"`
Cost int `yaml:"cost,omitempty"`
WaitRounds int `yaml:"waitrounds,omitempty"`
Difficulty int `yaml:"difficulty,omitempty"` // Augments final success chance by this %
}
func FindSpellByName ¶
func (*SpellData) GetDifficulty ¶
func (*SpellData) GetScriptPath ¶
type SpellSchool ¶
type SpellSchool string
Click to show internal directories.
Click to hide internal directories.