Crossfire Client, Trunk  R20693
Spell_struct Struct Reference

#include <client.h>

+ Collaboration diagram for Spell_struct:

Data Fields

guint16 dam
 
gint32 face
 
guint16 grace
 
guint16 level
 
char message [10000]
 
char name [256]
 
struct Spell_structnext
 
guint32 path
 
char requirements [256]
 
char * skill
 
guint8 skill_number
 
guint16 sp
 
guint32 tag
 
guint16 time
 
guint8 usage
 

Detailed Description

Definition at line 294 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 305 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 319 of file client.h.

Referenced by AddspellCmd().

◆ grace

guint16 Spell_struct::grace

Grace per cast; may be zero.

Definition at line 304 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 301 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 297 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 296 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 315 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 327 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 313 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 309 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 303 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 299 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 302 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 322 of file client.h.

Referenced by AddspellCmd().


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