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.59 by root, Tue Jan 3 11:25:35 2012 UTC vs.
Revision 1.60 by root, Fri Jan 27 22:00:40 2012 UTC

133 */ 133 */
134static object * 134static object *
135find_transmution_ob (object *first_ingred, recipe *rp, size_t *rp_arch_index, int create_item) 135find_transmution_ob (object *first_ingred, recipe *rp, size_t *rp_arch_index, int create_item)
136{ 136{
137 object *prod_item = 0; 137 object *prod_item = 0;
138 bool found = false;
139 *rp_arch_index = 0; 138 *rp_arch_index = 0;
140 139
141 if (rp->transmute) /* look for matching ingredient/prod archs */ 140 if (rp->transmute) /* look for matching ingredient/prod archs */
142 for (object *item = first_ingred; item; item = item->below) 141 for (object *item = first_ingred; item; item = item->below)
143 { 142 {
826 recipe *rp = NULL; 825 recipe *rp = NULL;
827 float success_chance; 826 float success_chance;
828 int numb, ability = 1; 827 int numb, ability = 1;
829 int formula = 0; 828 int formula = 0;
830 float ave_chance; 829 float ave_chance;
831 object *item, *skop; 830 object *item;
832 831
833 if (caster->type != PLAYER) 832 if (caster->type != PLAYER)
834 return; /* only players for now */ 833 return; /* only players for now */
835 834
836 if (get_map_flags (caster->map, NULL, caster->x, caster->y, NULL, NULL) & P_SAFE) 835 if (get_map_flags (caster->map, NULL, caster->x, caster->y, NULL, NULL) & P_SAFE)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines