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

Comparing deliantra/maps/perl/bank.ext (file contents):
Revision 1.2 by pippijn, Fri May 19 14:54:55 2006 UTC vs.
Revision 1.3 by pippijn, Sun May 21 22:00:19 2006 UTC

53 } 53 }
54} 54}
55 55
56sub transaction { 56sub transaction {
57 my ($who, $action, $amount, $currency) = @_; 57 my ($who, $action, $amount, $currency) = @_;
58 my $pay = $amount * %unit->{$currency}; 58 my $pay = $amount * $unit{$currency};
59 59
60 # First check for possible overflow and user stupidity 60 # First check for possible overflow and user stupidity
61 if ($amount > 10000) { 61 if ($amount > 10000) {
62 return "Sorry, we do not handle more than 10000 units for one ".$action."."; 62 return "Sorry, we do not handle more than 10000 units for one ".$action.".";
63 } elsif ($amount == 0) { 63 } elsif ($amount == 0) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines