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

Comparing deliantra/server/common/living.c (file contents):
Revision 1.3 by root, Thu Feb 9 02:11:26 2006 UTC vs.
Revision 1.4 by root, Thu Feb 9 02:22:04 2006 UTC

1/* 1/*
2 * static char *rcsid_living_c = 2 * static char *rcsid_living_c =
3 * "$Id: living.c,v 1.3 2006/02/09 02:11:26 root Exp $"; 3 * "$Id: living.c,v 1.4 2006/02/09 02:22:04 root Exp $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
1845 tmp->stats.exp -= loss; 1845 tmp->stats.exp -= loss;
1846 player_lvl_adj(op,tmp); 1846 player_lvl_adj(op,tmp);
1847 } 1847 }
1848 1848
1849#ifdef COZY_SERVER 1849#ifdef COZY_SERVER
1850 loss_20p = op->stats.exp * 0.05;
1851#else
1850 loss_20p = op->stats.exp * 0.20; 1852 loss_20p = op->stats.exp * 0.20;
1851#else
1852 loss_20p = op->stats.exp * 0.05;
1853#endif 1853#endif
1854 loss_3l = op->stats.exp - levels[MAX(0,op->level -3)]; 1854 loss_3l = op->stats.exp - levels[MAX(0,op->level -3)];
1855 if (loss_3l < 0) loss_3l = 0; 1855 if (loss_3l < 0) loss_3l = 0;
1856 loss = check_exp_loss(op, MIN(loss_3l, loss_20p)); 1856 loss = check_exp_loss(op, MIN(loss_3l, loss_20p));
1857 1857

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines