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.1 by elmex, Sun Aug 13 17:16:00 2006 UTC vs.
Revision 1.2 by root, Tue Aug 29 08:01:35 2006 UTC

1/* 1/*
2 * static char *rcsid_info_c = 2 * static char *rcsid_info_c =
3 * "$Id: info.C,v 1.1 2006/08/13 17:16:00 elmex Exp $"; 3 * "$Id: info.C,v 1.2 2006/08/29 08:01:35 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
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 if (gen->clone.other_arch && gen->clone.other_arch == at) { 55 if (gen->clone.other_arch && gen->clone.other_arch == at) {
56 gen_name = gen->name; 56 gen_name = gen->name;
57 break; 57 break;
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
81 81
82 printf(" | | | | | attack | resistances |\n"); 82 printf(" | | | | | attack | resistances |\n");
83 printf("monster | hp |dam| ac | wc |pmf ecw adw gpd ptf|phy mag fir ele cld cfs acd drn wmg ght poi slo par tud fer cnc dep dth chs csp gpw hwd bln int | exp | new exp |\n"); 83 printf("monster | hp |dam| ac | wc |pmf ecw adw gpd ptf|phy mag fir ele cld cfs acd drn wmg ght poi slo par tud fer cnc dep dth chs csp gpw hwd bln int | exp | new exp |\n");
84 printf("---------------------------------------------------------------------------------------------------------------------------------------------------\n"); 84 printf("---------------------------------------------------------------------------------------------------------------------------------------------------\n");
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,
91 op->stats.wc,attbuf); 91 op->stats.wc,attbuf);
92 for (i=0; i<NROFATTACKS; i++) 92 for (i=0; i<NROFATTACKS; i++)
93 printf("%4d", op->resist[i]); 93 printf("%4d", op->resist[i]);
94 printf("|%8lld|%9d|\n",op->stats.exp, new_exp(op)); 94 printf("|%8lld|%9d|\n",op->stats.exp, new_exp(op));
95 } 95 }
96 free_object(op); 96 free_object(op);
97 } 97 }
98} 98}
99 99

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines