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

Comparing deliantra/server/server/apply.C (file contents):
Revision 1.64 by root, Mon Feb 5 01:24:45 2007 UTC vs.
Revision 1.65 by root, Mon Feb 5 01:31:26 2007 UTC

3393 new_draw_info (NDI_UNIQUE, 0, who, "It would consume your soul!."); 3393 new_draw_info (NDI_UNIQUE, 0, who, "It would consume your soul!.");
3394 if (tmp != NULL) 3394 if (tmp != NULL)
3395 (void) insert_ob_in_ob (tmp, who); 3395 (void) insert_ob_in_ob (tmp, who);
3396 return 1; 3396 return 1;
3397 } 3397 }
3398
3399 //TODO: this obviously fails for players using a shiorter prefix
3400 // i.e. "R" can use Ragnarok's swors.
3398 if (op->level && (strncmp (op->name, who->name, strlen (who->name)))) 3401 if (op->level && (strncmp (op->name, who->name, strlen (who->name))))
3399 { 3402 {
3400 /* if the weapon does not have the name as the character, can't use it. */ 3403 /* if the weapon does not have the name as the character, can't use it. */
3401 /* (Ragnarok's sword attempted to be used by Foo: won't work) */ 3404 /* (Ragnarok's sword attempted to be used by Foo: won't work) */
3402 new_draw_info (NDI_UNIQUE, 0, who, "The weapon does not recognize you as its owner."); 3405 new_draw_info (NDI_UNIQUE, 0, who, "The weapon does not recognize you as its owner.");
3406
3403 if (tmp != NULL) 3407 if (tmp)
3404 (void) insert_ob_in_ob (tmp, who); 3408 insert_ob_in_ob (tmp, who);
3409
3405 return 1; 3410 return 1;
3406 } 3411 }
3412
3407 SET_FLAG (op, FLAG_APPLIED); 3413 SET_FLAG (op, FLAG_APPLIED);
3408 3414
3409 if (skop) 3415 if (skop)
3410 change_skill (who, skop, 1); 3416 change_skill (who, skop, 1);
3411 if (!QUERY_FLAG (who, FLAG_READY_WEAPON)) 3417 if (!QUERY_FLAG (who, FLAG_READY_WEAPON))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines