1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
4 | * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
7 | * |
7 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify |
8 | * Deliantra is free software: you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License as published by |
9 | * it under the terms of the GNU General Public License as published by |
… | |
… | |
92 | dump_friendly_objects (); |
92 | dump_friendly_objects (); |
93 | return 0; |
93 | return 0; |
94 | } |
94 | } |
95 | |
95 | |
96 | int |
96 | int |
97 | command_printlos (object *op, char *params) |
|
|
98 | { |
|
|
99 | if (op) |
|
|
100 | print_los (op); |
|
|
101 | return 0; |
|
|
102 | } |
|
|
103 | |
|
|
104 | |
|
|
105 | int |
|
|
106 | command_version (object *op, char *params) |
97 | command_version (object *op, char *params) |
107 | { |
98 | { |
108 | version (op); |
99 | version (op); |
109 | return 0; |
100 | return 0; |
110 | } |
101 | } |
… | |
… | |
163 | } |
154 | } |
164 | |
155 | |
165 | int |
156 | int |
166 | command_fix_me (object *op, char *params) |
157 | command_fix_me (object *op, char *params) |
167 | { |
158 | { |
168 | sum_weight (op); |
159 | op->update_weight (); |
169 | op->update_stats (); |
160 | op->update_stats (); |
170 | new_draw_info (NDI_UNIQUE, 0, op, "Your character was fixed."); |
161 | new_draw_info (NDI_UNIQUE, 0, op, "Your character was fixed."); |
171 | |
|
|
172 | return 1; |
|
|
173 | } |
|
|
174 | |
|
|
175 | int |
|
|
176 | command_logs (object *op, char *params) |
|
|
177 | { |
|
|
178 | new_draw_info (NDI_UNIQUE, 0, op, "Nobody is currently logging kills."); |
|
|
179 | |
162 | |
180 | return 1; |
163 | return 1; |
181 | } |
164 | } |
182 | |
165 | |
183 | int |
166 | int |