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.1 by elmex, Sun Aug 13 17:16:03 2006 UTC vs.
Revision 1.2 by root, Fri Aug 25 17:11:53 2006 UTC

1/* 1/*
2 * static char *rcsid_attack_c = 2 * static char *rcsid_attack_c =
3 * "$Id: attack.C,v 1.1 2006/08/13 17:16:03 elmex Exp $"; 3 * "$Id: attack.C,v 1.2 2006/08/25 17:11:53 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
1343 object *skop=NULL; 1343 object *skop=NULL;
1344 1344
1345 if (op->stats.hp>=0) 1345 if (op->stats.hp>=0)
1346 return -1; 1346 return -1;
1347 1347
1348 /* Lauwenmark: Handle for plugin death event */ 1348 if (INVOKE_OBJECT (KILL, op, ARG_OBJECT (hitter)))
1349 if (execute_event(op, EVENT_DEATH,hitter,NULL,NULL,SCRIPT_FIX_ALL)!=0)
1350 return 0; 1349 return 0;
1351 /* Lauwenmark: Handle for the global kill event */
1352 execute_global_event(EVENT_GKILL, op, hitter);
1353 1350
1354 /* maxdam needs to be the amount of damage it took to kill 1351 /* maxdam needs to be the amount of damage it took to kill
1355 * this creature. The function(s) that call us have already 1352 * this creature. The function(s) that call us have already
1356 * adjusted the creatures HP total, so that is negative. 1353 * adjusted the creatures HP total, so that is negative.
1357 */ 1354 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines