Crossfire Client, Trunk
Spell_struct Struct Reference

#include <client.h>

+ Collaboration diagram for Spell_struct:

Data Fields

guint16 dam
 Damage done by spell though the meaning is spell dependent and actual damage may depend on how the spell works. More...
 
gint32 face
 A face ID that may be used to show a graphic representation of the spell. More...
 
guint16 grace
 Grace per cast; may be zero. More...
 
guint16 level
 The casting level of the spell. More...
 
char message [10000]
 This is huge, the packets can't be much bigger than this anyway. More...
 
char name [256]
 One length byte plus data
More...
 
struct Spell_structnext
 
guint32 path
 The bitmask of paths this spell belongs to. More...
 
char requirements [256]
 Spellmon 2 data. More...
 
char * skill
 Pointer to the skill name, derived from the skill number. More...
 
guint8 skill_number
 The index in the skill arrays, plus CS_STAT_SKILLINFO. More...
 
guint16 sp
 Mana per cast; may be zero. More...
 
guint32 tag
 Unique ID number for a spell so updspell etc can operate on it. More...
 
guint16 time
 Casting time in server ticks. More...
 
guint8 usage
 Spellmon 2 data. More...
 

Detailed Description

Definition at line 295 of file client.h.

Field Documentation

◆ dam

guint16 Spell_struct::dam

Damage done by spell though the meaning is spell dependent and actual damage may depend on how the spell works.


Definition at line 306 of file client.h.

Referenced by AddspellCmd(), script_process_cmd(), update_spell_information(), and UpdspellCmd().

◆ face

gint32 Spell_struct::face

A face ID that may be used to show a graphic representation of the spell.


Definition at line 320 of file client.h.

Referenced by AddspellCmd(), and update_spell_information().

◆ grace

guint16 Spell_struct::grace

Grace per cast; may be zero.


Definition at line 305 of file client.h.

Referenced by AddspellCmd(), script_process_cmd(), update_spell_information(), and UpdspellCmd().

◆ level

guint16 Spell_struct::level

The casting level of the spell.

Definition at line 302 of file client.h.

Referenced by AddspellCmd(), script_process_cmd(), and update_spell_information().

◆ message

char Spell_struct::message[10000]

This is huge, the packets can't be much bigger than this anyway.

Definition at line 298 of file client.h.

Referenced by AddspellCmd(), and update_spell_information().

◆ name

char Spell_struct::name[256]

One length byte plus data

Definition at line 297 of file client.h.

Referenced by AddspellCmd(), script_process_cmd(), and update_spell_information().

◆ next

struct Spell_struct* Spell_struct::next

◆ path

guint32 Spell_struct::path

The bitmask of paths this spell belongs to.

See request_info spell_paths and stats about attunement, repulsion, etc.

Definition at line 316 of file client.h.

Referenced by AddspellCmd(), script_process_cmd(), and update_spell_information().

◆ requirements

char Spell_struct::requirements[256]

Spellmon 2 data.

One length byte plus data. If the spell requires items to be cast, this is a list of req'd items. Comma-separated, number of items, singular names (like ingredients for alchemy).

Definition at line 328 of file client.h.

Referenced by AddspellCmd().

◆ skill

char* Spell_struct::skill

Pointer to the skill name, derived from the skill number.


Definition at line 314 of file client.h.

Referenced by AddspellCmd(), and update_spell_information().

◆ skill_number

guint8 Spell_struct::skill_number

The index in the skill arrays, plus CS_STAT_SKILLINFO.

0: no skill used for cast. See also: request_info skill_info

Definition at line 310 of file client.h.

Referenced by AddspellCmd(), and script_process_cmd().

◆ sp

guint16 Spell_struct::sp

Mana per cast; may be zero.


Definition at line 304 of file client.h.

Referenced by AddspellCmd(), script_process_cmd(), update_spell_information(), and UpdspellCmd().

◆ tag

guint32 Spell_struct::tag

Unique ID number for a spell so updspell etc can operate on it.

Definition at line 300 of file client.h.

Referenced by AddspellCmd(), DeleteSpell(), inscribe_magical_scroll(), script_process_cmd(), update_spell_information(), and UpdspellCmd().

◆ time

guint16 Spell_struct::time

Casting time in server ticks.


Definition at line 303 of file client.h.

Referenced by AddspellCmd(), and script_process_cmd().

◆ usage

guint8 Spell_struct::usage

Spellmon 2 data.

Values are: 0: No argument required. 1: Requires other spell name. 2: Freeform string is optional. 3: Freeform string is required.

Definition at line 323 of file client.h.

Referenced by AddspellCmd().


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