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

Comparing deliantra/server/server/attack.c (file contents):
Revision 1.7 by root, Thu Mar 30 11:11:35 2006 UTC vs.
Revision 1.8 by root, Thu Mar 30 11:15:47 2006 UTC

1/* 1/*
2 * static char *rcsid_attack_c = 2 * static char *rcsid_attack_c =
3 * "$Id: attack.c,v 1.7 2006/03/30 11:11:35 root Exp $"; 3 * "$Id: attack.c,v 1.8 2006/03/30 11:15:47 root 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) 2002 Mark Wedel & Crossfire Development Team 8 Copyright (C) 2002 Mark Wedel & Crossfire Development Team
1189 * not much is drained, low rate means a lot is drained. 1189 * not much is drained, low rate means a lot is drained.
1190 */ 1190 */
1191 int rate; 1191 int rate;
1192 1192
1193 if(op->resist[ATNR_DRAIN] >= 0) 1193 if(op->resist[ATNR_DRAIN] >= 0)
1194 rate = 50 + op->resist[ATNR_DRAIN] / 2; 1194 rate = 400 + op->resist[ATNR_DRAIN] * 3;
1195 else 1195 else
1196 rate = 5000 / (100 - op->resist[ATNR_DRAIN]); 1196 rate = 400 * 100 / (100 - op->resist[ATNR_DRAIN]);
1197 1197
1198 if(op->stats.exp <= rate) { 1198 if(op->stats.exp <= rate) {
1199 if(op->type == GOLEM) 1199 if(op->type == GOLEM)
1200 dam = 999; /* Its force is "sucked" away. 8) */ 1200 dam = 999; /* Its force is "sucked" away. 8) */
1201 else 1201 else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines