ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/maps/perl/reseller.ext
(Generate patch)

Comparing deliantra/maps/perl/reseller.ext (file contents):
Revision 1.3 by elmex, Mon Aug 14 21:39:00 2006 UTC vs.
Revision 1.4 by elmex, Mon Aug 14 22:00:57 2006 UTC

145 my $orig_value = $what->value; 145 my $orig_value = $what->value;
146 my $value = 0; 146 my $value = 0;
147 147
148 if ($name =~ m/\S/) { 148 if ($name =~ m/\S/) {
149 unless ($name =~ m/\d+\s*\S+/) { 149 unless ($name =~ m/\d+\s*\S+/) {
150 $who->message ("The shopkeeper says: Sorry, i don't recognize '$name' as currency. Please name your item like '10 royalty' or '10 platinum 2 silver'", cf::NDI_BROWN); 150 $who->message ("The shopkeeper says: Sorry, I don't recognize '$name' as currency. Please name your item like '10 royalty' or '10 platinum 2 silver'", cf::NDI_BROWN);
151 $what->insert_ob_in_ob ($who); 151 $what->insert_ob_in_ob ($who);
152 return 1; 152 return 1;
153 } 153 }
154 154
155 while ($name =~ s/^\s*(\d+)\s*(\S+)//) { 155 while ($name =~ s/^\s*(\d+)\s*(\S+)//) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines