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.2 by root, Tue Aug 29 08:01:35 2006 UTC vs.
Revision 1.3 by root, Sun Sep 3 00:18:39 2006 UTC

1/* 1/*
2 * static char *rcsid_info_c = 2 * static char *rcsid_info_c =
3 * "$Id: info.C,v 1.2 2006/08/29 08:01:35 root Exp $"; 3 * "$Id: info.C,v 1.3 2006/09/03 00:18:39 root Exp $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
58 } 58 }
59 } 59 }
60 60
61 ch = describe_item(&at->clone, NULL); 61 ch = describe_item(&at->clone, NULL);
62#ifndef WIN32 62#ifndef WIN32
63 printf("%-16s|%6lld|%4d|%3d|%s|%s|%s\n",at->clone.name,at->clone.stats.exp, 63 printf("%-16s|%6lld|%4d|%3d|%s|%s|%s\n",&at->clone.name,(long long)at->clone.stats.exp,
64 at->clone.stats.hp,at->clone.stats.ac,ch,at->name,gen_name); 64 at->clone.stats.hp,at->clone.stats.ac,ch,&at->name,gen_name);
65#else 65#else
66 printf("%-16s|%6I64d|%4d|%3d|%s|%s|%s\n",at->clone.name,at->clone.stats.exp, 66 printf("%-16s|%6I64d|%4d|%3d|%s|%s|%s\n",&at->clone.name,(long long)at->clone.stats.exp,
67 at->clone.stats.hp,at->clone.stats.ac,ch,at->name,gen_name); 67 at->clone.stats.hp,at->clone.stats.ac,ch,&at->name,gen_name);
68#endif 68#endif
69 } 69 }
70} 70}
71 71
72/* 72/*
85 for(at=first_archetype;at!=NULL;at=at->next) { 85 for(at=first_archetype;at!=NULL;at=at->next) {
86 op = arch_to_object(at); 86 op = arch_to_object(at);
87 if (QUERY_FLAG(op,FLAG_MONSTER)) { 87 if (QUERY_FLAG(op,FLAG_MONSTER)) {
88 bitstostring((long)op->attacktype, NROFATTACKS, attbuf); 88 bitstostring((long)op->attacktype, NROFATTACKS, attbuf);
89 printf("%-15s|%5d|%3d|%4d|%4d|%s|", 89 printf("%-15s|%5d|%3d|%4d|%4d|%s|",
90 op->arch->name, op->stats.maxhp, op->stats.dam, op->stats.ac, 90 &op->arch->name, op->stats.maxhp, op->stats.dam, op->stats.ac, op->stats.wc,attbuf);
91 op->stats.wc,attbuf);
92 for (i=0; i<NROFATTACKS; i++) 91 for (i=0; i<NROFATTACKS; i++)
93 printf("%4d", op->resist[i]); 92 printf("%4d", op->resist[i]);
94 printf("|%8lld|%9d|\n",op->stats.exp, new_exp(op)); 93 printf("|%8lld|%9d|\n", (long long)op->stats.exp, new_exp(op));
95 } 94 }
96 free_object(op); 95 free_object(op);
97 } 96 }
98} 97}
99 98

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines