ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/c_misc.C
(Generate patch)

Comparing deliantra/server/server/c_misc.C (file contents):
Revision 1.81 by root, Sat Jan 16 13:41:37 2010 UTC vs.
Revision 1.86 by root, Fri Jan 27 22:01:46 2012 UTC

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,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team 5 * Copyright (©) 2002 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992,2007 Frank Tore Johansen 6 * Copyright (©) 1992 Frank Tore Johansen
7 * 7 *
8 * Deliantra is free software: you can redistribute it and/or modify it under 8 * Deliantra is free software: you can redistribute it and/or modify it under
9 * the terms of the Affero GNU General Public License as published by the 9 * the terms of the Affero GNU General Public License as published by the
10 * Free Software Foundation, either version 3 of the License, or (at your 10 * Free Software Foundation, either version 3 of the License, or (at your
11 * option) any later version. 11 * option) any later version.
24 24
25#include <global.h> 25#include <global.h>
26#include <sproto.h> 26#include <sproto.h>
27 27
28/* Handles misc. input request - things like hash table, malloc, maps, etc */ 28/* Handles misc. input request - things like hash table, malloc, maps, etc */
29
30typedef struct
31{
32 char namebuf[MAX_BUF];
33 int login_order;
34} chars_names;
35 29
36int 30int
37command_time (object *op, char *params) 31command_time (object *op, char *params)
38{ 32{
39 print_tod (op); 33 print_tod (op);
246 for (int i = 0; i < NROFATTACKS; i++) 240 for (int i = 0; i < NROFATTACKS; i++)
247 if (i != ATNR_INTERNAL) 241 if (i != ATNR_INTERNAL)
248 msg.printf (" %-20s %+4d\n", attacktype_desc [i], op->resist [i]); 242 msg.printf (" %-20s %+4d\n", attacktype_desc [i], op->resist [i]);
249 243
250 /* If dragon player, let's display natural resistances */ 244 /* If dragon player, let's display natural resistances */
251 if (is_dragon_pl (op)) 245 if (op->is_dragon ())
252 for (object *tmp = op->inv; tmp; tmp = tmp->below) 246 for (object *tmp = op->inv; tmp; tmp = tmp->below)
253 if ((tmp->type == FORCE) && tmp->arch->archname == shstr_dragon_skin_force) 247 if ((tmp->type == FORCE) && tmp->arch->archname == shstr_dragon_skin_force)
254 { 248 {
255 msg << "\nOf those, these are natural skin resistances:\n\n"; 249 msg << "\nOf those, these are natural skin resistances:\n\n";
256 250
276 new_draw_info (NDI_UNIQUE, 0, op, "You cannot change your title."); 270 new_draw_info (NDI_UNIQUE, 0, op, "You cannot change your title.");
277 return 1; 271 return 1;
278 } 272 }
279 273
280 /* dragon players cannot change titles */ 274 /* dragon players cannot change titles */
281 if (is_dragon_pl (op)) 275 if (op->is_dragon ())
282 { 276 {
283 new_draw_info (NDI_UNIQUE, 0, op, "Dragons cannot change titles."); 277 new_draw_info (NDI_UNIQUE, 0, op, "Dragons cannot change titles.");
284 return 1; 278 return 1;
285 } 279 }
286 280

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines