ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/Jeweler.pm
(Generate patch)

Comparing deliantra/server/ext/Jeweler.pm (file contents):
Revision 1.37 by elmex, Wed May 5 08:19:06 2010 UTC vs.
Revision 1.39 by root, Sun Nov 18 15:19:48 2018 UTC

170 next; 170 next;
171 } 171 }
172 $found = 1; 172 $found = 1;
173 my $r = Jeweler::Object->new (object => $_); 173 my $r = Jeweler::Object->new (object => $_);
174 my $msg = $r->analyze ($sk, $pl, $input_level); 174 my $msg = $r->analyze ($sk, $pl, $input_level);
175 $pl->message ($r->to_string . ": " . $msg); 175 $pl->message ("There is a '" . $r->to_string . "' in the workbench. Your analysis: " . $msg);
176 if ($pl->flag (cf::FLAG_WIZ)) { 176 if ($pl->flag (cf::FLAG_WIZ)) {
177 $r->wiz_analyze ($pl); 177 $r->wiz_analyze ($pl);
178 } 178 }
179 } 179 }
180 $pl->message ("You couldn't identify the other rings and not analyze them!") 180 $pl->message ("You couldn't identify the other rings and not analyze them!")
230 if ($nrof) { 230 if ($nrof) {
231 # XXX: yes, I know what I'm doing here, I don't set nrof, but it didn't work somehow (pls. check sometimes) 231 # XXX: yes, I know what I'm doing here, I don't set nrof, but it didn't work somehow (pls. check sometimes)
232 $ingred->remove ($ingr_grp, $srcarchname); 232 $ingred->remove ($ingr_grp, $srcarchname);
233 for (1 .. $nrof) { 233 for (1 .. $nrof) {
234 $chdl->put (my $ob = cf::object::new $outarch); 234 $chdl->put (my $ob = cf::object::new $outarch);
235 $ob->set_animation (cf::rndm $ob->num_animations) 235 $ob->set_anim_frame (cf::rndm $ob->anim_frames)
236 if ($ob->type == cf::RING); 236 if ($ob->type == cf::RING);
237 $ob->flag (cf::FLAG_IDENTIFIED, 1); 237 $ob->flag (cf::FLAG_IDENTIFIED, 1);
238 } 238 }
239 239
240 my $xp_sum = $xp_gain * $nrof; 240 my $xp_sum = $xp_gain * $nrof;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines