--- deliantra/server/ext/Jeweler.pm 2007/10/12 19:13:26 1.21 +++ deliantra/server/ext/Jeweler.pm 2007/10/14 20:23:48 1.22 @@ -179,9 +179,8 @@ $r->wiz_analyze ($pl); } } - if ($hadunid) { - $pl->message ("You couldn't identify the other rings and not analyze them!"); - } + $pl->message ("You couldn't identify the other rings and not analyze them!") + if $hadunid; } # this function converts metals/minerals into a raw ring (of adornment) @@ -205,7 +204,7 @@ } unless ($xp_gain > 0) { - warn "WARNING: xp gain isn't > 0 in convesion '$outarch'\n"; + warn "WARNING: xp gain isn't > 0 in conversion '$outarch'\n"; return; } @@ -223,17 +222,17 @@ my $outarchval = cf::arch::find ($outarch)->value; - my $nrof = int ($archvalsum / (($outarchval || 1000) * $outarchvalfact)); + my $nrof = int $archvalsum / (($outarchval || 1000) * $outarchvalfact); if ($nrof) { - # XXX: yes, i know what i'm doing here, i don't set nrof, but it didn't work somehow (pls. chek sometimes) - for (1..$nrof) { + # XXX: yes, I know what I'm doing here, I don't set nrof, but it didn't work somehow (pls. check sometimes) + for (1 .. $nrof) { $chdl->put (my $ob = cf::object::new $outarch); $ob->set_animation (cf::rndm $ob->num_animations) if ($ob->type == cf::RING); $ob->flag (cf::FLAG_IDENTIFIED, 1); } - my $xp_sum = ($xp_gain * $nrof); + my $xp_sum = $xp_gain * $nrof; if ($xp_sum) { $pl->ob->message ("You got $xp_sum xp by making $nrof ${outarch}s");