Atrinik Server  4.0
Data Fields
spell_struct Struct Reference

#include <spells.h>

Data Fields

const char * name
 
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_t flags
 
uint32_t path
 
const char * archname
 
struct archetypeat
 

Detailed Description

Spell structure.

Definition at line 130 of file spells.h.

Field Documentation

const char* spell_struct::archname

Name of the archetype used by the spell.

Definition at line 195 of file spells.h.

struct archetype* spell_struct::at

Pointer to archetype used by spell.

Definition at line 198 of file spells.h.

int spell_struct::bdam

Base damage or hp of spell or summoned monster.

Definition at line 159 of file spells.h.

int spell_struct::bdur

Base duration of spell or base range.

Definition at line 162 of file spells.h.

int spell_struct::charges

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

Definition at line 144 of file spells.h.

uint32_t spell_struct::flags

A combination of Spell flags.

Definition at line 189 of file spells.h.

int spell_struct::ldam

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

Definition at line 165 of file spells.h.

int spell_struct::ldur

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

Definition at line 168 of file spells.h.

const char* spell_struct::name

Name of this spell.

Definition at line 132 of file spells.h.

uint32_t spell_struct::path

Path this spell belongs to.

Definition at line 192 of file spells.h.

int spell_struct::range

If target spell, this is max range to target.

Definition at line 147 of file spells.h.

int spell_struct::scrolls

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

Definition at line 141 of file spells.h.

const char* spell_struct::sound

Sound the spell produces when cast.

Definition at line 183 of file spells.h.

int spell_struct::sp

Spellpoint cost to cast it.

Definition at line 135 of file spells.h.

int spell_struct::spell_use

A combination of Spell use flags.

Definition at line 186 of file spells.h.

int spell_struct::spl

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 180 of file spells.h.

int spell_struct::time

How many ticks it takes to cast the spell.

Definition at line 138 of file spells.h.

float spell_struct::value_mul

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 156 of file spells.h.


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