… | |
… | |
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; |