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

Comparing deliantra/server/server/apply.c (file contents):
Revision 1.1.1.2 by elmex, Wed Feb 22 18:03:18 2006 UTC vs.
Revision 1.5 by pippijn, Sat May 6 14:49:04 2006 UTC

1/* 1/*
2 * static char *rcsid_apply_c = 2 * static char *rcsid_apply_c =
3 * "$Id: apply.c,v 1.1.1.2 2006/02/22 18:03:18 elmex Exp $"; 3 * "$Id: apply.c,v 1.5 2006/05/06 14:49:04 pippijn Exp $";
4 */ 4 */
5/* 5/*
6 CrossFire, A Multiplayer game for X-windows 6 CrossFire, A Multiplayer game for X-windows
7 7
8 Copyright (C) 2001 Mark Wedel & Crossfire Development Team 8 Copyright (C) 2001 Mark Wedel & Crossfire Development Team
2348 return 1; 2348 return 1;
2349} 2349}
2350 2350
2351static void apply_savebed (object *pl) 2351static void apply_savebed (object *pl)
2352{ 2352{
2353#ifndef COZY_SERVER
2353 if(!pl->contr->name_changed||!pl->stats.exp) { 2354 if(!pl->contr->name_changed||!pl->stats.exp) {
2354 new_draw_info(NDI_UNIQUE, 0,pl,"You don't deserve to save your character yet."); 2355 new_draw_info(NDI_UNIQUE, 0,pl,"You don't deserve to save your character yet.");
2355 return; 2356 return;
2356 } 2357 }
2358#endif
2357 if(QUERY_FLAG(pl,FLAG_WAS_WIZ)) { 2359 if(QUERY_FLAG(pl,FLAG_WAS_WIZ)) {
2358 new_draw_info(NDI_UNIQUE, 0,pl,"Since you have cheated you can't save."); 2360 new_draw_info(NDI_UNIQUE, 0,pl,"Since you have cheated you can't save.");
2359 return; 2361 return;
2360 } 2362 }
2361 2363
3053#endif 3055#endif
3054 return 1; 3056 return 1;
3055 } 3057 }
3056 /* If we are just printing, we don't care about cursed status */ 3058 /* If we are just printing, we don't care about cursed status */
3057 if ((aflags & AP_IGNORE_CURSE) || (aflags & AP_PRINT) || 3059 if ((aflags & AP_IGNORE_CURSE) || (aflags & AP_PRINT) ||
3058 (!(QUERY_FLAG(tmp, FLAG_CURSED) && !QUERY_FLAG(tmp, FLAG_DAMNED)))) { 3060 (!(QUERY_FLAG(tmp, FLAG_CURSED) || !QUERY_FLAG(tmp, FLAG_DAMNED)))) {
3059 if (aflags & AP_PRINT) 3061 if (aflags & AP_PRINT)
3060 new_draw_info(NDI_UNIQUE, 0, who, query_name(tmp)); 3062 new_draw_info(NDI_UNIQUE, 0, who, query_name(tmp));
3061 else 3063 else
3062 unapply_special(who, tmp, aflags); 3064 unapply_special(who, tmp, aflags);
3063 } 3065 }
3207} 3209}
3208 3210
3209 3211
3210 3212
3211/** 3213/**
3212 * who is the object using the object. It can be a monster 3214 * who is the object using the object. It can be a monster.
3213 * op is the object they are using. op is an equipment type item, 3215 * op is the object they are using. op is an equipment type item,
3214 * eg, one which you put on and keep on for a while, and not something 3216 * eg, one which you put on and keep on for a while, and not something
3215 * like a potion or scroll. 3217 * like a potion or scroll.
3216 * 3218 *
3217 * function returns 1 if the action could not be completed, 0 on 3219 * function returns 1 if the action could not be completed, 0 on

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines