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.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 | |
… | |
… | |
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 |
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 | /* |
… | |
… | |
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, 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 | |