Crossfire Server, Trunk  R20513
Macros
CS_STAT_xxx IDs for character statistics.

Macros

#define CS_NUM_SKILLS   50
 CS_NUM_SKILLS does not match how many skills there really are - instead, it is used as a range of values so that the client can have some idea how many skill categories there may be. More...
 
#define CS_STAT_AC   14
 
#define CS_STAT_APPLIED_CHA   51
 CHA changes from gear or skills. More...
 
#define CS_STAT_APPLIED_CON   50
 CON changes from gear or skills. More...
 
#define CS_STAT_APPLIED_DEX   49
 DEX changes from gear or skills. More...
 
#define CS_STAT_APPLIED_INT   47
 INT changes from gear or skills. More...
 
#define CS_STAT_APPLIED_POW   52
 POW changes from gear or skills. More...
 
#define CS_STAT_APPLIED_STR   46
 STR changes from gear or skills. More...
 
#define CS_STAT_APPLIED_WIS   48
 WIS changes from gear or skills. More...
 
#define CS_STAT_ARMOUR   16
 
#define CS_STAT_BASE_CHA   44
 
#define CS_STAT_BASE_CON   43
 
#define CS_STAT_BASE_DEX   42
 
#define CS_STAT_BASE_INT   40
 
#define CS_STAT_BASE_POW   45
 
#define CS_STAT_BASE_STR   39
 
#define CS_STAT_BASE_WIS   41
 
#define CS_STAT_CHA   10
 
#define CS_STAT_CON   9
 
#define CS_STAT_DAM   15
 
#define CS_STAT_DEX   8
 
#define CS_STAT_EXP   11
 No longer used. More...
 
#define CS_STAT_EXP64   28
 
#define CS_STAT_FLAGS   25
 
#define CS_STAT_FOOD   18
 
#define CS_STAT_GOLEM_HP   53
 Golem's current hp, 0 if no golem. More...
 
#define CS_STAT_GOLEM_MAXHP   54
 Golem's max hp, 0 if no golem. More...
 
#define CS_STAT_GRACE   23
 
#define CS_STAT_HP   1
 
#define CS_STAT_INT   6
 
#define CS_STAT_LEVEL   12
 
#define CS_STAT_MAXGRACE   24
 
#define CS_STAT_MAXHP   2
 
#define CS_STAT_MAXSP   4
 
#define CS_STAT_POW   22
 
#define CS_STAT_RACE_CHA   37
 
#define CS_STAT_RACE_CON   36
 
#define CS_STAT_RACE_DEX   35
 
#define CS_STAT_RACE_INT   33
 
#define CS_STAT_RACE_POW   38
 
#define CS_STAT_RACE_STR   32
 
#define CS_STAT_RACE_WIS   34
 
#define CS_STAT_RANGE   20
 
#define CS_STAT_RES_ACID   106
 
#define CS_STAT_RES_BLIND   117
 
#define CS_STAT_RES_COLD   104
 
#define CS_STAT_RES_CONF   105
 
#define CS_STAT_RES_DEATH   115
 
#define CS_STAT_RES_DEPLETE   114
 
#define CS_STAT_RES_DRAIN   107
 
#define CS_STAT_RES_ELEC   103
 
#define CS_STAT_RES_FEAR   113
 
#define CS_STAT_RES_FIRE   102
 
#define CS_STAT_RES_GHOSTHIT   108
 
#define CS_STAT_RES_HOLYWORD   116
 
#define CS_STAT_RES_MAG   101
 
#define CS_STAT_RES_PARA   111
 
#define CS_STAT_RES_PHYS   100
 
#define CS_STAT_RES_POISON   109
 
#define CS_STAT_RES_SLOW   110
 
#define CS_STAT_RESIST_END   117
 End of resistances (inclusive) More...
 
#define CS_STAT_RESIST_START   100
 Start of resistances (inclusive) More...
 
#define CS_STAT_SKILLINFO   140
 CS_STAT_SKILLINFO is used as the starting index point. More...
 
#define CS_STAT_SP   3
 
#define CS_STAT_SPEED   17
 
#define CS_STAT_SPELL_ATTUNE   29
 
#define CS_STAT_SPELL_DENY   31
 
#define CS_STAT_SPELL_REPEL   30
 
#define CS_STAT_STR   5
 
#define CS_STAT_TITLE   21
 
#define CS_STAT_TURN_UNDEAD   112
 
#define CS_STAT_WC   13
 
#define CS_STAT_WEAP_SP   19
 
#define CS_STAT_WEIGHT_LIM   26
 
#define CS_STAT_WIS   7
 

Detailed Description

Macro Definition Documentation

#define CS_NUM_SKILLS   50

CS_NUM_SKILLS does not match how many skills there really are - instead, it is used as a range of values so that the client can have some idea how many skill categories there may be.

Definition at line 175 of file newclient.h.

#define CS_STAT_AC   14

Definition at line 100 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_APPLIED_CHA   51

CHA changes from gear or skills.

Definition at line 136 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_APPLIED_CON   50

CON changes from gear or skills.

Definition at line 135 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_APPLIED_DEX   49

DEX changes from gear or skills.

Definition at line 134 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_APPLIED_INT   47

INT changes from gear or skills.

Definition at line 132 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_APPLIED_POW   52

POW changes from gear or skills.

