--- deliantra/server/ext/Jeweler.pm 2007/12/17 08:03:22 1.23 +++ deliantra/server/ext/Jeweler.pm 2008/02/17 22:37:34 1.24 @@ -166,11 +166,13 @@ my ($sk, $chdl, $pl, $input_level) = @_; my $hadunid = 0; + my $found = 0; for ($chdl->grep_by_type (cf::RING, cf::AMULET)) { if (!$_->flag (cf::FLAG_IDENTIFIED) && $_->need_identify) { $hadunid = 1; next; } + $found = 1; my $r = Jeweler::Object->new (object => $_); my $msg = $r->analyze ($sk, $pl, $input_level); $pl->message ($r->to_string . ": " . $msg); @@ -180,6 +182,8 @@ } $pl->message ("You couldn't identify the other rings and not analyze them!") if $hadunid; + $pl->message ("You couldn't find anything in the bench to analyse!") + unless $found; } # this function converts metals/minerals into a raw ring (of adornment)