1 | |
|
|
2 | /* |
|
|
3 | * static char *rcsid_info_c = |
|
|
4 | * "$Id: info.C,v 1.4 2006/09/10 16:00:23 root Exp $"; |
|
|
5 | */ |
|
|
6 | |
|
|
7 | /* |
1 | /* |
8 | CrossFire, A Multiplayer game for X-windows |
2 | CrossFire, A Multiplayer game for X-windows |
9 | |
3 | |
10 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
4 | Copyright (C) 2002 Mark Wedel & Crossfire Development Team |
11 | Copyright (C) 1992 Frank Tore Johansen |
5 | Copyright (C) 1992 Frank Tore Johansen |
… | |
… | |
22 | |
16 | |
23 | You should have received a copy of the GNU General Public License |
17 | You should have received a copy of the GNU General Public License |
24 | along with this program; if not, write to the Free Software |
18 | along with this program; if not, write to the Free Software |
25 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
26 | |
20 | |
27 | The authors can be reached via e-mail at crossfire-devel@real-time.com |
21 | The authors can be reached via e-mail at <crossfire@schmorp.de> |
28 | */ |
22 | */ |
29 | |
23 | |
30 | #include <global.h> |
24 | #include <global.h> |
31 | |
25 | |
32 | /* |
26 | /* |
… | |
… | |
64 | break; |
58 | break; |
65 | } |
59 | } |
66 | } |
60 | } |
67 | |
61 | |
68 | ch = describe_item (&at->clone, NULL); |
62 | ch = describe_item (&at->clone, NULL); |
69 | #ifndef WIN32 |
|
|
70 | 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, |
71 | 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); |
72 | #else |
|
|
73 | printf ("%-16s|%6I64d|%4d|%3d|%s|%s|%s\n", &at->clone.name, (long long) at->clone.stats.exp, |
|
|
74 | at->clone.stats.hp, at->clone.stats.ac, ch, &at->name, gen_name); |
|
|
75 | #endif |
|
|
76 | } |
65 | } |
77 | } |
66 | } |
78 | |
67 | |
79 | /* |
68 | /* |
80 | * As dump_abilities(), but with an alternative way of output. |
69 | * As dump_abilities(), but with an alternative way of output. |
… | |
… | |
103 | printf ("%-15s|%5d|%3d|%4d|%4d|%s|", &op->arch->name, op->stats.maxhp, op->stats.dam, op->stats.ac, op->stats.wc, 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); |
104 | for (i = 0; i < NROFATTACKS; i++) |
93 | for (i = 0; i < NROFATTACKS; i++) |
105 | printf ("%4d", op->resist[i]); |
94 | printf ("%4d", op->resist[i]); |
106 | printf ("|%8lld|%9d|\n", (long long) op->stats.exp, new_exp (op)); |
95 | printf ("|%8lld|%9d|\n", (long long) op->stats.exp, new_exp (op)); |
107 | } |
96 | } |
108 | free_object (op); |
97 | op->destroy (0); |
109 | } |
98 | } |
110 | } |
99 | } |
111 | |
100 | |
112 | /* |
101 | /* |
113 | * Writes <num> ones and zeros to the given string based on the |
102 | * Writes <num> ones and zeros to the given string based on the |