ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/Jeweler.pm
(Generate patch)

Comparing deliantra/server/ext/Jeweler.pm (file contents):
Revision 1.13 by elmex, Tue Apr 10 16:42:57 2007 UTC vs.
Revision 1.15 by root, Sat May 19 00:11:11 2007 UTC

238 if ($xp_sum) { 238 if ($xp_sum) {
239 $pl->ob->message ("You got $xp_sum xp by making $nrof ${outarch}s"); 239 $pl->ob->message ("You got $xp_sum xp by making $nrof ${outarch}s");
240 $pl->ob->change_exp ($xp_sum, "jeweler", cf::SK_EXP_SKILL_ONLY); 240 $pl->ob->change_exp ($xp_sum, "jeweler", cf::SK_EXP_SKILL_ONLY);
241 } 241 }
242 } else { 242 } else {
243 $pl->ob->message ("You fail to make something, propably you used not enough source material?"); 243 $pl->ob->message ("You fail to make something, probably you used not enough source material?");
244 } 244 }
245} 245}
246 246
247 247
248package Jeweler::CauldronHandler; 248package Jeweler::CauldronHandler;
796sub to_object { 796sub to_object {
797 my ($self) = @_; 797 my ($self) = @_;
798 798
799 my $obj = cf::object::new $self->{hash}->{arch}; 799 my $obj = cf::object::new $self->{hash}->{arch};
800 800
801 $obj->item_power ($self->power_to_level); # there have to be strings attached! 801 $obj->item_power (floor ($self->power_to_level / 3)); # there have to be strings attached!
802 802
803 $obj->face ($self->{hash}{face}); 803 $obj->face ($self->{hash}{face});
804 804
805 my $stats = $obj->stats; 805 my $stats = $obj->stats;
806 806

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines