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

Comparing deliantra/server/common/readable.C (file contents):
Revision 1.12 by root, Tue Dec 12 20:53:02 2006 UTC vs.
Revision 1.13 by root, Tue Dec 12 21:39:56 2006 UTC

1099 1099
1100 /* alter book properties */ 1100 /* alter book properties */
1101 if ((tmpbook = get_archetype (t->archname)) != NULL) 1101 if ((tmpbook = get_archetype (t->archname)) != NULL)
1102 { 1102 {
1103 tmpbook->msg = book->msg; 1103 tmpbook->msg = book->msg;
1104 copy_object (tmpbook, book); 1104 tmpbook->copy_to (book);
1105 tmpbook->destroy (0); 1105 tmpbook->destroy ();
1106 } 1106 }
1107 1107
1108 book->title = t->authour; 1108 book->title = t->authour;
1109 book->name = t->name; 1109 book->name = t->name;
1110 book->level = t->level; 1110 book->level = t->level;
1467 * level is kinda high */ 1467 * level is kinda high */
1468 if (art->item->msg && (RANDOM () % 4 + 1) < level && !((strlen (art->item->msg) + strlen (buf)) > BOOK_BUF)) 1468 if (art->item->msg && (RANDOM () % 4 + 1) < level && !((strlen (art->item->msg) + strlen (buf)) > BOOK_BUF))
1469 strcat (buf, art->item->msg); 1469 strcat (buf, art->item->msg);
1470 1470
1471 /* properties of the artifact */ 1471 /* properties of the artifact */
1472 tmp = get_object (); 1472 tmp = object::create ();
1473 add_abilities (tmp, art->item); 1473 add_abilities (tmp, art->item);
1474 tmp->type = type; 1474 tmp->type = type;
1475 SET_FLAG (tmp, FLAG_IDENTIFIED); 1475 SET_FLAG (tmp, FLAG_IDENTIFIED);
1476 if ((ch = describe_item (tmp, NULL)) != NULL && strlen (ch) > 1) 1476 if ((ch = describe_item (tmp, NULL)) != NULL && strlen (ch) > 1)
1477 sprintf (buf, "%s Properties of this artifact include: \n %s \n", buf, ch); 1477 sprintf (buf, "%s Properties of this artifact include: \n %s \n", buf, ch);
1478 tmp->destroy (0); 1478 tmp->destroy ();
1479 /* add the buf if it will fit */ 1479 /* add the buf if it will fit */
1480 if (!book_overflow (retbuf, buf, booksize)) 1480 if (!book_overflow (retbuf, buf, booksize))
1481 strcat (retbuf, buf); 1481 strcat (retbuf, buf);
1482 else 1482 else
1483 break; 1483 break;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines