--- deliantra/server/ext/Jeweler.pm 2007/12/17 08:03:22 1.23 +++ deliantra/server/ext/Jeweler.pm 2008/07/13 20:15:51 1.26 @@ -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) @@ -661,9 +665,9 @@ } else { # the experience bonus here is to make level 1 rings give you at least - # 100 exp points when making them. This also makes leveling in the + # 200 exp points when making them. This also makes leveling in the # first few levels a bit easier. (probably until around level 5-6). - my $expbonus = cf::level_to_min_exp (2) / 10; + my $expbonus = cf::level_to_min_exp (2) / 5; # this bonus should also only be given for _new_ rings and not for merged # ones - to prevent infinite exp making. $exp += $expbonus; @@ -717,8 +721,12 @@ my $lvl = $self->power_to_level (\$desc); my $scosts = $self->calc_value_from_cost ($costs); - $pl->message ("costs: " . (join (', ', map { "$_: " . sprintf "%.2f", $costs->{$_} } keys %$costs)) . " (".($scosts / 5000)." royalties)"); - $pl->message ("level: " . $desc); + $pl->message ("costs: " + . (join ', ', map { "$_: " . sprintf "%.2f", $costs->{$_} } keys %$costs) + . " (" + . ($scosts / "platinacoin"->cf::arch::find->value) + . " platinum)"); + $pl->message ("level: $desc"); } else { $pl->message ("level: impossible to make, due to impossible resistancy configuration"); }