… | |
… | |
58 | break; |
58 | break; |
59 | } |
59 | } |
60 | } |
60 | } |
61 | |
61 | |
62 | ch = describe_item (&at->clone, NULL); |
62 | ch = describe_item (&at->clone, NULL); |
63 | #ifndef WIN32 |
|
|
64 | printf ("%-16s|%6lld|%4d|%3d|%s|%s|%s\n", &at->clone.name, (long long) at->clone.stats.exp, |
63 | 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); |
64 | at->clone.stats.hp, at->clone.stats.ac, ch, &at->name, gen_name); |
66 | #else |
|
|
67 | printf ("%-16s|%6I64d|%4d|%3d|%s|%s|%s\n", &at->clone.name, (long long) at->clone.stats.exp, |
|
|
68 | at->clone.stats.hp, at->clone.stats.ac, ch, &at->name, gen_name); |
|
|
69 | #endif |
|
|
70 | } |
65 | } |
71 | } |
66 | } |
72 | |
67 | |
73 | /* |
68 | /* |
74 | * As dump_abilities(), but with an alternative way of output. |
69 | * As dump_abilities(), but with an alternative way of output. |
… | |
… | |
89 | printf |
84 | printf |
90 | ("---------------------------------------------------------------------------------------------------------------------------------------------------\n"); |
85 | ("---------------------------------------------------------------------------------------------------------------------------------------------------\n"); |
91 | for (at = first_archetype; at != NULL; at = at->next) |
86 | for (at = first_archetype; at != NULL; at = at->next) |
92 | { |
87 | { |
93 | op = arch_to_object (at); |
88 | op = arch_to_object (at); |
|
|
89 | |
94 | if (QUERY_FLAG (op, FLAG_MONSTER)) |
90 | if (QUERY_FLAG (op, FLAG_MONSTER)) |
95 | { |
91 | { |
96 | bitstostring ((long) op->attacktype, NROFATTACKS, attbuf); |
92 | bitstostring ((long) op->attacktype, NROFATTACKS, attbuf); |
97 | printf ("%-15s|%5d|%3d|%4d|%4d|%s|", &op->arch->name, op->stats.maxhp, op->stats.dam, op->stats.ac, op->stats.wc, attbuf); |
93 | printf ("%-15s|%5d|%3d|%4d|%4d|%s|", &op->arch->name, op->stats.maxhp, op->stats.dam, op->stats.ac, op->stats.wc, attbuf); |
98 | for (i = 0; i < NROFATTACKS; i++) |
94 | for (i = 0; i < NROFATTACKS; i++) |
99 | printf ("%4d", op->resist[i]); |
95 | printf ("%4d", op->resist[i]); |
100 | printf ("|%8lld|%9d|\n", (long long) op->stats.exp, new_exp (op)); |
96 | printf ("|%8lld|%9d|\n", (long long) op->stats.exp, new_exp (op)); |
101 | } |
97 | } |
102 | free_object (op); |
98 | |
|
|
99 | op->destroy (); |
103 | } |
100 | } |
104 | } |
101 | } |
105 | |
102 | |
106 | /* |
103 | /* |
107 | * Writes <num> ones and zeros to the given string based on the |
104 | * Writes <num> ones and zeros to the given string based on the |