Definition at line 137 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_APPLIED_STR   46

STR changes from gear or skills.

Definition at line 131 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_APPLIED_WIS   48

WIS changes from gear or skills.

Definition at line 133 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_ARMOUR   16

Definition at line 102 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_BASE_CHA   44

Definition at line 129 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_BASE_CON   43

Definition at line 128 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_BASE_DEX   42

Definition at line 127 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_BASE_INT   40

Definition at line 125 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_BASE_POW   45

Definition at line 130 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_BASE_STR   39

Definition at line 124 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_BASE_WIS   41

Definition at line 126 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_CHA   10

Definition at line 96 of file newclient.h.

Referenced by esrv_update_stats(), and send_arch_info().

#define CS_STAT_CON   9

Definition at line 95 of file newclient.h.

Referenced by esrv_update_stats(), and send_arch_info().

#define CS_STAT_DAM   15

Definition at line 101 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_DEX   8

Definition at line 94 of file newclient.h.

Referenced by esrv_update_stats(), and send_arch_info().

#define CS_STAT_EXP   11

No longer used.

Definition at line 97 of file newclient.h.

#define CS_STAT_EXP64   28

Definition at line 113 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_FLAGS   25

Definition at line 111 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_FOOD   18

Definition at line 104 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_GOLEM_HP   53

Golem's current hp, 0 if no golem.

Definition at line 138 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_GOLEM_MAXHP   54

Golem's max hp, 0 if no golem.

Definition at line 139 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_GRACE   23

Definition at line 109 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_HP   1

Definition at line 87 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_INT   6

Definition at line 92 of file newclient.h.

Referenced by esrv_update_stats(), and send_arch_info().

#define CS_STAT_LEVEL   12

Definition at line 98 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_MAXGRACE   24

Definition at line 110 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_MAXHP   2

Definition at line 88 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_MAXSP   4

Definition at line 90 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_POW   22

Definition at line 108 of file newclient.h.

Referenced by esrv_update_stats(), and send_arch_info().

#define CS_STAT_RACE_CHA   37

Definition at line 122 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_RACE_CON   36

Definition at line 121 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_RACE_DEX   35

Definition at line 120 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_RACE_INT   33

Definition at line 118 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_RACE_POW   38

Definition at line 123 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_RACE_STR   32

Definition at line 117 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_RACE_WIS   34

Definition at line 119 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_RANGE   20

Definition at line 106 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_RES_ACID   106

Definition at line 150 of file newclient.h.

#define CS_STAT_RES_BLIND   117

Definition at line 161 of file newclient.h.

#define CS_STAT_RES_COLD   104

Definition at line 148 of file newclient.h.

#define CS_STAT_RES_CONF   105

Definition at line 149 of file newclient.h.

#define CS_STAT_RES_DEATH   115

Definition at line 159 of file newclient.h.

#define CS_STAT_RES_DEPLETE   114

Definition at line 158 of file newclient.h.

#define CS_STAT_RES_DRAIN   107

Definition at line 151 of file newclient.h.

#define CS_STAT_RES_ELEC   103

Definition at line 147 of file newclient.h.

#define CS_STAT_RES_FEAR   113

Definition at line 157 of file newclient.h.

#define CS_STAT_RES_FIRE   102

Definition at line 146 of file newclient.h.

#define CS_STAT_RES_GHOSTHIT   108

Definition at line 152 of file newclient.h.

#define CS_STAT_RES_HOLYWORD   116

Definition at line 160 of file newclient.h.

#define CS_STAT_RES_MAG   101

Definition at line 145 of file newclient.h.

#define CS_STAT_RES_PARA   111

Definition at line 155 of file newclient.h.

#define CS_STAT_RES_PHYS   100

Definition at line 144 of file newclient.h.

#define CS_STAT_RES_POISON   109

Definition at line 153 of file newclient.h.

#define CS_STAT_RES_SLOW   110

Definition at line 154 of file newclient.h.

#define CS_STAT_RESIST_END   117

End of resistances (inclusive)

Definition at line 142 of file newclient.h.

#define CS_STAT_RESIST_START   100

Start of resistances (inclusive)

Definition at line 141 of file newclient.h.

#define CS_STAT_SKILLINFO   140

CS_STAT_SKILLINFO is used as the starting index point.

Skill number->name map is generated dynamically for the client, so a bunch of entries will be used here.

Definition at line 168 of file newclient.h.

Referenced by append_spell(), esrv_update_stats(), and send_skill_info().

#define CS_STAT_SP   3

Definition at line 89 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_SPEED   17

Definition at line 103 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_SPELL_ATTUNE   29

Definition at line 114 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_SPELL_DENY   31

Definition at line 116 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_SPELL_REPEL   30

Definition at line 115 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_STR   5

Definition at line 91 of file newclient.h.

Referenced by esrv_update_stats(), and send_arch_info().

#define CS_STAT_TITLE   21

Definition at line 107 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_TURN_UNDEAD   112

Definition at line 156 of file newclient.h.

#define CS_STAT_WC   13

Definition at line 99 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_WEAP_SP   19

Definition at line 105 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_WEIGHT_LIM   26

Definition at line 112 of file newclient.h.

Referenced by esrv_update_stats().

#define CS_STAT_WIS   7

Definition at line 93 of file newclient.h.

Referenced by esrv_update_stats(), and send_arch_info().