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

Comparing deliantra/server/server/alchemy.C (file contents):
Revision 1.18 by pippijn, Mon Jan 15 21:06:19 2007 UTC vs.
Revision 1.19 by root, Mon Feb 5 01:24:45 2007 UTC

232 int tval = 0, formula = 0; 232 int tval = 0, formula = 0;
233 233
234 while (tmp) 234 while (tmp)
235 { 235 {
236 tval = 0; 236 tval = 0;
237 strcpy (name, tmp->name); 237 assign (name, tmp->name);
238 if (tmp->title) 238 if (tmp->title)
239 sprintf (name, "%s %s", &tmp->name, &tmp->title); 239 sprintf (name, "%s %s", &tmp->name, &tmp->title);
240 tval = (strtoint (name) * (tmp->nrof ? tmp->nrof : 1)); 240 tval = (strtoint (name) * (tmp->nrof ? tmp->nrof : 1));
241#ifdef ALCHEMY_DEBUG 241#ifdef ALCHEMY_DEBUG
242 LOG (llevDebug, "Got ingredient %d %s(%d)\n", tmp->nrof ? tmp->nrof : 1, name, tval); 242 LOG (llevDebug, "Got ingredient %d %s(%d)\n", tmp->nrof ? tmp->nrof : 1, name, tval);
770 * Thus the backfire is worse. Also, more ingredients 770 * Thus the backfire is worse. Also, more ingredients
771 * means we are attempting a more powerfull potion, 771 * means we are attempting a more powerfull potion,
772 * and thus the backfire will be worse. */ 772 * and thus the backfire will be worse. */
773 for (item = cauldron->inv; item; item = item->below) 773 for (item = cauldron->inv; item; item = item->below)
774 { 774 {
775 strcpy (name, item->name); 775 assign (name, item->name);
776 if (item->title) 776 if (item->title)
777 sprintf (name, "%s %s", &item->name, &item->title); 777 sprintf (name, "%s %s", &item->name, &item->title);
778 danger += (strtoint (name) / 1000) + 3; 778 danger += (strtoint (name) / 1000) + 3;
779 nrofi++; 779 nrofi++;
780 } 780 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines