ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/rune.C
(Generate patch)

Comparing deliantra/server/server/rune.C (file contents):
Revision 1.17 by pippijn, Mon Jan 15 21:06:20 2007 UTC vs.
Revision 1.18 by root, Thu Jan 18 19:32:37 2007 UTC

181 rune->maxhp : number of spells the rune casts 181 rune->maxhp : number of spells the rune casts
182*/ 182*/
183void 183void
184move_rune (object *op) 184move_rune (object *op)
185{ 185{
186 int det = 0; 186 /* runes of level zero cannot detonate. */
187
188 if (!op->level) 187 if (!op->level)
189 {
190 return; 188 return;
191 } /* runes of level zero cannot detonate. */ 189
192 det = op->invisible; 190 int det = op->invisible;
191
193 if (!(rndm (0, MAX (1, (op->stats.Cha)) - 1))) 192 if (!(rndm (0, MAX (1, (op->stats.Cha)) - 1)))
194 { 193 {
195 op->invisible = 0; 194 op->invisible = 0;
196 op->speed_left -= 1; 195 op->speed_left -= 1;
197 } 196 }
198 else 197 else
199 op->invisible = 1; 198 op->invisible = 1;
199
200 if (op->invisible != det) 200 if (op->invisible != det)
201 update_object (op, UP_OBJ_FACE); 201 update_object (op, UP_OBJ_FACE);
202} 202}
203 203
204 204

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines