spell_struct Struct Reference

#include <spells.h>

Data Fields

char name [BIG_NAME]
int type
char * icon
char * description
int level
int sp
int time
int scrolls
int charges
int range
float value_mul
int bdam
int bdur
int ldam
int ldur
int spl
const char * sound
int spell_use
uint32 flags
uint32 path
char * archname

Detailed Description

Spell structure.

Definition at line 140 of file spells.h.


Field Documentation

Pointer to archetype used by spell.

Definition at line 218 of file spells.h.

Base damage or hp of spell or summoned monster.

Definition at line 183 of file spells.h.

Base duration of spell or base range.

Definition at line 186 of file spells.h.

If it can be used in wands, max # of charges.

Definition at line 169 of file spells.h.

Description of the spell for client's spell list.

Definition at line 154 of file spells.h.

A combination of Spell flags.

Definition at line 212 of file spells.h.

Face name that should be used as an icon in client's spell list/quickslots.

Definition at line 151 of file spells.h.

Levels you need over the min for the spell to gain one damage.

Definition at line 189 of file spells.h.

Levels you need over the min for the spell to gain one duration.

Definition at line 192 of file spells.h.

Level required to cast this spell.

Definition at line 157 of file spells.h.

char spell_struct::name[BIG_NAME]

Name of this spell.

Definition at line 143 of file spells.h.

Path this spell belongs to.

Definition at line 215 of file spells.h.

If target spell, this is max range to target.

Definition at line 172 of file spells.h.

From 1 to this value we will generate for potions/scrolls...

Definition at line 166 of file spells.h.

const char* spell_struct::sound

Sound the spell produces when cast.

Definition at line 206 of file spells.h.

Spellpoint cost to cast it.

Definition at line 160 of file spells.h.

A combination of Spell use flags.

Definition at line 209 of file spells.h.

Number of levels beyond minimum for spell point cost to increase by amount equal to base cost.

I.e. if base cost is 10 at level 2 and spl is 5, cost will increase by 2 per level.

If base cost is 5 and spl is 10, cost increases by 1 every 2 levels.

Definition at line 203 of file spells.h.

How many ticks it takes to cast the spell.

Definition at line 163 of file spells.h.

Type of spell.

Definition at line 146 of file spells.h.

Used when we have an item of this kind of spell. A magic potion has value x.

We do: (x * value_mul) * level to increase the value.

See also:
object::value

Definition at line 180 of file spells.h.


The documentation for this struct was generated from the following file:

Generated by  doxygen 1.6.2