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

Comparing deliantra/server/common/info.C (file contents):
Revision 1.11 by pippijn, Mon Jan 15 21:06:18 2007 UTC vs.
Revision 1.12 by root, Sun Mar 18 03:05:39 2007 UTC

38{ 38{
39 archetype *at; 39 archetype *at;
40 40
41 for (at = first_archetype; at; at = at->next) 41 for (at = first_archetype; at; at = at->next)
42 { 42 {
43 char *ch; 43 const char *ch;
44 const char *gen_name = ""; 44 const char *gen_name = "";
45 archetype *gen; 45 archetype *gen;
46 46
47 if (!QUERY_FLAG (&at->clone, FLAG_MONSTER)) 47 if (!QUERY_FLAG (&at->clone, FLAG_MONSTER))
48 continue; 48 continue;
50 /* Get rid of e.g. multiple black puddings */ 50 /* Get rid of e.g. multiple black puddings */
51 if (QUERY_FLAG (&at->clone, FLAG_CHANGING)) 51 if (QUERY_FLAG (&at->clone, FLAG_CHANGING))
52 continue; 52 continue;
53 53
54 for (gen = first_archetype; gen; gen = gen->next) 54 for (gen = first_archetype; gen; gen = gen->next)
55 {
56 if (gen->clone.other_arch && gen->clone.other_arch == at) 55 if (gen->clone.other_arch && gen->clone.other_arch == at)
57 { 56 {
58 gen_name = gen->name; 57 gen_name = gen->name;
59 break; 58 break;
60 } 59 }
61 }
62 60
63 ch = describe_item (&at->clone, NULL); 61 ch = describe_item (&at->clone, NULL);
64 printf ("%-16s|%6lld|%4d|%3d|%s|%s|%s\n", &at->clone.name, (long long) at->clone.stats.exp, 62 printf ("%-16s|%6lld|%4d|%3d|%s|%s|%s\n", &at->clone.name, (long long) at->clone.stats.exp,
65 at->clone.stats.hp, at->clone.stats.ac, ch, &at->name, gen_name); 63 at->clone.stats.hp, at->clone.stats.ac, ch, &at->name, gen_name);
66 } 64 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines