… | |
… | |
84 | printf |
84 | printf |
85 | ("---------------------------------------------------------------------------------------------------------------------------------------------------\n"); |
85 | ("---------------------------------------------------------------------------------------------------------------------------------------------------\n"); |
86 | for (at = first_archetype; at != NULL; at = at->next) |
86 | for (at = first_archetype; at != NULL; at = at->next) |
87 | { |
87 | { |
88 | op = arch_to_object (at); |
88 | op = arch_to_object (at); |
|
|
89 | |
89 | if (QUERY_FLAG (op, FLAG_MONSTER)) |
90 | if (QUERY_FLAG (op, FLAG_MONSTER)) |
90 | { |
91 | { |
91 | bitstostring ((long) op->attacktype, NROFATTACKS, attbuf); |
92 | bitstostring ((long) op->attacktype, NROFATTACKS, attbuf); |
92 | 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); |
93 | for (i = 0; i < NROFATTACKS; i++) |
94 | for (i = 0; i < NROFATTACKS; i++) |
94 | printf ("%4d", op->resist[i]); |
95 | printf ("%4d", op->resist[i]); |
95 | 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)); |
96 | } |
97 | } |
|
|
98 | |
97 | op->destroy (0); |
99 | op->destroy (); |
98 | } |
100 | } |
99 | } |
101 | } |
100 | |
102 | |
101 | /* |
103 | /* |
102 | * 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 |