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

Comparing deliantra/server/server/skills.C (file contents):
Revision 1.56 by root, Thu Sep 11 13:46:22 2008 UTC vs.
Revision 1.57 by root, Sun Nov 16 03:52:13 2008 UTC

200 200
201 if ((roll >= skill->level) || !chance 201 if ((roll >= skill->level) || !chance
202 || (tmp && tmp->weight > (250 * (random_roll (0, stats_value + skill->level * 10 - 1, who, PREFER_LOW))))) 202 || (tmp && tmp->weight > (250 * (random_roll (0, stats_value + skill->level * 10 - 1, who, PREFER_LOW)))))
203 { 203 {
204 /* victim figures out where the thief is! */ 204 /* victim figures out where the thief is! */
205 if (who->hide) 205 if (who->flag [FLAG_HIDDEN])
206 make_visible (who); 206 make_visible (who);
207 207
208 if (op->type != PLAYER) 208 if (op->type != PLAYER)
209 { 209 {
210 /* The unaggressives look after themselves 8) */ 210 /* The unaggressives look after themselves 8) */
428 op->invisible += 100; /* set the level of 'hiddeness' */ 428 op->invisible += 100; /* set the level of 'hiddeness' */
429 429
430 if (op->type == PLAYER) 430 if (op->type == PLAYER)
431 op->contr->tmp_invis = 1; 431 op->contr->tmp_invis = 1;
432 432
433 op->hide = 1; 433 op->flag [FLAG_HIDDEN] = 1;
434 return 1; 434 return 1;
435 } 435 }
436 436
437 return 0; 437 return 0;
438} 438}
447 if (QUERY_FLAG (op, FLAG_MAKE_INVIS)) 447 if (QUERY_FLAG (op, FLAG_MAKE_INVIS))
448 { 448 {
449 new_draw_info (NDI_UNIQUE, 0, op, "You don't need to hide while invisible!"); 449 new_draw_info (NDI_UNIQUE, 0, op, "You don't need to hide while invisible!");
450 return 0; 450 return 0;
451 } 451 }
452 else if (!op->hide && op->invisible > 0 && op->type == PLAYER) 452 else if (!op->flag [FLAG_HIDDEN] && op->invisible > 0 && op->type == PLAYER)
453 { 453 {
454 new_draw_info (NDI_UNIQUE, 0, op, "Your attempt to hide breaks the invisibility spell!"); 454 new_draw_info (NDI_UNIQUE, 0, op, "Your attempt to hide breaks the invisibility spell!");
455 make_visible (op); 455 make_visible (op);
456 } 456 }
457 457

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines