… | |
… | |
663 | $exp -= $subexp; |
663 | $exp -= $subexp; |
664 | $exp = max ($exp, 0); |
664 | $exp = max ($exp, 0); |
665 | |
665 | |
666 | } else { |
666 | } else { |
667 | # the experience bonus here is to make level 1 rings give you at least |
667 | # the experience bonus here is to make level 1 rings give you at least |
668 | # 100 exp points when making them. This also makes leveling in the |
668 | # 200 exp points when making them. This also makes leveling in the |
669 | # first few levels a bit easier. (probably until around level 5-6). |
669 | # first few levels a bit easier. (probably until around level 5-6). |
670 | my $expbonus = cf::level_to_min_exp (2) / 10; |
670 | my $expbonus = cf::level_to_min_exp (2) / 5; |
671 | # this bonus should also only be given for _new_ rings and not for merged |
671 | # this bonus should also only be given for _new_ rings and not for merged |
672 | # ones - to prevent infinite exp making. |
672 | # ones - to prevent infinite exp making. |
673 | $exp += $expbonus; |
673 | $exp += $expbonus; |
674 | } |
674 | } |
675 | |
675 | |
… | |
… | |
722 | my $scosts = $self->calc_value_from_cost ($costs); |
722 | my $scosts = $self->calc_value_from_cost ($costs); |
723 | |
723 | |
724 | $pl->message ("costs: " |
724 | $pl->message ("costs: " |
725 | . (join ', ', map { "$_: " . sprintf "%.2f", $costs->{$_} } keys %$costs) |
725 | . (join ', ', map { "$_: " . sprintf "%.2f", $costs->{$_} } keys %$costs) |
726 | . " (" |
726 | . " (" |
727 | . ($scosts / "royalty"->cf::arch::find->value) |
727 | . ($scosts / "platinacoin"->cf::arch::find->value) |
728 | . " royalties)"); |
728 | . " platinum)"); |
729 | $pl->message ("level: $desc"); |
729 | $pl->message ("level: $desc"); |
730 | } else { |
730 | } else { |
731 | $pl->message ("level: impossible to make, due to impossible resistancy configuration"); |
731 | $pl->message ("level: impossible to make, due to impossible resistancy configuration"); |
732 | } |
732 | } |
733 | } |
733 | } |