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

Comparing deliantra/server/common/arch.C (file contents):
Revision 1.23 by root, Thu Sep 14 23:13:48 2006 UTC vs.
Revision 1.25 by root, Tue Nov 7 16:30:54 2006 UTC

363 add_arch (at); 363 add_arch (at);
364 364
365 LOG (llevDebug, "done\n"); 365 LOG (llevDebug, "done\n");
366} 366}
367 367
368/*
369 * Dumps an archetype to debug-level output.
370 */
371
372void
373dump_arch (archetype *at)
374{
375 dump_object (&at->clone);
376}
377
378/*
379 * Dumps _all_ archetypes to debug-level output.
380 * If you run crossfire with debug, and enter DM-mode, you can trigger
381 * this with the O key.
382 */
383
384void
385dump_all_archetypes (void)
386{
387 archetype *at;
388
389 for (at = first_archetype; at != NULL; at = (at->more == NULL) ? at->next : at->more)
390 {
391 dump_arch (at);
392 fprintf (logfile, "%s\n", errmsg);
393 }
394}
395
396void 368void
397free_all_archs (void) 369free_all_archs (void)
398{ 370{
399 archetype *at, *next; 371 archetype *at, *next;
400 int i = 0, f = 0; 372 int i = 0, f = 0;
545 } 517 }
546 else if (!strcmp ("randomitems", variable)) 518 else if (!strcmp ("randomitems", variable))
547 { 519 {
548 if (at != NULL) 520 if (at != NULL)
549 { 521 {
550 treasurelist *
551 tl = find_treasurelist (argument); 522 treasurelist *tl = find_treasurelist (argument);
552 523
553 if (tl == NULL) 524 if (tl == NULL)
554 LOG (llevError, "Failed to link treasure to arch (%s): %s\n", &at->name, argument); 525 LOG (llevError, "Failed to link treasure to arch (%s): %s\n", &at->name, argument);
555 else 526 else
556 at->clone.randomitems = tl; 527 at->clone.randomitems = tl;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines