Crossfire Server, Branches 1.12  R18729
Spell subtypes

Macros

#define SP_ALCHEMY   30
 
#define SP_ANIMATE_WEAPON   41
 
#define SP_AURA   46
 
#define SP_BLESS   25
 
#define SP_BOLT   4
 
#define SP_BOMB   8
 
#define SP_BULLET   5
 
#define SP_CAUSE_DISEASE   45
 
#define SP_CHANGE_ABILITY   24
 
#define SP_CHANGE_MANA   37
 
#define SP_CHANGE_MAP_LIGHT   43
 
#define SP_CHARGING   28
 
#define SP_CONE   7
 
#define SP_CONSECRATE   40
 
#define SP_CREATE_FOOD   22
 
#define SP_CREATE_MISSILE   39
 
#define SP_CURSE   26
 
#define SP_DESTRUCTION   16
 
#define SP_DETECTION   33
 
#define SP_DIMENSION_DOOR   13
 
#define SP_DISPEL_RUNE   38
 
#define SP_EARTH_TO_DUST   23
 
#define SP_EXPLOSION   6
 
#define SP_FAERY_FIRE   44
 
#define SP_HEALING   21
 
#define SP_IDENTIFY   32
 
#define SP_INVISIBLE   19
 
#define SP_ITEM_CURSE_BLESS   49
 
#define SP_LIGHT   42
 
#define SP_MAGIC_MAPPING   14
 
#define SP_MAGIC_MISSILE   11
 
#define SP_MAGIC_WALL   15
 
#define SP_MAKE_MARK   3
 
#define SP_MOOD_CHANGE   34
 
#define SP_MOVING_BALL   35
 
#define SP_PERCEIVE_SELF   17
 
#define SP_POLYMORPH   29
 
#define SP_PROBE   20
 
#define SP_RAISE_DEAD   1
 
#define SP_REMOVE_CURSE   31
 
#define SP_RUNE   2
 
#define SP_SMITE   10
 
#define SP_SUMMON_GOLEM   12
 
#define SP_SUMMON_MONSTER   27
 
#define SP_SWARM   36
 
#define SP_TOWN_PORTAL   47
 
#define SP_WONDER   9
 
#define SP_WORD_OF_RECALL   18
 

Detailed Description

This is the subtype for the SPELL type. Start at 1 so that it is easy to see 0 as an uninitialized value. Note that for some spells, subtype pretty accurately describes the entire spell (SP_DETECT_MAGIC). But for other, the subtype may not really say much (eg, SP_BOLT), and it is other fields within the object which really determines its properties. No effort is made to match these new numbers with the old ones, and given there is not a 1:1 mapping, you can't do that anyways.

Macro Definition Documentation

#define SP_ALCHEMY   30

Definition at line 132 of file spells.h.

Referenced by cast_spell().

#define SP_ANIMATE_WEAPON   41

Definition at line 143 of file spells.h.

Referenced by cast_spell().

#define SP_AURA   46

Definition at line 148 of file spells.h.

Referenced by cast_spell(), and spell_effect_type_process().

#define SP_BLESS   25

Definition at line 127 of file spells.h.

Referenced by cast_spell().

#define SP_BOLT   4

Definition at line 106 of file spells.h.

Referenced by cast_spell(), monster_should_cast_spell(), and spell_effect_type_process().

#define SP_BOMB   8
#define SP_BULLET   5
#define SP_CAUSE_DISEASE   45

Definition at line 147 of file spells.h.

Referenced by cast_spell().

#define SP_CHANGE_ABILITY   24

Definition at line 126 of file spells.h.

Referenced by cast_spell().

#define SP_CHANGE_MANA   37

Definition at line 139 of file spells.h.

Referenced by cast_spell().

#define SP_CHANGE_MAP_LIGHT   43

Definition at line 145 of file spells.h.

Referenced by cast_spell().

#define SP_CHARGING   28

Definition at line 130 of file spells.h.

Referenced by cast_spell().

#define SP_CONSECRATE   40

Definition at line 142 of file spells.h.

Referenced by cast_spell().

#define SP_CREATE_FOOD   22

Definition at line 124 of file spells.h.

Referenced by cast_spell().

#define SP_CREATE_MISSILE   39

Definition at line 141 of file spells.h.

Referenced by cast_spell().

#define SP_CURSE   26

Definition at line 128 of file spells.h.

Referenced by cast_spell().

#define SP_DESTRUCTION   16

Definition at line 118 of file spells.h.

Referenced by cast_destruction(), and cast_spell().

#define SP_DETECTION   33

Definition at line 135 of file spells.h.

Referenced by cast_spell().

#define SP_DIMENSION_DOOR   13

Definition at line 115 of file spells.h.

Referenced by cast_spell().

#define SP_DISPEL_RUNE   38

Definition at line 140 of file spells.h.

Referenced by cast_spell().

#define SP_EARTH_TO_DUST   23

Definition at line 125 of file spells.h.

Referenced by cast_spell().

#define SP_EXPLOSION   6
#define SP_FAERY_FIRE   44

Definition at line 146 of file spells.h.

Referenced by cast_destruction(), and cast_spell().

#define SP_HEALING   21

Definition at line 123 of file spells.h.

Referenced by cast_spell().

#define SP_IDENTIFY   32

Definition at line 134 of file spells.h.

Referenced by cast_spell().

#define SP_INVISIBLE   19

Definition at line 121 of file spells.h.

Referenced by cast_spell(), and monster_should_cast_spell().

#define SP_ITEM_CURSE_BLESS   49

Definition at line 151 of file spells.h.

Referenced by cast_spell().

#define SP_LIGHT   42

Definition at line 144 of file spells.h.

Referenced by cast_spell().

#define SP_MAGIC_MAPPING   14

Definition at line 116 of file spells.h.

Referenced by cast_spell().

#define SP_MAGIC_MISSILE   11
#define SP_MAGIC_WALL   15

Definition at line 117 of file spells.h.

Referenced by cast_spell(), and monster_should_cast_spell().

#define SP_MAKE_MARK   3

Definition at line 105 of file spells.h.

Referenced by cast_spell().

#define SP_MOOD_CHANGE   34

Definition at line 136 of file spells.h.

Referenced by cast_spell().

#define SP_MOVING_BALL   35
#define SP_PERCEIVE_SELF   17

Definition at line 119 of file spells.h.

Referenced by cast_spell().

#define SP_POLYMORPH   29

Definition at line 131 of file spells.h.

Referenced by cast_spell().

#define SP_PROBE   20

Definition at line 122 of file spells.h.

Referenced by cast_spell().

#define SP_RAISE_DEAD   1

Definition at line 103 of file spells.h.

Referenced by cast_spell().

#define SP_REMOVE_CURSE   31

Definition at line 133 of file spells.h.

Referenced by cast_spell().

#define SP_RUNE   2

Definition at line 104 of file spells.h.

Referenced by cast_spell().

#define SP_SMITE   10

Definition at line 112 of file spells.h.

Referenced by cast_spell(), and monster_should_cast_spell().

#define SP_SUMMON_GOLEM   12

Definition at line 114 of file spells.h.

Referenced by cast_spell(), and monster_should_cast_spell().

#define SP_SUMMON_MONSTER   27

Definition at line 129 of file spells.h.

Referenced by cast_spell(), and monster_should_cast_spell().

#define SP_SWARM   36

Definition at line 138 of file spells.h.

Referenced by cast_spell(), monster_should_cast_spell(), and spell_effect_type_process().

#define SP_TOWN_PORTAL   47

Definition at line 149 of file spells.h.

Referenced by cast_spell().

#define SP_WONDER   9

Definition at line 111 of file spells.h.

Referenced by cast_spell(), and cast_wonder().

#define SP_WORD_OF_RECALL   18

Definition at line 120 of file spells.h.

Referenced by cast_spell(), cast_word_of_recall(), and spell_effect_type_process().