ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/exp.c
(Generate patch)

Comparing deliantra/server/common/exp.c (file contents):
Revision 1.1.1.1 by root, Fri Feb 3 07:11:30 2006 UTC vs.
Revision 1.1.1.2 by elmex, Wed Feb 22 18:01:18 2006 UTC

1/* 1/*
2 * static char *rcsid_arch_c = 2 * static char *rcsid_arch_c =
3 * "$Id: exp.c,v 1.1.1.1 2006/02/03 07:11:30 root Exp $"; 3 * "$Id: exp.c,v 1.1.1.2 2006/02/22 18:01:18 elmex Exp $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
88 * can be considered, thus it's only used in debugging. 88 * can be considered, thus it's only used in debugging.
89 * this is only used with one of the dumpflags, 89 * this is only used with one of the dumpflags,
90 * and not anyplace in the code. 90 * and not anyplace in the code.
91 */ 91 */
92 92
93int new_exp(object *ob) { 93int new_exp(const object *ob) {
94 double att_mult, prot_mult, spec_mult; 94 double att_mult, prot_mult, spec_mult;
95 double exp; 95 double exp;
96 int i; 96 int i;
97 long mask = 1; 97 long mask = 1;
98 98
132 132
133/* 133/*
134 * Returns true if the monster specified has any innate abilities. 134 * Returns true if the monster specified has any innate abilities.
135 */ 135 */
136 136
137int has_ability(object *ob) { 137int has_ability(const object *ob) {
138 object *tmp; 138 object *tmp;
139 139
140 for(tmp=ob->inv;tmp!=NULL;tmp=tmp->below) 140 for(tmp=ob->inv;tmp!=NULL;tmp=tmp->below)
141 if(tmp->type==SPELL||tmp->type==SPELLBOOK) 141 if(tmp->type==SPELL||tmp->type==SPELLBOOK)
142 return TRUE; 142 return TRUE;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines