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

Comparing deliantra/server/common/item.C (file contents):
Revision 1.21 by root, Mon Feb 5 01:39:05 2007 UTC vs.
Revision 1.22 by root, Mon Feb 5 01:42:22 2007 UTC

991 for (tmp = op->inv; tmp != NULL; tmp = tmp->below) 991 for (tmp = op->inv; tmp != NULL; tmp = tmp->below)
992 if (tmp->type == SKILL && !strcmp (tmp->name, "clawing")) 992 if (tmp->type == SKILL && !strcmp (tmp->name, "clawing"))
993 break; 993 break;
994 994
995 if (tmp && tmp->attacktype != 0) 995 if (tmp && tmp->attacktype != 0)
996 DESCRIBE_ABILITY (retbuf, tmp->attacktype, "Claws"); 996 { DESCRIBE_ABILITY (retbuf, tmp->attacktype, "Claws") }
997 else 997 else
998 DESCRIBE_ABILITY (retbuf, op->attacktype, "Attacks"); 998 { DESCRIBE_ABILITY (retbuf, op->attacktype, "Attacks") }
999 } 999 }
1000 else 1000 else
1001 DESCRIBE_ABILITY (retbuf, op->attacktype, "Attacks"); 1001 { DESCRIBE_ABILITY (retbuf, op->attacktype, "Attacks") }
1002 1002
1003 DESCRIBE_PATH (retbuf, op->path_attuned, "Attuned"); 1003 DESCRIBE_PATH (retbuf, op->path_attuned, "Attuned");
1004 DESCRIBE_PATH (retbuf, op->path_repelled, "Repelled"); 1004 DESCRIBE_PATH (retbuf, op->path_repelled, "Repelled");
1005 DESCRIBE_PATH (retbuf, op->path_denied, "Denied"); 1005 DESCRIBE_PATH (retbuf, op->path_denied, "Denied");
1006
1006 for (i = 0; i < NROFATTACKS; i++) 1007 for (i = 0; i < NROFATTACKS; i++)
1007 {
1008 if (op->resist[i]) 1008 if (op->resist[i])
1009 { 1009 {
1010 sprintf (buf, "(%s %+d)", resist_plus[i], op->resist[i]); 1010 sprintf (buf, "(%s %+d)", resist_plus[i], op->resist[i]);
1011 strcat (retbuf, buf); 1011 strcat (retbuf, buf);
1012 } 1012 }
1013 } 1013
1014 return retbuf; 1014 return retbuf;
1015} 1015}
1016 1016
1017 1017
1018/* 1018/*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines