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.27 by elmex, Sun Jul 20 17:01:29 2008 UTC vs.
Revision 1.28 by root, Sat Dec 13 20:34:37 2008 UTC

479} 479}
480 480
481sub improve_ring_by_plan { 481sub improve_ring_by_plan {
482 my ($self, $plan, $ring) = @_; 482 my ($self, $plan, $ring) = @_;
483 483
484 $ring = do { my $guard = Coro::Storable::guard; dclone $ring }; 484 $ring = dclone $ring;
485 485
486 my $ingred = $self->{ingredients}; 486 my $ingred = $self->{ingredients};
487 my $impr = {}; 487 my $impr = {};
488 488
489 if ($plan =~ m/^stat_(\S+)$/) { 489 if ($plan =~ m/^stat_(\S+)$/) {
573} 573}
574 574
575sub check_costs { 575sub check_costs {
576 my ($self, $costs, $do_remove) = @_; 576 my ($self, $costs, $do_remove) = @_;
577 577
578 my $costs = do { my $guard = Coro::Storable::guard; dclone $costs }; 578 my $costs = dclone $costs;
579 579
580 for my $key (keys %$costs) { 580 for my $key (keys %$costs) {
581 my @grepar; 581 my @grepar;
582 if ($key =~ m/^(resist_|spec_|stat_)/) { # check the special items 582 if ($key =~ m/^(resist_|spec_|stat_)/) { # check the special items
583 eval { @grepar = @{Jeweler::getcfg (plans => $key) || []} }; 583 eval { @grepar = @{Jeweler::getcfg (plans => $key) || []} };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines