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

Comparing deliantra/server/server/spell_effect.C (file contents):
Revision 1.113 by root, Sat Nov 7 18:30:06 2009 UTC vs.
Revision 1.114 by root, Tue Nov 10 04:38:46 2009 UTC

2085 2085
2086 /* attacktype */ 2086 /* attacktype */
2087 if (!tmp->attacktype) 2087 if (!tmp->attacktype)
2088 tmp->attacktype = AT_PHYSICAL; 2088 tmp->attacktype = AT_PHYSICAL;
2089 2089
2090 if (materialtype_t *mt = name_to_material (op->materialname))
2091 {
2092 for (i = 0; i < NROFATTACKS; i++) 2090 for (i = 0; i < NROFATTACKS; i++)
2093 tmp->resist[i] = 50 - (mt->save[i] * 5); 2091 tmp->resist[i] = 50 - (op->material->save[i] * 5);
2094 a = mt->save[0]; 2092
2095 } 2093 a = op->material->save[0];
2096 else
2097 {
2098 for (i = 0; i < NROFATTACKS; i++)
2099 tmp->resist[i] = 5;
2100 a = 10;
2101 }
2102 2094
2103 /* Set weapon's immunity */ 2095 /* Set weapon's immunity */
2104 tmp->resist[ATNR_CONFUSION] = 100; 2096 tmp->resist[ATNR_CONFUSION] = 100;
2105 tmp->resist[ATNR_POISON] = 100; 2097 tmp->resist[ATNR_POISON] = 100;
2106 tmp->resist[ATNR_SLOW] = 100; 2098 tmp->resist[ATNR_SLOW] = 100;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines